From 1db0ebb9e3f8e2fde3f9e7e660285d861cbdba4b Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Mon, 3 Nov 2025 10:59:33 +0800 Subject: [PATCH] sdk --- Assets/Scripts/Common/Atlas/Atlas.cs | 6 +- Assets/Scripts/Common/BFMain.cs | 105 +- Assets/Scripts/Common/BIReport/BIReport.cs | 11 + Assets/Scripts/Common/DeepLink.meta | 8 + .../Common/DeepLink/DeepLinkManager.cs | 254 + .../Common/DeepLink/DeepLinkManager.cs.meta} | 2 +- .../Common/GameLaunch/GameLaunchManager.cs | 18 +- .../GameLaunchProcessorBase.cs | 6 +- .../Processors/CalculateDiffProcessor.cs | 12 + .../Processors/DownloadUpdateProcessor.cs | 4 + .../Processors/FirstABProcessor.cs | 5 + .../Processors/FixUpProcessor.cs | 4 + .../Processors/OnGetVersionProcessor.cs | 13 + .../Processors/PreCheckProcessor.cs | 12 + .../Processors/PrepareProcessor.cs | 15 +- .../Processors/RequestVersionProcessor.cs | 9 + Assets/Scripts/Common/Network/NetManager.cs | 31 +- .../Network/TCPService/TCPChannel.Auth.cs | 10 +- .../TCPService/TCPChannel.Reconnect.cs | 20 +- .../Common/Network/TCPService/TCPChannel.cs | 62 +- Assets/Scripts/Common/SDK/AdManager.cs | 63 +- Assets/Scripts/Common/SDK/AdManagerBanner.cs | 38 +- .../Common/SDK/AdManagerInterstitial.cs | 40 +- Assets/Scripts/Common/SDK/AdManagerReward.cs | 25 +- Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs | 87 + ...nager.cs.meta => BFHWAdSDKManager.cs.meta} | 2 +- .../Scripts/Common/SDK/BFHWPaySDKManager.cs | 123 + .../Common/SDK/BFHWPaySDKManager.cs.meta} | 2 +- .../Common/SDK/BFIronSourceSDKManager.cs | 318 - .../Scripts/Common/SDK/BFLoginSDKManager.cs | 51 +- .../Scripts/Common/SDK/BFNativeSDKManager.cs | 525 +- Assets/Scripts/Common/SDK/BFPaySDKManager.cs | 6 + .../Scripts/Common/SDK/BFRuPaySDKManager.cs | 121 + .../Common/SDK/BFRuPaySDKManager.cs.meta | 11 + .../Common/SDK/BFThirdReportSDKManager.cs | 179 +- Assets/Scripts/Common/SDK/BFUMPManager.cs | 83 + .../Scripts/Common/SDK/BFUMPManager.cs.meta | 11 + .../Scripts/Common/SDK/DZSDKManager.cs.meta | 2 +- Assets/Scripts/Common/SDK/IAPManager.cs | 58 +- .../NativeCore/Platform/NativeUtils.Ios.cs | 9 +- .../NativeCore/ThirdPlatform/AppsFlyerSdk.cs | 5 + .../ThirdPlatform/ThinkingAnalytics.cs | 5 + .../Common/SDK/NativeCore/Ulogin/LoginType.cs | 1 + .../Common/SDK/NotificationSDKManager.cs | 168 + .../Common/SDK/NotificationSDKManager.cs.meta | 11 + .../SDK/ParseClient/BFParseClientManager.cs | 20 +- .../SDK/ParseClient/Http/HttpManager.cs | 15 +- .../Common/SDK/ParseClient/Http/SingleHttp.cs | 10 +- Assets/Scripts/Common/SDK/SDKManager.cs | 41 +- Assets/Scripts/Common/URP.meta | 8 + Assets/Scripts/Common/URP/URPManager.cs | 49 + Assets/Scripts/Common/URP/URPManager.cs.meta | 11 + .../Component/Effects/DrawBezierLine.cs | 113 + .../Component/Effects/DrawBezierLine.cs.meta | 11 + .../Helper/DreamlandInstancingHelper.cs | 82 + .../Helper/DreamlandInstancingHelper.cs.meta | 11 + .../Scripts/Component/Helper/GlobalHelper.cs | 46 + .../Component/Helper/GlobalHelper.cs.meta | 11 + Assets/Scripts/Component/Helper/NodeHelper.cs | 66 + .../Scripts/Component/Helper/PrefabHelper.cs | 2 + .../Component/Helper/UISpineHelper.cs.meta | 2 +- .../Scripts/Component/Helper/WeaponHelper.cs | 176 + .../Component/Helper/WeaponHelper.cs.meta | 11 + .../Component/UI/BFLayout/BFLayoutBase.cs | 2 +- .../UI/BFScrollRect/BFScrollRectCommon.cs | 84 +- .../Component/UI/UIEffect/UIOutlineEffect.cs | 41 +- Assets/Scripts/Const/BFPlatform.Const.cs | 11 + Assets/Scripts/Const/BFPlatform.Const.cs.meta | 11 + Assets/Scripts/Const/BFPlatform.Gate.cs | 277 +- Assets/Scripts/Const/BFPlatform.Language.cs | 16 +- Assets/Scripts/Utils/TimeHelper.cs | 28 + Assets/Scripts/Utils/TimeHelper.cs.meta | 11 + Assets/Scripts/Utils/Utils.cs | 28 + .../ThirdParty/AppsFlyer/AFAdRevenueData.cs | 71 + .../AppsFlyer/AFAdRevenueData.cs.meta | 11 + .../ThirdParty/AppsFlyer/AFAdRevenueEvent.cs | 34 - .../AppsFlyer/AFPurchaseDetailsAndroid.cs | 35 + .../AFPurchaseDetailsAndroid.cs.meta | 11 + .../AppsFlyer/AFSDKPurchaseDetailsIOS.cs | 30 + .../AppsFlyer/AFSDKPurchaseDetailsIOS.cs.meta | 11 + .../AppsFlyer/AFSDKValidateAndLogResult.cs | 38 + .../AFSDKValidateAndLogResult.cs.meta | 11 + Assets/ThirdParty/AppsFlyer/AppsFlyer.cs | 795 +- .../AppsFlyer/AppsFlyerAdRevenue.cs | 173 - .../ThirdParty/AppsFlyer/AppsFlyerAndroid.cs | 262 +- .../ThirdParty/AppsFlyer/AppsFlyerConsent.cs | 71 + .../AppsFlyer/AppsFlyerConsent.cs.meta | 11 + .../AppsFlyer/AppsFlyerEventArgs.cs | 7 +- .../AppsFlyer/AppsFlyerObjectScript.cs | 34 +- .../AppsFlyer/AppsFlyerPurchaseConnector.cs | 426 + .../AppsFlyerPurchaseConnector.cs.meta | 11 + Assets/ThirdParty/AppsFlyer/AppsFlyeriOS.cs | 556 +- .../Editor/AppsFlyerAdRevenueDependencies.xml | 13 - .../Editor/AppsFlyerDependencies.xml | 14 +- .../AppsFlyer/Editor/AppsFlyerObjectEditor.cs | 8 +- .../Editor/{logo.png => appsflyer_logo.png} | Bin ...{logo.png.meta => appsflyer_logo.png.meta} | 0 .../AppsFlyer/IAppsFlyerAndroidBridge.cs | 31 + .../AppsFlyer/IAppsFlyerAndroidBridge.cs.meta | 11 + .../AppsFlyer/IAppsFlyerIOSBridge.cs | 26 + .../AppsFlyer/IAppsFlyerIOSBridge.cs.meta | 11 + .../AppsFlyer/IAppsFlyerNativeBridge.cs | 76 + .../AppsFlyer/IAppsFlyerNativeBridge.cs.meta | 11 + .../AppsFlyer/IAppsFlyerPurchaseValidation.cs | 8 + .../IAppsFlyerPurchaseValidation.cs.meta | 11 + .../AppsFlyer/IAppsFlyerValidateAndLog.cs | 19 + .../IAppsFlyerValidateAndLog.cs.meta | 11 + Assets/ThirdParty/AppsFlyer/Mac.meta | 8 + .../AppsFlyerBundle.bundle.meta} | 12 +- .../Mac/AppsFlyerBundle.bundle/Contents.meta | 8 + .../Contents/Info.plist | 48 + .../Contents/Info.plist.meta} | 4 +- .../Contents/MacOS.meta | 8 + .../Contents/MacOS/AppsFlyerBundle | Bin 0 -> 1132768 bytes .../Contents/MacOS/AppsFlyerBundle.meta | 7 + .../Contents/_CodeSignature.meta | 8 + .../Contents/_CodeSignature/CodeResources | 115 + .../_CodeSignature/CodeResources.meta | 7 + .../Plugins/iOS/AFUnityStoreKit2Bridge.swift | 79 + ...meta => AFUnityStoreKit2Bridge.swift.meta} | 2 +- .../AppsFlyer/Plugins/iOS/AFUnityUtils.h | 24 + ...enueWrapper.h.meta => AFUnityUtils.h.meta} | 2 +- .../AppsFlyer/Plugins/iOS/AFUnityUtils.mm | 88 +- .../Plugins/iOS/AppsFlyer+AppController.m | 27 +- .../Plugins/iOS/AppsFlyerAdRevenueWrapper.h | 17 - .../Plugins/iOS/AppsFlyerAdRevenueWrapper.mm | 38 - .../Plugins/iOS/AppsFlyerAppController.mm | 4 +- .../Plugins/iOS/AppsFlyerAttribution.m | 7 +- .../Plugins/iOS/AppsFlyeriOSWrapper.h | 26 +- .../Plugins/iOS/AppsFlyeriOSWrapper.mm | 292 +- .../AppsFlyer/Plugins/iOS/SwiftForUnity.swift | 1 - .../ThirdParty/AppsFlyer/ProductPurchase.cs | 184 + .../AppsFlyer/ProductPurchase.cs.meta | 11 + Assets/ThirdParty/AppsFlyer/Tests.meta | 8 + .../AppsFlyer/Windows/AppsFlyerWindows.cs | 18 +- Assets/ThirdParty/AppsFlyer/package.json | 13 +- ...niversalRenderPipelineGlobalSettings.asset | 27 + ...salRenderPipelineGlobalSettings.asset.meta | 8 + .../XLua/Gen/AFInAppEventParameterNameWrap.cs | 161 - Assets/XLua/Gen/AFInAppEventTypeWrap.cs | 113 - Assets/XLua/Gen/AdManagerWrap.cs | 454 - Assets/XLua/Gen/BF_AbsPostEffectWrap.cs | 128 - Assets/XLua/Gen/BF_AesEncryptWrap.cs | 162 - .../Gen/BF_AssetBundleConfigCollectionWrap.cs | 529 - Assets/XLua/Gen/BF_AssetBundleConfigWrap.cs | 299 - Assets/XLua/Gen/BF_AssetBundleLoaderWrap.cs | 614 -- Assets/XLua/Gen/BF_AssetBundleObjectWrap.cs | 374 - Assets/XLua/Gen/BF_AssetLoaderWrap.cs | 394 - Assets/XLua/Gen/BF_AssetObjectBaseWrap.cs | 262 - Assets/XLua/Gen/BF_AssetObjectWrap.cs | 299 - Assets/XLua/Gen/BF_AtlasWrap.cs | 170 - Assets/XLua/Gen/BF_BFAccountInfoWrap.cs | 301 - Assets/XLua/Gen/BF_BFAdmobSDKManagerWrap.cs | 527 - Assets/XLua/Gen/BF_BFCellWrap.cs | 287 - Assets/XLua/Gen/BF_BFCircleLayoutWrap.cs | 250 - Assets/XLua/Gen/BF_BFEventBaseWrap.cs | 200 - Assets/XLua/Gen/BF_BFEventWrap.cs | 183 - ...ctions_Generic_List_1_BF_BFFinger__Wrap.cs | 184 - ...t_2_BF_SelectEventType_BF_BFFinger_Wrap.cs | 185 - ...nt_2_BF_TouchEventType_BF_BFFinger_Wrap.cs | 185 - Assets/XLua/Gen/BF_BFFingerSnapshotWrap.cs | 290 - Assets/XLua/Gen/BF_BFFingerWrap.cs | 1571 --- Assets/XLua/Gen/BF_BFGateInfoWrap.cs | 212 - Assets/XLua/Gen/BF_BFGestureWrap.cs | 615 -- Assets/XLua/Gen/BF_BFGraphicFlipWrap.cs | 175 - Assets/XLua/Gen/BF_BFGridLayoutWrap.cs | 329 - .../BF_BFHorizontalOrVerticalLayoutWrap.cs | 260 - Assets/XLua/Gen/BF_BFHttpsInfoWrap.cs | 148 - .../XLua/Gen/BF_BFIronSourceSDKManagerWrap.cs | 528 - Assets/XLua/Gen/BF_BFLanguageInfoWrap.cs | 159 - Assets/XLua/Gen/BF_BFLayoutBaseWrap.cs | 223 - Assets/XLua/Gen/BF_BFLogWrap.cs | 281 - Assets/XLua/Gen/BF_BFLoginInfoWrap.cs | 148 - Assets/XLua/Gen/BF_BFLoginSDKManagerWrap.cs | 1327 --- Assets/XLua/Gen/BF_BFMainWrap.cs | 566 -- Assets/XLua/Gen/BF_BFNativeSDKManagerWrap.cs | 617 -- ..._BFNativeSDKManager_NativeResultMsgWrap.cs | 146 - Assets/XLua/Gen/BF_BFNativeSDKMessageWrap.cs | 90 - .../XLua/Gen/BF_BFParseClientManagerWrap.cs | 1152 --- Assets/XLua/Gen/BF_BFPaySDKManagerWrap.cs | 731 -- Assets/XLua/Gen/BF_BFPlatformWrap.cs | 710 -- Assets/XLua/Gen/BF_BFScrollRectBaseWrap.cs | 577 -- Assets/XLua/Gen/BF_BFScrollRectCommonWrap.cs | 884 -- Assets/XLua/Gen/BF_BFScrollRectGridWrap.cs | 503 - .../XLua/Gen/BF_BFScrollRectMultCellWrap.cs | 503 - .../XLua/Gen/BF_BFScrollRectMultSizeWrap.cs | 443 - Assets/XLua/Gen/BF_BFSliderWrap.cs | 361 - .../Gen/BF_BFThirdReportSDKManagerWrap.cs | 629 -- Assets/XLua/Gen/BF_BFTouchManagerWrap.cs | 765 -- Assets/XLua/Gen/BF_BFTouchSelectableWrap.cs | 269 - Assets/XLua/Gen/BF_BFUnitySliderWrap.cs | 200 - Assets/XLua/Gen/BF_BFVersionInfoWrap.cs | 394 - Assets/XLua/Gen/BF_BFWebRequestManagerWrap.cs | 325 - Assets/XLua/Gen/BF_BIReportWrap.cs | 355 - .../XLua/Gen/BF_BaseSortingOrderHelperWrap.cs | 157 - Assets/XLua/Gen/BF_BattleControlBgWrap.cs | 268 - Assets/XLua/Gen/BF_BattleUnitAttrWrap.cs | 263 - .../XLua/Gen/BF_CalculateDiffProcessorWrap.cs | 142 - Assets/XLua/Gen/BF_CameraHelperWrap.cs | 115 - .../Gen/BF_CanvasSortingOrderHelperWrap.cs | 143 - Assets/XLua/Gen/BF_CellDragEventWrap.cs | 292 - Assets/XLua/Gen/BF_CellObjWrap.cs | 177 - .../XLua/Gen/BF_CharacterAnimationInfoWrap.cs | 214 - Assets/XLua/Gen/BF_CharacterHelperWrap.cs | 647 -- Assets/XLua/Gen/BF_CharacterObjectInfoWrap.cs | 148 - .../XLua/Gen/BF_CharacterSpineHelperWrap.cs | 912 -- .../Gen/BF_CharacterSpineObjectInfoWrap.cs | 148 - Assets/XLua/Gen/BF_CombineURLWrap.cs | 392 - .../Gen/BF_CounterModeCryptoTransformWrap.cs | 241 - Assets/XLua/Gen/BF_DZSDKManagerWrap.cs | 286 - Assets/XLua/Gen/BF_DelayedWrap.cs | 148 - .../Gen/BF_DownloadUpdateProcessorWrap.cs | 114 - Assets/XLua/Gen/BF_DragEventSyncWrap.cs | 202 - Assets/XLua/Gen/BF_EffectHelperWrap.cs | 766 -- .../XLua/Gen/BF_EliminationTouchEventWrap.cs | 286 - Assets/XLua/Gen/BF_EmojiGraphicWrap.cs | 189 - Assets/XLua/Gen/BF_EmojiInfoWrap.cs | 270 - Assets/XLua/Gen/BF_EmptyRaycastWrap.cs | 67 - Assets/XLua/Gen/BF_EnumFlagsAttributeWrap.cs | 84 - Assets/XLua/Gen/BF_ExtensionMethodsWrap.cs | 67 - Assets/XLua/Gen/BF_FirstABProcessorWrap.cs | 171 - Assets/XLua/Gen/BF_FixUpProcessorWrap.cs | 114 - Assets/XLua/Gen/BF_GameConstWrap.cs | 132 - Assets/XLua/Gen/BF_GameLaunchManagerWrap.cs | 611 -- .../Gen/BF_GameLaunchProcessorBaseWrap.cs | 217 - Assets/XLua/Gen/BF_GameLaunchUtilsWrap.cs | 109 - Assets/XLua/Gen/BF_GameObjectInfoWrap.cs | 214 - Assets/XLua/Gen/BF_GameObjectPoolWrap.cs | 172 - .../Gen/BF_HorizontalScrollRectOldWrap.cs | 141 - Assets/XLua/Gen/BF_HrefInfoWrap.cs | 254 - Assets/XLua/Gen/BF_InlineTextWrap.cs | 470 - Assets/XLua/Gen/BF_LanguageConfigWrap.cs | 175 - Assets/XLua/Gen/BF_LaunchRequesterWrap.cs | 1320 --- Assets/XLua/Gen/BF_LaunchSuccProcessorWrap.cs | 113 - Assets/XLua/Gen/BF_LoaderBaseWrap.cs | 391 - Assets/XLua/Gen/BF_LocalDataWrap.cs | 457 - Assets/XLua/Gen/BF_LoomManagerWrap.cs | 227 - Assets/XLua/Gen/BF_LuaManagerWrap.cs | 552 -- Assets/XLua/Gen/BF_ManagerBaseWrap.cs | 225 - Assets/XLua/Gen/BF_Md5EncryptWrap.cs | 137 - Assets/XLua/Gen/BF_MeshInfoWrap.cs | 202 - Assets/XLua/Gen/BF_MirrorWrap.cs | 188 - .../Gen/BF_MonoSingleton_1_AdManager_Wrap.cs | 97 - .../Gen/BF_MonoSingleton_1_BF_BFMain_Wrap.cs | 97 - .../Gen/BF_MultipleSpriteAnimationWrap.cs | 211 - ...tiveCore_ThirdPlatform_AppsFlyerSdkWrap.cs | 171 - ...ativeCore_ThirdPlatform_FacebookSdkWrap.cs | 408 - ..._ThirdPlatform_ThinkingAnalyticsSdkWrap.cs | 269 - Assets/XLua/Gen/BF_NativeUtilsWrap.cs | 208 - Assets/XLua/Gen/BF_NetAesEncryptWrap.cs | 300 - Assets/XLua/Gen/BF_NetClientWrap.cs | 481 - Assets/XLua/Gen/BF_NetConfigurationWrap.cs | 147 - .../Gen/BF_NetConnectConfigurationWrap.cs | 638 -- Assets/XLua/Gen/BF_NetErrorCodeWrap.cs | 77 - Assets/XLua/Gen/BF_NetExceptionWrap.cs | 143 - Assets/XLua/Gen/BF_NetManagerWrap.cs | 1443 --- Assets/XLua/Gen/BF_NetMd5EncryptWrap.cs | 137 - Assets/XLua/Gen/BF_NodeHelperWrap.cs | 495 - Assets/XLua/Gen/BF_NotchScreenInfoWrap.cs | 238 - Assets/XLua/Gen/BF_NotchScreenNodeWrap.cs | 148 - .../XLua/Gen/BF_OnGetVersionProcessorWrap.cs | 114 - Assets/XLua/Gen/BF_OneShotManagerWrap.cs | 207 - Assets/XLua/Gen/BF_OutlineWrap.cs | 179 - Assets/XLua/Gen/BF_PoolManagerWrap.cs | 165 - Assets/XLua/Gen/BF_PostEffectBehaviourWrap.cs | 288 - Assets/XLua/Gen/BF_PostEffectBloomWrap.cs | 300 - Assets/XLua/Gen/BF_PostEffectContextWrap.cs | 156 - Assets/XLua/Gen/BF_PostEffectFxaaWrap.cs | 129 - .../XLua/Gen/BF_PostEffectRadialBlurWrap.cs | 306 - .../XLua/Gen/BF_PostEffectVividBloomWrap.cs | 427 - Assets/XLua/Gen/BF_PreCheckProcessorWrap.cs | 114 - Assets/XLua/Gen/BF_PrefabHelperWrap.cs | 1411 --- Assets/XLua/Gen/BF_PrepareProcessorWrap.cs | 114 - Assets/XLua/Gen/BF_RawImageGridWrap.cs | 146 - Assets/XLua/Gen/BF_Rc4EncryptWrap.cs | 220 - Assets/XLua/Gen/BF_Rc4ObjectWrap.cs | 146 - Assets/XLua/Gen/BF_RenderManagerWrap.cs | 914 -- ...F_RequestLoginCenterConfigProcessorWrap.cs | 114 - .../Gen/BF_RequestVersionProcessorWrap.cs | 114 - Assets/XLua/Gen/BF_ResourceManagerWrap.cs | 579 -- Assets/XLua/Gen/BF_ResourcesProtectWrap.cs | 282 - Assets/XLua/Gen/BF_RsaEncryptWrap.cs | 200 - Assets/XLua/Gen/BF_SDKManagerWrap.cs | 283 - Assets/XLua/Gen/BF_SafeAreaManagerWrap.cs | 149 - Assets/XLua/Gen/BF_ScrollRectBaseOldWrap.cs | 2061 ---- .../Gen/BF_ScrollRectCenterControllerWrap.cs | 1299 --- Assets/XLua/Gen/BF_ScrollRectCenterWrap.cs | 99 - Assets/XLua/Gen/BF_ShowDebugTextWrap.cs | 141 - Assets/XLua/Gen/BF_ShowFPSWrap.cs | 115 - Assets/XLua/Gen/BF_SimpleAtlasWrap.cs | 317 - Assets/XLua/Gen/BF_SkillSectorMeshWrap.cs | 236 - Assets/XLua/Gen/BF_SocketChannelHelperWrap.cs | 297 - .../XLua/Gen/BF_SocketChannelManagerWrap.cs | 353 - Assets/XLua/Gen/BF_SocketChannelWrap.cs | 870 -- .../XLua/Gen/BF_SocketChannel_NetPackWrap.cs | 361 - Assets/XLua/Gen/BF_SocketManagerWrap.cs | 296 - Assets/XLua/Gen/BF_SoundManagerWrap.cs | 208 - Assets/XLua/Gen/BF_StringConstWrap.cs | 121 - Assets/XLua/Gen/BF_TaskManagerWrap.cs | 312 - Assets/XLua/Gen/BF_TaskWrap.cs | 229 - Assets/XLua/Gen/BF_TimeLineItemWrap.cs | 539 -- .../XLua/Gen/BF_TimeLineItem_FrameDataWrap.cs | 158 - Assets/XLua/Gen/BF_TimeLineManagerWrap.cs | 668 -- Assets/XLua/Gen/BF_TimelineEventItemWrap.cs | 181 - Assets/XLua/Gen/BF_TimelineHelperWrap.cs | 444 - .../Gen/BF_TimelineSortingOderHelperWrap.cs | 143 - Assets/XLua/Gen/BF_TutorialClickAreaWrap.cs | 286 - Assets/XLua/Gen/BF_UICoordinateHelperWrap.cs | 233 - Assets/XLua/Gen/BF_UIDragEventWrap.cs | 113 - .../XLua/Gen/BF_UIDynamicBrightEffectWrap.cs | 261 - .../XLua/Gen/BF_UIDynamicShinyEffectWrap.cs | 415 - Assets/XLua/Gen/BF_UIEraserTextureWrap.cs | 349 - Assets/XLua/Gen/BF_UIHelperWrap.cs | 695 -- Assets/XLua/Gen/BF_UISpineHelperWrap.cs | 142 - Assets/XLua/Gen/BF_UITouchEventWrap.cs | 459 - Assets/XLua/Gen/BF_UVAnimationGraphicWrap.cs | 207 - Assets/XLua/Gen/BF_UtilsWrap.cs | 781 -- .../XLua/Gen/BF_VerticalScrollRectOldWrap.cs | 141 - ...TTP_Connections_HTTP2_HTTP2ResponseWrap.cs | 116 - .../Gen/BestHTTP_Forms_HTTPFormBaseWrap.cs | 367 - .../BestHTTP_Forms_HTTPUrlEncodedFormWrap.cs | 168 - Assets/XLua/Gen/BestHTTP_HTTPRequestWrap.cs | 2341 ----- Assets/XLua/Gen/BestHTTP_HTTPResponseWrap.cs | 675 -- Assets/XLua/Gen/CameraAdjustWrap.cs | 146 - Assets/XLua/Gen/CloudControlWrap.cs | 239 - .../DG_Tweening_Core_ABSSequentiableWrap.cs | 67 - .../DG_Tweening_Core_DOTweenComponentWrap.cs | 175 - ...ening_Plugins_Options_FloatOptions_Wrap.cs | 1500 --- ...ening_Plugins_Options_ColorOptions_Wrap.cs | 1539 --- ..._Plugins_Options_QuaternionOptions_Wrap.cs | 1517 --- ...ning_Plugins_Options_VectorOptions_Wrap.cs | 1530 --- ...eening_Plugins_Options_PathOptions_Wrap.cs | 1719 ---- ...ning_Plugins_Options_VectorOptions_Wrap.cs | 1566 --- ...lugins_Options_Vector3ArrayOptions_Wrap.cs | 1527 --- .../DG_Tweening_DOTweenCYInstructionWrap.cs | 67 - ...weenCYInstruction_WaitForCompletionWrap.cs | 100 - ...enCYInstruction_WaitForElapsedLoopsWrap.cs | 101 - ...ng_DOTweenCYInstruction_WaitForKillWrap.cs | 100 - ...OTweenCYInstruction_WaitForPositionWrap.cs | 101 - ..._DOTweenCYInstruction_WaitForRewindWrap.cs | 100 - ...g_DOTweenCYInstruction_WaitForStartWrap.cs | 100 - .../Gen/DG_Tweening_DOTweenModuleAudioWrap.cs | 67 - .../DG_Tweening_DOTweenModuleSpriteWrap.cs | 67 - .../Gen/DG_Tweening_DOTweenModuleUIWrap.cs | 67 - .../DG_Tweening_DOTweenModuleUI_UtilsWrap.cs | 96 - ..._Tweening_DOTweenModuleUnityVersionWrap.cs | 67 - .../Gen/DG_Tweening_DOTweenModuleUtilsWrap.cs | 91 - ...Tweening_DOTweenModuleUtils_PhysicsWrap.cs | 186 - Assets/XLua/Gen/DG_Tweening_DOTweenWrap.cs | 2652 ----- Assets/XLua/Gen/DG_Tweening_DOVirtualWrap.cs | 224 - .../XLua/Gen/DG_Tweening_EaseFactoryWrap.cs | 152 - Assets/XLua/Gen/DG_Tweening_SequenceWrap.cs | 1250 --- .../Gen/DG_Tweening_ShortcutExtensionsWrap.cs | 67 - .../Gen/DG_Tweening_TweenExtensionsWrap.cs | 67 - .../XLua/Gen/DG_Tweening_TweenParamsWrap.cs | 804 -- ...DG_Tweening_TweenSettingsExtensionsWrap.cs | 67 - Assets/XLua/Gen/DG_Tweening_TweenWrap.cs | 3075 ------ Assets/XLua/Gen/DG_Tweening_TweenerWrap.cs | 1187 --- Assets/XLua/Gen/DelegatesGensBridge.cs | 3838 -------- Assets/XLua/Gen/EnumWrap.cs | 5685 ----------- .../FBWindowsA2UNotificationsManagerWrap.cs | 298 - Assets/XLua/Gen/FBWindowsADSManagerWrap.cs | 405 - .../Gen/FBWindowsExampleTabsManagerWrap.cs | 144 - .../XLua/Gen/FBWindowsFriendsManagerWrap.cs | 233 - .../XLua/Gen/FBWindowsGraphAPIManagerWrap.cs | 295 - Assets/XLua/Gen/FBWindowsInitManagerWrap.cs | 143 - Assets/XLua/Gen/FBWindowsLoginManagerWrap.cs | 348 - Assets/XLua/Gen/FBWindowsLogsManagerWrap.cs | 261 - .../FBWindowsPhysicalGamepadManagerWrap.cs | 115 - .../XLua/Gen/FBWindowsPurchaseManagerWrap.cs | 264 - Assets/XLua/Gen/FBWindowsShareManagerWrap.cs | 388 - .../Gen/FBWindowsSoftKeyboardManagerWrap.cs | 143 - .../Gen/FBWindowsTournamentsManagerWrap.cs | 503 - .../Gen/FBWindowsVirtualGamepadManagerWrap.cs | 174 - Assets/XLua/Gen/Facebook_MiniJSON_JsonWrap.cs | 123 - .../Gen/Facebook_MiniJSON_MiniJsonUtilWrap.cs | 67 - Assets/XLua/Gen/FixRectWidthByStringWrap.cs | 115 - Assets/XLua/Gen/FunctionRequestWrap.cs | 128 - Assets/XLua/Gen/Http_HttpDebugWrap.cs | 142 - Assets/XLua/Gen/Http_HttpManagerWrap.cs | 410 - Assets/XLua/Gen/Http_RequestDataWrap.cs | 146 - Assets/XLua/Gen/Http_ResultInfoWrap.cs | 209 - Assets/XLua/Gen/Http_SingleHttpExtendsWrap.cs | 67 - Assets/XLua/Gen/Http_SingleHttpWrap.cs | 666 -- Assets/XLua/Gen/IAPManagerWrap.cs | 629 -- Assets/XLua/Gen/IAPRequestWrap.cs | 97 - Assets/XLua/Gen/IUnityBannerWrap.cs | 277 - Assets/XLua/Gen/IUnityImpressionDataWrap.cs | 137 - Assets/XLua/Gen/IUnityInitializationWrap.cs | 102 - Assets/XLua/Gen/IUnityInterstitialWrap.cs | 557 -- Assets/XLua/Gen/IUnityLevelPlayBannerWrap.cs | 277 - .../Gen/IUnityLevelPlayInterstitialWrap.cs | 312 - .../IUnityLevelPlayRewardedVideoManualWrap.cs | 137 - .../Gen/IUnityLevelPlayRewardedVideoWrap.cs | 312 - Assets/XLua/Gen/IUnityOfferwallWrap.cs | 277 - .../XLua/Gen/IUnityRewardedVideoManualWrap.cs | 137 - Assets/XLua/Gen/IUnityRewardedVideoWrap.cs | 592 -- Assets/XLua/Gen/IUnitySegmentWrap.cs | 102 - Assets/XLua/Gen/IronSourceAdInfoWrap.cs | 294 - Assets/XLua/Gen/IronSourceAdUnitsWrap.cs | 119 - Assets/XLua/Gen/IronSourceBannerEventsWrap.cs | 264 - Assets/XLua/Gen/IronSourceBannerSizeWrap.cs | 306 - Assets/XLua/Gen/IronSourceConfigWrap.cs | 213 - Assets/XLua/Gen/IronSourceConstantsWrap.cs | 107 - Assets/XLua/Gen/IronSourceDemoScriptWrap.cs | 140 - Assets/XLua/Gen/IronSourceErrorWrap.cs | 202 - .../Gen/IronSourceEventsDispatcherWrap.cs | 244 - Assets/XLua/Gen/IronSourceEventsWrap.cs | 528 - Assets/XLua/Gen/IronSourceIAgentWrap.cs | 1490 --- .../XLua/Gen/IronSourceImpressionDataWrap.cs | 339 - Assets/XLua/Gen/IronSourceInitilizerWrap.cs | 84 - .../Gen/IronSourceInterstitialEventsWrap.cs | 294 - Assets/XLua/Gen/IronSourceJSON_JsonWrap.cs | 123 - .../Gen/IronSourceMediationSettingsWrap.cs | 302 - Assets/XLua/Gen/IronSourcePlacementWrap.cs | 203 - .../Gen/IronSourceRewardedVideoEventsWrap.cs | 354 - .../XLua/Gen/IronSourceSegmentAndroidWrap.cs | 148 - Assets/XLua/Gen/IronSourceSegmentWrap.cs | 391 - Assets/XLua/Gen/IronSourceUtilsWrap.cs | 140 - Assets/XLua/Gen/IronSourceWrap.cs | 1299 --- Assets/XLua/Gen/LuaAssetWrap.cs | 297 - Assets/XLua/Gen/MonkeyPostWrap.cs | 361 - Assets/XLua/Gen/PackUnpack.cs | 542 -- Assets/XLua/Gen/ParticleUVAnimationWrap.cs | 237 - Assets/XLua/Gen/ProductInfoWrap.cs | 149 - Assets/XLua/Gen/Security_XXTEAWrap.cs | 373 - .../Gen/SignInWithAppleTest_CallbacksWrap.cs | 140 - .../SignInWithAppleTest_EventSystemWrap.cs | 227 - .../XLua/Gen/Spine_AnimationStateDataWrap.cs | 209 - ...tionStateData_AnimationPairComparerWrap.cs | 85 - ...ne_AnimationStateData_AnimationPairWrap.cs | 153 - Assets/XLua/Gen/Spine_AnimationStateWrap.cs | 900 -- Assets/XLua/Gen/Spine_AnimationWrap.cs | 288 - Assets/XLua/Gen/Spine_MeshAttachmentWrap.cs | 688 -- Assets/XLua/Gen/Spine_RegionAttachmentWrap.cs | 671 -- Assets/XLua/Gen/Spine_SkeletonDataWrap.cs | 1002 -- Assets/XLua/Gen/Spine_SkeletonWrap.cs | 1201 --- Assets/XLua/Gen/Spine_SlotWrap.cs | 595 -- Assets/XLua/Gen/Spine_TrackEntryWrap.cs | 1222 --- .../Spine_Unity_BoneFollowerGraphicWrap.cs | 602 -- .../XLua/Gen/Spine_Unity_BoneFollowerWrap.cs | 631 -- .../XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs | 804 -- .../Spine_Unity_MeshGenerator_SettingsWrap.cs | 359 - .../Gen/Spine_Unity_SkeletonAnimationWrap.cs | 764 -- .../Gen/Spine_Unity_SkeletonDataAssetWrap.cs | 674 -- .../Gen/Spine_Unity_SkeletonGraphicWrap.cs | 2337 ----- .../Gen/Spine_Unity_SkeletonRendererWrap.cs | 1566 --- ...erer_SpriteMaskInteractionMaterialsWrap.cs | 192 - Assets/XLua/Gen/StorageRequestWrap.cs | 306 - ...ections_Generic_List_1_BF_BFFinger_Wrap.cs | 1279 --- ...ions_Generic_List_1_System_String__Wrap.cs | 1279 --- ...ctions_Generic_List_1_System_Int32_Wrap.cs | 1279 --- ...tions_Generic_List_1_System_Single_Wrap.cs | 1279 --- ...tions_Generic_List_1_System_String_Wrap.cs | 1279 --- ...Generic_List_1_TMPro_TMP_FontAsset_Wrap.cs | 1279 --- ..._Generic_List_1_UnityEngine_Camera_Wrap.cs | 1279 --- ...ponentModel_AsyncCompletedEventArgsWrap.cs | 132 - .../System_ComponentModel_ComponentWrap.cs | 222 - Assets/XLua/Gen/System_ConvertWrap.cs | 4001 -------- Assets/XLua/Gen/System_DBNullWrap.cs | 171 - Assets/XLua/Gen/System_DateTimeOffsetWrap.cs | 1699 ---- Assets/XLua/Gen/System_DateTimeWrap.cs | 2080 ---- Assets/XLua/Gen/System_EnumWrap.cs | 658 -- Assets/XLua/Gen/System_IO_FileWrap.cs | 1832 ---- ...kInformation_PingCompletedEventArgsWrap.cs | 82 - ...em_Net_NetworkInformation_PingReplyWrap.cs | 142 - .../System_Net_NetworkInformation_PingWrap.cs | 516 - Assets/XLua/Gen/System_ObjectWrap.cs | 259 - Assets/XLua/Gen/System_UriWrap.cs | 1114 --- Assets/XLua/Gen/System_ValueTypeWrap.cs | 155 - Assets/XLua/Gen/TAExampleWrap.cs | 144 - Assets/XLua/Gen/TMP_AnimationCurveWrap.cs | 270 - Assets/XLua/Gen/TMP_CurveWrap.cs | 98 - Assets/XLua/Gen/TMPro_TMP_CharacterWrap.cs | 105 - Assets/XLua/Gen/TMPro_TMP_DropdownWrap.cs | 673 -- .../TMPro_TMP_Dropdown_DropdownEventWrap.cs | 84 - .../TMPro_TMP_Dropdown_OptionDataListWrap.cs | 115 - .../Gen/TMPro_TMP_Dropdown_OptionDataWrap.cs | 174 - Assets/XLua/Gen/TMPro_TMP_FontAssetWrap.cs | 1287 --- Assets/XLua/Gen/TMPro_TMP_InputFieldWrap.cs | 2438 ----- .../TMPro_TMP_InputField_OnChangeEventWrap.cs | 84 - ...TMPro_TMP_InputField_SelectionEventWrap.cs | 84 - .../TMPro_TMP_InputField_SubmitEventWrap.cs | 84 - ...o_TMP_InputField_TextSelectionEventWrap.cs | 84 - ...InputField_TouchScreenKeyboardEventWrap.cs | 84 - Assets/XLua/Gen/TMPro_TMP_TextWrap.cs | 3277 ------- Assets/XLua/Gen/TMPro_TextMeshProUGUIWrap.cs | 779 -- Assets/XLua/Gen/TMPro_TextMeshProWrap.cs | 816 -- .../Gen/ThinkingAnalytics_TDFirstEventWrap.cs | 115 - ...inkingAnalytics_TDOverWritableEventWrap.cs | 87 - ...hinkingAnalytics_TDPresetPropertiesWrap.cs | 294 - .../ThinkingAnalytics_TDUpdatableEventWrap.cs | 87 - ...ception_ThinkingSDKExceptionHandlerWrap.cs | 200 - ...nkingAnalytics_ThinkingAnalyticsAPIWrap.cs | 1751 ---- ...nalytics_ThinkingAnalyticsAPI_TokenWrap.cs | 305 - ...ingAnalytics_ThinkingAnalyticsEventWrap.cs | 211 - .../Gen/ThinkingAnalytics_Utils_TD_LogWrap.cs | 184 - ...ThinkingAnalytics_Utils_TD_MiniJSONWrap.cs | 156 - ...nalytics_Utils_TD_PropertiesCheckerWrap.cs | 315 - ...cs_Wrapper_ThinkingAnalyticsWrapperWrap.cs | 1224 --- Assets/XLua/Gen/UIImageSheetAnimationWrap.cs | 522 - Assets/XLua/Gen/UIInputHelperWrap.cs | 84 - Assets/XLua/Gen/UIOutlineEffectWrap.cs | 176 - Assets/XLua/Gen/UIResGhostTweenEffectWrap.cs | 144 - .../XLua/Gen/UnityEngine_AnimationClipWrap.cs | 493 - .../Gen/UnityEngine_AnimationCurveWrap.cs | 560 -- Assets/XLua/Gen/UnityEngine_AnimationWrap.cs | 991 -- .../Gen/UnityEngine_AnimatorStateInfoWrap.cs | 266 - Assets/XLua/Gen/UnityEngine_AnimatorWrap.cs | 3327 ------- .../XLua/Gen/UnityEngine_ApplicationWrap.cs | 1162 --- .../Gen/UnityEngine_AssetBundleRequestWrap.cs | 114 - .../XLua/Gen/UnityEngine_AssetBundleWrap.cs | 959 -- .../Gen/UnityEngine_AsyncOperationWrap.cs | 211 - Assets/XLua/Gen/UnityEngine_AudioClipWrap.cs | 391 - .../XLua/Gen/UnityEngine_AudioSourceWrap.cs | 1563 --- Assets/XLua/Gen/UnityEngine_AvatarWrap.cs | 112 - Assets/XLua/Gen/UnityEngine_BehaviourWrap.cs | 130 - Assets/XLua/Gen/UnityEngine_BoundsWrap.cs | 737 -- .../XLua/Gen/UnityEngine_BoxColliderWrap.cs | 148 - Assets/XLua/Gen/UnityEngine_CameraWrap.cs | 3977 -------- ...nityEngine_Camera_GateFitParametersWrap.cs | 159 - .../UnityEngine_Camera_RenderRequestWrap.cs | 163 - .../XLua/Gen/UnityEngine_CanvasGroupWrap.cs | 270 - .../Gen/UnityEngine_CanvasRendererWrap.cs | 966 -- Assets/XLua/Gen/UnityEngine_CanvasWrap.cs | 748 -- Assets/XLua/Gen/UnityEngine_ColorWrap.cs | 934 -- Assets/XLua/Gen/UnityEngine_ComponentWrap.cs | 1108 --- Assets/XLua/Gen/UnityEngine_DebugWrap.cs | 885 -- ...nityEngine_EventSystems_UIBehaviourWrap.cs | 125 - .../UnityEngine_Events_UnityEventBaseWrap.cs | 320 - .../Gen/UnityEngine_Events_UnityEventWrap.cs | 170 - ...e_Events_UnityEvent_1_System_Int32_Wrap.cs | 171 - ...e_Events_UnityEvent_1_System_Int64_Wrap.cs | 171 - ..._Events_UnityEvent_1_System_Single_Wrap.cs | 171 - ..._Events_UnityEvent_1_System_String_Wrap.cs | 171 - ...s_UnityEvent_1_UnityEngine_Vector2_Wrap.cs | 171 - Assets/XLua/Gen/UnityEngine_FontWrap.cs | 555 -- Assets/XLua/Gen/UnityEngine_GameObjectWrap.cs | 1053 -- Assets/XLua/Gen/UnityEngine_GraphicsWrap.cs | 3834 -------- Assets/XLua/Gen/UnityEngine_InputWrap.cs | 952 -- Assets/XLua/Gen/UnityEngine_KeyframeWrap.cs | 350 - Assets/XLua/Gen/UnityEngine_LayerMaskWrap.cs | 195 - .../XLua/Gen/UnityEngine_LightProbesWrap.cs | 327 - Assets/XLua/Gen/UnityEngine_LightWrap.cs | 1462 --- .../XLua/Gen/UnityEngine_LightmapDataWrap.cs | 177 - .../Gen/UnityEngine_LightmapSettingsWrap.cs | 149 - .../XLua/Gen/UnityEngine_LineRendererWrap.cs | 881 -- .../UnityEngine_MaterialPropertyBlockWrap.cs | 1913 ---- Assets/XLua/Gen/UnityEngine_MaterialWrap.cs | 3897 -------- Assets/XLua/Gen/UnityEngine_MathfWrap.cs | 1555 --- Assets/XLua/Gen/UnityEngine_Matrix4x4Wrap.cs | 1734 ---- .../XLua/Gen/UnityEngine_MeshColliderWrap.cs | 178 - Assets/XLua/Gen/UnityEngine_MeshFilterWrap.cs | 146 - .../XLua/Gen/UnityEngine_MeshRendererWrap.cs | 161 - Assets/XLua/Gen/UnityEngine_MeshWrap.cs | 4395 --------- .../XLua/Gen/UnityEngine_MonoBehaviourWrap.cs | 427 - Assets/XLua/Gen/UnityEngine_MotionWrap.cs | 172 - Assets/XLua/Gen/UnityEngine_ObjectWrap.cs | 771 -- .../UnityEngine_ParticleSystemRendererWrap.cs | 1112 --- .../Gen/UnityEngine_ParticleSystemWrap.cs | 1520 --- .../UnityEngine_ParticleSystem_BurstWrap.cs | 370 - ...gine_ParticleSystem_CollisionModuleWrap.cs | 972 -- ...e_ParticleSystem_ColorBySpeedModuleWrap.cs | 183 - ...ticleSystem_ColorOverLifetimeModuleWrap.cs | 149 - ...ine_ParticleSystem_CustomDataModuleWrap.cs | 373 - ...ngine_ParticleSystem_EmissionModuleWrap.cs | 426 - ...ityEngine_ParticleSystem_EmitParamsWrap.cs | 870 -- ...ParticleSystem_ExternalForcesModuleWrap.cs | 469 - ...ticleSystem_ForceOverLifetimeModuleWrap.cs | 383 - ...articleSystem_InheritVelocityModuleWrap.cs | 216 - ...yEngine_ParticleSystem_LightsModuleWrap.cs | 480 - ...tem_LimitVelocityOverLifetimeModuleWrap.cs | 616 -- ...ityEngine_ParticleSystem_MainModuleWrap.cs | 1555 --- ...tyEngine_ParticleSystem_MinMaxCurveWrap.cs | 437 - ...ngine_ParticleSystem_MinMaxGradientWrap.cs | 405 - ...tyEngine_ParticleSystem_NoiseModuleWrap.cs | 1085 --- ...UnityEngine_ParticleSystem_ParticleWrap.cs | 707 -- ...articleSystem_RotationBySpeedModuleWrap.cs | 383 - ...leSystem_RotationOverLifetimeModuleWrap.cs | 349 - ...tyEngine_ParticleSystem_ShapeModuleWrap.cs | 1580 --- ...ne_ParticleSystem_SizeBySpeedModuleWrap.cs | 450 - ...rticleSystem_SizeOverLifetimeModuleWrap.cs | 416 - ...ne_ParticleSystem_SubEmittersModuleWrap.cs | 485 - ...eSystem_TextureSheetAnimationModuleWrap.cs | 759 -- ...tyEngine_ParticleSystem_TrailModuleWrap.cs | 781 -- ...Engine_ParticleSystem_TriggerModuleWrap.cs | 475 - ...leSystem_VelocityOverLifetimeModuleWrap.cs | 886 -- .../Gen/UnityEngine_PhysicMaterialWrap.cs | 250 - Assets/XLua/Gen/UnityEngine_PhysicsWrap.cs | 3381 ------- ...UnityEngine_Playables_PlayableAssetWrap.cs | 128 - ...tyEngine_Playables_PlayableDirectorWrap.cs | 852 -- .../Gen/UnityEngine_Playables_PlayableWrap.cs | 233 - .../XLua/Gen/UnityEngine_PlayerPrefsWrap.cs | 387 - ...Engine_Purchasing_ProductDefinitionWrap.cs | 284 - ...tyEngine_Purchasing_ProductMetadataWrap.cs | 181 - .../Gen/UnityEngine_Purchasing_ProductWrap.cs | 246 - ...ng_Security_AppleStoreKitTestTangleWrap.cs | 110 - ...ine_Purchasing_Security_AppleTangleWrap.cs | 110 - ...urchasing_Security_GooglePlayTangleWrap.cs | 110 - Assets/XLua/Gen/UnityEngine_QuaternionWrap.cs | 1138 --- Assets/XLua/Gen/UnityEngine_Ray2DWrap.cs | 254 - Assets/XLua/Gen/UnityEngine_RayWrap.cs | 254 - Assets/XLua/Gen/UnityEngine_RaycastHitWrap.cs | 352 - .../XLua/Gen/UnityEngine_RectTransformWrap.cs | 1423 --- Assets/XLua/Gen/UnityEngine_RectWrap.cs | 965 -- .../Gen/UnityEngine_ReflectionProbeWrap.cs | 1056 -- .../Gen/UnityEngine_RenderSettingsWrap.cs | 725 -- ...UnityEngine_RenderTextureDescriptorWrap.cs | 875 -- .../XLua/Gen/UnityEngine_RenderTextureWrap.cs | 1466 --- Assets/XLua/Gen/UnityEngine_RendererWrap.cs | 1250 --- Assets/XLua/Gen/UnityEngine_ResolutionWrap.cs | 212 - Assets/XLua/Gen/UnityEngine_ResourcesWrap.cs | 383 - Assets/XLua/Gen/UnityEngine_RigidbodyWrap.cs | 1620 ---- ...ityEngine_RuntimeAnimatorControllerWrap.cs | 82 - ...Engine_SceneManagement_SceneManagerWrap.cs | 735 -- .../UnityEngine_SceneManagement_SceneWrap.cs | 406 - Assets/XLua/Gen/UnityEngine_ScreenWrap.cs | 576 -- .../Gen/UnityEngine_ScriptableObjectWrap.cs | 127 - ...UnityEngine_ShaderVariantCollectionWrap.cs | 275 - ...aderVariantCollection_ShaderVariantWrap.cs | 193 - Assets/XLua/Gen/UnityEngine_ShaderWrap.cs | 2229 ----- ...ignInWithApple_SignInWithAppleEventWrap.cs | 84 - ...ine_SignInWithApple_SignInWithAppleWrap.cs | 291 - ...hApple_SignInWithApple_CallbackArgsWrap.cs | 183 - ...nityEngine_SignInWithApple_UserInfoWrap.cs | 281 - .../UnityEngine_SkinnedMeshRendererWrap.cs | 496 - .../Gen/UnityEngine_SphereColliderWrap.cs | 147 - .../Gen/UnityEngine_SpriteRendererWrap.cs | 582 -- Assets/XLua/Gen/UnityEngine_SpriteWrap.cs | 570 -- Assets/XLua/Gen/UnityEngine_SystemInfoWrap.cs | 1497 --- Assets/XLua/Gen/UnityEngine_TextAssetWrap.cs | 167 - .../Gen/UnityEngine_TextCore_FaceInfoWrap.cs | 741 -- Assets/XLua/Gen/UnityEngine_Texture2DWrap.cs | 1380 --- Assets/XLua/Gen/UnityEngine_TextureWrap.cs | 860 -- Assets/XLua/Gen/UnityEngine_TimeWrap.cs | 493 - Assets/XLua/Gen/UnityEngine_TransformWrap.cs | 3594 ------- .../Gen/UnityEngine_U2D_SpriteAtlasWrap.cs | 235 - Assets/XLua/Gen/UnityEngine_UI_ButtonWrap.cs | 156 - ...Engine_UI_Button_ButtonClickedEventWrap.cs | 84 - .../Gen/UnityEngine_UI_CanvasScalerWrap.cs | 381 - .../XLua/Gen/UnityEngine_UI_DropdownWrap.cs | 627 -- ...ityEngine_UI_Dropdown_DropdownEventWrap.cs | 84 - ...tyEngine_UI_Dropdown_OptionDataListWrap.cs | 115 - .../UnityEngine_UI_Dropdown_OptionDataWrap.cs | 174 - .../UnityEngine_UI_GraphicRaycasterWrap.cs | 237 - Assets/XLua/Gen/UnityEngine_UI_GraphicWrap.cs | 1030 -- .../Gen/UnityEngine_UI_GridLayoutGroupWrap.cs | 370 - Assets/XLua/Gen/UnityEngine_UI_ImageWrap.cs | 989 -- .../XLua/Gen/UnityEngine_UI_InputFieldWrap.cs | 1616 ---- ...tyEngine_UI_InputField_EndEditEventWrap.cs | 84 - ...yEngine_UI_InputField_OnChangeEventWrap.cs | 84 - ...ityEngine_UI_InputField_SubmitEventWrap.cs | 84 - .../Gen/UnityEngine_UI_LayoutElementWrap.cs | 515 - .../Gen/UnityEngine_UI_LayoutGroupWrap.cs | 347 - .../Gen/UnityEngine_UI_MaskUtilitiesWrap.cs | 280 - Assets/XLua/Gen/UnityEngine_UI_MaskWrap.cs | 218 - .../Gen/UnityEngine_UI_MaskableGraphicWrap.cs | 335 - ...skableGraphic_CullStateChangedEventWrap.cs | 84 - .../XLua/Gen/UnityEngine_UI_RawImageWrap.cs | 173 - .../XLua/Gen/UnityEngine_UI_RectMask2DWrap.cs | 306 - .../XLua/Gen/UnityEngine_UI_ScrollRectWrap.cs | 1340 --- ...ngine_UI_ScrollRect_ScrollRectEventWrap.cs | 84 - .../XLua/Gen/UnityEngine_UI_ScrollbarWrap.cs | 688 -- .../XLua/Gen/UnityEngine_UI_SelectableWrap.cs | 794 -- Assets/XLua/Gen/UnityEngine_UI_SliderWrap.cs | 771 -- .../UnityEngine_UI_Slider_SliderEventWrap.cs | 84 - Assets/XLua/Gen/UnityEngine_UI_TextWrap.cs | 1016 -- .../Gen/UnityEngine_UI_ToggleGroupWrap.cs | 357 - Assets/XLua/Gen/UnityEngine_UI_ToggleWrap.cs | 395 - .../UnityEngine_UI_Toggle_ToggleEventWrap.cs | 84 - .../UnityEngine_UI_VerticalLayoutGroupWrap.cs | 179 - Assets/XLua/Gen/UnityEngine_Vector2Wrap.cs | 1292 --- Assets/XLua/Gen/UnityEngine_Vector3Wrap.cs | 1576 --- Assets/XLua/Gen/UnityEngine_Vector4Wrap.cs | 1174 --- .../Gen/UnityEngine_Video_VideoClipWrap.cs | 307 - .../Gen/UnityEngine_Video_VideoPlayerWrap.cs | 1883 ---- .../XLua/Gen/UnsupportedPlatformAgentWrap.cs | 1535 --- Assets/XLua/Gen/UsersRequestWrap.cs | 282 - Assets/XLua/Gen/WaterfallConfigurationWrap.cs | 151 - ...ation_WaterfallConfigurationBuilderWrap.cs | 156 - Assets/XLua/Gen/WrapPusher.cs | 8546 ----------------- Assets/XLua/Gen/XLuaGenAutoRegister.cs | 2335 ----- .../Gen/com_adjust_sdk_AdjustAdRevenueWrap.cs | 291 - ...just_sdk_AdjustAppStoreSubscriptionWrap.cs | 206 - .../com_adjust_sdk_AdjustAttributionWrap.cs | 475 - .../Gen/com_adjust_sdk_AdjustConfigWrap.cs | 1365 --- ...just_sdk_AdjustEnvironmentExtensionWrap.cs | 67 - .../com_adjust_sdk_AdjustEventFailureWrap.cs | 377 - .../com_adjust_sdk_AdjustEventSuccessWrap.cs | 346 - .../Gen/com_adjust_sdk_AdjustEventWrap.cs | 233 - ..._adjust_sdk_AdjustLogLevelExtensionWrap.cs | 67 - ...ust_sdk_AdjustPlayStoreSubscriptionWrap.cs | 179 - ...com_adjust_sdk_AdjustSessionFailureWrap.cs | 315 - ...com_adjust_sdk_AdjustSessionSuccessWrap.cs | 284 - ..._adjust_sdk_AdjustThirdPartySharingWrap.cs | 147 - ...just_sdk_AdjustUrlStrategyExtensionWrap.cs | 67 - .../Gen/com_adjust_sdk_AdjustUtilsWrap.cs | 1443 --- Assets/XLua/Gen/com_adjust_sdk_AdjustWrap.cs | 1845 ---- .../XLua/Gen/com_adjust_sdk_JSONArrayWrap.cs | 401 - .../XLua/Gen/com_adjust_sdk_JSONClassWrap.cs | 412 - .../XLua/Gen/com_adjust_sdk_JSONDataWrap.cs | 225 - .../XLua/Gen/com_adjust_sdk_JSONNodeWrap.cs | 995 -- Assets/XLua/Gen/com_adjust_sdk_JSONWrap.cs | 95 - Assets/XLua/Gen/dataSourceWrap.cs | 80 - Assets/XLua/Gen/link.xml | 735 -- Packages/manifest.json | 1 + Packages/packages-lock.json | 53 + ProjectSettings/URPProjectSettings.asset | 15 + 708 files changed, 6308 insertions(+), 317380 deletions(-) create mode 100644 Assets/Scripts/Common/DeepLink.meta create mode 100644 Assets/Scripts/Common/DeepLink/DeepLinkManager.cs rename Assets/{ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs.meta => Scripts/Common/DeepLink/DeepLinkManager.cs.meta} (83%) create mode 100644 Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs rename Assets/Scripts/Common/SDK/{BFIronSourceSDKManager.cs.meta => BFHWAdSDKManager.cs.meta} (83%) create mode 100644 Assets/Scripts/Common/SDK/BFHWPaySDKManager.cs rename Assets/{ThirdParty/AppsFlyer/AFAdRevenueEvent.cs.meta => Scripts/Common/SDK/BFHWPaySDKManager.cs.meta} (83%) delete mode 100644 Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs create mode 100644 Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs create mode 100644 Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs.meta create mode 100644 Assets/Scripts/Common/SDK/BFUMPManager.cs create mode 100644 Assets/Scripts/Common/SDK/BFUMPManager.cs.meta create mode 100644 Assets/Scripts/Common/SDK/NotificationSDKManager.cs create mode 100644 Assets/Scripts/Common/SDK/NotificationSDKManager.cs.meta create mode 100644 Assets/Scripts/Common/URP.meta create mode 100644 Assets/Scripts/Common/URP/URPManager.cs create mode 100644 Assets/Scripts/Common/URP/URPManager.cs.meta create mode 100644 Assets/Scripts/Component/Effects/DrawBezierLine.cs create mode 100644 Assets/Scripts/Component/Effects/DrawBezierLine.cs.meta create mode 100644 Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs create mode 100644 Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs.meta create mode 100644 Assets/Scripts/Component/Helper/GlobalHelper.cs create mode 100644 Assets/Scripts/Component/Helper/GlobalHelper.cs.meta create mode 100644 Assets/Scripts/Component/Helper/WeaponHelper.cs create mode 100644 Assets/Scripts/Component/Helper/WeaponHelper.cs.meta create mode 100644 Assets/Scripts/Const/BFPlatform.Const.cs create mode 100644 Assets/Scripts/Const/BFPlatform.Const.cs.meta create mode 100644 Assets/Scripts/Utils/TimeHelper.cs create mode 100644 Assets/Scripts/Utils/TimeHelper.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs.meta delete mode 100644 Assets/ThirdParty/AppsFlyer/AFAdRevenueEvent.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs.meta delete mode 100644 Assets/ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs create mode 100644 Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs.meta delete mode 100644 Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml rename Assets/ThirdParty/AppsFlyer/Editor/{logo.png => appsflyer_logo.png} (100%) rename Assets/ThirdParty/AppsFlyer/Editor/{logo.png.meta => appsflyer_logo.png.meta} (100%) create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs create mode 100644 Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/Mac.meta rename Assets/ThirdParty/AppsFlyer/{Plugins/iOS/SwiftForUnity.swift.meta => Mac/AppsFlyerBundle.bundle.meta} (80%) create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents.meta create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/Info.plist rename Assets/ThirdParty/AppsFlyer/{Editor/AppsFlyerAdRevenueDependencies.xml.meta => Mac/AppsFlyerBundle.bundle/Contents/Info.plist.meta} (62%) create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS.meta create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS/AppsFlyerBundle create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS/AppsFlyerBundle.meta create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/_CodeSignature.meta create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/_CodeSignature/CodeResources create mode 100644 Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/_CodeSignature/CodeResources.meta create mode 100644 Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityStoreKit2Bridge.swift rename Assets/ThirdParty/AppsFlyer/Plugins/iOS/{AppsFlyerAdRevenueWrapper.mm.meta => AFUnityStoreKit2Bridge.swift.meta} (94%) create mode 100644 Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.h rename Assets/ThirdParty/AppsFlyer/Plugins/iOS/{AppsFlyerAdRevenueWrapper.h.meta => AFUnityUtils.h.meta} (92%) delete mode 100644 Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h delete mode 100644 Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm delete mode 100644 Assets/ThirdParty/AppsFlyer/Plugins/iOS/SwiftForUnity.swift create mode 100644 Assets/ThirdParty/AppsFlyer/ProductPurchase.cs create mode 100644 Assets/ThirdParty/AppsFlyer/ProductPurchase.cs.meta create mode 100644 Assets/ThirdParty/AppsFlyer/Tests.meta create mode 100644 Assets/UniversalRenderPipelineGlobalSettings.asset create mode 100644 Assets/UniversalRenderPipelineGlobalSettings.asset.meta delete mode 100644 Assets/XLua/Gen/AFInAppEventParameterNameWrap.cs delete mode 100644 Assets/XLua/Gen/AFInAppEventTypeWrap.cs delete mode 100644 Assets/XLua/Gen/AdManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AbsPostEffectWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AesEncryptWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AssetBundleConfigCollectionWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AssetBundleConfigWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AssetBundleLoaderWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AssetBundleObjectWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AssetLoaderWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AssetObjectBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AssetObjectWrap.cs delete mode 100644 Assets/XLua/Gen/BF_AtlasWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFAccountInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFAdmobSDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFCellWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFCircleLayoutWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFEventBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFEventWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFEvent_1_System_Collections_Generic_List_1_BF_BFFinger__Wrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFEvent_2_BF_SelectEventType_BF_BFFinger_Wrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFEvent_2_BF_TouchEventType_BF_BFFinger_Wrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFFingerSnapshotWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFFingerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFGateInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFGestureWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFGraphicFlipWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFGridLayoutWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFHorizontalOrVerticalLayoutWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFHttpsInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFIronSourceSDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFLanguageInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFLayoutBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFLogWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFLoginInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFLoginSDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFMainWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFNativeSDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFNativeSDKManager_NativeResultMsgWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFNativeSDKMessageWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFParseClientManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFPaySDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFPlatformWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFScrollRectBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFScrollRectCommonWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFScrollRectGridWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFScrollRectMultCellWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFScrollRectMultSizeWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFSliderWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFThirdReportSDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFTouchManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFTouchSelectableWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFUnitySliderWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFVersionInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BFWebRequestManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BIReportWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BaseSortingOrderHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BattleControlBgWrap.cs delete mode 100644 Assets/XLua/Gen/BF_BattleUnitAttrWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CalculateDiffProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CameraHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CanvasSortingOrderHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CellDragEventWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CellObjWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CharacterAnimationInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CharacterHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CharacterObjectInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CharacterSpineHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CharacterSpineObjectInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CombineURLWrap.cs delete mode 100644 Assets/XLua/Gen/BF_CounterModeCryptoTransformWrap.cs delete mode 100644 Assets/XLua/Gen/BF_DZSDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_DelayedWrap.cs delete mode 100644 Assets/XLua/Gen/BF_DownloadUpdateProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_DragEventSyncWrap.cs delete mode 100644 Assets/XLua/Gen/BF_EffectHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_EliminationTouchEventWrap.cs delete mode 100644 Assets/XLua/Gen/BF_EmojiGraphicWrap.cs delete mode 100644 Assets/XLua/Gen/BF_EmojiInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_EmptyRaycastWrap.cs delete mode 100644 Assets/XLua/Gen/BF_EnumFlagsAttributeWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ExtensionMethodsWrap.cs delete mode 100644 Assets/XLua/Gen/BF_FirstABProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_FixUpProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_GameConstWrap.cs delete mode 100644 Assets/XLua/Gen/BF_GameLaunchManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_GameLaunchProcessorBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BF_GameLaunchUtilsWrap.cs delete mode 100644 Assets/XLua/Gen/BF_GameObjectInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_GameObjectPoolWrap.cs delete mode 100644 Assets/XLua/Gen/BF_HorizontalScrollRectOldWrap.cs delete mode 100644 Assets/XLua/Gen/BF_HrefInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_InlineTextWrap.cs delete mode 100644 Assets/XLua/Gen/BF_LanguageConfigWrap.cs delete mode 100644 Assets/XLua/Gen/BF_LaunchRequesterWrap.cs delete mode 100644 Assets/XLua/Gen/BF_LaunchSuccProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_LoaderBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BF_LocalDataWrap.cs delete mode 100644 Assets/XLua/Gen/BF_LoomManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_LuaManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ManagerBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BF_Md5EncryptWrap.cs delete mode 100644 Assets/XLua/Gen/BF_MeshInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_MirrorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_MonoSingleton_1_AdManager_Wrap.cs delete mode 100644 Assets/XLua/Gen/BF_MonoSingleton_1_BF_BFMain_Wrap.cs delete mode 100644 Assets/XLua/Gen/BF_MultipleSpriteAnimationWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_AppsFlyerSdkWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_FacebookSdkWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_ThinkingAnalyticsSdkWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NativeUtilsWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetAesEncryptWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetClientWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetConfigurationWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetConnectConfigurationWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetErrorCodeWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetExceptionWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NetMd5EncryptWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NodeHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NotchScreenInfoWrap.cs delete mode 100644 Assets/XLua/Gen/BF_NotchScreenNodeWrap.cs delete mode 100644 Assets/XLua/Gen/BF_OnGetVersionProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_OneShotManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_OutlineWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PoolManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PostEffectBehaviourWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PostEffectBloomWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PostEffectContextWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PostEffectFxaaWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PostEffectRadialBlurWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PostEffectVividBloomWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PreCheckProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PrefabHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_PrepareProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_RawImageGridWrap.cs delete mode 100644 Assets/XLua/Gen/BF_Rc4EncryptWrap.cs delete mode 100644 Assets/XLua/Gen/BF_Rc4ObjectWrap.cs delete mode 100644 Assets/XLua/Gen/BF_RenderManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_RequestLoginCenterConfigProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_RequestVersionProcessorWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ResourceManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ResourcesProtectWrap.cs delete mode 100644 Assets/XLua/Gen/BF_RsaEncryptWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SDKManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SafeAreaManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ScrollRectBaseOldWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ScrollRectCenterControllerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ScrollRectCenterWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ShowDebugTextWrap.cs delete mode 100644 Assets/XLua/Gen/BF_ShowFPSWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SimpleAtlasWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SkillSectorMeshWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SocketChannelHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SocketChannelManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SocketChannelWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SocketChannel_NetPackWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SocketManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_SoundManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_StringConstWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TaskManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TaskWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TimeLineItemWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TimeLineItem_FrameDataWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TimeLineManagerWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TimelineEventItemWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TimelineHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TimelineSortingOderHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_TutorialClickAreaWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UICoordinateHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UIDragEventWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UIDynamicBrightEffectWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UIDynamicShinyEffectWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UIEraserTextureWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UIHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UISpineHelperWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UITouchEventWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UVAnimationGraphicWrap.cs delete mode 100644 Assets/XLua/Gen/BF_UtilsWrap.cs delete mode 100644 Assets/XLua/Gen/BF_VerticalScrollRectOldWrap.cs delete mode 100644 Assets/XLua/Gen/BestHTTP_Connections_HTTP2_HTTP2ResponseWrap.cs delete mode 100644 Assets/XLua/Gen/BestHTTP_Forms_HTTPFormBaseWrap.cs delete mode 100644 Assets/XLua/Gen/BestHTTP_Forms_HTTPUrlEncodedFormWrap.cs delete mode 100644 Assets/XLua/Gen/BestHTTP_HTTPRequestWrap.cs delete mode 100644 Assets/XLua/Gen/BestHTTP_HTTPResponseWrap.cs delete mode 100644 Assets/XLua/Gen/CameraAdjustWrap.cs delete mode 100644 Assets/XLua/Gen/CloudControlWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_ABSSequentiableWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_DOTweenComponentWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_System_Single_System_Single_DG_Tweening_Plugins_Options_FloatOptions_Wrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Color_UnityEngine_Color_DG_Tweening_Plugins_Options_ColorOptions_Wrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Quaternion_UnityEngine_Vector3_DG_Tweening_Plugins_Options_QuaternionOptions_Wrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector2_UnityEngine_Vector2_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_DG_Tweening_Plugins_Core_PathCore_Path_DG_Tweening_Plugins_Options_PathOptions_Wrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3___DG_Tweening_Plugins_Options_Vector3ArrayOptions_Wrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenCYInstructionWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForCompletionWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForElapsedLoopsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForKillWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForPositionWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForRewindWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForStartWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenModuleAudioWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenModuleSpriteWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenModuleUIWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenModuleUI_UtilsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenModuleUnityVersionWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtilsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtils_PhysicsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOTweenWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_DOVirtualWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_EaseFactoryWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_SequenceWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_ShortcutExtensionsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_TweenExtensionsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_TweenParamsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_TweenSettingsExtensionsWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_TweenWrap.cs delete mode 100644 Assets/XLua/Gen/DG_Tweening_TweenerWrap.cs delete mode 100644 Assets/XLua/Gen/DelegatesGensBridge.cs delete mode 100644 Assets/XLua/Gen/EnumWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsA2UNotificationsManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsADSManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsExampleTabsManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsFriendsManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsGraphAPIManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsInitManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsLoginManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsLogsManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsPhysicalGamepadManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsPurchaseManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsShareManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsSoftKeyboardManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsTournamentsManagerWrap.cs delete mode 100644 Assets/XLua/Gen/FBWindowsVirtualGamepadManagerWrap.cs delete mode 100644 Assets/XLua/Gen/Facebook_MiniJSON_JsonWrap.cs delete mode 100644 Assets/XLua/Gen/Facebook_MiniJSON_MiniJsonUtilWrap.cs delete mode 100644 Assets/XLua/Gen/FixRectWidthByStringWrap.cs delete mode 100644 Assets/XLua/Gen/FunctionRequestWrap.cs delete mode 100644 Assets/XLua/Gen/Http_HttpDebugWrap.cs delete mode 100644 Assets/XLua/Gen/Http_HttpManagerWrap.cs delete mode 100644 Assets/XLua/Gen/Http_RequestDataWrap.cs delete mode 100644 Assets/XLua/Gen/Http_ResultInfoWrap.cs delete mode 100644 Assets/XLua/Gen/Http_SingleHttpExtendsWrap.cs delete mode 100644 Assets/XLua/Gen/Http_SingleHttpWrap.cs delete mode 100644 Assets/XLua/Gen/IAPManagerWrap.cs delete mode 100644 Assets/XLua/Gen/IAPRequestWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityBannerWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityImpressionDataWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityInitializationWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityInterstitialWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityLevelPlayBannerWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityLevelPlayInterstitialWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityLevelPlayRewardedVideoManualWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityLevelPlayRewardedVideoWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityOfferwallWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityRewardedVideoManualWrap.cs delete mode 100644 Assets/XLua/Gen/IUnityRewardedVideoWrap.cs delete mode 100644 Assets/XLua/Gen/IUnitySegmentWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceAdInfoWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceAdUnitsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceBannerEventsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceBannerSizeWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceConfigWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceConstantsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceDemoScriptWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceErrorWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceEventsDispatcherWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceEventsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceIAgentWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceImpressionDataWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceInitilizerWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceInterstitialEventsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceJSON_JsonWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceMediationSettingsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourcePlacementWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceRewardedVideoEventsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceSegmentAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceSegmentWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceUtilsWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceWrap.cs delete mode 100644 Assets/XLua/Gen/LuaAssetWrap.cs delete mode 100644 Assets/XLua/Gen/MonkeyPostWrap.cs delete mode 100644 Assets/XLua/Gen/PackUnpack.cs delete mode 100644 Assets/XLua/Gen/ParticleUVAnimationWrap.cs delete mode 100644 Assets/XLua/Gen/ProductInfoWrap.cs delete mode 100644 Assets/XLua/Gen/Security_XXTEAWrap.cs delete mode 100644 Assets/XLua/Gen/SignInWithAppleTest_CallbacksWrap.cs delete mode 100644 Assets/XLua/Gen/SignInWithAppleTest_EventSystemWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_AnimationStateDataWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairComparerWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_AnimationStateWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_AnimationWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_MeshAttachmentWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_RegionAttachmentWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_SkeletonDataWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_SkeletonWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_SlotWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_TrackEntryWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_BoneFollowerGraphicWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_BoneFollowerWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs delete mode 100644 Assets/XLua/Gen/Spine_Unity_SkeletonRenderer_SpriteMaskInteractionMaterialsWrap.cs delete mode 100644 Assets/XLua/Gen/StorageRequestWrap.cs delete mode 100644 Assets/XLua/Gen/System_Collections_Generic_List_1_BF_BFFinger_Wrap.cs delete mode 100644 Assets/XLua/Gen/System_Collections_Generic_List_1_System_Collections_Generic_List_1_System_String__Wrap.cs delete mode 100644 Assets/XLua/Gen/System_Collections_Generic_List_1_System_Int32_Wrap.cs delete mode 100644 Assets/XLua/Gen/System_Collections_Generic_List_1_System_Single_Wrap.cs delete mode 100644 Assets/XLua/Gen/System_Collections_Generic_List_1_System_String_Wrap.cs delete mode 100644 Assets/XLua/Gen/System_Collections_Generic_List_1_TMPro_TMP_FontAsset_Wrap.cs delete mode 100644 Assets/XLua/Gen/System_Collections_Generic_List_1_UnityEngine_Camera_Wrap.cs delete mode 100644 Assets/XLua/Gen/System_ComponentModel_AsyncCompletedEventArgsWrap.cs delete mode 100644 Assets/XLua/Gen/System_ComponentModel_ComponentWrap.cs delete mode 100644 Assets/XLua/Gen/System_ConvertWrap.cs delete mode 100644 Assets/XLua/Gen/System_DBNullWrap.cs delete mode 100644 Assets/XLua/Gen/System_DateTimeOffsetWrap.cs delete mode 100644 Assets/XLua/Gen/System_DateTimeWrap.cs delete mode 100644 Assets/XLua/Gen/System_EnumWrap.cs delete mode 100644 Assets/XLua/Gen/System_IO_FileWrap.cs delete mode 100644 Assets/XLua/Gen/System_Net_NetworkInformation_PingCompletedEventArgsWrap.cs delete mode 100644 Assets/XLua/Gen/System_Net_NetworkInformation_PingReplyWrap.cs delete mode 100644 Assets/XLua/Gen/System_Net_NetworkInformation_PingWrap.cs delete mode 100644 Assets/XLua/Gen/System_ObjectWrap.cs delete mode 100644 Assets/XLua/Gen/System_UriWrap.cs delete mode 100644 Assets/XLua/Gen/System_ValueTypeWrap.cs delete mode 100644 Assets/XLua/Gen/TAExampleWrap.cs delete mode 100644 Assets/XLua/Gen/TMP_AnimationCurveWrap.cs delete mode 100644 Assets/XLua/Gen/TMP_CurveWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_CharacterWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_DropdownWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_Dropdown_DropdownEventWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataListWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_FontAssetWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_InputFieldWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_InputField_OnChangeEventWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_InputField_SelectionEventWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_InputField_SubmitEventWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_InputField_TextSelectionEventWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_InputField_TouchScreenKeyboardEventWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TMP_TextWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TextMeshProUGUIWrap.cs delete mode 100644 Assets/XLua/Gen/TMPro_TextMeshProWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_TDFirstEventWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_TDOverWritableEventWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_TDPresetPropertiesWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_TDUpdatableEventWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_TaException_ThinkingSDKExceptionHandlerWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPIWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPI_TokenWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsEventWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_LogWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_MiniJSONWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_PropertiesCheckerWrap.cs delete mode 100644 Assets/XLua/Gen/ThinkingAnalytics_Wrapper_ThinkingAnalyticsWrapperWrap.cs delete mode 100644 Assets/XLua/Gen/UIImageSheetAnimationWrap.cs delete mode 100644 Assets/XLua/Gen/UIInputHelperWrap.cs delete mode 100644 Assets/XLua/Gen/UIOutlineEffectWrap.cs delete mode 100644 Assets/XLua/Gen/UIResGhostTweenEffectWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AnimationClipWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AnimationCurveWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AnimationWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AnimatorStateInfoWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AnimatorWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ApplicationWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AssetBundleRequestWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AssetBundleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AsyncOperationWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AudioClipWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AudioSourceWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_AvatarWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_BehaviourWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_BoundsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_BoxColliderWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_CameraWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Camera_GateFitParametersWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Camera_RenderRequestWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_CanvasGroupWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_CanvasRendererWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_CanvasWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ColorWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ComponentWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_DebugWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_EventSystems_UIBehaviourWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Events_UnityEventBaseWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Events_UnityEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int32_Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int64_Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Single_Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_String_Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_UnityEngine_Vector2_Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_FontWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_GameObjectWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_GraphicsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_InputWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_KeyframeWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_LayerMaskWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_LightProbesWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_LightWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_LightmapDataWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_LightmapSettingsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_LineRendererWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MaterialPropertyBlockWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MaterialWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MathfWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Matrix4x4Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MeshColliderWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MeshFilterWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MeshRendererWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MeshWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MonoBehaviourWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_MotionWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ObjectWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystemRendererWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystemWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_BurstWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_CollisionModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorBySpeedModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorOverLifetimeModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_CustomDataModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_EmissionModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_EmitParamsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_ExternalForcesModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_ForceOverLifetimeModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_InheritVelocityModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_LightsModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_LimitVelocityOverLifetimeModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_MainModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxCurveWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxGradientWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_NoiseModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_ParticleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationBySpeedModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationOverLifetimeModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_ShapeModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeBySpeedModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeOverLifetimeModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_SubEmittersModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_TextureSheetAnimationModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_TrailModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_TriggerModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ParticleSystem_VelocityOverLifetimeModuleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_PhysicMaterialWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_PhysicsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Playables_PlayableAssetWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Playables_PlayableDirectorWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Playables_PlayableWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_PlayerPrefsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Purchasing_ProductDefinitionWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Purchasing_ProductMetadataWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Purchasing_ProductWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleStoreKitTestTangleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleTangleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Purchasing_Security_GooglePlayTangleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_QuaternionWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Ray2DWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RayWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RaycastHitWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RectTransformWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RectWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ReflectionProbeWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RenderSettingsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RenderTextureDescriptorWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RenderTextureWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RendererWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ResolutionWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ResourcesWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RigidbodyWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_RuntimeAnimatorControllerWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SceneManagement_SceneManagerWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SceneManagement_SceneWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ScreenWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ScriptableObjectWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ShaderVariantCollectionWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ShaderVariantCollection_ShaderVariantWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_ShaderWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithApple_CallbackArgsWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SignInWithApple_UserInfoWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SkinnedMeshRendererWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SphereColliderWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SpriteRendererWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SpriteWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_SystemInfoWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_TextAssetWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_TextCore_FaceInfoWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Texture2DWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_TextureWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_TimeWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_TransformWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_U2D_SpriteAtlasWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_ButtonWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_Button_ButtonClickedEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_CanvasScalerWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_DropdownWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_Dropdown_DropdownEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataListWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_GraphicRaycasterWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_GraphicWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_GridLayoutGroupWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_ImageWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_InputFieldWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_InputField_EndEditEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_InputField_OnChangeEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_InputField_SubmitEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_LayoutElementWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_LayoutGroupWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_MaskUtilitiesWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_MaskWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_MaskableGraphicWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_MaskableGraphic_CullStateChangedEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_RawImageWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_RectMask2DWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_ScrollRectWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_ScrollRect_ScrollRectEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_ScrollbarWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_SelectableWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_SliderWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_Slider_SliderEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_TextWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_ToggleGroupWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_ToggleWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_Toggle_ToggleEventWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_UI_VerticalLayoutGroupWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Vector2Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Vector3Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Vector4Wrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Video_VideoClipWrap.cs delete mode 100644 Assets/XLua/Gen/UnityEngine_Video_VideoPlayerWrap.cs delete mode 100644 Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs delete mode 100644 Assets/XLua/Gen/UsersRequestWrap.cs delete mode 100644 Assets/XLua/Gen/WaterfallConfigurationWrap.cs delete mode 100644 Assets/XLua/Gen/WaterfallConfiguration_WaterfallConfigurationBuilderWrap.cs delete mode 100644 Assets/XLua/Gen/WrapPusher.cs delete mode 100644 Assets/XLua/Gen/XLuaGenAutoRegister.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustAdRevenueWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustAppStoreSubscriptionWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustAttributionWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustConfigWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustEnvironmentExtensionWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustEventFailureWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustEventSuccessWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustEventWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustLogLevelExtensionWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustPlayStoreSubscriptionWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustSessionFailureWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustSessionSuccessWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustThirdPartySharingWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustUrlStrategyExtensionWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_AdjustWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_JSONArrayWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_JSONClassWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_JSONDataWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_JSONNodeWrap.cs delete mode 100644 Assets/XLua/Gen/com_adjust_sdk_JSONWrap.cs delete mode 100644 Assets/XLua/Gen/dataSourceWrap.cs delete mode 100644 Assets/XLua/Gen/link.xml create mode 100644 ProjectSettings/URPProjectSettings.asset diff --git a/Assets/Scripts/Common/Atlas/Atlas.cs b/Assets/Scripts/Common/Atlas/Atlas.cs index 423c8801e..6038190c9 100644 --- a/Assets/Scripts/Common/Atlas/Atlas.cs +++ b/Assets/Scripts/Common/Atlas/Atlas.cs @@ -70,6 +70,10 @@ namespace BF } } #endif + public bool GetIsHashCollision() + { + return spriteNameList.Count != spriteDict.Count; + } public Sprite GetSprite(uint spriteName) { @@ -86,7 +90,7 @@ namespace BF int count = spriteNameList.Count; for (int i = 0; i < count; i++) { - spriteDict.Add(spriteNameList[i], spriteList[i]); + spriteDict.TryAdd(spriteNameList[i], spriteList[i]); } #if !UNITY_EDITOR spriteNameList.Clear(); diff --git a/Assets/Scripts/Common/BFMain.cs b/Assets/Scripts/Common/BFMain.cs index 7a7225a23..997af2bbd 100644 --- a/Assets/Scripts/Common/BFMain.cs +++ b/Assets/Scripts/Common/BFMain.cs @@ -10,10 +10,8 @@ namespace BF public class BFMain : MonoSingleton { List managerList; - // 客户端c#代码版本号,每次发布新包后加1,lua层存在一套代码兼容多版本c#代码 - public const int CLIENT_VERSION = 2; - + public const int CLIENT_VERSION = 4; // 是否是单机版 public static bool IsStandAlone = false; public static bool IsShenhe = false; @@ -23,6 +21,60 @@ namespace BF public const string FILE_HEAD_BASE64 = "Zm9yX2ZpbGVfaGVhZ"; public static long ServerTime = 0; public static long DifferenceTime = 0; + public static string ProjectId + { + get + { +#if UNITY_EDITOR + return "b13"; +#else + if (BFPlatform.Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU) + { + return "b13-ru"; + } + else + { + return "b13"; + } +#endif + } + } + public static string ProjectEnv + { + get + { +#if UNITY_EDITOR + // 编辑器 + return "release"; +#else + // 如果走深度链接启动且有参数,则走深度链接地址 + if (!string.IsNullOrEmpty(DPEnv)) + { + return DPEnv; + } + else + { + return "release"; + } +#endif + } + } + public static bool ForceEnv + { + get + { + return DPForceEnv; + } + } + + // 深度链接参数 + public static string DPEntrance = string.Empty; // 内外网 + public static bool DPIsLan = false; // 是否为内网 + public static string DPEnv = string.Empty; // env + public static bool DPSupportGM = false; // 正式环境下是否开启GM + public static bool DPSupportLog = false; // 正式环境下是否打印日志 + public static string DPPackageName = string.Empty; // 模拟包名 + public static bool DPForceEnv = false; // 是否强制设置env protected override void Init() { @@ -320,6 +372,53 @@ namespace BF } } + // BattleManager battleMgr; + // public BattleManager BattleMgr + // { + // get + // { + // if (battleMgr == null) + // { + // battleMgr = BattleManager.Create(); + // battleMgr.SetMono(this); + // battleMgr.Init(); + // managerList.Add(battleMgr); + // } + // return battleMgr; + // } + // } + + BFParseClientManager parseClientMgr; + public BFParseClientManager ParseClientMgr + { + get + { + if (parseClientMgr == null) + { + parseClientMgr = BFParseClientManager.Create(); + parseClientMgr.SetMono(this); + parseClientMgr.Init(); + managerList.Add(parseClientMgr); + } + return parseClientMgr; + } + } + + URPManager urpMgr; + public URPManager URPMgr + { + get + { + if (urpMgr == null) + { + urpMgr = URPManager.Create(); + urpMgr.Init(); + managerList.Add(urpMgr); + } + return urpMgr; + } + } + public static void SetServerTime(long serverTime) { ServerTime = serverTime; diff --git a/Assets/Scripts/Common/BIReport/BIReport.cs b/Assets/Scripts/Common/BIReport/BIReport.cs index 2945ca74a..bb96900fa 100644 --- a/Assets/Scripts/Common/BIReport/BIReport.cs +++ b/Assets/Scripts/Common/BIReport/BIReport.cs @@ -105,5 +105,16 @@ namespace BF httpRequest.RawData = Encoding.UTF8.GetBytes(data); httpRequest.Send(); } + + public void SendRequest(string url, string data, Action callback) + { + var httpRequest = new HTTPRequest(new Uri(url), HTTPMethods.Get, (req, httpResponse) => + { + callback?.Invoke(req, httpResponse); + }); + httpRequest.SetHeader("Content-Type", "application/x-www-form-urlencoded"); + httpRequest.RawData = Encoding.UTF8.GetBytes(data); + httpRequest.Send(); + } } } \ No newline at end of file diff --git a/Assets/Scripts/Common/DeepLink.meta b/Assets/Scripts/Common/DeepLink.meta new file mode 100644 index 000000000..b1e32c86a --- /dev/null +++ b/Assets/Scripts/Common/DeepLink.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 150be05a54bb5274885ce7c5a6bdcedc +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Common/DeepLink/DeepLinkManager.cs b/Assets/Scripts/Common/DeepLink/DeepLinkManager.cs new file mode 100644 index 000000000..3b53deb82 --- /dev/null +++ b/Assets/Scripts/Common/DeepLink/DeepLinkManager.cs @@ -0,0 +1,254 @@ +using System.Collections.Generic; +using System; +using UnityEngine; +using Newtonsoft.Json; +using System.Linq; + +namespace BF +{ + public class DeepLinkManager : MonoBehaviour + { + // 深度链接参数 + public static string ENTRANCE = "entrance"; // Lan/Wan 内外网 + public const string ENTRANCE_LAN = "lan"; + public static string ENV = "env"; // 正式环境/白名单等 + public static string GM = "gm"; // gm + public static string LOG = "log"; // 日志 + public static string PACKAGE = "package"; // 包名 + public const string TRUE_FLAG = "true"; + public const string FALSE_FLAG = "false"; + private const string SIGN_FLAG = "sign"; // 签名 + + // 缓存上一次的地址 与 解析后的参数 + private string DeepLinkURL = string.Empty; + private Dictionary DeepLinkParams = new Dictionary(); + + // 因事件触发的callback,冷启动会在login中处理 + public Action luaDeepLinkActiveCallback; + private static char[] NOTHING_CHAR_RESULT = new char[32]; + private static char[] NOTHING_CHAR = new char[32] { + (char)('y' ^ (0x37 - 0)), + (char)('r' ^ (0x37 - 1)), + (char)('u' ^ (0x37 - 2)), + (char)('8' ^ (0x37 - 3)), + (char)('c' ^ (0x37 - 4)), + (char)('z' ^ (0x37 - 5)), + (char)('P' ^ (0x37 - 6)), + (char)('i' ^ (0x37 - 7)), + (char)('s' ^ (0x37 - 8)), + (char)('o' ^ (0x37 - 9)), + (char)('O' ^ (0x37 - 10)), + (char)('0' ^ (0x37 - 11)), + (char)('x' ^ (0x37 - 12)), + (char)('W' ^ (0x37 - 13)), + (char)('L' ^ (0x37 - 14)), + (char)('e' ^ (0x37 - 15)), + (char)('k' ^ (0x37 - 16)), + (char)('B' ^ (0x37 - 17)), + (char)('q' ^ (0x37 - 18)), + (char)('2' ^ (0x37 - 19)), + (char)('H' ^ (0x37 - 20)), + (char)('f' ^ (0x37 - 21)), + (char)('Y' ^ (0x37 - 22)), + (char)('n' ^ (0x37 - 23)), + (char)('X' ^ (0x37 - 24)), + (char)('4' ^ (0x37 - 25)), + (char)('A' ^ (0x37 - 26)), + (char)('9' ^ (0x37 - 27)), + (char)('N' ^ (0x37 - 28)), + (char)('a' ^ (0x37 - 29)), + (char)('U' ^ (0x37 - 30)), + (char)('G' ^ (0x37 - 31)), + }; + private static bool NothingFlag = false; + private static char[] GetNothingChar() + { + if (!NothingFlag) + { + NothingFlag = true; + for (int i = 0; i < 32; ++i) + { + NOTHING_CHAR_RESULT[i] = (char)(NOTHING_CHAR[i] ^ (0x37 - i)); + } + } + return NOTHING_CHAR_RESULT; + } + + void Start() + { + Init(); + } + + public void Init() + { + // 注册监听 + Application.deepLinkActivated += OnDeepLinkActivated; + if (!string.IsNullOrEmpty(Application.absoluteURL)) + { + // 冷启动而且 Application.absoluteURL 不为 null,因此处理深层链接。 + OnDeepLinkActivated(Application.absoluteURL); + } + // 初始化 DeepLink Manager 全局变量。 + else + { + DeepLinkURL = string.Empty; + } + } + + private void OnDeepLinkActivated(string url) + { + DeepLinkURL = url; + UpdateMapData(DeepLinkURL); + + // 不考虑中途打开 仅处理冷启动 + // if (luaDeepLinkActiveCallback != null) + // { + // // 延迟的回调 + // luaDeepLinkActiveCallback(DeepLinkURL, GetDeepLinkParamsJson()); + // } + HandleLaunchLinkParams(); + } + + private void HandleLaunchLinkParams() + { + if (!DeepLinkParams.ContainsKey(SIGN_FLAG)) + { + return; + } + string serverSign = DeepLinkParams[SIGN_FLAG]; + if (string.IsNullOrEmpty(serverSign)) + { + return; + } + string signStr = string.Empty; + foreach (var kvp in DeepLinkParams.OrderBy(kv => kv.Key, StringComparer.Ordinal)) + { + if (!kvp.Key.Equals(SIGN_FLAG)) + { + if (string.IsNullOrEmpty(signStr)) + { + signStr += kvp.Key + "=" + kvp.Value; + } + else + { + signStr += "&" + kvp.Key + "=" + kvp.Value; + } + } + } + signStr += string.Concat(GetNothingChar()); + if (!Md5Encrypt.VerifyMd5Hash(signStr, serverSign)) + { + return; + } + // 冷启动 更新参数 + if (DeepLinkParams.ContainsKey(ENTRANCE)) + { + if (!string.IsNullOrEmpty(DeepLinkParams[ENTRANCE])) + { + BFMain.DPEntrance = DeepLinkParams[ENTRANCE]; + if (BFMain.DPEntrance == ENTRANCE_LAN) + { + BFMain.DPIsLan = true; + } + + Debug.Log("深度链接 更新 ENTRANCE:" + BFMain.DPEntrance + " 内网:" + BFMain.DPIsLan); // 测试日志 TODOJ + } + } + if (DeepLinkParams.ContainsKey(ENV)) + { + if (!string.IsNullOrEmpty(DeepLinkParams[ENV])) + { + BFMain.DPEnv = DeepLinkParams[ENV]; + BFMain.DPForceEnv = true; + Debug.Log("深度链接 更新 ENV:" + BFMain.DPEnv); // 测试日志 TODOJ + } + } + if (DeepLinkParams.ContainsKey(GM)) + { + var support = DeepLinkParams[GM] == TRUE_FLAG; + BFMain.DPSupportGM = support; + + Debug.Log("深度链接 更新 GM:" + BFMain.DPSupportGM); // 测试日志 TODOJ + } + if (DeepLinkParams.ContainsKey(LOG)) + { + var support = DeepLinkParams[LOG] == TRUE_FLAG; + BFMain.DPSupportLog = support; + + Debug.Log("深度链接 更新 LOG:" + BFMain.DPSupportLog); // 测试日志 TODOJ + } + if (DeepLinkParams.ContainsKey(PACKAGE)) + { + if (!string.IsNullOrEmpty(DeepLinkParams[PACKAGE])) + { + BFMain.DPPackageName = DeepLinkParams[PACKAGE]; + + Debug.Log("深度链接 更新 ENV:" + BFMain.DPPackageName); + } + } + } + + private void UpdateMapData(string url) + { + if (string.IsNullOrWhiteSpace(url)) + { + return; + } + var splitUrl = url.Split('?', 2); + if (splitUrl.Length < 2) + { + return; + } + var parsedUrl = splitUrl[1]; + if (string.IsNullOrWhiteSpace(parsedUrl)) + { + return; + } + + var strs = parsedUrl.Split('&'); + foreach (var str in strs) + { + var keyValueStr = str.Split('=', 2); + if (keyValueStr.Length == 2) + { + var key = keyValueStr[0]; + var value = keyValueStr[1]; + + // 更新 + DeepLinkParams[key] = value; + } + } + } + + // 获取缓存的深度链接 + public string GetDeepLinkURL() + { + return DeepLinkURL; + } + + public Dictionary GetDeepLinkParamsDic() + { + return DeepLinkParams; + } + + public string GetDeepLinkParamsJson() + { + return JsonConvert.SerializeObject(DeepLinkParams); + } + + public string GetDeepLinkValueByKey(string key) + { + if (DeepLinkParams.ContainsKey(key)) + { + return DeepLinkParams[key]; + } + return string.Empty; + } + + // 设置回调 + public void SetLuaDeepLinkActiveCallback(Action callback) + { + luaDeepLinkActiveCallback = callback; + } + } +} diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs.meta b/Assets/Scripts/Common/DeepLink/DeepLinkManager.cs.meta similarity index 83% rename from Assets/ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs.meta rename to Assets/Scripts/Common/DeepLink/DeepLinkManager.cs.meta index a5bf96192..9fa6ea8ab 100644 --- a/Assets/ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs.meta +++ b/Assets/Scripts/Common/DeepLink/DeepLinkManager.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4ede466cf9e884fcb90bfec949dc6f04 +guid: ade1fea119719f145b768283e38c6a43 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/Common/GameLaunch/GameLaunchManager.cs b/Assets/Scripts/Common/GameLaunch/GameLaunchManager.cs index 250e41f1b..285173873 100644 --- a/Assets/Scripts/Common/GameLaunch/GameLaunchManager.cs +++ b/Assets/Scripts/Common/GameLaunch/GameLaunchManager.cs @@ -8,13 +8,14 @@ namespace BF public class GameLaunchManager : ManagerBase { #if UNITY_IOS && !UNITY_EDITOR - [DllImport("__Internal")] + [DllImport("__Internal")] private static extern void IOS_ATTrack(); #endif public LaunchRequester LaunchRequester { get; private set; } public int LaunchTimes { get; private set; } public bool LoadedFirstAb = false; + private bool isShowAtt = false; GameLaunchProcessorBase currentProcessor; @@ -52,14 +53,23 @@ namespace BF { } + public void ShowIOSATTrack() + { + #if UNITY_IOS && !UNITY_EDITOR + // ATT的回调里面会初始化广告SDK,所以这里处理一下如果多次调用,只会生效一次 + if (!isShowAtt) + { + isShowAtt = true; + IOS_ATTrack(); + } + #endif + } + /// /// 游戏启动入口 /// public void LaunchGame() { -#if UNITY_IOS && !UNITY_EDITOR - IOS_ATTrack(); -#endif LaunchTimes++; #if USE_AB GameLaunchProcessorBase processor = new LaunchSuccProcessor(); diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/GameLaunchProcessorBase.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/GameLaunchProcessorBase.cs index ffc56d852..471b298b1 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/GameLaunchProcessorBase.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/GameLaunchProcessorBase.cs @@ -128,13 +128,13 @@ namespace BF } var clientNums1 = int.Parse(clientNums[0]); var latestNums1 = int.Parse(latestNums[0]); - if(clientNums1 < latestNums1) + if (clientNums1 < latestNums1) { return false; } - else if(clientNums1 == latestNums1) + else if (clientNums1 == latestNums1) { - if(int.Parse(clientNums[1]) < int.Parse(latestNums[1])) + if (int.Parse(clientNums[1]) < int.Parse(latestNums[1])) { return false; } diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/CalculateDiffProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/CalculateDiffProcessor.cs index 6f3f9b50c..6f6fba7ce 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/CalculateDiffProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/CalculateDiffProcessor.cs @@ -26,6 +26,10 @@ namespace BF public override void Process(LaunchRequester lr) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "CalculateDiffProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + base.Process(lr); this.lr = lr; @@ -48,6 +52,10 @@ namespace BF } else { + var clientProcessorOptParams1 = new Dictionary(); + clientProcessorOptParams1.TryAdd("opt_type", "CalculateDiffProcessorOverWithoutUpdate"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams1); + // 既没有热更新也没有自动修复 lr.deleteList = lr.preCheckOverList; lr.curVersionTempDir = Path.Combine(TempUpdateDirPath, lr.persistentAbcc.version); @@ -62,6 +70,10 @@ namespace BF EnsureFilesInUpdate(); GetDeleteList(); + var clientProcessorOptParams2 = new Dictionary(); + clientProcessorOptParams2.TryAdd("opt_type", "CalculateDiffProcessorOverWithUpdate"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams2); + totalCount = abConfigList.Count; alreadyCount = 0; frameAlreadyCount = 0; diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/DownloadUpdateProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/DownloadUpdateProcessor.cs index 96530026e..68b75dad3 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/DownloadUpdateProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/DownloadUpdateProcessor.cs @@ -32,6 +32,10 @@ namespace BF public override void Process(LaunchRequester lr) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "DownloadUpdateProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + base.Process(lr); this.lr = lr; diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FirstABProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FirstABProcessor.cs index 2e93f0938..eb6dec673 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FirstABProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FirstABProcessor.cs @@ -1,6 +1,7 @@ using UnityEngine; using System.Collections; using System.IO; +using System.Collections.Generic; namespace BF { @@ -18,6 +19,10 @@ namespace BF public override void Process(LaunchRequester lr) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "FirstABProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + base.Process(lr); this.lr = lr; diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FixUpProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FixUpProcessor.cs index ff34612d1..00a32402e 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FixUpProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/FixUpProcessor.cs @@ -19,6 +19,10 @@ namespace BF public override void Process(LaunchRequester lr) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "FixUpProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + base.Process(lr); this.lr = lr; diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/OnGetVersionProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/OnGetVersionProcessor.cs index cc7439c84..4e6d5dc45 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/OnGetVersionProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/OnGetVersionProcessor.cs @@ -18,6 +18,10 @@ namespace BF public override void Process(LaunchRequester lr) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "OnGetVersionProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + base.Process(lr); this.lr = lr; @@ -121,6 +125,11 @@ namespace BF { if(string.IsNullOrEmpty(lr.versionInfo.cdn_url)) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "OnGetVersionProcessorChooseCdnFail"); + clientProcessorOptParams.TryAdd("err_info", "server return cdn list is empty"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + BFLog.LogError("获取不到cdn列表 服务器返回的cdn列表为空"); return; } @@ -181,6 +190,10 @@ namespace BF /// void DownloadABConfig() { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "OnGetVersionProcessorDownloadABConfig"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + var address = Path.Combine(lr.firstChoiceCDN, lr.versionInfo.version, "ab_config.bytes"); var timeout = 60; BFMain.Instance.WebRequestMgr.Get(address, OnDownloadABConfig, timeout); diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PreCheckProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PreCheckProcessor.cs index eb4d1abdb..c9f261b2d 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PreCheckProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PreCheckProcessor.cs @@ -22,6 +22,10 @@ namespace BF public override void Process(LaunchRequester lr) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "PreCheckProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + base.Process(lr); this.lr = lr; @@ -109,6 +113,10 @@ namespace BF BFMain.Instance.LoomMgr.QueueOnMainThread(() => { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "PreCheckProcessorCheckMissFile"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + checkMissFileEnd = true; PreCheckEnd(); }); @@ -129,6 +137,10 @@ namespace BF BFMain.Instance.LoomMgr.QueueOnMainThread(() => { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "PreCheckProcessorCheckOverFile"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + checkOverFileEnd = true; PreCheckEnd(); }); diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PrepareProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PrepareProcessor.cs index 2c69b605b..a759e03dc 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PrepareProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/PrepareProcessor.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.IO; using System.Text; using UnityEngine; @@ -19,13 +20,25 @@ namespace BF base.Process(lr); this.lr = lr; - PrepareABConfig(); + + // 这里延迟一帧处理是因为数数在当前帧未初始化完成会报错,所以这里处理为延迟一帧,等初始化完成 + BFMain.Instance.OneShotManager.AddOneShot(()=>{ + PrepareABConfig(); + }); } void PrepareABConfig() { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "PrepareProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + GetBytesAsync(StreamingAbccPath, (byte[] data) => { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "PrepareProcessorOver"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + var json = AssetBundleConfigCollection.Decompress(data); lr.streamingAbcc = AssetBundleConfigCollection.Create(json); var needCopyABConfig = false; diff --git a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/RequestVersionProcessor.cs b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/RequestVersionProcessor.cs index 35d4ea220..4e1ec3faf 100644 --- a/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/RequestVersionProcessor.cs +++ b/Assets/Scripts/Common/GameLaunch/LaunchProcessor/Processors/RequestVersionProcessor.cs @@ -1,3 +1,4 @@ +using System.Collections.Generic; using UnityEngine; namespace BF @@ -13,6 +14,10 @@ namespace BF public override void Process(LaunchRequester lr) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "RequestVersionProcessorStart"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + base.Process(lr); this.lr = lr; @@ -28,6 +33,10 @@ namespace BF void OnServerRespond(string json) { + var clientProcessorOptParams = new Dictionary(); + clientProcessorOptParams.TryAdd("opt_type", "RequestVersionProcessorOver"); + BF.BFMain.Instance.SDKMgr.BFThirdReportSDKMgr.PostThinkingAnalyticsEventProperties("client_processor_opt", clientProcessorOptParams); + BFLog.LogDebug(BFLog.DEBUG_GAME_LAUNCH, "green", "版本信息: " + json); if (!BFMain.IsStandAlone) // 如果是单机就直接下一步 { diff --git a/Assets/Scripts/Common/Network/NetManager.cs b/Assets/Scripts/Common/Network/NetManager.cs index 367c8f017..7dbe33324 100644 --- a/Assets/Scripts/Common/Network/NetManager.cs +++ b/Assets/Scripts/Common/Network/NetManager.cs @@ -16,6 +16,8 @@ namespace BF public const string MAIN_SOCKET_NAME = "0"; public const string CHAT_SOCKET_NAME = "1"; + public const int MAIN_SOCKET_NAME_INT = 0; + public const int CHAT_SOCKET_NAME_INT = 1; static NetManager instance; private NetClient netClient; private List clients = new List(); @@ -31,8 +33,11 @@ namespace BF public byte [] authReqData = null; public byte [] ChatAuthReqData = null; public string decodePbStr = null; + public string decodeChatPbStr = null; public uint rspGroup = 0; + public uint rspChatGroup = 0; public bool decodeFinish = false; + public bool decodeChatFinish = false; public static NetManager Create() { BFLog.LogAssert(instance == null, "This method only allows BFMain to call once"); @@ -199,7 +204,14 @@ namespace BF public void HandleDecodePbChange(int clientId, uint group, uint seq, byte[] data) { - decodeFinish = false; + if (clientId == MAIN_SOCKET_NAME_INT) + { + decodeFinish = false; + } + else if (clientId == CHAT_SOCKET_NAME_INT) + { + decodeChatFinish = false; + } OnDecodePbCallback?.Invoke(clientId, group, seq, data); } @@ -317,7 +329,7 @@ namespace BF public void ConnectWithConfiguration(int clientId, NetConnectConfiguration configuration, string domainName, int port) { ClientInfo clientInfo = new ClientInfo(); - clientInfo.Name = configuration.UniqueIdentifier; + clientInfo.Name = clientId.ToString(); clientInfo.LastConnectStatus = NetConnectStatus.InvalidConnect; clients[clientId] = clientInfo; netClient.Connect(configuration, domainName, port); @@ -370,16 +382,31 @@ namespace BF return decodeFinish; } + public bool GetDecodeChatStataus() + { + return decodeChatFinish; + } + public string GetDecodePbStr() { return decodePbStr; } + public string GetDecodeChatPbStr() + { + return decodeChatPbStr; + } + public uint GetDecodeGroup() { return rspGroup; } + public uint GetDecodeChatGroup() + { + return rspChatGroup; + } + public void AddLuaOnReceiveMessage(Action luaFunc) { OnReceiveMsgLuaCallback = luaFunc; diff --git a/Assets/Scripts/Common/Network/TCPService/TCPChannel.Auth.cs b/Assets/Scripts/Common/Network/TCPService/TCPChannel.Auth.cs index 53d6a24b2..b128b3030 100644 --- a/Assets/Scripts/Common/Network/TCPService/TCPChannel.Auth.cs +++ b/Assets/Scripts/Common/Network/TCPService/TCPChannel.Auth.cs @@ -104,7 +104,15 @@ namespace BF /// private bool DeserializeAuthRsp(out long status) { - string pbData = BF.BFMain.Instance.NetMgr.GetDecodePbStr(); + string pbData; + if(ownerConnection.UniqueIdentifier.CompareTo(BF.NetManager.MAIN_SOCKET_NAME) == 0) + { + pbData = BFMain.Instance.NetMgr.GetDecodePbStr(); + } + else + { + pbData = BFMain.Instance.NetMgr.GetDecodeChatPbStr(); + } Dictionary dict = Json.Deserialize(pbData) as Dictionary; status = (long)dict["status"]; diff --git a/Assets/Scripts/Common/Network/TCPService/TCPChannel.Reconnect.cs b/Assets/Scripts/Common/Network/TCPService/TCPChannel.Reconnect.cs index 4fd57f1e8..1549701d4 100644 --- a/Assets/Scripts/Common/Network/TCPService/TCPChannel.Reconnect.cs +++ b/Assets/Scripts/Common/Network/TCPService/TCPChannel.Reconnect.cs @@ -214,7 +214,14 @@ namespace BF // ResetOldSessionRc4Key(); ForceSendHeartBeatImmediately(); - BF.BFMain.Instance.NetMgr.decodeFinish = false; + if(ownerConnection.UniqueIdentifier.CompareTo(BF.NetManager.MAIN_SOCKET_NAME) == 0) + { + BF.BFMain.Instance.NetMgr.decodeFinish = false; + } + else + { + BF.BFMain.Instance.NetMgr.decodeChatFinish = false; + } return true; } @@ -310,7 +317,16 @@ namespace BF private bool DeserializeReconnectRsp(out long status, out long seqCs) { // BFLog.Log("==================================== DeserializeReconnectRsp"); - string pbData = BF.BFMain.Instance.NetMgr.GetDecodePbStr(); + string pbData; + if(ownerConnection.UniqueIdentifier.CompareTo(BF.NetManager.MAIN_SOCKET_NAME) == 0) + + { + pbData = BF.BFMain.Instance.NetMgr.GetDecodePbStr(); + } + else + { + pbData = BF.BFMain.Instance.NetMgr.GetDecodeChatPbStr(); + } Dictionary dict = Json.Deserialize(pbData) as Dictionary; // BFLog.Log("==================================== DeserializeReconnectRsp pbData = " + pbData); // BFLog.Log("==================================== DeserializeReconnectRsp status = " + (long)dict["status"]); diff --git a/Assets/Scripts/Common/Network/TCPService/TCPChannel.cs b/Assets/Scripts/Common/Network/TCPService/TCPChannel.cs index daa04f2e4..b5780f7c5 100644 --- a/Assets/Scripts/Common/Network/TCPService/TCPChannel.cs +++ b/Assets/Scripts/Common/Network/TCPService/TCPChannel.cs @@ -73,30 +73,64 @@ namespace BF // BFLog.Log("visibleStatus = " + visibleStatus); if (visibleStatus == NetConnectStatus.Decoding && !decoding) { - bool decodeFinish = BF.BFMain.Instance.NetMgr.GetDecodeStataus(); - if (decodeFinish) + if(ownerConnection.UniqueIdentifier.CompareTo(BF.NetManager.MAIN_SOCKET_NAME) == 0) { - uint group = BF.BFMain.Instance.NetMgr.GetDecodeGroup(); - if (group == Auth_Rsp_Group || group == Chat_Auth_Rsp_Group) + bool decodeFinish = BF.BFMain.Instance.NetMgr.GetDecodeStataus(); + if (decodeFinish) { - decoding = true; - FilterAuthIncomingMessage2(); - return; + uint group = BF.BFMain.Instance.NetMgr.GetDecodeGroup(); + if (group == Auth_Rsp_Group) + { + decoding = true; + FilterAuthIncomingMessage2(); + return; + } + } + } + else + { + bool decodeFinish = BF.BFMain.Instance.NetMgr.GetDecodeChatStataus(); + if (decodeFinish) + { + uint group = BF.BFMain.Instance.NetMgr.GetDecodeChatGroup(); + if (group == Chat_Auth_Rsp_Group) + { + decoding = true; + FilterAuthIncomingMessage2(); + return; + } } } } // BFLog.Log("visibleStatus = " + visibleStatus + "decoding = " + decoding); if (visibleStatus == NetConnectStatus.Decoding2 && !decoding) { - bool decodeFinish = BF.BFMain.Instance.NetMgr.GetDecodeStataus(); - if (decodeFinish) + if(ownerConnection.UniqueIdentifier.CompareTo(BF.NetManager.MAIN_SOCKET_NAME) == 0) { - uint group = BF.BFMain.Instance.NetMgr.GetDecodeGroup(); - if (group == Reconnect_Rsp_Group) + bool decodeFinish = BF.BFMain.Instance.NetMgr.GetDecodeStataus(); + if (decodeFinish) { - decoding = true; - FilterReconnectIncomingMessage2(); - return; + uint group = BF.BFMain.Instance.NetMgr.GetDecodeGroup(); + if (group == Reconnect_Rsp_Group) + { + decoding = true; + FilterReconnectIncomingMessage2(); + return; + } + } + } + else + { + bool decodeFinish = BF.BFMain.Instance.NetMgr.GetDecodeChatStataus(); + if (decodeFinish) + { + uint group = BF.BFMain.Instance.NetMgr.GetDecodeChatGroup(); + if (group == Reconnect_Rsp_Group) + { + decoding = true; + FilterReconnectIncomingMessage2(); + return; + } } } } diff --git a/Assets/Scripts/Common/SDK/AdManager.cs b/Assets/Scripts/Common/SDK/AdManager.cs index b83344c90..8fc854b12 100644 --- a/Assets/Scripts/Common/SDK/AdManager.cs +++ b/Assets/Scripts/Common/SDK/AdManager.cs @@ -23,19 +23,21 @@ namespace AudienceNetwork public partial class AdManager : BF.MonoSingleton { private const string Tag = "AdManager:"; - // private const string Key = "9uHgeBwag3NXva9MC23ToO3q11Ve59bF1uwg4qGltdGmCQ7OSByFZ_3b1ZF7krMlkHQo5gXzIokVDsvg1rwbr-"; - private const string Key = "9uHgeBwag3NXva9MC23ToO3q11Ve59bF1uwg4qGltdGmCQ7OSByFZ_3b1ZF7krMlkHQo5gXzIokVDsvg1rwbr-11"; + private const string Key = "9uHgeBwag3NXva9MC23ToO3q11Ve59bF1uwg4qGltdGmCQ7OSByFZ_3b1ZF7krMlkHQo5gXzIokVDsvg1rwbr-"; string bannerAdUnitId = "YOUR_BANNER_AD_UNIT_ID"; // Retrieve the ID from your account string adInterstitialUnitId = "YOUR_AD_UNIT_ID"; - string adRewardUnitId = "e54f27e345da90df"; - +#if UNITY_IOS || UNITY_IPHONE + string adRewardUnitId = "1043ecded04c561b"; +#else + string adRewardUnitId = "3fdcc8a796773aa2"; +#endif + public Action luaAdRevenuePaidEventCallback; // Start is called before the first frame update public void Init(string init = "") { -#if UNITY_IOS || UNITY_IPHONE MaxSdkCallbacks.OnSdkInitializedEvent += (MaxSdkBase.SdkConfiguration sdkConfiguration) => { - +#if UNITY_IOS || UNITY_IPHONE if (MaxSdkUtils.CompareVersions(UnityEngine.iOS.Device.systemVersion, "14.5") != MaxSdkUtils.VersionComparisonResult.Lesser) { // Note that App transparency tracking authorization can be checked via `sdkConfiguration.AppTrackingStatus` for Unity Editor and iOS targets @@ -45,6 +47,7 @@ public partial class AdManager : BF.MonoSingleton else AudienceNetwork.AdSettings.SetAdvertiserTrackingEnabled(false); } +#endif // Show Mediation Debugger // MaxSdk.ShowMediationDebugger(); // MaxSdk.SetVerboseLogging(true); @@ -56,7 +59,7 @@ public partial class AdManager : BF.MonoSingleton MaxSdk.SetUserId(SystemInfo.deviceUniqueIdentifier); // MaxSdk.SetVerboseLogging(true); MaxSdk.InitializeSdk(); -#endif + } private void LoadAds() @@ -66,6 +69,11 @@ public partial class AdManager : BF.MonoSingleton // InitializeInterstitialAds(); } + public void SetAdRevenuePaidEventCallback(Action callback) + { + luaAdRevenuePaidEventCallback = callback; + } + public bool IsRewardedAdReady() { return MaxSdk.IsRewardedAdReady(adRewardUnitId); @@ -93,10 +101,11 @@ public partial class AdManager : BF.MonoSingleton return MaxSdk.IsInterstitialReady(adInterstitialUnitId); } - public void ShowInterstitial() + public void ShowInterstitial(Action callback = null) { if (MaxSdk.IsInterstitialReady(adInterstitialUnitId)) { + _interstitialAdCallback = callback; MaxSdk.ShowInterstitial(adInterstitialUnitId); } } @@ -105,10 +114,48 @@ public partial class AdManager : BF.MonoSingleton public void ShowBanner() { MaxSdk.ShowBanner(bannerAdUnitId); + MaxSdk.StartBannerAutoRefresh(bannerAdUnitId); } public void HideBanner() { + MaxSdk.StopBannerAutoRefresh(bannerAdUnitId); MaxSdk.HideBanner(bannerAdUnitId); } + + public void DestroyBanner() + { + MaxSdk.DestroyBanner(bannerAdUnitId); + } + + public bool IsPrivacyOptionsRequired() + { +#if UNITY_IOS || UNITY_IPHONE + return BF.BFUMPManager.IsPrivacyOptionsRequired(); +#elif UNITY_ANDROID && !UNITY_EDITOR + return BF.BFMain.Instance.SDKMgr.BFNativeSDKMgr.IsPrivacyOptionsRequired(); +#else + return false; +#endif + } + + public void ShowPrivacyOptionsForm() + { +#if UNITY_IOS || UNITY_IPHONE + BF.BFUMPManager.ShowPrivacyOptionsForm(); +#elif UNITY_ANDROID && !UNITY_EDITOR + BF.BFMain.Instance.SDKMgr.BFNativeSDKMgr.ShowPrivacyOptionsForm(); +#endif + } + + public bool CheckCanRequestAds() + { +#if UNITY_IOS || UNITY_IPHONE + return BF.BFUMPManager.IsPrivacyOptionsRequired(); +#elif UNITY_ANDROID && !UNITY_EDITOR + return BF.BFMain.Instance.SDKMgr.BFNativeSDKMgr.IsPrivacyOptionsRequired(); +#else + return true; +#endif + } } diff --git a/Assets/Scripts/Common/SDK/AdManagerBanner.cs b/Assets/Scripts/Common/SDK/AdManagerBanner.cs index 2fa7c6e40..491e8dcb4 100644 --- a/Assets/Scripts/Common/SDK/AdManagerBanner.cs +++ b/Assets/Scripts/Common/SDK/AdManagerBanner.cs @@ -1,18 +1,13 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using System; +using Newtonsoft.Json; public partial class AdManager { public void InitializeBannerAds() { - // Banners are automatically sized to 320×50 on phones and 728×90 on tablets - // You may call the utility method MaxSdkUtils.isTablet() to help with view sizing adjustments - MaxSdk.CreateBanner(bannerAdUnitId, MaxSdkBase.BannerPosition.BottomCenter); - - // Set background or background color for banners to be fully functional - MaxSdk.SetBannerBackgroundColor(bannerAdUnitId, Color.white); - MaxSdkCallbacks.Banner.OnAdLoadedEvent += OnBannerAdLoadedEvent; MaxSdkCallbacks.Banner.OnAdLoadFailedEvent += OnBannerAdLoadFailedEvent; MaxSdkCallbacks.Banner.OnAdClickedEvent += OnBannerAdClickedEvent; @@ -27,7 +22,34 @@ public partial class AdManager private void OnBannerAdClickedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) { } - private void OnBannerAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) { } + private void OnBannerAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) + { + if (luaAdRevenuePaidEventCallback == null) + { + return; + } + double revenue = adInfo.Revenue; + // Miscellaneous data + string countryCode = MaxSdk.GetSdkConfiguration().CountryCode; // "US" for the United States, etc - Note: Do not confuse this with currency code which is "USD" in most cases! + string networkName = adInfo.NetworkName; // Display name of the network that showed the ad (e.g. "AdColony") + string adUnitIdentifier = adInfo.AdUnitIdentifier; // The MAX Ad Unit ID + string placement = adInfo.Placement; // The placement this ad's postbacks are tied to + string networkPlacement = adInfo.NetworkPlacement; // The placement ID from the network that showed the ad + string adFormat = adInfo.AdFormat; + + var dict = new Dictionary(); + dict.Add("revenue", revenue); + dict.Add("country_code", countryCode); + dict.Add("network_name", networkName); + dict.Add("ad_unit_Id", adUnitId); + dict.Add("ad_unit_identifier", adUnitIdentifier); + dict.Add("placement", placement); + dict.Add("network_placement", networkPlacement); + dict.Add("ad_format", adFormat); + dict.Add("ad_type", "banner"); + var result = JsonConvert.SerializeObject(dict); + luaAdRevenuePaidEventCallback(result); + } private void OnBannerAdExpandedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) { } diff --git a/Assets/Scripts/Common/SDK/AdManagerInterstitial.cs b/Assets/Scripts/Common/SDK/AdManagerInterstitial.cs index 5923d03f9..d6c16bf18 100644 --- a/Assets/Scripts/Common/SDK/AdManagerInterstitial.cs +++ b/Assets/Scripts/Common/SDK/AdManagerInterstitial.cs @@ -1,11 +1,12 @@ using System.Collections; using System.Collections.Generic; using System; -using UnityEngine; +using Newtonsoft.Json; public partial class AdManager { int retryAttemptInterstitial; + private Action _interstitialAdCallback; public void InitializeInterstitialAds() { @@ -14,6 +15,7 @@ public partial class AdManager MaxSdkCallbacks.Interstitial.OnAdLoadFailedEvent += OnInterstitialLoadFailedEvent; MaxSdkCallbacks.Interstitial.OnAdDisplayedEvent += OnInterstitialDisplayedEvent; MaxSdkCallbacks.Interstitial.OnAdClickedEvent += OnInterstitialClickedEvent; + MaxSdkCallbacks.Interstitial.OnAdRevenuePaidEvent += OnInterstitialAdRevenuePaidEvent; MaxSdkCallbacks.Interstitial.OnAdHiddenEvent += OnInterstitialHiddenEvent; MaxSdkCallbacks.Interstitial.OnAdDisplayFailedEvent += OnInterstitialAdFailedToDisplayEvent; @@ -45,12 +47,16 @@ public partial class AdManager Invoke("LoadInterstitial", (float)retryDelay); } - private void OnInterstitialDisplayedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) { } + private void OnInterstitialDisplayedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) + { + _interstitialAdCallback?.Invoke(0); + } private void OnInterstitialAdFailedToDisplayEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo, MaxSdkBase.AdInfo adInfo) { // Interstitial ad failed to display. AppLovin recommends that you load the next ad. LoadInterstitial(); + _interstitialAdCallback?.Invoke(1); } private void OnInterstitialClickedEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) { } @@ -59,5 +65,35 @@ public partial class AdManager { // Interstitial ad is hidden. Pre-load the next ad. LoadInterstitial(); + _interstitialAdCallback?.Invoke(1); + } + + private void OnInterstitialAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) + { + if (luaAdRevenuePaidEventCallback == null) + { + return; + } + double revenue = adInfo.Revenue; + // Miscellaneous data + string countryCode = MaxSdk.GetSdkConfiguration().CountryCode; // "US" for the United States, etc - Note: Do not confuse this with currency code which is "USD" in most cases! + string networkName = adInfo.NetworkName; // Display name of the network that showed the ad (e.g. "AdColony") + string adUnitIdentifier = adInfo.AdUnitIdentifier; // The MAX Ad Unit ID + string placement = adInfo.Placement; // The placement this ad's postbacks are tied to + string networkPlacement = adInfo.NetworkPlacement; // The placement ID from the network that showed the ad + string adFormat = adInfo.AdFormat; + + var dict = new Dictionary(); + dict.Add("revenue", revenue); + dict.Add("country_code", countryCode); + dict.Add("network_name", networkName); + dict.Add("ad_unit_Id", adUnitId); + dict.Add("ad_unit_identifier", adUnitIdentifier); + dict.Add("placement", placement); + dict.Add("network_placement", networkPlacement); + dict.Add("ad_format", adFormat); + dict.Add("ad_type", "interstitial"); + var result = JsonConvert.SerializeObject(dict); + luaAdRevenuePaidEventCallback(result); } } diff --git a/Assets/Scripts/Common/SDK/AdManagerReward.cs b/Assets/Scripts/Common/SDK/AdManagerReward.cs index e8650c4c6..8a988bbbe 100644 --- a/Assets/Scripts/Common/SDK/AdManagerReward.cs +++ b/Assets/Scripts/Common/SDK/AdManagerReward.cs @@ -10,7 +10,6 @@ public partial class AdManager private Action _rewardCallback; private bool _rewardOK = false; - public Action luaAdRevenuePaidEventCallback; public void InitializeRewardedAds() { @@ -28,11 +27,6 @@ public partial class AdManager LoadRewardedAd(); } - public void SetAdRevenuePaidEventCallback(Action callback) - { - luaAdRevenuePaidEventCallback = callback; - } - private void LoadRewardedAd() { MaxSdk.LoadRewardedAd(adRewardUnitId); @@ -43,16 +37,16 @@ public partial class AdManager // Rewarded ad is ready for you to show. MaxSdk.IsRewardedAdReady(adUnitId) now returns 'true'. // Reset retry attempt - retryAttemptInterstitial = 0; + retryAttemptReward = 0; } private void OnRewardedAdLoadFailedEvent(string adUnitId, MaxSdkBase.ErrorInfo errorInfo) { - // Rewarded ad failed to load + // Rewarded ad failed to load // AppLovin recommends that you retry with exponentially higher delays, up to a maximum delay (in this case 64 seconds). - retryAttemptInterstitial++; - double retryDelay = Math.Pow(2, Math.Min(6, retryAttemptInterstitial)); + retryAttemptReward++; + double retryDelay = Math.Pow(2, Math.Min(6, retryAttemptReward)); Invoke("LoadRewardedAd", (float)retryDelay); } @@ -63,8 +57,6 @@ public partial class AdManager { // Rewarded ad failed to display. AppLovin recommends that you load the next ad. LoadRewardedAd(); - - Debug.Log(Tag + "==================== OnRewardedAdFailedToDisplayEvent"); _rewardCallback?.Invoke(1); } @@ -83,17 +75,11 @@ public partial class AdManager } _rewardOK = false; _rewardCallback = null; - Debug.Log(Tag + "==================== OnRewardedAdHiddenEvent"); } private void OnRewardedAdReceivedRewardEvent(string adUnitId, MaxSdk.Reward reward, MaxSdkBase.AdInfo adInfo) { - // The rewarded ad displayed and the user should receive the reward. - - Debug.Log(Tag + "Rewarded user: " + reward.Amount + " " + reward.Label); _rewardOK = true; - // _rewardCallback?.Invoke(0); - // _rewardCallback = null; } private void OnRewardedAdRevenuePaidEvent(string adUnitId, MaxSdkBase.AdInfo adInfo) @@ -120,7 +106,8 @@ public partial class AdManager dict.Add("placement", placement); dict.Add("network_placement", networkPlacement); dict.Add("ad_format", adFormat); + dict.Add("ad_type", "reward"); var result = JsonConvert.SerializeObject(dict); luaAdRevenuePaidEventCallback(result); } -} +} \ No newline at end of file diff --git a/Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs b/Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs new file mode 100644 index 000000000..a5de082b9 --- /dev/null +++ b/Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace BF +{ + public class BFHWAdSDKManager : MonoBehaviour + { + public Action luaShowCallback; + public Action luaLoadedCallback; + public Action luaEarnedRewardCallback; + public bool AdLoaded = false; + public bool AdInitialized = false; + + void Start() + { + Init(); + } + + public void Init() + { + // google + BFMain.Instance.SDKMgr.BFNativeSDKMgr.InitHWAdRewardedVideo(); + } + + public void ShowFullScreenAds() + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.ShowHWFullScreenAds(); + } + + public void TryLoadRewardedAd() + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.TryLoadHWRewardedAd(); + } + + // public void SetAdPlacement(string placement) + // { + // BFMain.Instance.SDKMgr.BFNativeSDKMgr.SetAdPlacement(placement); + // } + + public void SetAdShowCallback(Action callback) + { + luaShowCallback = callback; + } + + // 设置广告加载回调 + public void SetAdLoadedCallback(Action callback) + { + luaLoadedCallback = callback; + } + + // 设置广告看完回调 + public void SetAdEarnedRewardCallback(Action callback) + { + luaEarnedRewardCallback = callback; + } + public void ShowFullScreenAdFinish(int code) + { + if (luaShowCallback != null) + { + luaShowCallback(code); + // luaShowCallback = null; + } + } + public void AdLoadedFinish(int code) + { + if (code == 0) + { + AdLoaded = true; + } + + if (luaLoadedCallback != null) + { + luaLoadedCallback(code); + } + } + public void EarnedRewardFinish(int code, string result) + { + if (luaEarnedRewardCallback != null) + { + luaEarnedRewardCallback(code, result); + // luaEarnedRewardCallback = null; + } + } + } +} diff --git a/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs.meta b/Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs.meta similarity index 83% rename from Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs.meta rename to Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs.meta index bed0ef8f3..31a6b62a7 100644 --- a/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs.meta +++ b/Assets/Scripts/Common/SDK/BFHWAdSDKManager.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 88d315c7e2aba4d4d89a104b0c746e3f +guid: 51a8bc27467e6434d847a1a53555d90b MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/Common/SDK/BFHWPaySDKManager.cs b/Assets/Scripts/Common/SDK/BFHWPaySDKManager.cs new file mode 100644 index 000000000..25d617e76 --- /dev/null +++ b/Assets/Scripts/Common/SDK/BFHWPaySDKManager.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace BF +{ + public class BFHWPaySDKManager : MonoBehaviour + { + public Action luaPayCallback; + public Action luaQueryProductCallback; + public Action luaQueryUncompleteOrderCallback; + public Action luaConsumeCallback; + public bool StoreValid { get; private set; } + private string ProductJson; + + void Start() + { + // 俄罗斯华为渠道专用支付 + if (!BFPlatform.IsSupportHWPay()) + { + return; + } + + Init(); + CheckStoreValid(); + } + + // 初始化 + public void Init() + { + // BFMain.Instance.SDKMgr.BFNativeSDKMgr.RuInit(); + } + + // 检测支付可用性 + public void CheckStoreValid() + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.HWCheckValid(); + } + + public void CheckStoreValidComplete(bool success) + { + StoreValid = success; + } + + // 请求全部商品信息 + public void QueryProductInfo(string productJson, Action callback) + { + luaQueryProductCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.HWGetProducts(productJson, callback); + } + + public void QueryProductComplete(bool succ, string result) + { + Debug.Log("C# call QueryProductComplete"); + int code = succ?0:1; + if(luaQueryProductCallback != null) + { + Debug.Log("C# call QueryProductComplete result = " + result + " code = " + code); + Action tempLuaQueryProductCallback = luaQueryProductCallback; + luaQueryProductCallback = null; + tempLuaQueryProductCallback(code, result); + ProductJson = string.Empty; + } + } + + // 支付 + public void Pay(string payType, string productId, string customMsg, Action callback) + { + luaPayCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.HWPurchase(productId, customMsg); + } + + public void PayComplete(int code, string result) + { + Debug.Log("C# call PayComplete"); + // 优先当前支付的回调 + if(luaPayCallback != null) + { + Debug.Log("C# call PayComplete result = " + result + " code = " + code); + luaPayCallback(code, result); + luaPayCallback = null; + } + } + + // 消耗 + public void ConsumePurchase(string token, Action callback) + { + luaConsumeCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.HWConsume(token); + } + + public void ConsumeComplete(int code) + { + Debug.Log("C# call ConsumeComplete"); + if (luaConsumeCallback != null) + { + Debug.Log("C# call ConsumeComplete code = " + code); + luaConsumeCallback(code); + luaConsumeCallback = null; + } + } + + // 查询未完成订单 + public void QueryUncompleteOrder(Action callback) + { + luaQueryUncompleteOrderCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.HWGetPurchase(); + } + + public void QueryUncompleteOrderFinish(string result) + { + Debug.Log("C# call QueryUncompleteOrderFinish"); + if(luaQueryUncompleteOrderCallback != null) + { + Debug.Log("C# call QueryUncompleteOrderFinish result = " + result); + Action tempLuaQueryUncompleteOrderCallback = luaQueryUncompleteOrderCallback; + luaQueryUncompleteOrderCallback = null; + tempLuaQueryUncompleteOrderCallback(0, result); + } + } + } +} diff --git a/Assets/ThirdParty/AppsFlyer/AFAdRevenueEvent.cs.meta b/Assets/Scripts/Common/SDK/BFHWPaySDKManager.cs.meta similarity index 83% rename from Assets/ThirdParty/AppsFlyer/AFAdRevenueEvent.cs.meta rename to Assets/Scripts/Common/SDK/BFHWPaySDKManager.cs.meta index 977c8a72d..3ffcf333d 100644 --- a/Assets/ThirdParty/AppsFlyer/AFAdRevenueEvent.cs.meta +++ b/Assets/Scripts/Common/SDK/BFHWPaySDKManager.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 597a8e5b837f64353b0aa9af2fe9aa84 +guid: 23ba21f8bd9926047b7b057e98ddf72f MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs b/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs deleted file mode 100644 index f94ba159f..000000000 --- a/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs +++ /dev/null @@ -1,318 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -using System; -using com.adjust.sdk; -using Newtonsoft.Json; - -namespace BF -{ - // Example for IronSource Unity. - public class BFIronSourceSDKManager : MonoBehaviour - { - public Action luaShowCallback; - public Action luaLoadedCallback; - public Action luaEarnedRewardCallback; - public Action luaAdRevenuePaidEventCallback; - public bool AdLoaded = false; - public bool AdInitialized = false; - - public void Start() - { - - #if UNITY_ANDROID - // string appKey = "85460dcd"; - string appKey = "1a6aacc25"; - - BFLog.Log("unity-script: IronSource.Agent.validateIntegration"); - IronSource.Agent.validateIntegration(); - - BFLog.Log("unity-script: unity version" + IronSource.unityVersion()); - - // SDK init - BFLog.Log("unity-script: IronSource.Agent.init"); - // IronSource.Agent.setMetaData("is_test_suite", "enable"); - IronSource.Agent.init(appKey); - IronSource.Agent.setManualLoadRewardedVideo(true); - - // 初始化之前先设置一下用户id - // ISAdQualityConfig adQualityConfig = new ISAdQualityConfig(); - // adQualityConfig.UserId = SystemInfo.deviceUniqueIdentifier; - // // adQualityConfig.TestMode = true; - // // adQualityConfig.LogLevel = ISAdQualityLogLevel.INFO; - // IronSourceAdQuality.Initialize(appKey, adQualityConfig); - #elif UNITY_IPHONE - // string appKey = "8545d445"; - // 初始化之前先设置一下用户id - // ISAdQualityConfig adQualityConfig = new ISAdQualityConfig(); - // adQualityConfig.UserId = SystemInfo.deviceUniqueIdentifier; - // IronSourceAdQuality.Initialize(appKey, adQualityConfig); - #else - // string appKey = "unexpected_platform"; - #endif - // BFLog.Log("unity-script: IronSource.Agent.validateIntegration"); - // IronSource.Agent.validateIntegration(); - - // BFLog.Log("unity-script: unity version" + IronSource.unityVersion()); - - // // SDK init - // BFLog.Log("unity-script: IronSource.Agent.init"); - // IronSource.Agent.init(appKey); - // IronSource.Agent.setManualLoadRewardedVideo(true); - } - - void OnEnable() - { - - //Add Init Event - IronSourceEvents.onSdkInitializationCompletedEvent += SdkInitializationCompletedEvent; - - //Add Rewarded Video Events - // IronSourceEvents.onRewardedVideoAdOpenedEvent += RewardedVideoAdOpenedEvent; - // IronSourceEvents.onRewardedVideoAdClosedEvent += RewardedVideoAdClosedEvent; - // IronSourceEvents.onRewardedVideoAvailabilityChangedEvent += RewardedVideoAvailabilityChangedEvent; - // IronSourceEvents.onRewardedVideoAdStartedEvent += RewardedVideoAdStartedEvent; - // IronSourceEvents.onRewardedVideoAdEndedEvent += RewardedVideoAdEndedEvent; - // IronSourceEvents.onRewardedVideoAdRewardedEvent += RewardedVideoAdRewardedEvent; - // IronSourceEvents.onRewardedVideoAdShowFailedEvent += RewardedVideoAdShowFailedEvent; - // IronSourceEvents.onRewardedVideoAdClickedEvent += RewardedVideoAdClickedEvent; - - //Add ImpressionSuccess Event - IronSourceEvents.onImpressionSuccessEvent += ImpressionSuccessEvent; - IronSourceEvents.onImpressionDataReadyEvent += ImpressionDataReadyEvent; - - - //Add AdInfo Rewarded Video Events - IronSourceRewardedVideoEvents.onAdOpenedEvent += ReardedVideoOnAdOpenedEvent; - IronSourceRewardedVideoEvents.onAdClosedEvent += ReardedVideoOnAdClosedEvent; - IronSourceRewardedVideoEvents.onAdAvailableEvent += ReardedVideoOnAdAvailable; - IronSourceRewardedVideoEvents.onAdUnavailableEvent += ReardedVideoOnAdUnavailable; - IronSourceRewardedVideoEvents.onAdShowFailedEvent += ReardedVideoOnAdShowFailedEvent; - IronSourceRewardedVideoEvents.onAdRewardedEvent += ReardedVideoOnAdRewardedEvent; - IronSourceRewardedVideoEvents.onAdClickedEvent += ReardedVideoOnAdClickedEvent; - } - - public void SetAdRevenuePaidEventCallback(Action callback) - { - luaAdRevenuePaidEventCallback = callback; - } - - void OnApplicationPause(bool isPaused) - { - #if UNITY_ANDROID - BFLog.Log("unity-script: OnApplicationPause = " + isPaused); - IronSource.Agent.onApplicationPause(isPaused); - #endif - } - - public void ShowFullScreenAds() - { - if(IronSource.Agent.isRewardedVideoAvailable()) - { - IronSource.Agent.showRewardedVideo(); - } - else - { - // TryLoadRewardedAd(); - BFLog.Log("unity-script: IronSource.Agent.isRewardedVideoAvailable - False"); - } - } - - public void TryLoadRewardedAd() - { - IronSource.Agent.loadRewardedVideo(); - } - - public void SetAdPlacement(string placement) - { - // BFMain.Instance.SDKMgr.BFNativeSDKMgr.SetAdPlacement(placement); - } - - public void SetAdShowCallback(Action callback) - { - luaShowCallback = callback; - } - - // 设置广告加载回调 - public void SetAdLoadedCallback(Action callback) - { - luaLoadedCallback = callback; - } - - // 设置广告看完回调 - public void SetAdEarnedRewardCallback(Action callback) - { - luaEarnedRewardCallback = callback; - } - public void ShowFullScreenAdFinish(int code) - { - if (luaShowCallback != null) - { - luaShowCallback(code); - } - } - #region Init callback handlers - - void SdkInitializationCompletedEvent() - { - BFLog.Log("unity-script: I got SdkInitializationCompletedEvent"); - //Launch test suite - // IronSource.Agent.launchTestSuite(); - } - - #endregion - - #region AdInfo Rewarded Video - void ReardedVideoOnAdOpenedEvent(IronSourceAdInfo adInfo) { - BFLog.Log("unity-script: I got ReardedVideoOnAdOpenedEvent With AdInfo " + adInfo.ToString()); - ShowFullScreenAdFinish(0); - } - void ReardedVideoOnAdClosedEvent(IronSourceAdInfo adInfo) - { - BFLog.Log("unity-script: I got ReardedVideoOnAdClosedEvent With AdInfo " + adInfo.ToString()); - } - void ReardedVideoOnAdAvailable(IronSourceAdInfo adInfo) - { - BFLog.Log("unity-script: I got ReardedVideoOnAdAvailable With AdInfo " + adInfo.ToString()); - AdLoaded = true; - - if (luaLoadedCallback != null) - { - luaLoadedCallback(0); - } - } - void ReardedVideoOnAdUnavailable() - { - BFLog.Log("unity-script: I got ReardedVideoOnAdUnavailable"); - AdLoaded = false; - - if (luaLoadedCallback != null) - { - luaLoadedCallback(1); - } - } - void ReardedVideoOnAdShowFailedEvent(IronSourceError ironSourceError,IronSourceAdInfo adInfo) - { - BFLog.Log("unity-script: I got RewardedVideoAdOpenedEvent With Error"+ironSourceError.ToString() + "And AdInfo " + adInfo.ToString()); - ShowFullScreenAdFinish(1); - } - void ReardedVideoOnAdRewardedEvent(IronSourcePlacement ironSourcePlacement,IronSourceAdInfo adInfo) - { - BFLog.Log("unity-script: I got ReardedVideoOnAdRewardedEvent With Placement" + ironSourcePlacement.ToString()+ "And AdInfo " + adInfo.ToString()); - if (luaEarnedRewardCallback != null) - { - luaEarnedRewardCallback(0, ""); - } - } - void ReardedVideoOnAdClickedEvent(IronSourcePlacement ironSourcePlacement, IronSourceAdInfo adInfo) - { - BFLog.Log("unity-script: I got ReardedVideoOnAdClickedEvent With Placement" + ironSourcePlacement.ToString() + "And AdInfo " + adInfo.ToString()); - } - - #endregion - - // #region RewardedAd callback handlers - - // void RewardedVideoAvailabilityChangedEvent(bool canShowAd) - // { - // BFLog.Log("unity-script: I got RewardedVideoAvailabilityChangedEvent, value = " + canShowAd); - // } - - // void RewardedVideoAdOpenedEvent() - // { - // BFLog.Log("unity-script: I got RewardedVideoAdOpenedEvent"); - // } - - // void RewardedVideoAdRewardedEvent(IronSourcePlacement ssp) - // { - // BFLog.Log("unity-script: I got RewardedVideoAdRewardedEvent, amount = " + ssp.getRewardAmount() + " name = " + ssp.getRewardName()); - // } - - // void RewardedVideoAdClosedEvent() - // { - // BFLog.Log("unity-script: I got RewardedVideoAdClosedEvent"); - // } - - // void RewardedVideoAdStartedEvent() - // { - // BFLog.Log("unity-script: I got RewardedVideoAdStartedEvent"); - // } - - // void RewardedVideoAdEndedEvent() - // { - // BFLog.Log("unity-script: I got RewardedVideoAdEndedEvent"); - // } - - // void RewardedVideoAdShowFailedEvent(IronSourceError error) - // { - // BFLog.Log("unity-script: I got RewardedVideoAdShowFailedEvent, code : " + error.getCode() + ", description : " + error.getDescription()); - // } - - // void RewardedVideoAdClickedEvent(IronSourcePlacement ssp) - // { - // BFLog.Log("unity-script: I got RewardedVideoAdClickedEvent, name = " + ssp.getRewardName()); - // } - // #endregion - - #region ImpressionSuccess callback handler - - void ImpressionSuccessEvent(IronSourceImpressionData impressionData) - { - // BFLog.Log("unity - script: I got ImpressionSuccessEvent ToString(): " + impressionData.ToString()); - // BFLog.Log("unity - script: I got ImpressionSuccessEvent allData: " + impressionData.allData); - } - - void ImpressionDataReadyEvent(IronSourceImpressionData impressionData) - { - if (impressionData == null) - { - return; - } - if (ReferenceEquals(impressionData.revenue, null)) - { - return; - } - double revenue = (double)impressionData.revenue; - AdjustAdRevenue adjustAdRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceIronSource); - adjustAdRevenue.setRevenue(revenue, "USD"); - // optional fields - adjustAdRevenue.setAdRevenueNetwork(impressionData.adNetwork); - adjustAdRevenue.setAdRevenueUnit(impressionData.adUnit); - adjustAdRevenue.setAdRevenuePlacement(impressionData.placement); - // track Adjust ad revenue - Adjust.trackAdRevenue(adjustAdRevenue); - - if (luaAdRevenuePaidEventCallback == null) - { - return; - } - var dict = new Dictionary(); - dict.Add("revenue", revenue); - dict.Add("auction_id", impressionData.auctionId); - dict.Add("country_code", impressionData.country); - dict.Add("network_name", impressionData.adNetwork); - dict.Add("ad_unit_Id", impressionData.adUnit); - dict.Add("placement", impressionData.placement); - dict.Add("ad_format_name", impressionData.instanceName); - dict.Add("ad_format_id", impressionData.instanceId); - if (!string.IsNullOrEmpty(impressionData.segmentName)) - { - dict.Add("segment_name", impressionData.segmentName); - } - if (!ReferenceEquals(impressionData.lifetimeRevenue, null)) - { - dict.Add("lifetime_revenue", impressionData.lifetimeRevenue); - } - if (!string.IsNullOrEmpty(impressionData.encryptedCPM)) - { - dict.Add("encrypted_cpm", impressionData.encryptedCPM); - } - dict.Add("currency", "USD"); - dict.Add("precision", impressionData.precision); - var result = JsonConvert.SerializeObject(dict); - luaAdRevenuePaidEventCallback(result); - } - - #endregion - } -} \ No newline at end of file diff --git a/Assets/Scripts/Common/SDK/BFLoginSDKManager.cs b/Assets/Scripts/Common/SDK/BFLoginSDKManager.cs index 5ec82e632..ce528d575 100644 --- a/Assets/Scripts/Common/SDK/BFLoginSDKManager.cs +++ b/Assets/Scripts/Common/SDK/BFLoginSDKManager.cs @@ -65,19 +65,30 @@ namespace BF void Awake() { // facebook - BFLog.Log("FBSdk.Init"); - FBSdk.Init(); - FBSdk.SetULoginListener(this); + if (BFPlatform.IsSupportFB()) + { + BFLog.Log("FBSdk.Init"); + FBSdk.Init(); + FBSdk.SetULoginListener(this); + } // appid 登陆 #if UNITY_IOS signInWithApple = gameObject.AddComponent(); #endif + + if (BFPlatform.IsSupportVK()) + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.VKIDInit("52913931"); + } } void OnApplicationPause(bool pauseStatus) { - FBSdk.OnApplicationPause(pauseStatus); + if (BFPlatform.IsSupportFB()) + { + FBSdk.OnApplicationPause(pauseStatus); + } } void Start() @@ -152,6 +163,10 @@ namespace BF } #endif } + else if(type == LoginType.VKID) + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.VKIDLogin(); + } } /// @@ -167,6 +182,10 @@ namespace BF { BFMain.Instance.SDKMgr.BFNativeSDKMgr.GoogleLogout(); } + else if(type == LoginType.VKID) + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.VKIDLogout(); + } } /// @@ -266,6 +285,7 @@ namespace BF BFLog.Log(string.Format("json = {0}", json)); luaLoginCallback((int)result, json); + luaLoginCallback = null; } } @@ -489,5 +509,28 @@ namespace BF } } #endif + public void VKIDLoginComplete(bool succ, string msg) + { + if (succ) + { + LoginComplete(LoginType.VKID, ULoginResult.Success, msg); + } + else + { + LoginComplete(LoginType.VKID, ULoginResult.Failed, msg); + } + } + + public void VKIDLogoutComplete(bool succ) + { + if(succ) + { + LogoutComplete(LoginType.VKID, ULoginResult.Success, ""); + } + else + { + LogoutComplete(LoginType.VKID, ULoginResult.Failed, ""); + } + } } } diff --git a/Assets/Scripts/Common/SDK/BFNativeSDKManager.cs b/Assets/Scripts/Common/SDK/BFNativeSDKManager.cs index 782ba497b..d85725050 100644 --- a/Assets/Scripts/Common/SDK/BFNativeSDKManager.cs +++ b/Assets/Scripts/Common/SDK/BFNativeSDKManager.cs @@ -41,10 +41,55 @@ namespace BF public const int ADMOB_LOADED_FAILED = 21; public const int ADMOB_EARNED_REWARD = 22; public const int ADMOB_INITIALIZED = 23; + + public const int UMP_REQUEST_CONSENT_ERROR = 30; + public const int UMP_LOAD_AND_PRESENT_ERROR = 31; + public const int UMP_SUCCESS_CALLBACK = 32; + public const int UMP_PARALLEL_CALLBACK = 33; + + // 俄罗斯支付 + public const int RU_CHECK_VALID_SUCCESS = 40; + public const int RU_CHECK_VALID_FAILED = 41; + public const int RU_GET_PRODUCTS_SUCCESS = 42; + public const int RU_GET_PRODUCTS_FAILED = 43; + public const int RU_GET_PURCHASE_SUCCESS = 44; + public const int RU_GET_PURCHASE_FAILED = 45; + public const int RU_PURCHASE_SUCCESS = 46; + public const int RU_PURCHASE_FAILED = 47; + public const int RU_PURCHASE_CANCEL = 48; + public const int RU_CONSUME_SUCCESS = 49; + public const int RU_CONSUME_FAILED = 50; + // 俄罗斯商店好评 + public const int RU_STORE_REVIEW_REQUEST_SUCCESS = 51; + public const int RU_STORE_REVIEW_REQUEST_FAILED = 52; + public const int RU_STORE_REVIEW_LAUNCH_SUCCESS = 53; + public const int RU_STORE_REVIEW_LAUNCH_FAILED = 54; + public const int RU_VKID_LOGIN_SUCCESS = 55; + public const int RU_VKID_LOGIN_FAILED = 56; + public const int RU_VKID_LOGOUT_SUCCESS = 57; + public const int RU_VKID_LOGOUT_FAILED = 58; + // 华为支付 + public const int HW_CHECK_VALID_SUCCESS = 59; + public const int HW_CHECK_VALID_FAILED = 60; + public const int HW_GET_PRODUCTS_SUCCESS = 61; + public const int HW_GET_PRODUCTS_FAILED = 62; + public const int HW_GET_PURCHASE_SUCCESS = 63; + public const int HW_GET_PURCHASE_FAILED = 64; + public const int HW_PURCHASE_SUCCESS = 65; + public const int HW_PURCHASE_FAILED = 66; + public const int HW_PURCHASE_CANCEL = 67; + public const int HW_CONSUME_SUCCESS = 68; + public const int HW_CONSUME_FAILED = 69; + // 华为广告 + public const int HW_SHOWED_FULLSCREEN = 70; + public const int HW_FAILEDTO_SHOW_FULLSCREEN = 71; + public const int HW_LOADED = 72; + public const int HW_LOADED_FAILED = 73; + public const int HW_EARNED_REWARD = 74; } - public class BFNativeSDKManager : MonoBehaviour - { + public class BFNativeSDKManager : MonoBehaviour + { #if UNITY_ANDROID && !UNITY_EDITOR private static readonly AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.juzu.dz.third.GooglePlugin"); #endif @@ -57,7 +102,17 @@ namespace BF [DllImport("__Internal")] private static extern void FIRGetToken(IntPtr callback); + + [DllImport ("__Internal")] + private static extern void _OpenURL(string url); + + // [DllImport("__Internal")] + // private static extern void VKInit(string appId); + + // [DllImport("__Internal")] + // private static extern void VKLogin(); #endif + [Serializable] public class NativeResultMsg { @@ -86,26 +141,33 @@ namespace BF #endif } + public void InitGDPR() + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("initGDPR"); +#endif + } + public void GooglePay(string payType, string productId, string customMsg) - { + { #if UNITY_ANDROID && !UNITY_EDITOR androidJavaClass.CallStatic("pay", payType, productId, customMsg); #endif - } + } public void ConsumePurchase(string token) { #if UNITY_ANDROID && !UNITY_EDITOR androidJavaClass.CallStatic("consumeAsync", token); #endif - } + } public void GoogleLogin() - { + { #if UNITY_ANDROID && !UNITY_EDITOR androidJavaClass.CallStatic("login"); #endif - } + } public void GoogleLogout() { @@ -214,13 +276,315 @@ namespace BF #endif } + public bool IsPrivacyOptionsRequired() + { +#if UNITY_ANDROID && !UNITY_EDITOR + return androidJavaClass.CallStatic("isPrivacyOptionsRequired"); +#endif + return false; + } + + public void ShowPrivacyOptionsForm() + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("showPrivacyOptionsForm"); +#endif + } + + public void ResetGDPR() + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("resetGDPR"); +#endif + } + + public void OnUMPFinish(string stateStr) + { + int state = 0; + int.TryParse(stateStr, out state); + // 审核模式下,只有正常返回 触发ATT + if (BFMain.IsShenhe) + { + if (state == BFNativeSDKMessage.UMP_REQUEST_CONSENT_ERROR || state == BFNativeSDKMessage.UMP_LOAD_AND_PRESENT_ERROR || state == BFNativeSDKMessage.UMP_SUCCESS_CALLBACK) + { + BFMain.Instance.GameLaunchMgr.ShowIOSATTrack(); + } + } + else + { + BFMain.Instance.GameLaunchMgr.ShowIOSATTrack(); + } + BFUMPManager.OnUMPFinish(state); + } + + public string GetAppSignMD5() + { +#if UNITY_ANDROID && !UNITY_EDITOR + return androidJavaClass.CallStatic("getSign", "MD5"); +#endif + return string.Empty; + } + + public string GetAppSignSHA1() + { +#if UNITY_ANDROID && !UNITY_EDITOR + return androidJavaClass.CallStatic("getSign", "SHA1"); +#endif + return string.Empty; + } + + public string GetAppSignSHA256() + { +#if UNITY_ANDROID && !UNITY_EDITOR + return androidJavaClass.CallStatic("getSign", "SHA256"); +#endif + return string.Empty; + } + + public void RequestStoreReview() + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("requestStoreReview"); +#endif + +#if UNITY_IOS && !UNITY_EDITOR + UnityEngine.iOS.Device.RequestStoreReview(); +#endif + } + +#region 俄罗斯支付 + public void RuInit() + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("ruInit"); + #endif + + Debug.Log("C# call RUInit"); + } + + public void RuCheckValid() + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("ruCheckValid"); + #endif + + Debug.Log("C# call RuCheckValid"); + } + + public void RuGetProducts(string productJson, Action callback) + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("ruGetProducts", productJson); + #endif + + Debug.Log("C# call RUGetProducts"); + } + + public void RuGetPurchase() + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("ruGetPurchase"); + #endif + + Debug.Log("C# call RUGetPurchase"); + } + + public void RuPurchase(string productId, string customMsg) + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("ruPurchase", productId, customMsg); + #endif + + Debug.Log("C# call RUPurchase:" + productId); + } + + public void RuConsume(string purchaseId) + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("ruConsume", purchaseId); + #endif + + Debug.Log("C# call RUConsume:" + purchaseId); + } + + public void RuDelete(string purchaseId) + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("ruDelete", purchaseId); + #endif + + Debug.Log("C# call RUDelete:" + purchaseId); + } +#endregion + + public bool IsAndroidPkgInstalled(string pkgName) + { + bool isInstalled = false; + #if UNITY_ANDROID && !UNITY_EDITOR + isInstalled = androidJavaClass.CallStatic("checkInstalled", pkgName); + #endif + return isInstalled; + + Debug.Log("C# call RUDelete:" + pkgName + " isInstalled:" + isInstalled); + } + +#region 俄罗斯商店好评 + public void RuRequestStoreReview() + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("requestAndLaunchStoreReviewFlow"); + #endif + + Debug.Log("C# call RuRequestStoreReview"); + } +#endregion + +#region vk登录登出 + public void VKIDInit(string id) + { + if (BFPlatform.IsSupportVK()) + { +#if UNITY_IOS && !UNITY_EDITOR + // VKInit(id); +#endif + } + } + + public void VKIDLogout() + { + if (BFPlatform.IsSupportVK()) + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("vkidLogout"); +#endif + +#if UNITY_IOS && !UNITY_EDITOR + BFMain.Instance.SDKMgr.BFLoginSDKMgr.VKIDLogoutComplete(true); +#endif + } + } + + public void VKIDLogin() + { + if (BFPlatform.IsSupportVK()) + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("vkidLogin"); +#endif + +#if UNITY_IOS && !UNITY_EDITOR + // VKLogin(); +#endif + } + } + + public void IOSVKLoginCallBack(string code) + { + if (code.Equals("1")) + { + BFMain.Instance.SDKMgr.BFLoginSDKMgr.VKIDLoginComplete(false, code); + } + else + { + BFMain.Instance.SDKMgr.BFLoginSDKMgr.VKIDLoginComplete(true, code); + } + } +#endregion + + public void PayDukPay(string url) + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("payDukPay", url); +#endif + } + +#region 华为支付 + public void HWCheckValid() + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("hwCheckValid"); + #endif + + Debug.Log("C# call hwCheckValid"); + } + + public void HWGetProducts(string productJson, Action callback) + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("hwGetProducts", productJson); + #endif + + Debug.Log("C# call HWGetProducts"); + } + + public void HWGetPurchase() + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("hwGetPurchase"); + #endif + + Debug.Log("C# call HWGetPurchase"); + } + + public void HWPurchase(string productId, string customMsg) + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("hwPurchase", productId, customMsg); + #endif + + Debug.Log("C# call HWPurchase:" + productId); + } + + public void HWConsume(string productJson) + { + #if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("hwConsume", productJson); + #endif + + Debug.Log("C# call HWConsume:" + productJson); + } +#endregion + +#region 华为广告 + public void InitHWAdRewardedVideo() + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("initHWAdRewardedVideo"); +#endif + } + + public void ShowHWFullScreenAds() + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("showHWFullScreenAds"); +#endif + } + + public void TryLoadHWRewardedAd() + { +#if UNITY_ANDROID && !UNITY_EDITOR + androidJavaClass.CallStatic("tryLoadHWRewardedAd"); +#endif + } + + public void OpenUrl(string url) + { +#if UNITY_IOS && !UNITY_EDITOR + _OpenURL(url); +#else + Application.OpenURL(url); +#endif + } + +#endregion public void MsgFromAndroidOrIOS(string content) - { - var msgResult = JsonUtility.FromJson(content); + { + var msgResult = JsonUtility.FromJson(content); BFLog.Log(msgResult.body); int head = msgResult.head; - switch (head){ - case BFNativeSDKMessage.GOOGLE_LOGIN_SUCCESS: + switch (head) + { + case BFNativeSDKMessage.GOOGLE_LOGIN_SUCCESS: BFMain.Instance.SDKMgr.BFLoginSDKMgr.GoogleLoginComplete(true, msgResult.body); break; case BFNativeSDKMessage.GOOGLE_LOGIN_FAILED: @@ -289,9 +653,140 @@ namespace BF case BFNativeSDKMessage.ADMOB_INITIALIZED: // BFMain.Instance.SDKMgr.BFAdmobSDKMgr.AdInitialized = true; break; - default: - break; - } - } + + // 俄罗斯支付 + case BFNativeSDKMessage.RU_CHECK_VALID_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.CheckStoreValidComplete(true); + break; + case BFNativeSDKMessage.RU_CHECK_VALID_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.CheckStoreValidComplete(false); + break; + case BFNativeSDKMessage.RU_GET_PRODUCTS_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.QueryProductComplete(true, msgResult.body); + break; + case BFNativeSDKMessage.RU_GET_PRODUCTS_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.QueryProductComplete(false, msgResult.body); + break; + case BFNativeSDKMessage.RU_GET_PURCHASE_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.QueryUncompleteOrderFinish(msgResult.body); + break; + case BFNativeSDKMessage.RU_GET_PURCHASE_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.QueryUncompleteOrderFinish(msgResult.body); + break; + case BFNativeSDKMessage.RU_PURCHASE_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.PayComplete(0, msgResult.body); + break; + case BFNativeSDKMessage.RU_PURCHASE_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.PayComplete(1, msgResult.body); + break; + case BFNativeSDKMessage.RU_PURCHASE_CANCEL: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.PayComplete(2, msgResult.body); + break; + case BFNativeSDKMessage.RU_CONSUME_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.ConsumeComplete(0); + break; + case BFNativeSDKMessage.RU_CONSUME_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFRuPaySDKMgr.ConsumeComplete(1); + break; + case BFNativeSDKMessage.RU_STORE_REVIEW_REQUEST_SUCCESS: + // Debug.Log(msgResult.body); + break; + case BFNativeSDKMessage.RU_STORE_REVIEW_REQUEST_FAILED: + // Debug.Log(msgResult.body); + break; + case BFNativeSDKMessage.RU_STORE_REVIEW_LAUNCH_SUCCESS: + // Debug.Log(msgResult.body); + break; + case BFNativeSDKMessage.RU_STORE_REVIEW_LAUNCH_FAILED: + // Debug.Log(msgResult.body); + break; + case BFNativeSDKMessage.RU_VKID_LOGIN_SUCCESS: + BFMain.Instance.SDKMgr.BFLoginSDKMgr.VKIDLoginComplete(true, msgResult.body); + break; + case BFNativeSDKMessage.RU_VKID_LOGIN_FAILED: + BFMain.Instance.SDKMgr.BFLoginSDKMgr.VKIDLoginComplete(false, msgResult.body); + break; + case BFNativeSDKMessage.RU_VKID_LOGOUT_SUCCESS: + BFMain.Instance.SDKMgr.BFLoginSDKMgr.VKIDLogoutComplete(true); + break; + case BFNativeSDKMessage.RU_VKID_LOGOUT_FAILED: + BFMain.Instance.SDKMgr.BFLoginSDKMgr.VKIDLogoutComplete(false); + break; + // 华为支付 + case BFNativeSDKMessage.HW_CHECK_VALID_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.CheckStoreValidComplete(true); + break; + case BFNativeSDKMessage.HW_CHECK_VALID_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.CheckStoreValidComplete(false); + break; + case BFNativeSDKMessage.HW_GET_PRODUCTS_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.QueryProductComplete(true, msgResult.body); + break; + case BFNativeSDKMessage.HW_GET_PRODUCTS_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.QueryProductComplete(false, msgResult.body); + break; + case BFNativeSDKMessage.HW_GET_PURCHASE_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.QueryUncompleteOrderFinish(msgResult.body); + break; + case BFNativeSDKMessage.HW_GET_PURCHASE_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.QueryUncompleteOrderFinish(msgResult.body); + break; + case BFNativeSDKMessage.HW_PURCHASE_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.PayComplete(0, msgResult.body); + break; + case BFNativeSDKMessage.HW_PURCHASE_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.PayComplete(1, msgResult.body); + break; + case BFNativeSDKMessage.HW_PURCHASE_CANCEL: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.PayComplete(2, msgResult.body); + break; + case BFNativeSDKMessage.HW_CONSUME_SUCCESS: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.ConsumeComplete(0); + break; + case BFNativeSDKMessage.HW_CONSUME_FAILED: + // Debug.Log(msgResult.body); + BFMain.Instance.SDKMgr.BFHWPaySDKMgr.ConsumeComplete(1); + break; + // 华为广告 + case BFNativeSDKMessage.HW_SHOWED_FULLSCREEN: + // BFMain.Instance.SDKMgr.BFHWAdSDKMgr.ShowFullScreenAdFinish(0); + break; + case BFNativeSDKMessage.HW_FAILEDTO_SHOW_FULLSCREEN: + // BFMain.Instance.SDKMgr.BFHWAdSDKMgr.ShowFullScreenAdFinish(1); + break; + case BFNativeSDKMessage.HW_LOADED: + // BFMain.Instance.SDKMgr.BFHWAdSDKMgr.AdLoadedFinish(0); + break; + case BFNativeSDKMessage.HW_LOADED_FAILED: + // BFMain.Instance.SDKMgr.BFHWAdSDKMgr.AdLoadedFinish(1); + break; + case BFNativeSDKMessage.HW_EARNED_REWARD: + // BFMain.Instance.SDKMgr.BFHWAdSDKMgr.EarnedRewardFinish(0, msgResult.body); + break; + default: + break; + } + } } } \ No newline at end of file diff --git a/Assets/Scripts/Common/SDK/BFPaySDKManager.cs b/Assets/Scripts/Common/SDK/BFPaySDKManager.cs index 700db2906..b7f81f1b2 100644 --- a/Assets/Scripts/Common/SDK/BFPaySDKManager.cs +++ b/Assets/Scripts/Common/SDK/BFPaySDKManager.cs @@ -20,6 +20,12 @@ namespace BF void Start() { + // 俄罗斯渠道不使用google + if (BFPlatform.IsSupportRuPay()) + { + return; + } + Init(); } diff --git a/Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs b/Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs new file mode 100644 index 000000000..74f11213c --- /dev/null +++ b/Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs @@ -0,0 +1,121 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace BF +{ + public class BFRuPaySDKManager : MonoBehaviour + { + public Action luaPayCallback; + public Action luaQueryProductCallback; + public Action luaQueryUncompleteOrderCallback; + public Action luaConsumeCallback; + public bool StoreValid { get; private set; } + private string ProductJson; + + void Start() + { + // 俄罗斯渠道专用支付 + if (!BFPlatform.IsSupportRuPay()) + { + return; + } + + // 临时屏蔽俄罗斯支付 + if (BFPlatform.Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU) + { + return; + } + + Init(); + CheckStoreValid(); + } + + // 初始化 + public void Init() + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.RuInit(); + } + + // 检测支付可用性 + public void CheckStoreValid() + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.RuCheckValid(); + } + + public void CheckStoreValidComplete(bool success) + { + StoreValid = success; + } + + // 请求全部商品信息 + public void QueryProductInfo(string productJson, Action callback) + { + luaQueryProductCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.RuGetProducts(productJson, callback); + } + + public void QueryProductComplete(bool succ, string result) + { + int code = succ?0:1; + if(luaQueryProductCallback != null) + { + Action tempLuaQueryProductCallback = luaQueryProductCallback; + luaQueryProductCallback = null; + tempLuaQueryProductCallback(code, result); + ProductJson = string.Empty; + } + } + + // 支付 + public void Pay(string payType, string productId, string customMsg, Action callback) + { + luaPayCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.RuPurchase(productId, customMsg); + } + + public void PayComplete(int code, string result) + { + // 优先当前支付的回调 + if(luaPayCallback != null) + { + luaPayCallback(code, result); + luaPayCallback = null; + } + } + + // 消耗 + public void ConsumePurchase(string token, Action callback) + { + luaConsumeCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.RuConsume(token); + } + + public void ConsumeComplete(int code) + { + if (luaConsumeCallback != null) + { + luaConsumeCallback(code); + luaConsumeCallback = null; + } + } + + // 查询未完成订单 + public void QueryUncompleteOrder(Action callback) + { + luaQueryUncompleteOrderCallback = callback; + BFMain.Instance.SDKMgr.BFNativeSDKMgr.RuGetPurchase(); + } + + public void QueryUncompleteOrderFinish(string result) + { + if(luaQueryUncompleteOrderCallback != null) + { + Action tempLuaQueryUncompleteOrderCallback = luaQueryUncompleteOrderCallback; + luaQueryUncompleteOrderCallback = null; + tempLuaQueryUncompleteOrderCallback(0, result); + } + } + } +} diff --git a/Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs.meta b/Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs.meta new file mode 100644 index 000000000..810edeb09 --- /dev/null +++ b/Assets/Scripts/Common/SDK/BFRuPaySDKManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a060c3107f223a84ba065e7134d0aff8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Common/SDK/BFThirdReportSDKManager.cs b/Assets/Scripts/Common/SDK/BFThirdReportSDKManager.cs index 93f9ce765..af555bb73 100644 --- a/Assets/Scripts/Common/SDK/BFThirdReportSDKManager.cs +++ b/Assets/Scripts/Common/SDK/BFThirdReportSDKManager.cs @@ -2,17 +2,14 @@ using UnityEngine; using BF.NativeCore.ThirdPlatform; using Newtonsoft.Json; -using com.adjust.sdk; using AppsFlyerSDK; namespace BF { public class BFThirdReportSDKManager : MonoBehaviour { - // private ThinkingAnalyticsSdk TASdk = new ThinkingAnalyticsSdk(); - // private AppsFlyerSdk AFSdk = new AppsFlyerSdk(); - // private bool isInitAFAdRevenue = false; - + private ThinkingAnalyticsSdk TASdk = new ThinkingAnalyticsSdk(); + private AppsFlyerSdk AFSdk = new AppsFlyerSdk(); void Start() { Init(); @@ -21,147 +18,123 @@ namespace BF public void Init() { BFLog.Log("TASdk.Init"); - // TASdk.Init(); - // AFSdk.Init(); + TASdk.Init(); + AFSdk.Init(); } // 设置账户id public void SetThinkingAnalyticsAccountId(string id) { - // TASdk.SetAccountId(id); - // AFSdk.SetTaAccountId(id); + TASdk.SetAccountId(id); + AFSdk.SetTaAccountId(id); } - public void InitAppsFlyerAdRevenue() + public void CalibrateTime(long timestamp) { - // if (isInitAFAdRevenue) - // { - // return; - // } - // isInitAFAdRevenue = true; - // AppsFlyerAdRevenue.start(); + TASdk.CalibrateTime(timestamp); } // 清除账户id public void ClearThinkingAnalyticsAccountId() { - // TASdk.ClearAccountId(); + TASdk.ClearAccountId(); + } + + public string GetAFConversionData() + { + return AppsFlyerObjectScript.AFConversionData; + } + + public bool IsGetConversionDataOver() + { + return AppsFlyerObjectScript.IsGetConversionDataOver; + } + + public string GetAFAttributionData() + { + return AppsFlyerObjectScript.AFAttributionData; + } + + public bool IsGetAppOpenAttributionOver() + { + return AppsFlyerObjectScript.IsGetAppOpenAttributionOver; + } + + public bool IsGetAFOnRequestResponse() + { + return AppsFlyerObjectScript.IsGetAFOnRequestResponse; + } + + public int GetAFOnRequestResponseStatusCode() + { + return AppsFlyerObjectScript.AFOnRequestResponseStatusCode; + } + + public string GetAFOnRequestResponseErrorDescription() + { + return AppsFlyerObjectScript.AFOnRequestResponseErrorDescription; } // 数数科技上报 // lua端使用 public void PostThinkingAnalyticsEvent(string eventName, string data = "") { - // if (string.IsNullOrEmpty(data)) - // { - // TASdk.Track(eventName, null); - // } - // else - // { - // var properties = JsonConvert.DeserializeObject>(data); - // TASdk.Track(eventName, properties); - // } + if (string.IsNullOrEmpty(data)) + { + TASdk.Track(eventName, null); + } + else + { + var properties = JsonConvert.DeserializeObject>(data); + TASdk.Track(eventName, properties); + } } // 数数科技上报 // c#端使用,只上报事件名 public void PostThinkingAnalyticsEventName(string eventName) { - // TASdk.Track(eventName, null); + TASdk.Track(eventName, null); } // 数数科技上报 // c#端使用,上报事件名和参数 public void PostThinkingAnalyticsEventProperties(string eventName, Dictionary properties) { - // TASdk.Track(eventName, properties); + TASdk.Track(eventName, properties); } public void PostAppsflyerEvent(string eventName, string data = "") { - // if (string.IsNullOrEmpty(data)) - // { - // AFSdk.SendEvent(eventName, null); - // } - // else - // { - // var properties = JsonConvert.DeserializeObject>(data); - // AFSdk.SendEvent(eventName, properties); - // } + if (string.IsNullOrEmpty(data)) + { + AFSdk.SendEvent(eventName, null); + } + else + { + var properties = JsonConvert.DeserializeObject>(data); + AFSdk.SendEvent(eventName, properties); + } } public void PostFireBaseEvent(string eventName, string data = "") { - // if (string.IsNullOrEmpty(data)) - // { - // return; - // } - // else - // { - // BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data); - // } - } - - // 设置账户id - public void PostAdjustSimpleTrackEvent(string key) - { - // AdjustEvent adjustEvent = new AdjustEvent(key); - // // BFLog.Log("PostAdjustSimpleTrackEvent"); - // Adjust.trackEvent(adjustEvent); - } - - public void PostAdjustRevenueTrackEvent(string key, double currency, string currencyCode) - { - // AdjustEvent adjustEvent = new AdjustEvent(key); - // adjustEvent.setRevenue(currency, currencyCode); - // // BFLog.Log("PostAdjustRevenueTrackEvent"); - // Adjust.trackEvent(adjustEvent); - } - - public void PostAdjustCallbackTrackEvent(string key, string data = "") - { - // var properties = JsonConvert.DeserializeObject>(data); - // AdjustEvent adjustEvent = new AdjustEvent(key); - // foreach (var item in properties) - // { - // adjustEvent.addCallbackParameter(item.Key, item.Value); - // } - // // BFLog.Log("PostAdjustCallbackTrackEvent"); - // Adjust.trackEvent(adjustEvent); - } - - public void PostAdjustPartnerTrackEvent(string key, string data = "") - { - // var properties = JsonConvert.DeserializeObject>(data); - // AdjustEvent adjustEvent = new AdjustEvent(key); - // foreach (var item in properties) - // { - // adjustEvent.addPartnerParameter(item.Key, item.Value); - // } - // // BFLog.Log("PostAdjustPartnerTrackEvent"); - // Adjust.trackEvent(adjustEvent); - } - - public void PostAdjustAdRevenueAppLovinMAX(double revenue, string networkName, string adUnitIdentifier, string placement) - { - // var adRevenue = new AdjustAdRevenue(AdjustConfig.AdjustAdRevenueSourceAppLovinMAX); - // adRevenue.setRevenue(revenue, "USD"); - // adRevenue.setAdRevenueNetwork(networkName); - // adRevenue.setAdRevenueUnit(adUnitIdentifier); - // adRevenue.setAdRevenuePlacement(placement); - // Adjust.trackAdRevenue(adRevenue); - } - - public void AdjustSetDeviceToken(string token) - { - // Adjust.setDeviceToken(token); + if (string.IsNullOrEmpty(data)) + { + return; + } + else + { + BFMain.Instance.SDKMgr.BFNativeSDKMgr.LogEvent(eventName, data); + } } public void LogAppsFlyerAdRevenue(int mediationNetwork, string monetizationNetwork, double eventRevenue, string data) { - // var properties = JsonConvert.DeserializeObject>(data); - // var mediationNetworkType = (AppsFlyerAdRevenueMediationNetworkType)mediationNetwork; - // AppsFlyerAdRevenue.logAdRevenue(monetizationNetwork, mediationNetworkType, eventRevenue, "USD", properties); + var properties = JsonConvert.DeserializeObject>(data); + var mediationNetworkType = (AppsFlyerSDK.MediationNetwork)mediationNetwork; + var adRevenueData = new AFAdRevenueData(monetizationNetwork, mediationNetworkType, "USD", eventRevenue); + AFSdk.LogAdRevenue(adRevenueData, properties); } } } diff --git a/Assets/Scripts/Common/SDK/BFUMPManager.cs b/Assets/Scripts/Common/SDK/BFUMPManager.cs new file mode 100644 index 000000000..908f03f88 --- /dev/null +++ b/Assets/Scripts/Common/SDK/BFUMPManager.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using System.Runtime.InteropServices; +namespace BF +{ + public class BFUMPManager + { +#if UNITY_IOS + #region GDPR + [DllImport("__Internal")] + private static extern void _MaxInitGDPR(); + + public static void InitGDPR() + { + _MaxInitGDPR(); + } + + [DllImport("__Internal")] + private static extern bool _MaxCheckIsGDPR(); + + public static bool IsPrivacyOptionsRequired() + { + return _MaxCheckIsGDPR(); + } + + [DllImport("__Internal")] + private static extern void _MaxShowGDRP(); + + public static void ShowPrivacyOptionsForm() + { + _MaxShowGDRP(); + } + + [DllImport("__Internal")] + private static extern bool _MaxCheckCanRequestAds(); + + public static bool CheckCanRequestAds() + { + return _MaxCheckCanRequestAds(); + } + #endregion +#endif + public static Action luaCallback; + public static bool IsUMPFinish = false; + public static int UMPState = 0; + public static void OnUMPFinish(int state) + { + UMPState = state; + // 审核模式下,只有正常返回,lua 回调 + if (BFMain.IsShenhe) + { + if (state == BFNativeSDKMessage.UMP_REQUEST_CONSENT_ERROR || state == BFNativeSDKMessage.UMP_LOAD_AND_PRESENT_ERROR || state == BFNativeSDKMessage.UMP_SUCCESS_CALLBACK) + { + IsUMPFinish = true; + if (luaCallback != null) + { + luaCallback(); + } + } + } + else + { + IsUMPFinish = true; + if (luaCallback != null) + { + luaCallback(); + } + } + } + + public static void AddLuaCallback(Action callback) + { + luaCallback = callback; + } + + public static void RemoveLuaCallback() + { + luaCallback = null; + } + } +} diff --git a/Assets/Scripts/Common/SDK/BFUMPManager.cs.meta b/Assets/Scripts/Common/SDK/BFUMPManager.cs.meta new file mode 100644 index 000000000..ff354fcd7 --- /dev/null +++ b/Assets/Scripts/Common/SDK/BFUMPManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dcd13bfb23f7be948a1b084f3581e493 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Common/SDK/DZSDKManager.cs.meta b/Assets/Scripts/Common/SDK/DZSDKManager.cs.meta index bcf899ee4..26a276329 100644 --- a/Assets/Scripts/Common/SDK/DZSDKManager.cs.meta +++ b/Assets/Scripts/Common/SDK/DZSDKManager.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ced1766fcb78b314db1ae240a0e27a9f +guid: 69c854ae7d148be429e876656d170acd MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/Common/SDK/IAPManager.cs b/Assets/Scripts/Common/SDK/IAPManager.cs index 5a1130227..df9213c03 100644 --- a/Assets/Scripts/Common/SDK/IAPManager.cs +++ b/Assets/Scripts/Common/SDK/IAPManager.cs @@ -99,6 +99,7 @@ public class IAPManager : /* MonoBehaviour, */ IDetailedStoreListener { IAPDebug($"ID:{productId}.Not found or is not available for purchase"); return false; } + _storeC.InitiatePurchase(productId, payload); return true; } @@ -117,17 +118,17 @@ public class IAPManager : /* MonoBehaviour, */ IDetailedStoreListener { //购买成功 public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs e) { -#if UNITY_EDITOR - bool isValid = true; -#else - _localChecking (e.purchasedProduct, out bool isValid); -#endif - if (!isValid) buyCallback?.Invoke(false, e.purchasedProduct, "本地验证失败"); - else { - _appsFlyerChecking(e.purchasedProduct); +// #if UNITY_EDITOR +// bool isValid = true; +// #else +// _localChecking (e.purchasedProduct, out bool isValid); +// #endif +// if (!isValid) buyCallback?.Invoke(false, e.purchasedProduct, "本地验证失败"); +// else { + // _appsFlyerChecking(e.purchasedProduct); IAPDebug($"ID:{e.purchasedProduct.definition.id}. purchase success"); buyCallback?.Invoke(true, e.purchasedProduct, string.Empty); - } + // } return PurchaseProcessingResult.Pending; } @@ -206,6 +207,7 @@ public class IAPManager : /* MonoBehaviour, */ IDetailedStoreListener { private void _appsFlyerChecking(Product product) { IAPDebug($"CURRENCY:{product.metadata.isoCurrencyCode} REVENUE:{product.metadata.localizedPrice.ToString()} CONTENT_TYPE:{product.transactionID} CONTENT_ID:{product.definition.id}"); + // Dictionary da = new Dictionary { // { AFInAppEventParameterName.CURRENCY, product.metadata.isoCurrencyCode }, // { AFInAppEventParameterName.REVENUE, product.metadata.localizedPrice.ToString() }, @@ -218,6 +220,7 @@ public class IAPManager : /* MonoBehaviour, */ IDetailedStoreListener { // #endif } #endregion + #region ================================================== 订阅 ================================================== @@ -321,6 +324,20 @@ public class IAPManager : /* MonoBehaviour, */ IDetailedStoreListener { // return ""; } + //IOS专用 传入uuid类型的透传参数 用于校验订单 + public void SetApplicationUsername(string applicationUsername) + { +#if UNITY_IOS + if (!IsInitialized()) { + IAPDebug("SetApplicationUsername FAIL. Not init."); + return; + } + + IAppleExtensions apple = _storeE.GetExtension(); + apple.SetApplicationUsername(applicationUsername); +#endif + } + #region ================================================== 原价 ================================================== /// @@ -379,6 +396,29 @@ public class IAPManager : /* MonoBehaviour, */ IDetailedStoreListener { return product.metadata.localizedPriceString; } + public string GetLocalizedIsoCurrencyCode(string productId) + { + if (!IsInitialized()) { + IAPDebug($"ID:{productId}. Not init."); + return "USD"; + }; + Product product = _storeC.products.WithID (productId); + return product.metadata.isoCurrencyCode; + } + + public double GetLocalizedPriceAmount(string productId) + { + if (!IsInitialized()) + { + IAPDebug($"ID:{productId}. Not init."); + return 0.0; + } + ; + Product product = _storeC.products.WithID(productId); + double price = Decimal.ToDouble(product.metadata.localizedPrice); + return price; + } + private void IAPDebug(string mes) { UnityEngine.Debug.Log($"IAPManager {mes}"); } diff --git a/Assets/Scripts/Common/SDK/NativeCore/Platform/NativeUtils.Ios.cs b/Assets/Scripts/Common/SDK/NativeCore/Platform/NativeUtils.Ios.cs index c9ef79226..7f77ee43d 100644 --- a/Assets/Scripts/Common/SDK/NativeCore/Platform/NativeUtils.Ios.cs +++ b/Assets/Scripts/Common/SDK/NativeCore/Platform/NativeUtils.Ios.cs @@ -1,5 +1,6 @@ using UnityEngine; #if UNITY_IOS && !UNITY_EDITOR +using System; using System.Runtime.InteropServices; #endif @@ -106,9 +107,15 @@ namespace BF }; } + [DllImport("__Internal")] + private static extern IntPtr GetAllPossibleTimeZoneIdentifiers(); + public static string GetTimeZone() { - return "Asia/Shanghai"; + // return "Asia/Shanghai"; + IntPtr ptr = GetAllPossibleTimeZoneIdentifiers(); + string msg = Marshal.PtrToStringUTF8(ptr); + return msg; } [DllImport("__Internal")] diff --git a/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/AppsFlyerSdk.cs b/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/AppsFlyerSdk.cs index 5e15c8f4f..56044e9f3 100644 --- a/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/AppsFlyerSdk.cs +++ b/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/AppsFlyerSdk.cs @@ -21,6 +21,11 @@ namespace BF.NativeCore.ThirdPlatform AppsFlyer.sendEvent(eventName, properties); } + public void LogAdRevenue(AFAdRevenueData adRevenueData, Dictionary additionalParameters) + { + AppsFlyer.logAdRevenue(adRevenueData, additionalParameters); + } + public void SetTaAccountId(string accountId) { var customData = new Dictionary(); diff --git a/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/ThinkingAnalytics.cs b/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/ThinkingAnalytics.cs index ff889191b..c187f29a3 100644 --- a/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/ThinkingAnalytics.cs +++ b/Assets/Scripts/Common/SDK/NativeCore/ThirdPlatform/ThinkingAnalytics.cs @@ -45,5 +45,10 @@ namespace BF.NativeCore.ThirdPlatform { return ThinkingAnalyticsAPI.GetDistinctId(); } + + public void CalibrateTime(long timestamp) + { + ThinkingAnalyticsAPI.CalibrateTime(timestamp); + } } } diff --git a/Assets/Scripts/Common/SDK/NativeCore/Ulogin/LoginType.cs b/Assets/Scripts/Common/SDK/NativeCore/Ulogin/LoginType.cs index c635f2537..7eed3d1d6 100644 --- a/Assets/Scripts/Common/SDK/NativeCore/Ulogin/LoginType.cs +++ b/Assets/Scripts/Common/SDK/NativeCore/Ulogin/LoginType.cs @@ -11,5 +11,6 @@ namespace BF.NativeCore // QQ, // WeChat, Apple, + VKID, } } \ No newline at end of file diff --git a/Assets/Scripts/Common/SDK/NotificationSDKManager.cs b/Assets/Scripts/Common/SDK/NotificationSDKManager.cs new file mode 100644 index 000000000..44e6d4f35 --- /dev/null +++ b/Assets/Scripts/Common/SDK/NotificationSDKManager.cs @@ -0,0 +1,168 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +#if UNITY_ANDROID + using Unity.Notifications.Android; +#elif UNITY_IOS + using Unity.Notifications.iOS; +#endif + +namespace BF +{ + public class NotificationInfo + { + public string title; + public string text; + public int day; + public int hour; + public int minute; + public int second; + public bool repeat; + } + + public class NotificationSDKManager : MonoBehaviour + { + private int NotificationId = 1; + private string NotificationTitle = "Daily surprise"; + private string NotificationContent = "Let your fingers dance with the music"; + private bool isOpenAppFromNotification = false; + void Start() + { + Init(); + } + + public void Init() + { + // 检查一下app是从推送点开还是正常打开的 +#if UNITY_ANDROID + var notificationIntentData = AndroidNotificationCenter.GetLastNotificationIntent(); + if (notificationIntentData != null) + { + isOpenAppFromNotification = true; + } + else + { + isOpenAppFromNotification = false; + } +#elif UNITY_IOS + var notification = iOSNotificationCenter.GetLastRespondedNotification(); + if (notification != null) + { + isOpenAppFromNotification = true; + } + else + { + isOpenAppFromNotification = false; + } +#else + isOpenAppFromNotification = false; +#endif + } + + public void InitPuchContent(string title, string content) + { + NotificationTitle = title; + NotificationContent = content; + } + + //重置推送 + public void ResetNotificationChannel() + { +#if UNITY_ANDROID + NotificationId = 1; + AndroidNotificationCenter.CancelAllNotifications();//清除上次注册的通知 + var channel = new AndroidNotificationChannel() + { + Id = "channel_id", + Name = "Default Channel", + Importance = Importance.High, + Description = "Generic notifications", + CanShowBadge = false, + EnableLights = true, + LockScreenVisibility = LockScreenVisibility.Public + }; + + AndroidNotificationCenter.RegisterNotificationChannel(channel); +#elif UNITY_IOS + NotificationId = 1; + iOSNotificationCenter.ApplicationBadge = 0; + iOSNotificationCenter.RemoveAllDeliveredNotifications(); + iOSNotificationCenter.RemoveAllScheduledNotifications(); +#endif + } + + /// + /// 注册通知 + /// + public void RegisterAndSendNotification(string title, string text, int day, int hour, int minute, int second, bool repeat) + { + var notificationInfo = new NotificationInfo() + { + title = title, + text = text, + day = day, + hour = hour, + minute = minute, + second = second, + repeat = repeat + }; + SendNotification(notificationInfo); + } + + private void SendNotification(NotificationInfo notificationInfo) + { +#if UNITY_ANDROID + var time = GetNotificationTime(notificationInfo); + var notification = new AndroidNotification() + { + Title = notificationInfo.title, + Text = notificationInfo.text, + FireTime = time, + }; + AndroidNotificationCenter.SendNotification(notification, "channel_id"); +#elif UNITY_IOS + var time = GetNotificationTime(notificationInfo); + var daySpan = new TimeSpan(notificationInfo.day, notificationInfo.hour, notificationInfo.minute, notificationInfo.second); + var timeTrigger = new iOSNotificationTimeIntervalTrigger() + { + TimeInterval = daySpan, + Repeats = notificationInfo.repeat + }; + + var notification = new iOSNotification() + { + Identifier = "_notification_"+ NotificationId, + Title = notificationInfo.title, + Body = notificationInfo.text, + Badge = 0, + ShowInForeground = true, + ForegroundPresentationOption = (PresentationOption.Alert | PresentationOption.Sound), + CategoryIdentifier = "category_a", + ThreadIdentifier = "thread1", + Trigger = timeTrigger, + }; + NotificationId++; + iOSNotificationCenter.ScheduleNotification(notification); +#endif + } + + /// + /// 得到注册通知的时间 + /// + /// + public DateTime GetNotificationTime(NotificationInfo notificationInfo) + { + var daySpan = new TimeSpan(notificationInfo.day, notificationInfo.hour, notificationInfo.minute, notificationInfo.second); + var dateTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second); + dateTime += daySpan; + // Debug.Log("GetNotificationTime 发出通知时间 : " + dateTime); + return dateTime; + } + + public bool GetIsOpenAppFromNotification() + { + return isOpenAppFromNotification; + } + + } +} diff --git a/Assets/Scripts/Common/SDK/NotificationSDKManager.cs.meta b/Assets/Scripts/Common/SDK/NotificationSDKManager.cs.meta new file mode 100644 index 000000000..fb1346a02 --- /dev/null +++ b/Assets/Scripts/Common/SDK/NotificationSDKManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7fc2af03d1d06764db81724e32bcb026 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Common/SDK/ParseClient/BFParseClientManager.cs b/Assets/Scripts/Common/SDK/ParseClient/BFParseClientManager.cs index 67a288a4e..7af080e4a 100644 --- a/Assets/Scripts/Common/SDK/ParseClient/BFParseClientManager.cs +++ b/Assets/Scripts/Common/SDK/ParseClient/BFParseClientManager.cs @@ -33,22 +33,24 @@ namespace BF HttpManager.Instance.SetServerUrl("http://game.juzugame.com:1337/parse/"); HttpManager.Instance.SetParseRevocableSession("1"); HttpManager.Instance.SetParseApplicationId("1"); - HttpManager.Instance.SetParseClientKey("1kYT4UrExyQ0gaFh"); + HttpManager.Instance.SetParseClientKey("iQ8NRClxjSAVOc4p"); #else - // HttpManager.Instance.SetServerUrl("http://34.233.204.253:1337/parse/"); - // HttpManager.Instance.SetParseRevocableSession("1"); - // HttpManager.Instance.SetParseApplicationId("1"); - // HttpManager.Instance.SetParseClientKey("1kYT4UrExyQ0gaFh"); - HttpManager.Instance.SetServerUrl("https://b2.bigfoot-studio.link/parse/"); + HttpManager.Instance.SetServerUrl("https://b9.bigfoot-studio.link/parse/"); HttpManager.Instance.SetParseRevocableSession("1"); - HttpManager.Instance.SetParseApplicationId("101"); - HttpManager.Instance.SetParseClientKey("Xxl3j5TBIn4ArY1m"); + HttpManager.Instance.SetParseApplicationId("1"); + HttpManager.Instance.SetParseClientKey("iQ8NRClxjSAVOc4p"); + // HttpManager.Instance.SetServerUrl("https://b9.bigfoot-studio.link/parse/"); + // HttpManager.Instance.SetParseRevocableSession("1"); + // HttpManager.Instance.SetParseApplicationId("101"); + // HttpManager.Instance.SetParseClientKey("Xxl3j5TBIn4ArY1m"); #endif } - public void SetServerUrl(string url, string psarseRevocableSession = "1", string parseApplicationId = "1", string parseClientKey = "1kYT4UrExyQ0gaFh") + public void SetServerUrl(string url, string parseClientPlatform, string parseClientVersion, string psarseRevocableSession = "1", string parseApplicationId = "1", string parseClientKey = "iQ8NRClxjSAVOc4p") { HttpManager.Instance.SetServerUrl(url); + HttpManager.Instance.SetParseClientPlatform(parseClientPlatform); + HttpManager.Instance.SetParseClientVersion(parseClientVersion); HttpManager.Instance.SetParseRevocableSession(psarseRevocableSession); HttpManager.Instance.SetParseApplicationId(parseApplicationId); HttpManager.Instance.SetParseClientKey(parseClientKey); diff --git a/Assets/Scripts/Common/SDK/ParseClient/Http/HttpManager.cs b/Assets/Scripts/Common/SDK/ParseClient/Http/HttpManager.cs index 838c64fb2..036baf18f 100644 --- a/Assets/Scripts/Common/SDK/ParseClient/Http/HttpManager.cs +++ b/Assets/Scripts/Common/SDK/ParseClient/Http/HttpManager.cs @@ -33,6 +33,8 @@ namespace Http internal string _parseRevocableSession = string.Empty; private string _parseApplicationId = string.Empty; private string _parseClientKey = string.Empty; + private string _parseClientPlatform = string.Empty; + private string _parseClientVersion = string.Empty; #region set get @@ -41,6 +43,8 @@ namespace Http public void SetParseRevocableSession(string key) => _parseRevocableSession = key; public void SetParseApplicationId(string appId) => _parseApplicationId = appId; public void SetParseClientKey(string key) => _parseClientKey = key; + public void SetParseClientPlatform(string key) => _parseClientPlatform = key; + public void SetParseClientVersion(string key) => _parseClientVersion = key; public SingleHttp Get(string id) => !_requests.TryGetValue(id, out var httpInfo) ? null : httpInfo.Http; @@ -57,8 +61,10 @@ namespace Http Complete = complete, }); - http.AddHeader("X-Parse-Application-Id", _parseApplicationId) - .AddHeader("X-Parse-Client-Key", _parseClientKey); + http.AddHeader("X-Parse-Application-id", _parseApplicationId) + .AddHeader("X-Parse-Client-Key", _parseClientKey) + .AddHeader("platform", _parseClientPlatform) + .AddHeader("version", _parseClientVersion); return http; } @@ -124,7 +130,10 @@ namespace Http public static void AddRevocableSession(this SingleHttp self) { - self.AddHeader("X-Parse-Revocable-Session", HttpManager.Instance._parseRevocableSession); + if (!string.IsNullOrEmpty(HttpManager.Instance._parseRevocableSession)) + { + self.AddHeader("X-Parse-Revocable-Session", HttpManager.Instance._parseRevocableSession); + } } } } \ No newline at end of file diff --git a/Assets/Scripts/Common/SDK/ParseClient/Http/SingleHttp.cs b/Assets/Scripts/Common/SDK/ParseClient/Http/SingleHttp.cs index 2ea6df401..a399429de 100644 --- a/Assets/Scripts/Common/SDK/ParseClient/Http/SingleHttp.cs +++ b/Assets/Scripts/Common/SDK/ParseClient/Http/SingleHttp.cs @@ -9,9 +9,7 @@ namespace Http { Success, Aborted, - Fail, - ConnectionTimedOut, - TimedOut + Fail } public class ResultInfo @@ -48,7 +46,7 @@ namespace Http Type = HTTPMethods.Get; CustomTimeout = 100f; - _isKeepAlive = true; + _isKeepAlive = false; _disableCache = true; _timeout = 60d; _connectTimeout = 20d; @@ -194,7 +192,7 @@ namespace Http } else HttpDebug.LogError($"Server sent Error:{resp.StatusCode}-{resp.Message}-{resp.DataAsText}"); break; - // 请求已完成,但出现意外错误。 + // 请求已完成,但出现意外错误。 case HTTPRequestStates.Error: if(req.Exception != null) HttpDebug.LogError($"Request.Exception \n {req.Exception.StackTrace}"); else HttpDebug.LogError("Request.Exception: No Exception"); @@ -206,12 +204,10 @@ namespace Http break; // 连接到服务器超时 case HTTPRequestStates.ConnectionTimedOut: - state = RequestState.ConnectionTimedOut; HttpDebug.LogError("Connection Timed Out!"); break; // 请求没有在给定时间内完成 case HTTPRequestStates.TimedOut: - state = RequestState.TimedOut; HttpDebug.LogError("Processing the request Timed Out!"); break; default: diff --git a/Assets/Scripts/Common/SDK/SDKManager.cs b/Assets/Scripts/Common/SDK/SDKManager.cs index d06f31c1d..d1e718e6c 100644 --- a/Assets/Scripts/Common/SDK/SDKManager.cs +++ b/Assets/Scripts/Common/SDK/SDKManager.cs @@ -60,11 +60,16 @@ namespace BF //新版本登陆,支付,第三方辅助SDK public BFLoginSDKManager BFLoginSDKMgr { get; private set; } public BFPaySDKManager BFPaySDKMgr { get; private set; } + public BFRuPaySDKManager BFRuPaySDKMgr { get; private set; } + public BFHWPaySDKManager BFHWPaySDKMgr { get; private set; } public IAPManager IosPaySDKMgr { get; private set; } // public BFAdmobSDKManager BFAdmobSDKMgr { get; private set; } // public BFIronSourceSDKManager BFIronSourceSDKMgr { get; private set; } + // public BFHWAdSDKManager BFHWAdSDKMgr { get; private set; } public BFNativeSDKManager BFNativeSDKMgr { get; private set; } public BFThirdReportSDKManager BFThirdReportSDKMgr { get; private set; } + public NotificationSDKManager NotificationSDKMgr { get; private set; } + public DeepLinkManager DeepLinkMgr { get; private set; } static SDKManager instance; public static SDKManager Create() @@ -85,20 +90,46 @@ namespace BF { sdkGo = new GameObject("SDKManager"); } + // Deeplink + DeepLinkMgr = sdkGo.AddComponent(); + // native交互管理,需要最先初始化,其他地方可能要调用此类里面的方法 + BFNativeSDKMgr = sdkGo.AddComponent(); // 登陆 BFLoginSDKMgr = sdkGo.AddComponent(); // 支付 BFPaySDKMgr = sdkGo.AddComponent(); + BFRuPaySDKMgr = sdkGo.AddComponent(); + BFHWPaySDKMgr = sdkGo.AddComponent(); // 广告 // BFAdmobSDKMgr = sdkGo.AddComponent(); // BFIronSourceSDKMgr = sdkGo.AddComponent(); - // // 三方上报 + // 三方上报 BFThirdReportSDKMgr = sdkGo.AddComponent(); - // native交互管理 - BFNativeSDKMgr = sdkGo.AddComponent(); - // IosPaySDKMgr = IAPManager.Instance; - + IosPaySDKMgr = IAPManager.Instance; + // MAX SDK安卓在这里主动初始化,IOS版会在ATT弹窗后初始化 +#if UNITY_ANDROID && !UNITY_EDITOR + AdManager.Instance.Init(); +#endif + // 华为广告 + // BFHWAdSDKMgr = sdkGo.AddComponent(); + // 本地推送 + // NotificationSDKMgr = sdkGo.AddComponent(); GameObject.DontDestroyOnLoad(sdkGo); + +#if UNITY_IOS || UNITY_IPHONE + // BFUMPManager.InitGDPR(); + // 这里不显示GDPR就直接显示ATT,如果GDPR要显示,则这里不要同时显示ATT,ATT会在GDPR显示后处理 + // 这里延迟一帧处理是因为启动后会同时显示多个权限弹窗,包括,网络,推送,还有ATT,这种情况下ATT可能会不显示,到下一次启动才显示,这种情况下也可能会导致苹果拒审 + BFMain.Instance.OneShotManager.AddOneShot(()=>{ + BFMain.Instance.GameLaunchMgr.ShowIOSATTrack(); + }); +#elif UNITY_ANDROID && !UNITY_EDITOR + // if (BFPlatform.IsSupportGDPR()) + // { + // BFMain.Instance.SDKMgr.BFNativeSDKMgr.InitGDPR(); + // } +#endif + } public override void Destroy() diff --git a/Assets/Scripts/Common/URP.meta b/Assets/Scripts/Common/URP.meta new file mode 100644 index 000000000..5d6c2e131 --- /dev/null +++ b/Assets/Scripts/Common/URP.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a6f25d3b88a875d46b7f988da3389135 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Common/URP/URPManager.cs b/Assets/Scripts/Common/URP/URPManager.cs new file mode 100644 index 000000000..9ed00329f --- /dev/null +++ b/Assets/Scripts/Common/URP/URPManager.cs @@ -0,0 +1,49 @@ +using UnityEngine; +using UnityEngine.Rendering.Universal; + +namespace BF +{ + public class URPManager : ManagerBase + { + static URPManager instance; + public static URPManager Create() + { + BFLog.LogAssert(instance == null, "This method only allows BFMain to call once"); + instance = new URPManager(); + return instance; + } + URPManager() { } + + public override void Init() + { + base.Init(); + } + + public override void Destroy() + { + base.Destroy(); + instance = null; + } + + // URP新增叠加相机 + public void URPAddAdditionalCamera(Camera mainCamera, Camera additionalCamera) + { + var cameraData = mainCamera.GetUniversalAdditionalCameraData(); + cameraData.cameraStack.Add(additionalCamera); + } + + // URP移除叠加相机 + public void URPRemoveAdditionalCamera(Camera mainCamera, Camera additionalCamera) + { + var cameraData = mainCamera.GetUniversalAdditionalCameraData(); + cameraData.cameraStack.Remove(additionalCamera); + } + + // URP清空叠加相机 + public void URPClearAdditionalCamera(Camera mainCamera) + { + var cameraData = mainCamera.GetUniversalAdditionalCameraData(); + cameraData.cameraStack.Clear(); + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Common/URP/URPManager.cs.meta b/Assets/Scripts/Common/URP/URPManager.cs.meta new file mode 100644 index 000000000..e00b44f77 --- /dev/null +++ b/Assets/Scripts/Common/URP/URPManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d61530ea6b2712f48b8130c89cee839b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Component/Effects/DrawBezierLine.cs b/Assets/Scripts/Component/Effects/DrawBezierLine.cs new file mode 100644 index 000000000..e3ee0d340 --- /dev/null +++ b/Assets/Scripts/Component/Effects/DrawBezierLine.cs @@ -0,0 +1,113 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace BF +{ + public class DrawBezierLine : MonoBehaviour + { + public LineRenderer lineRender; + private Vector3 _startPoint = Vector3.zero; + private Vector3 _endPoint = Vector3.zero; + private Vector3 _controlPoint1 = Vector3.zero; + private Vector3 _controlPoint2 = Vector3.zero; + // 曲线上的路径点数量,值越大,取得的路径点越多,曲线越平滑 + private int drawPointCount = 30; + private bool isDraw = false; + private bool useCubicBezier = true; + public void SetStartPoint(float x, float y, float z) + { + _startPoint = new Vector3(x, y, z); + } + + public void SetEndPoint(float x, float y, float z) + { + _endPoint = new Vector3(x, y, z); + } + + public void SetControlPoint1(float x, float y, float z) + { + _controlPoint1 = new Vector3(x, y, z); + } + + public void SetControlPoint2(float x, float y, float z) + { + _controlPoint2 = new Vector3(x, y, z); + } + + public void SetDrawPointCount(int count) + { + drawPointCount = count; + } + + public void DrawLine() + { + isDraw = true; + } + + public void ClearLine() + { + isDraw = false; + lineRender.positionCount = 0; + } + + public Vector3[] GetPathList() + { + Vector3[] positions = new Vector3[lineRender.positionCount]; + lineRender.GetPositions(positions); + return positions; + } + + public void SetUseCubicBezier(bool use) + { + useCubicBezier = use; + } + + void Update() + { + if (!isDraw) + { + return; + } + isDraw = false; + if (drawPointCount <= 0) + { + return; + } + lineRender.positionCount = drawPointCount; + lineRender.SetPosition(0, _startPoint); + for (int i = 1; i < drawPointCount; i++) + { + var t = (i + 1) / (float)drawPointCount; + if (useCubicBezier) + { + var pathPoint = GetPointInCubicBezierCurve(t, _startPoint, _controlPoint1, _controlPoint2, _endPoint);//使用贝塞尔曲线的公式取得t时的路径点 + lineRender.SetPosition(i, pathPoint); + } + else + { + var pathPoint = GetBezierPoint(t, _startPoint, _controlPoint1, _endPoint);//使用贝塞尔曲线的公式取得t时的路径点 + lineRender.SetPosition(i, pathPoint); + } + } + } + + /// 0到1的值,0获取曲线的起点,1获得曲线的终点 + /// 曲线的起始位置 + /// 决定曲线形状的控制点 + /// 曲线的终点 + public static Vector3 GetBezierPoint(float t, Vector3 start, Vector3 controlPoint, Vector3 end) + { + return (1 - t) * (1 - t) * start + 2 * t * (1 - t) * controlPoint + t * t * end; + } + + public Vector3 GetPointInCubicBezierCurve(float t, Vector3 startPoint, Vector3 controlPoint1, Vector3 controlPoint2, Vector3 endPoint) + { + var A = startPoint * (Mathf.Pow(-t, 3) + 3 * Mathf.Pow(t, 2) - 3 * t + 1); + var B = controlPoint1 * (3 * Mathf.Pow(t, 3) - 6 * Mathf.Pow(t, 2) + 3 * t); + var C = controlPoint2 * (-3 * Mathf.Pow(t, 3) + 3 * Mathf.Pow(t, 2)); + var D = endPoint * (Mathf.Pow(t, 3)); + return A + B + C + D; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Component/Effects/DrawBezierLine.cs.meta b/Assets/Scripts/Component/Effects/DrawBezierLine.cs.meta new file mode 100644 index 000000000..795e17257 --- /dev/null +++ b/Assets/Scripts/Component/Effects/DrawBezierLine.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f27b020f0d68e14788bcde278e4add4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs b/Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs new file mode 100644 index 000000000..5f1e609cb --- /dev/null +++ b/Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs @@ -0,0 +1,82 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using System; + +namespace BF +{ + public class DreamlandInstancingHelper : MonoBehaviour + { + Action luaUpdateAction; + MaterialPropertyBlock block; + MeshFilter meshFilter; + List materixList = new List(); + List lightmapOffsetList = new List(); + + void Awake() + { + block = new MaterialPropertyBlock(); + } + + public void SetLuaUpdateAction(Action updateAction) + { + luaUpdateAction = updateAction; + } + + public void ClearLuaUpdateAction() + { + luaUpdateAction = null; + } + + public MaterialPropertyBlock GetMaterialPorpertyBlock() + { + return block; + } + + public MeshFilter GetMeshFilter() + { + meshFilter = GetComponentInChildren(); + return meshFilter; + } + + public Vector4[] CollectLightmapOffsetArray() + { + lightmapOffsetList.Clear(); + var meshRenderers = GetComponentsInChildren(); + foreach (var mr in meshRenderers) + { + lightmapOffsetList.Add(mr.lightmapScaleOffset); + } + return lightmapOffsetList.ToArray(); + } + + public List CollectMaterixList() + { + materixList.Clear(); + var meshRenderers = GetComponentsInChildren(); + foreach (var mr in meshRenderers) + { + materixList.Add(mr.localToWorldMatrix); + } + return materixList; + } + + public void HideChild() + { + for (var i = 0; i < transform.childCount; i++) + { + transform.GetChild(i).gameObject.SetActive(false); + } + } + + void Update() + { + luaUpdateAction?.Invoke(); + } + + public static bool GetSupportInstancing() + { + return SystemInfo.supportsInstancing; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs.meta b/Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs.meta new file mode 100644 index 000000000..8cc0fdf20 --- /dev/null +++ b/Assets/Scripts/Component/Helper/DreamlandInstancingHelper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 95f27acf2ce774f32b4d9c7ca29c2b70 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Component/Helper/GlobalHelper.cs b/Assets/Scripts/Component/Helper/GlobalHelper.cs new file mode 100644 index 000000000..445d8aeff --- /dev/null +++ b/Assets/Scripts/Component/Helper/GlobalHelper.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using TMPro; + +namespace BF +{ + [System.Serializable] + public struct GlobalInfo + { + public TextMeshProUGUI tx; + public string key; + } + [ExecuteInEditMode] + [DisallowMultipleComponent] + public class GlobalHelper : MonoBehaviour + { + public List globalInfoList = new List(); + public int GetListCount() + { + return globalInfoList.Count; + } + public string GetGlobalByIndex(int index) + { + if (index >= 0 && index < globalInfoList.Count) + { + return globalInfoList[index].key; + } + return ""; + } + public void SetText(int index, string v) + { + if (index >= 0 && index < globalInfoList.Count) + { + globalInfoList[index].tx.text = v; + } + } + + void OnDestroy() + { + globalInfoList.Clear(); + globalInfoList = null; + } + } +} diff --git a/Assets/Scripts/Component/Helper/GlobalHelper.cs.meta b/Assets/Scripts/Component/Helper/GlobalHelper.cs.meta new file mode 100644 index 000000000..55674557c --- /dev/null +++ b/Assets/Scripts/Component/Helper/GlobalHelper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a9961f2693c0ea344aa81949924f05b7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Component/Helper/NodeHelper.cs b/Assets/Scripts/Component/Helper/NodeHelper.cs index e12da7ef8..0e600fd24 100644 --- a/Assets/Scripts/Component/Helper/NodeHelper.cs +++ b/Assets/Scripts/Component/Helper/NodeHelper.cs @@ -103,6 +103,45 @@ namespace BF } } + public void SetPositionX(int index, float x) + { + if (index >= 0 && index < prefabList.Count) + { + var childTransform = prefabList[index].gameObject.transform; + childTransform.position = new Vector3(x, childTransform.position.y, childTransform.position.z); + } + else if (index < 0) + { + this.transform.position = new Vector3(x, this.transform.position.y, this.transform.position.z); + } + } + + public void SetPositionY(int index, float y) + { + if (index >= 0 && index < prefabList.Count) + { + var childTransform = prefabList[index].gameObject.transform; + childTransform.position = new Vector3(childTransform.position.x, y, childTransform.position.z); + } + else if (index < 0) + { + this.transform.position = new Vector3(this.transform.position.x, y, this.transform.position.z); + } + } + + public void SetPositionZ(int index, float z) + { + if (index >= 0 && index < prefabList.Count) + { + var childTransform = prefabList[index].gameObject.transform; + childTransform.position = new Vector3(childTransform.position.x, childTransform.position.y, z); + } + else if (index < 0) + { + this.transform.position = new Vector3(this.transform.position.x, this.transform.position.y, z); + } + } + public void CacheLocalEulerAngles(int index) { if (index >= 0 && index < prefabList.Count) @@ -132,6 +171,33 @@ namespace BF } } + public float GetLocalEulerAnglesZ(int index) + { + if (index >= 0 && index < prefabList.Count) + { + var localEulerAngles = prefabList[index].gameObject.transform.localEulerAngles; + return localEulerAngles.z; + } + else if (index < 0) + { + return this.transform.localEulerAngles.z; + } + return 0.0f; + } + + public void SetLocalEulerAnglesZ(int index, float z) + { + if (index >= 0 && index < prefabList.Count) + { + var localEulerAngles = prefabList[index].gameObject.transform.localEulerAngles; + prefabList[index].gameObject.transform.localEulerAngles = new Vector3(localEulerAngles.x, localEulerAngles.y, z); + } + else if (index < 0) + { + this.transform.localEulerAngles = new Vector3(this.transform.localEulerAngles.x, this.transform.localEulerAngles.y, z); + } + } + public void SetLocalScale(int index, float x, float y, float z) { if (index >= 0 && index < prefabList.Count) diff --git a/Assets/Scripts/Component/Helper/PrefabHelper.cs b/Assets/Scripts/Component/Helper/PrefabHelper.cs index e125abab8..10f6d15c2 100644 --- a/Assets/Scripts/Component/Helper/PrefabHelper.cs +++ b/Assets/Scripts/Component/Helper/PrefabHelper.cs @@ -28,6 +28,8 @@ namespace BF [DisallowMultipleComponent] public class PrefabHelper : MonoBehaviour { + [SerializeField] + public List lis_AddObject = new List(); public List prefabList = new List(); public float PositionX { get; private set; } public float PositionY { get; private set; } diff --git a/Assets/Scripts/Component/Helper/UISpineHelper.cs.meta b/Assets/Scripts/Component/Helper/UISpineHelper.cs.meta index 9b9199b12..139b6fac9 100644 --- a/Assets/Scripts/Component/Helper/UISpineHelper.cs.meta +++ b/Assets/Scripts/Component/Helper/UISpineHelper.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d9473cad853ffbc4284abb0e064c52d6 +guid: cbd97f50181e3ba4aa76780bbbce0d79 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Scripts/Component/Helper/WeaponHelper.cs b/Assets/Scripts/Component/Helper/WeaponHelper.cs new file mode 100644 index 000000000..c58add6a2 --- /dev/null +++ b/Assets/Scripts/Component/Helper/WeaponHelper.cs @@ -0,0 +1,176 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace BF +{ + [ExecuteInEditMode] + [DisallowMultipleComponent] + public class WeaponHelper : MonoBehaviour + { + public GameObject modelObject; + public List objectList = new List(); + public List animationList = new List(); + + public float PositionX { get; private set; } + public float PositionY { get; private set; } + public float PositionZ { get; private set; } + + public GameObject GetModelObject() + { + return modelObject; + } + + public int GetModelHashCode() + { + return gameObject.GetHashCode(); + } + + public int GetListCount() + { + return objectList.Count; + } + + public GameObject GetGameObjectByIndex(int index) + { + if (index >= 0 && index < objectList.Count) + { + return objectList[index].gameObject; + } + else if (index < 0) + { + return this.gameObject; + } + return null; + } + + public uint GetHashNameByIndex(int index) + { + if (index >= 0 && index < objectList.Count) + { + return objectList[index].hashName; + } + return 0; + } + + // Lua层可以使用PositionX,PositionY,PositionZ,减少直接传递localPosition的开销 + public void CacheLocalPosition(int index) + { + if (index >= 0 && index < objectList.Count) + { + var localPosition = objectList[index].gameObject.transform.localPosition; + PositionX = localPosition.x; + PositionY = localPosition.y; + PositionZ = localPosition.z; + } + else if (index < 0) + { + PositionX = this.transform.localPosition.x; + PositionY = this.transform.localPosition.y; + PositionZ = this.transform.localPosition.z; + } + } + + public void SetLocalPosition(int index, float x, float y, float z) + { + if (index >= 0 && index < objectList.Count) + { + objectList[index].gameObject.transform.localPosition = new Vector3(x, y, z); + } + else if (index < 0) + { + this.transform.localPosition = new Vector3(x, y, z); + } + } + // Lua层可以使用PositionX,PositionY,PositionZ,减少直接传递position的开销 + public void CachePosition(int index) + { + if (index >= 0 && index < objectList.Count) + { + var position = objectList[index].gameObject.transform.position; + PositionX = position.x; + PositionY = position.y; + PositionZ = position.z; + } + else if (index < 0) + { + PositionX = this.transform.position.x; + PositionY = this.transform.position.y; + PositionZ = this.transform.position.z; + } + } + + public void SetPosition(int index, float x, float y, float z) + { + if (index >= 0 && index < objectList.Count) + { + objectList[index].gameObject.transform.position = new Vector3(x, y, z); + } + else if (index < 0) + { + this.transform.position = new Vector3(x, y, z); + } + } + + public void SetLocalEulerAngles(int index, float x, float y, float z) + { + if (index >= 0 && index < objectList.Count) + { + objectList[index].gameObject.transform.localEulerAngles = new Vector3(x, y, z); + } + else if (index < 0) + { + this.transform.localEulerAngles = new Vector3(x, y, z); + } + } + + public void SetLocalScale(int index, float x, float y, float z) + { + if (index >= 0 && index < objectList.Count) + { + objectList[index].gameObject.transform.localScale = new Vector3(x, y, z); + } + else if (index < 0) + { + this.transform.localScale = new Vector3(x, y, z); + } + } + + public void SetMainModelLocalPosition(float x, float y, float z) + { + modelObject.transform.localPosition = new Vector3(x, y, z); + } + + public float GetStateTime(uint index) + { + int count = animationList.Count; + for(int i = 0; i < count; i++) + { + if(animationList[i].hashName == index) + { + return animationList[i].animationTime; + } + } + return 0.0f; + } + + public uint GetStateKeyFrame(uint hashName, int index) + { + int count = animationList.Count; + CharacterAnimationInfo characterAnimationInfo; + for(int i = 0; i < count; i++) + { + characterAnimationInfo = animationList[i]; + if(characterAnimationInfo.hashName == hashName) + { + if(characterAnimationInfo.keyFrame != null && characterAnimationInfo.keyFrame.Count > index) + { + return characterAnimationInfo.keyFrame[index]; + } + break; + } + } + return 0; + } + } +} diff --git a/Assets/Scripts/Component/Helper/WeaponHelper.cs.meta b/Assets/Scripts/Component/Helper/WeaponHelper.cs.meta new file mode 100644 index 000000000..4a34e9c39 --- /dev/null +++ b/Assets/Scripts/Component/Helper/WeaponHelper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 20f2cf41ce575154699359cdd2465af7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Component/UI/BFLayout/BFLayoutBase.cs b/Assets/Scripts/Component/UI/BFLayout/BFLayoutBase.cs index 800c03a7f..8fb49811c 100644 --- a/Assets/Scripts/Component/UI/BFLayout/BFLayoutBase.cs +++ b/Assets/Scripts/Component/UI/BFLayout/BFLayoutBase.cs @@ -138,7 +138,7 @@ namespace BF { if (size > 0) { - rect.anchoredPosition = new Vector2(rect.anchoredPosition.x, - pos - size / 2); + rect.anchoredPosition = new Vector2(rect.anchoredPosition.x, - pos - size / 2 * rect.localScale.y); } else { diff --git a/Assets/Scripts/Component/UI/BFScrollRect/BFScrollRectCommon.cs b/Assets/Scripts/Component/UI/BFScrollRect/BFScrollRectCommon.cs index 50cdc66e2..6e7add28b 100644 --- a/Assets/Scripts/Component/UI/BFScrollRect/BFScrollRectCommon.cs +++ b/Assets/Scripts/Component/UI/BFScrollRect/BFScrollRectCommon.cs @@ -12,6 +12,7 @@ namespace BF public int downRecoveryOffset; public BFUIDirection direction; public bool reverse = false; + public bool centerWhenNotFull = false; // 新增参数,控制是否在不满一行时居中 Stack cellPool = new Stack(); List activeCells = new List(); @@ -129,7 +130,6 @@ namespace BF float maxHeight = Mathf.Max(UnityScrollRect.viewport.rect.height, maxLine*cellHeight + topRecoveryOffset + downRecoveryOffset); ContentTrans.sizeDelta = new Vector2(ContentTrans.sizeDelta.x, maxHeight); // cellWidth = (int)UnityScrollRect.viewport.rect.width; - if (reverse) { float posY = UnityScrollRect.content.anchoredPosition.y; @@ -179,6 +179,7 @@ namespace BF // maxIdx = Mathf.Min(this.totalCount, maxIdx); // BFLog.LogDebug(BFLog.DEBUG_GAME_LAUNCH, "red", " ContentTrans.sizeDelta.x = " + ContentTrans.sizeDelta.x); // BFLog.LogDebug(BFLog.DEBUG_GAME_LAUNCH, "red", " ContentTrans.sizeDelta.y = " + ContentTrans.sizeDelta.y); + UpdateAllCellPosition(); } public override void RefreshAll() @@ -389,19 +390,28 @@ namespace BF float posX = 0.0f; if (direction == BFUIDirection.Vertical) { - if (reverse) + if (centerWhenNotFull && totalCount < perLineNum) { - float cellWidth1 = UnityScrollRect.viewport.rect.width/perLineNum; - float idx = (index - 1.0f)%perLineNum + 1.0f; - posX = (idx - 0.5f) * cellWidth1; + float totalWidth = totalCount * cellWidth; + float startPos = (UnityScrollRect.viewport.rect.width - totalWidth) / 2; + float idx = (index - 1.0f) % perLineNum + 1.0f; + posX = startPos + (idx - 0.5f) * cellWidth; } else { - float cellWidth1 = UnityScrollRect.viewport.rect.width/perLineNum; - float idx = (index - 1.0f)%perLineNum + 1.0f; - posX = (idx - 0.5f) * cellWidth1; + if (reverse) + { + float cellWidth1 = UnityScrollRect.viewport.rect.width / perLineNum; + float idx = (index - 1.0f) % perLineNum + 1.0f; + posX = (idx - 0.5f) * cellWidth1; + } + else + { + float cellWidth1 = UnityScrollRect.viewport.rect.width / perLineNum; + float idx = (index - 1.0f) % perLineNum + 1.0f; + posX = (idx - 0.5f) * cellWidth1; + } } - } else { @@ -437,20 +447,54 @@ namespace BF } else { - if (reverse) + if (centerWhenNotFull && totalCount < perLineNum) { - float cellHeight1 = UnityScrollRect.viewport.rect.height/perLineNum; - float offset = UnityScrollRect.viewport.rect.height/perLineNum/2.0f; - float idx = (index - 1.0f)%perLineNum + 1.0f; - posY = -(offset + (idx - 1.0f)*cellHeight1); - // BFLog.LogDebug(BFLog.DEBUG_GAME_LAUNCH, "red", "index = " + index + " posY = " + posY + " offset = " + offset); + // 在ContentTrans高度范围内居中 + float totalHeight = totalCount * cellHeight; + float contentOffset = (ContentTrans.rect.height - totalHeight) / 2; + + // 元素在ContentTrans内垂直居中 + float idx = (index - 1.0f) % perLineNum + 1.0f; + if (reverse) + { + posY = -(contentOffset + (idx - 0.5f) * cellHeight); + } + else + { + posY = contentOffset + (idx - 0.5f) * cellHeight; + } + + // 如果ContentTrans比viewport矮,调整全局居中 + if (ContentTrans.rect.height < UnityScrollRect.viewport.rect.height) + { + float viewportOffset = (UnityScrollRect.viewport.rect.height - ContentTrans.rect.height) / 2; + if (reverse) + { + posY -= viewportOffset; // 抵消视口偏移 + } + else + { + posY += viewportOffset; // 抵消视口偏移 + } + } } else { - float cellHeight1 = UnityScrollRect.viewport.rect.height/perLineNum; - float offset = UnityScrollRect.viewport.rect.height - UnityScrollRect.viewport.rect.height/perLineNum/2.0f; - float idx = (index - 1.0f)%perLineNum + 1.0f; - posY = offset - (idx - 1.0f)*cellHeight1; + if (reverse) + { + float cellHeight1 = UnityScrollRect.viewport.rect.height / perLineNum; + float offset = UnityScrollRect.viewport.rect.height / perLineNum / 2.0f; + float idx = (index - 1.0f) % perLineNum + 1.0f; + posY = -(offset + (idx - 1.0f) * cellHeight1); + // BFLog.LogDebug(BFLog.DEBUG_GAME_LAUNCH, "red", "index = " + index + " posY = " + posY + " offset = " + offset); + } + else + { + float cellHeight1 = UnityScrollRect.viewport.rect.height / perLineNum; + float offset = UnityScrollRect.viewport.rect.height - UnityScrollRect.viewport.rect.height / perLineNum / 2.0f; + float idx = (index - 1.0f) % perLineNum + 1.0f; + posY = offset - (idx - 1.0f) * cellHeight1; + } } } @@ -599,7 +643,7 @@ namespace BF { UnityScrollRect.StopMovement(); } - + [ContextMenu("UpdateAllCellPosition")] public void UpdateAllCellPosition() { for (int i = 0; i < activeCells.Count; i++) diff --git a/Assets/Scripts/Component/UI/UIEffect/UIOutlineEffect.cs b/Assets/Scripts/Component/UI/UIEffect/UIOutlineEffect.cs index daff3ed66..dfa23b05c 100644 --- a/Assets/Scripts/Component/UI/UIEffect/UIOutlineEffect.cs +++ b/Assets/Scripts/Component/UI/UIEffect/UIOutlineEffect.cs @@ -10,7 +10,7 @@ using XLua.Cast; public class UIOutlineEffect : BaseMeshEffect { [SerializeField] - private Color outlineColor = Color.white; + private Color outlineColor = Color.black; public Color OutlineColor { @@ -18,7 +18,7 @@ public class UIOutlineEffect : BaseMeshEffect set { outlineColor = value; } } - [Range(0, 5)] + [Range(0, 5)] public int OutlineWidth = 0; private List cacheVertexList = new List(); @@ -27,11 +27,6 @@ public class UIOutlineEffect : BaseMeshEffect base.Awake(); if (base.graphic) { - if (base.graphic.material == null || base.graphic.material.shader.name != "BF/UI/TEXT_OUTLINE") - { - BF.BFLog.Log("uitext没有设置对应描边材质"); - } - if (base.graphic.canvas) { var shaderChannelOrigin = base.graphic.canvas.additionalShaderChannels; @@ -45,19 +40,19 @@ public class UIOutlineEffect : BaseMeshEffect { base.graphic.canvas.additionalShaderChannels |= needChannel; } - + needChannel = AdditionalCanvasShaderChannels.TexCoord3; if ((shaderChannelOrigin & needChannel) != needChannel) { base.graphic.canvas.additionalShaderChannels |= needChannel; } - + needChannel = AdditionalCanvasShaderChannels.Tangent; if ((shaderChannelOrigin & needChannel) != needChannel) { base.graphic.canvas.additionalShaderChannels |= needChannel; } - + needChannel = AdditionalCanvasShaderChannels.Normal; if ((shaderChannelOrigin & needChannel) != needChannel) { @@ -67,18 +62,6 @@ public class UIOutlineEffect : BaseMeshEffect base.graphic.SetVerticesDirty(); } } -#if UNITY_EDITOR - protected override void OnValidate() - { - base.OnValidate(); - if (base.graphic.material.shader.name != "BF/UI/TEXT_OUTLINE") - { - base.graphic.material = - AssetDatabase.LoadAssetAtPath("assets/arts/materials/ui/ui_text_outline.mat"); - } - base.graphic.SetVerticesDirty(); - } -#endif public override void ModifyMesh(VertexHelper vh) { @@ -88,7 +71,7 @@ public class UIOutlineEffect : BaseMeshEffect vh.AddUIVertexTriangleStream(cacheVertexList); } - //扩充顶点 并将计算信息缓存在顶点不需要但可以传递的参数中 + //扩充顶点 并将计算信息缓存在顶点不需要但可以传递的参数中 private void ProcessVertexs() { var total = cacheVertexList.Count; @@ -103,7 +86,7 @@ public class UIOutlineEffect : BaseMeshEffect var minY = Min(v1.position.y, v2.position.y, v3.position.y); var maxY = Max(v1.position.y, v2.position.y, v3.position.y); var posCenter = new Vector2(minX + maxX, minY + maxY) * 0.5f; - + //uv 顶点三角形最小包围盒 直角三角形特殊处理 Vector2 triX, triY, uvX, uvY; Vector2 vPos1 = v1.position; @@ -125,11 +108,10 @@ public class UIOutlineEffect : BaseMeshEffect uvX = v3.uv0 - v2.uv0; uvY = v2.uv0 - v1.uv0; } - + //uv框 var uvOriginMin = Min(v1.uv0, v2.uv0, v3.uv0); var uvOriginMax = Max(v1.uv0, v2.uv0, v3.uv0); - var color_rg = new Vector2(outlineColor.r, outlineColor.g); var color_ba = new Vector4(0 ,0 , outlineColor.b, outlineColor.a); var normal = new Vector3(0, 0, OutlineWidth); @@ -183,20 +165,19 @@ public class UIOutlineEffect : BaseMeshEffect { return Mathf.Min(Mathf.Min(a, b), c); } - + private static float Max(float a, float b, float c) { return Mathf.Max(Mathf.Max(a, b), c); } - + private static Vector2 Min(Vector2 a, Vector2 b, Vector2 c) { return new Vector2(Min(a.x, b.x, c.x), Min(a.y, b.y, c.y)); } - + private static Vector2 Max(Vector2 a, Vector2 b, Vector2 c) { return new Vector2(Max(a.x, b.x, c.x), Max(a.y, b.y, c.y)); } - } diff --git a/Assets/Scripts/Const/BFPlatform.Const.cs b/Assets/Scripts/Const/BFPlatform.Const.cs new file mode 100644 index 000000000..2161fa9f7 --- /dev/null +++ b/Assets/Scripts/Const/BFPlatform.Const.cs @@ -0,0 +1,11 @@ +namespace BF +{ + public partial class BFPlatform + { + public const string ANDROID_GP_PACKAGE_NAME = "com.gearpaw.defenders.td.game"; + public const string ANDROID_GP_PACKAGE_NAME_GLOBAL = "com.fortune.td.game.global"; + public const string ANDROID_GP_PACKAGE_NAME_RU = "com.gearpaw.defenders.td.game.ru"; + public const string ANDROID_GP_PACKAGE_NAME_RUSTORE = "com.fortune.td.game.rustore"; + public const string ANDROID_GP_PACKAGE_NAME_RU_HW = "com.fortune.td.game.ru.hw"; + } +} \ No newline at end of file diff --git a/Assets/Scripts/Const/BFPlatform.Const.cs.meta b/Assets/Scripts/Const/BFPlatform.Const.cs.meta new file mode 100644 index 000000000..3334a0d4a --- /dev/null +++ b/Assets/Scripts/Const/BFPlatform.Const.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 94aec8a10f4fce041a3f1a94ab8079db +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Const/BFPlatform.Gate.cs b/Assets/Scripts/Const/BFPlatform.Gate.cs index 553f6410b..c7f92f90f 100644 --- a/Assets/Scripts/Const/BFPlatform.Gate.cs +++ b/Assets/Scripts/Const/BFPlatform.Gate.cs @@ -64,22 +64,9 @@ namespace BF public partial class BFPlatform { - const String LoginCenterURL = "https://entrance.wdd817.link"; - static Dictionary BFLoginCenterURLDict = new Dictionary() - { - // dev - {"com.juzu.b6.dev", "https://entrance.wdd817.link"}, - {"com.juzu.b6.dev.android", "https://entrance.wdd817.link"}, - {"com.juzu.b6.dev.ios", "http://game.juzugame.com:3000"}, - - // release - {"com.juzu.b6.release.android", "http://game.juzugame.com:3000"}, - {"com.juzu.b6.release.ios", "http://game.juzugame.com:3000"}, - - // gp - {"com.combo.heroes.puzzle.rpg", "https://entrance.wdd817.link"}, - }; - + const String LoginCenterURLDev = "http://game.juzugame.com:3000"; + const String LoginCenterURL = "https://entrance.bigfoot-studio.link"; + const String LoginCenterURLRU = "https://entrance-ru.bigfoot-studio.link"; //combine url解析的数据 static ClusterType clusterType; @@ -112,109 +99,6 @@ namespace BF //登陆中心返回的信息齐全且格式正常 static bool isLoginCenterConfigValid;//请求的域名信息是否正确 - /// - /// 解析json数据 获取cluter,gate,chat,vsn,pay的地址 - /// - /// - public static void InitUrlsFromLoginCenter(string json) - { - if (!string.IsNullOrEmpty(json)) - { - CombineURL urls = JsonUtility.FromJson(json); - - BFLog.Log("C#解析后的urls:" + urls.ToString()); - - clusterType = (ClusterType)urls.cluster_type; - string tmpGateUrl = urls.ugate_addr; - string tmpChatUrl = urls.uchat_addr; - string tmpVsnUrl = urls.vsn_addr; - string tmpPayUrl = urls.upay_addr; - string tmpCommunityWebUrl = urls.community_web_addr; - string tmpCommunitySrvUrl = urls.community_srv_addr; - string tmpAicsHttpUrl = urls.aics_http_addr; - string tmpAicsWebSocketUrl = urls.aics_ws_addr; - - bool clusterValid = clusterType != ClusterType.None; - bool gateValid = !string.IsNullOrEmpty(tmpGateUrl); - bool chatValid = !string.IsNullOrEmpty(tmpChatUrl); - bool vsnValid = !string.IsNullOrEmpty(tmpVsnUrl); - bool payValid = !string.IsNullOrEmpty(tmpPayUrl); - bool communityWebValid = !string.IsNullOrEmpty(tmpCommunityWebUrl); - bool communitySrvValid = !string.IsNullOrEmpty(tmpCommunitySrvUrl); - bool aicsHttpValid = !string.IsNullOrEmpty(tmpAicsHttpUrl); - bool aicsWebSocketValid = !string.IsNullOrEmpty(tmpAicsWebSocketUrl); - - BFLog.Log(string.Format("check valid clusterValid:{0} gateValid:{1} chatValid:{2} vsnValid:{3} payValid:{4} communityWebValid:{5} communitySrvValid:{6} aicsHttpValid:{7} aicsWebSocketValid:{8}", clusterValid, gateValid, chatValid, vsnValid, payValid, communityWebValid, communitySrvValid, aicsHttpValid, aicsWebSocketValid)); - - //判断参数是否正常 - if (clusterValid && gateValid && chatValid && vsnValid && payValid) - { - if (IsPublishChannel()) // 正式渠道不验证社区与客服地址 - { - SetLoginCenterConfigValid(true); - } - else - { - if (communityWebValid && communitySrvValid && aicsHttpValid && aicsWebSocketValid) - { - SetLoginCenterConfigValid(true); - } - else - { - SetLoginCenterConfigValid(false); - } - } - } - else - { - SetLoginCenterConfigValid(false); - } - - //拆分域名url与port - int gatePortIndex = tmpGateUrl.LastIndexOf(':'); - int chatPortIndex = tmpChatUrl.LastIndexOf(':'); - int vsnPortIndex = tmpVsnUrl.LastIndexOf(':'); - - string gatePortStr = tmpGateUrl.Substring(gatePortIndex + 1, tmpGateUrl.Length - gatePortIndex - 1); - string chatPortStr = tmpChatUrl.Substring(chatPortIndex + 1, tmpChatUrl.Length - chatPortIndex - 1); - string vsnPortStr = tmpVsnUrl.Substring(vsnPortIndex + 1, tmpVsnUrl.Length - vsnPortIndex - 1); - - int gatePort = 0; - int chatPort = 0; - int vsnPort = 0; - int.TryParse(gatePortStr, out gatePort); - int.TryParse(chatPortStr, out chatPort); - int.TryParse(vsnPortStr, out vsnPort); - - string tmpGateUrlWithoutPort = tmpGateUrl.Substring(0, gatePortIndex); - string tmpChatUrlWithoutPort = tmpChatUrl.Substring(0, chatPortIndex); - string tmpVsnUrlWithoutPort = tmpVsnUrl.Substring(0, vsnPortIndex); - - mainGateUrl = tmpGateUrlWithoutPort; - mainGatePort = gatePort; - chatGateUrl = tmpChatUrlWithoutPort; - chatGatePort = chatPort; - vsnHttpUrl = tmpVsnUrlWithoutPort; - vsnHttpPort = vsnPort; - - //暂时保留原格式 - _channelGate = new BFGateInfo(mainGateUrl, mainGatePort, chatGateUrl, chatGatePort); - _vsnUrl = new BFHttpsInfo(vsnHttpUrl, vsnHttpPort); - - payUrl = tmpPayUrl; - communityWebUrl = tmpCommunityWebUrl; - communitySrvUrl = tmpCommunitySrvUrl; - aicsHttpUrl = tmpAicsHttpUrl; - aicsWebSocketUrl = tmpAicsWebSocketUrl; - - BFLog.Log("解析后的地址 gate:{0} gatePort:{1} chat:{2} chatPort:{3} vsn:{4} vsnPort:{5} payUrl:{6} communityWebUrl:{7} communitySrvUrl:{8} aicsHttpUrl:{9} aicsWebSocketUrl:{10}", mainGateUrl, gatePort, chatGateUrl, chatPort, vsnHttpUrl, vsnPort, payUrl, communityWebUrl, communitySrvUrl, aicsHttpUrl, aicsWebSocketUrl); - } - else - { - BFLog.LogError("GetUrlsFromLoginCenter Error,JSON is null or empty"); - } - } - /// /// 获得集群类型 (1-普通,2-审核,3-测试) /// @@ -255,31 +139,117 @@ namespace BF } } - /// - /// 是否是内网渠道 - /// - public static bool IsDevChannel() - { - return Identifier == "com.juzu.b6.dev" || - Identifier == "com.juzu.b6.dev.android" || - Identifier == "com.juzu.b6.dev.ios"; - } - - /// - /// 是否是外网测试渠道 - /// - public static bool IsReleaseChannel() - { - return Identifier == "com.juzu.b6.release.android" || - Identifier == "com.juzu.b6.release.ios"; - } - /// /// 是否是正式发布渠道 /// public static bool IsPublishChannel() { - return !IsDevChannel() && !IsReleaseChannel(); +#if UNITY_EDITOR || BF_APP_DEV || BF_APP_TEST + return false; +#else + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME || + Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_GLOBAL || + Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || + Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW || + Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU) + { + // 深度链接可以强制改为内网环境 + if (BFMain.DPIsLan) + { + return false; + } + + return true; + } + return false; +#endif + } + + public static bool IsRuPackage() + { + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return true; + } + return false; + } + + /// + /// 是否使用ru支付 + /// + public static bool IsSupportRuPay() + { +#if BF_APP_DEV || BF_APP_TEST + return false; +#else + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return true; + } + return false; +#endif + } + + /// + /// 是否使用ru商店好评 + /// + public static bool IsSupportRuStoreReview() + { +#if BF_APP_DEV || BF_APP_TEST + return false; +#else + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return true; + } + return false; +#endif + } + + // 这是Facebook SDK + public static bool IsSupportFB() + { +#if BF_APP_DEV || BF_APP_TEST + return true; +#else + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return false; + } + return true; +#endif + } + + public static bool IsSupportGDPR() + { +#if BF_APP_DEV || BF_APP_TEST + return true; +#else + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return false; + } + return true; +#endif + } + // 这是Facebook广告SDK + + public static bool IsSupportFBAD() + { + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return false; + } + return true; + } + + public static bool IsSupportVK() + { + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RUSTORE || Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return true; + } + return false; } /// @@ -345,11 +315,19 @@ namespace BF public static string GetLoginCenterURL() { - if (BFLoginCenterURLDict.TryGetValue(Identifier, out string url)) +#if BF_APP_DEV || UNITY_EDITOR + return LoginCenterURLDev; +#else + if (BFMain.DPIsLan) { - return url; + return LoginCenterURLDev; + } + if (IsRuPackage()) + { + return LoginCenterURLRU; } return LoginCenterURL; +#endif } public static string GetPayCenterURL() @@ -383,5 +361,22 @@ namespace BF { return aicsWebSocketUrl; } +//region 华为支付 + /// + /// 是否使用hw支付 + /// + public static bool IsSupportHWPay() + { +#if BF_APP_DEV || BF_APP_TEST + return false; +#else + if (Identifier == BFPlatform.ANDROID_GP_PACKAGE_NAME_RU_HW) + { + return true; + } + return false; +#endif + } +//regionend } } \ No newline at end of file diff --git a/Assets/Scripts/Const/BFPlatform.Language.cs b/Assets/Scripts/Const/BFPlatform.Language.cs index d2f9d8401..42335ade0 100644 --- a/Assets/Scripts/Const/BFPlatform.Language.cs +++ b/Assets/Scripts/Const/BFPlatform.Language.cs @@ -42,14 +42,14 @@ namespace BF // 渠道对应的语言配置 public static Dictionary languageInfos = new Dictionary() { - {"com.juzu.b6.dev", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, - {"com.juzu.b6.dev.android", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, - {"com.juzu.b6.dev.ios", new BFLanguageInfo(new List{"en", "cn"})}, - {"com.juzu.b6.release.android", new BFLanguageInfo(new List{"en"})}, - {"com.juzu.b6.release.ios", new BFLanguageInfo(new List{"en"})}, - // 这个是gp渠道 - {"com.combo.heroes.puzzle.rpg", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, - {"com.juzu.b6.ios", new BFLanguageInfo(new List{"en"})}, + {"com.juzu.b13.dev", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, + {"com.juzu.b13.dev.android", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, + {"com.juzu.b13.dev.ios", new BFLanguageInfo(new List{"en", "cn"})}, + {"com.juzu.b13.release.android", new BFLanguageInfo(new List{"en"})}, + {"com.juzu.b13.release.ios", new BFLanguageInfo(new List{"en"})}, + {"com.gearpaw.defenders.td.game", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, + {"com.gearpaw.defenders.td.game.ru", new BFLanguageInfo(new List{"en", "cn", "zh", "th", "ru", "id", "vi"})}, + {"com.juzu.b13.ios", new BFLanguageInfo(new List{"en"})}, }; public static BFLanguageInfo GetLanguageInfo(string identifier) diff --git a/Assets/Scripts/Utils/TimeHelper.cs b/Assets/Scripts/Utils/TimeHelper.cs new file mode 100644 index 000000000..5a8142727 --- /dev/null +++ b/Assets/Scripts/Utils/TimeHelper.cs @@ -0,0 +1,28 @@ +using System; + +namespace BF +{ + public static class TimeHelper + { + public static long GetDayBeginTimestamp(long timestamp, int timeZoneOffset) + { + // 将时间戳转换为UTC时间 + DateTime utcTime = DateTimeOffset.FromUnixTimeSeconds(timestamp).UtcDateTime; + // 应用时区偏移(不考虑夏令时) + if (timeZoneOffset != 0) + { + utcTime = utcTime.AddHours(timeZoneOffset); + } + // 构造当天0点的UTC时间 + DateTime utcDayBegin = new DateTime(utcTime.Year, utcTime.Month, utcTime.Day, 0, 0, 0, DateTimeKind.Utc); + // 减去时区偏移量恢复UTC时间 + if (timeZoneOffset != 0) + { + utcDayBegin = utcDayBegin.AddHours(-timeZoneOffset); + } + // 转换为时间戳并减去时区偏移 + long utcDayBeginTimestamp = new DateTimeOffset(utcDayBegin).ToUnixTimeSeconds(); + return utcDayBeginTimestamp; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Utils/TimeHelper.cs.meta b/Assets/Scripts/Utils/TimeHelper.cs.meta new file mode 100644 index 000000000..d90580164 --- /dev/null +++ b/Assets/Scripts/Utils/TimeHelper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c322159b684af9d4eb38fbfe9b9ed89a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Utils/Utils.cs b/Assets/Scripts/Utils/Utils.cs index 5538be6bf..c0337e899 100644 --- a/Assets/Scripts/Utils/Utils.cs +++ b/Assets/Scripts/Utils/Utils.cs @@ -22,6 +22,8 @@ namespace BF private static bool c_free_flag = false; private static bool c_config_flag = false; + private static string DefaultSpecialPatternStr = "[【】\\[\\]\\^*×―%@@##$…&¥=<>《》::•`·~;;\\\\/\'\"{}‘’“”]"; + public static string CustomSpecialPatternStr = "[【】\\[\\]\\^*×―%@@##$…&¥=<>《》::•`·~;;\\\\/\'\"{}‘’“”]"; public static char[] GetFreeChar() { @@ -98,6 +100,15 @@ namespace BF return lp; } + public static Vector3 LocalPointInRectangleToWorld(RectTransform rt, float planeZ, Camera uiCam, Camera main) + { + var screenPoint = uiCam.WorldToScreenPoint(rt.transform.position); + Vector3 position = new Vector3(screenPoint.x, screenPoint.y, 0); + Vector3 result = main.ScreenToWorldPoint(position); + result.z = planeZ; + return result; + } + public static bool RectangleContainsScreenPoint(RectTransform rt, float x, float y, Camera cam) { return RectTransformUtility.RectangleContainsScreenPoint(rt, new Vector2(x, y), cam); @@ -271,5 +282,22 @@ namespace BF }; return Convert.ToBase64String(sha1); } + + public static bool IsSpecialChar(string str, bool useDefaultPattern) + { + Regex regExp; + if (useDefaultPattern) + { + regExp = new Regex(DefaultSpecialPatternStr); + } + else + { + regExp = new Regex(CustomSpecialPatternStr); + } + if(regExp.IsMatch(str)){ + return true; + } + return false; + } } } diff --git a/Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs b/Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs new file mode 100644 index 000000000..64d53deef --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace AppsFlyerSDK +{ + public enum MediationNetwork : ulong + { + GoogleAdMob = 1, + IronSource = 2, + ApplovinMax = 3, + Fyber = 4, + Appodeal = 5, + Admost = 6, + Topon = 7, + Tradplus = 8, + Yandex = 9, + ChartBoost = 10, + Unity = 11, + ToponPte = 12, + Custom = 13, + DirectMonetization = 14 + } + + public static class AdRevenueScheme + { + /** + * code ISO 3166-1 format + */ + public const string COUNTRY = "country"; + + /** + * ID of the ad unit for the impression + */ + public const string AD_UNIT = "ad_unit"; + + /** + * Format of the ad + */ + public const string AD_TYPE = "ad_type"; + + /** + * ID of the ad placement for the impression + */ + public const string PLACEMENT = "placement"; + } + + /// + // Data class representing ad revenue information. + // + // @property monetizationNetwork The name of the network that monetized the ad. + // @property mediationNetwork An instance of MediationNetwork representing the mediation service used. + // @property currencyIso4217Code The ISO 4217 currency code describing the currency of the revenue. + // @property eventRevenue The amount of revenue generated by the ad. + /// + public class AFAdRevenueData + { + public string monetizationNetwork { get; private set; } + public MediationNetwork mediationNetwork { get; private set; } + public string currencyIso4217Code { get; private set; } + public double eventRevenue { get; private set; } + + public AFAdRevenueData(string monetization, MediationNetwork mediation, string currency, double revenue) + { + monetizationNetwork = monetization; + mediationNetwork = mediation; + currencyIso4217Code = currency; + eventRevenue = revenue; + } + } + +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs.meta b/Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs.meta new file mode 100644 index 000000000..3106aaeab --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFAdRevenueData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 49e1906ae949e4bfea400bd1da9f7e39 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/AFAdRevenueEvent.cs b/Assets/ThirdParty/AppsFlyer/AFAdRevenueEvent.cs deleted file mode 100644 index 6ed2afb6b..000000000 --- a/Assets/ThirdParty/AppsFlyer/AFAdRevenueEvent.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections; -using UnityEngine; - -public class AFAdRevenueEvent { - - /** - *Pre-defined keys for non-mandatory dictionary - *Code ISO 3166-1 format - **/ - public const string COUNTRY = "country"; - - /** - *ID of the ad unit for the impression - **/ - public const string AD_UNIT = "ad_unit"; - - /** - *Format of the ad - **/ - public const string AD_TYPE = "ad_type"; - - /** - *ID of the ad placement for the impression - **/ - public const string PLACEMENT = "placement"; - - /** - *Provided by Facebook Audience Network only, and will be reported to publishers - *approved by Facebook Audience Network within the closed beta - **/ - public const string ECPM_PAYLOAD = "ecpm_payload"; - - -} diff --git a/Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs b/Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs new file mode 100644 index 000000000..6762c97f2 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; + +namespace AppsFlyerSDK +{ + public enum AFPurchaseType + { + Subscription = 0, + OneTimePurchase = 1 + } + + /// + // + /// + public class AFPurchaseDetailsAndroid + + { + public AFPurchaseType purchaseType { get; private set; } + public string purchaseToken { get; private set; } + public string productId { get; private set; } + public string price { get; private set; } + public string currency { get; private set; } + + public AFPurchaseDetailsAndroid(AFPurchaseType type, String purchaseToken, String productId, String price, String currency) + { + this.purchaseType = type; + this.purchaseToken = purchaseToken; + this.productId = productId; + this.price = price; + this.currency = currency; + } + + } + +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs.meta b/Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs.meta new file mode 100644 index 000000000..6d0024d88 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFPurchaseDetailsAndroid.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d71b3864006f94ac08938b2ebdc940bc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs b/Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs new file mode 100644 index 000000000..f159eea40 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +namespace AppsFlyerSDK +{ + /// + // + /// + public class AFSDKPurchaseDetailsIOS + { + public string productId { get; private set; } + public string price { get; private set; } + public string currency { get; private set; } + public string transactionId { get; private set; } + + private AFSDKPurchaseDetailsIOS(string productId, string price, string currency, string transactionId) + { + this.productId = productId; + this.price = price; + this.currency = currency; + this.transactionId = transactionId; + } + + public static AFSDKPurchaseDetailsIOS Init(string productId, string price, string currency, string transactionId) + { + return new AFSDKPurchaseDetailsIOS(productId, price, currency, transactionId); + } + } + +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs.meta b/Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs.meta new file mode 100644 index 000000000..f33ebcc5d --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFSDKPurchaseDetailsIOS.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 44bb6c4472701416080eb050732075ea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs b/Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs new file mode 100644 index 000000000..e877fbd9a --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; + +namespace AppsFlyerSDK +{ + public enum AFSDKValidateAndLogStatus + { + AFSDKValidateAndLogStatusSuccess, + AFSDKValidateAndLogStatusFailure, + AFSDKValidateAndLogStatusError + } + + + /// + // + /// + public class AFSDKValidateAndLogResult + { + public AFSDKValidateAndLogStatus status { get; private set; } + public Dictionary result { get; private set; } + public Dictionary errorData { get; private set; } + public string error { get; private set; } + + private AFSDKValidateAndLogResult(AFSDKValidateAndLogStatus status, Dictionary result, Dictionary errorData, string error) + { + this.status = status; + this.result = result; + this.errorData = errorData; + this.error = error; + } + + public static AFSDKValidateAndLogResult Init(AFSDKValidateAndLogStatus status, Dictionary result, Dictionary errorData, string error) + { + return new AFSDKValidateAndLogResult(status, result, errorData, error); + } + } + +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs.meta b/Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs.meta new file mode 100644 index 000000000..63d483545 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AFSDKValidateAndLogResult.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2df1c6f1eab2e4849bf2762a8d78933f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyer.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyer.cs index 088dcd110..5a700e404 100644 --- a/Assets/ThirdParty/AppsFlyer/AppsFlyer.cs +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyer.cs @@ -6,12 +6,13 @@ namespace AppsFlyerSDK { public class AppsFlyer : MonoBehaviour { - - public static readonly string kAppsFlyerPluginVersion = "6.4.0"; + public static readonly string kAppsFlyerPluginVersion = "6.17.1"; public static string CallBackObjectName = null; private static EventHandler onRequestResponse; private static EventHandler onInAppResponse; private static EventHandler onDeepLinkReceived; + public static IAppsFlyerNativeBridge instance = null; + public delegate void unityCallBack(string message); /// @@ -46,28 +47,39 @@ namespace AppsFlyerSDK /// public static void initSDK(string devKey, string appID, MonoBehaviour gameObject) { - - if(gameObject != null) + + if (gameObject != null) { +#if UNITY_STANDALONE_OSX + CallBackObjectName = gameObject.GetType().ToString(); +#else CallBackObjectName = gameObject.name; +#endif } -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setAppsFlyerDevKey(devKey); - AppsFlyeriOS.setAppleAppID(appID); - if(gameObject != null) +#if UNITY_IOS || UNITY_STANDALONE_OSX + if (instance == null || !instance.isInit) { - AppsFlyeriOS.getConversionData(gameObject.name); + instance = new AppsFlyeriOS(devKey, appID, gameObject); + instance.isInit = true; } -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.initSDK(devKey, gameObject); -#elif UNITY_WSA_10_0 && !UNITY_EDITOR +#elif UNITY_ANDROID + if (instance == null || !instance.isInit) + { + AppsFlyerAndroid appsFlyerAndroid = new AppsFlyerAndroid(); + appsFlyerAndroid.initSDK(devKey, gameObject); + instance = appsFlyerAndroid; + instance.isInit = true; + + } +#elif UNITY_WSA_10_0 AppsFlyerWindows.InitSDK(devKey, appID, gameObject); if (gameObject != null) { AppsFlyerWindows.GetConversionData(gameObject.name); } #else + #endif } @@ -78,15 +90,22 @@ namespace AppsFlyerSDK /// public static void startSDK() { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.startSDK(onRequestResponse != null, CallBackObjectName); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.startSDK(onRequestResponse != null, CallBackObjectName); -#elif UNITY_WSA_10_0 && !UNITY_EDITOR - AppsFlyerWindows.Start(); +#if UNITY_WSA_10_0 + AppsFlyerWindows.Start(); + +#else + if (instance != null) + { + instance.startSDK(onRequestResponse != null, CallBackObjectName); + } #endif } + + + + + /// /// Send an In-App Event. /// In-App Events provide insight on what is happening in your app. @@ -95,17 +114,15 @@ namespace AppsFlyerSDK /// Event Values as Dictionary. public static void sendEvent(string eventName, Dictionary eventValues) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.sendEvent(eventName, eventValues, onInAppResponse != null, CallBackObjectName); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.sendEvent(eventName, eventValues, onInAppResponse != null, CallBackObjectName); -#elif UNITY_WSA_10_0 && !UNITY_EDITOR +#if UNITY_WSA_10_0 && !UNITY_EDITOR AppsFlyerWindows.LogEvent(eventName, eventValues); #else - + if (instance != null) + { + instance.sendEvent(eventName, eventValues, onInAppResponse != null, CallBackObjectName); + } #endif } - /// /// Once this API is invoked, our SDK no longer communicates with our servers and stops functioning. /// In some extreme cases you might want to shut down all SDK activity due to legal and privacy compliance. @@ -114,13 +131,10 @@ namespace AppsFlyerSDK /// should sdk be stopped. public static void stopSDK(bool isSDKStopped) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.stopSDK(isSDKStopped); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.stopSDK(isSDKStopped); -#else - -#endif + if (instance != null) + { + instance.stopSDK(isSDKStopped); + } } // @@ -129,13 +143,12 @@ namespace AppsFlyerSDK /// boolean isSDKStopped. public static bool isSDKStopped() { -#if UNITY_IOS && !UNITY_EDITOR - return AppsFlyeriOS.isSDKStopped(); -#elif UNITY_ANDROID && !UNITY_EDITOR - return AppsFlyerAndroid.isSDKStopped(); -#else + if (instance != null) + { + return instance.isSDKStopped(); + } + return false; -#endif } /// @@ -144,13 +157,12 @@ namespace AppsFlyerSDK /// The current SDK version. public static string getSdkVersion() { -#if UNITY_IOS && !UNITY_EDITOR - return AppsFlyeriOS.getSDKVersion(); -#elif UNITY_ANDROID && !UNITY_EDITOR - return AppsFlyerAndroid.getSdkVersion(); -#else + if (instance != null) + { + return instance.getSdkVersion(); + } + return ""; -#endif } @@ -161,13 +173,21 @@ namespace AppsFlyerSDK /// shouldEnable boolean. public static void setIsDebug(bool shouldEnable) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setIsDebug(shouldEnable); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setIsDebug(shouldEnable); + if (instance != null) + { + instance.setIsDebug(shouldEnable); + } else { +#if UNITY_IOS || UNITY_STANDALONE_OSX + instance = new AppsFlyeriOS(); + instance.setIsDebug(shouldEnable); +#elif UNITY_ANDROID + instance = new AppsFlyerAndroid(); + instance.setIsDebug(shouldEnable); #else #endif + } + } /// @@ -177,52 +197,16 @@ namespace AppsFlyerSDK /// Customer ID for client. public static void setCustomerUserId(string id) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setCustomerUserID(id); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setCustomerUserId(id); -#elif UNITY_WSA_10_0 && !UNITY_EDITOR - AppsFlyerWindows.SetCustomerUserId(id); +#if UNITY_WSA_10_0 && !UNITY_EDITOR + AppsFlyerWindows.SetCustomerUserId(id); #else - + if (instance != null) + { + instance.setCustomerUserId(id); + } #endif } - /// - /// It is possible to delay the SDK Initialization until the customerUserID is set. - /// This feature makes sure that the SDK doesn't begin functioning until the customerUserID is provided. - /// If this API is used, all in-app events and any other SDK API calls are discarded, until the customerUserID is provided. - /// - /// wait boolean. - public static void waitForCustomerUserId(bool wait) - { -#if UNITY_IOS && !UNITY_EDITOR - // 无接口 -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.waitForCustomerUserId(wait); -#elif UNITY_WSA_10_0 && !UNITY_EDITOR - // 无接口 -#else - -#endif - } - - /// - /// Use this API to provide the SDK with the relevant customer user id and trigger the SDK to begin its normal activity. - /// - /// Customer ID for client. - public static void setCustomerIdAndStartSDK(string id) - { -#if UNITY_IOS && !UNITY_EDITOR - // 无接口 -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setCustomerIdAndStartSDK(id); -#elif UNITY_WSA_10_0 && !UNITY_EDITOR - // 无接口 -#else - -#endif - } /// /// Set the OneLink ID that should be used for User-Invite-API. /// The link that is generated for the user invite will use this OneLink as the base link. @@ -230,13 +214,28 @@ namespace AppsFlyerSDK /// OneLink ID obtained from the AppsFlyer Dashboard. public static void setAppInviteOneLinkID(string oneLinkId) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setAppInviteOneLinkID(oneLinkId); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setAppInviteOneLinkID(oneLinkId); -#else -#endif + if (instance != null) + { + instance.setAppInviteOneLinkID(oneLinkId); + } + + + } + + /// + /// Set the deepLink timeout value that should be used for DDL. + /// + /// deepLink timeout in milliseconds. + public static void setDeepLinkTimeout(long deepLinkTimeout) + { + + if (instance != null) + { + instance.setDeepLinkTimeout(deepLinkTimeout); + } + + } /// @@ -245,13 +244,13 @@ namespace AppsFlyerSDK /// additional data Dictionary. public static void setAdditionalData(Dictionary customData) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setAdditionalData(customData); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setAdditionalData(customData); -#else -#endif + if (instance != null) + { + instance.setAdditionalData(customData); + } + + } /// @@ -261,13 +260,13 @@ namespace AppsFlyerSDK /// Array of urls. public static void setResolveDeepLinkURLs(params string[] urls) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setResolveDeepLinkURLs(urls); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setResolveDeepLinkURLs(urls); -#else -#endif + if (instance != null) + { + instance.setResolveDeepLinkURLs(urls); + } + + } @@ -277,13 +276,24 @@ namespace AppsFlyerSDK /// Array of domains. public static void setOneLinkCustomDomain(params string[] domains) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setOneLinkCustomDomains(domains); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setOneLinkCustomDomain(domains); + + if (instance != null) + { + instance.setOneLinkCustomDomain(domains); + } + else + { +#if UNITY_IOS || UNITY_STANDALONE_OSX + instance = new AppsFlyeriOS(); +#elif UNITY_ANDROID + instance = new AppsFlyerAndroid(); #else #endif + + + + } } /// @@ -294,14 +304,46 @@ namespace AppsFlyerSDK /// 3 character ISO 4217 code. public static void setCurrencyCode(string currencyCode) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setCurrencyCode(currencyCode); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setCurrencyCode(currencyCode); -#else + if (instance != null) + { + instance.setCurrencyCode(currencyCode); + } else { +#if UNITY_IOS || UNITY_STANDALONE_OSX + instance = new AppsFlyeriOS(); + instance.setCurrencyCode(currencyCode); +#elif UNITY_ANDROID + instance = new AppsFlyerAndroid(); + instance.setCurrencyCode(currencyCode); +#else #endif } + } + + /// + /// Sets or updates the user consent data related to GDPR and DMA regulations for advertising and data usage purposes within the application. + /// + /// instance of AppsFlyerConsent. + public static void setConsentData(AppsFlyerConsent appsFlyerConsent) + { + if (instance != null) + { + instance.setConsentData(appsFlyerConsent); + } + } + + /// + /// Logs ad revenue data along with additional parameters if provided. + /// + /// instance of AFAdRevenueData containing ad revenue information. + /// An optional map of additional parameters to be logged with ad revenue data. This can be null if there are no additional parameters. + public static void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary additionalParameters) + { + if (instance != null) + { + instance.logAdRevenue(adRevenueData, additionalParameters); + } + } /// /// Manually record the location of the user. @@ -310,13 +352,13 @@ namespace AppsFlyerSDK /// longitude as double. public static void recordLocation(double latitude, double longitude) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.recordLocation(latitude, longitude); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.recordLocation(latitude, longitude); -#else -#endif + if (instance != null) + { + instance.recordLocation(latitude, longitude); + } + + } /// @@ -327,13 +369,26 @@ namespace AppsFlyerSDK /// shouldAnonymizeUser boolean. public static void anonymizeUser(bool shouldAnonymizeUser) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.anonymizeUser(shouldAnonymizeUser); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.anonymizeUser(shouldAnonymizeUser); -#else -#endif + if (instance != null) + { + instance.anonymizeUser(shouldAnonymizeUser); + } + + + } + + /// + /// Calling enableTCFDataCollection(true) will enable collecting and sending any TCF related data. + /// Calling enableTCFDataCollection(false) will disable the collection of TCF related data and from sending it. + /// + /// should start TCF Data collection boolean. + public static void enableTCFDataCollection(bool shouldCollectTcfData) + { + if (instance != null) + { + instance.enableTCFDataCollection(shouldCollectTcfData); + } } /// @@ -342,13 +397,15 @@ namespace AppsFlyerSDK /// AppsFlyer's unique device ID. public static string getAppsFlyerId() { -#if UNITY_IOS && !UNITY_EDITOR - return AppsFlyeriOS.getAppsFlyerId(); -#elif UNITY_ANDROID && !UNITY_EDITOR - return AppsFlyerAndroid.getAppsFlyerId(); +#if UNITY_WSA_10_0 && !UNITY_EDITOR + return AppsFlyerWindows.GetAppsFlyerId(); #else - return ""; + if (instance != null) + { + return instance.getAppsFlyerId(); + } #endif + return string.Empty; } @@ -359,13 +416,13 @@ namespace AppsFlyerSDK /// minimum time between 2 separate sessions in seconds. public static void setMinTimeBetweenSessions(int seconds) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setMinTimeBetweenSessions(seconds); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setMinTimeBetweenSessions(seconds); -#else -#endif + if (instance != null) + { + instance.setMinTimeBetweenSessions(seconds); + } + + } /// @@ -375,14 +432,21 @@ namespace AppsFlyerSDK /// Host name. public static void setHost(string hostPrefixName, string hostName) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setHost(hostName, hostPrefixName); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setHost(hostPrefixName, hostName); -#else + if (instance != null) + { + instance.setHost(hostPrefixName, hostName); + } else { +#if UNITY_IOS || UNITY_STANDALONE_OSX + instance = new AppsFlyeriOS(); + instance.setHost(hostPrefixName, hostName); +#elif UNITY_ANDROID + instance = new AppsFlyerAndroid(); + instance.setHost(hostPrefixName, hostName); +#else #endif } + } /// /// Set the user emails and encrypt them. @@ -394,15 +458,23 @@ namespace AppsFlyerSDK /// /// Encryption method. /// User emails. - public static void setUserEmails(EmailCryptType cryptMethod, params string[] emails) + public static void setUserEmails(EmailCryptType cryptType, params string[] userEmails) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setUserEmails(cryptMethod, emails.Length, emails); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setUserEmails(cryptMethod, emails); -#else -#endif + if (instance != null) + { + instance.setUserEmails(cryptType, userEmails); + } + + } + + public static void updateServerUninstallToken(string token) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.updateServerUninstallToken(token); + } } /// @@ -411,13 +483,21 @@ namespace AppsFlyerSDK /// phoneNumber string public static void setPhoneNumber(string phoneNumber) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setPhoneNumber(phoneNumber); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setPhoneNumber(phoneNumber); -#else -#endif + if (instance != null) + { + instance.setPhoneNumber(phoneNumber); + } + + } + + public static void setImeiData(string aImei) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setImeiData(aImei); + } } /// @@ -426,13 +506,31 @@ namespace AppsFlyerSDK [Obsolete("Please use setSharingFilterForPartners api")] public static void setSharingFilterForAllPartners() { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setSharingFilterForAllPartners(); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setSharingFilterForAllPartners(); -#else -#endif + if (instance != null) + { + instance.setSharingFilterForAllPartners(); + } + + + } + + public static void setAndroidIdData(string aAndroidId) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setAndroidIdData(aAndroidId); + } + } + + public static void waitForCustomerUserId(bool wait) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.waitForCustomerUserId(wait); + } } /// @@ -442,13 +540,22 @@ namespace AppsFlyerSDK [Obsolete("Please use setSharingFilterForPartners api")] public static void setSharingFilter(params string[] partners) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.setSharingFilter(partners); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.setSharingFilter(partners); -#else -#endif + if (instance != null) + { + instance.setSharingFilter(partners); + } + + + } + + public static void setCustomerIdAndStartSDK(string id) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setCustomerIdAndStartSDK(id); + } } /// @@ -457,15 +564,34 @@ namespace AppsFlyerSDK /// partners to exclude from getting data public static void setSharingFilterForPartners(params string[] partners) { -#if UNITY_IOS && !UNITY_EDITOR +#if UNITY_IOS || UNITY_STANDALONE_OSX AppsFlyeriOS.setSharingFilterForPartners(partners); -#elif UNITY_ANDROID && !UNITY_EDITOR +#elif UNITY_ANDROID AppsFlyerAndroid.setSharingFilterForPartners(partners); #else #endif } + public static string getOutOfStore() + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + return appsFlyerAndroidInstance.getOutOfStore(); + } + return string.Empty; + } + + public static void setOutOfStore(string sourceName) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setOutOfStore(sourceName); + } + } + /// /// Register a Conversion Data Listener. /// Allows the developer to access the user attribution data in real-time for every new install, directly from the SDK level. @@ -479,15 +605,60 @@ namespace AppsFlyerSDK /// public static void getConversionData(string objectName) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.getConversionData(objectName); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.getConversionData(objectName); -#elif UNITY_WSA_10_0 && !UNITY_EDITOR +#if UNITY_WSA_10_0 && !UNITY_EDITOR AppsFlyerWindows.GetConversionData(""); #else - + if (instance != null) + { + instance.getConversionData(objectName); + } #endif + + } + + public static void setCollectAndroidID(bool isCollect) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setCollectAndroidID(isCollect); + } + } + + public static void setIsUpdate(bool isUpdate) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setIsUpdate(isUpdate); + } + } + + public static void setCollectIMEI(bool isCollect) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setCollectIMEI(isCollect); + } + } + + public static void setDisableCollectAppleAdSupport(bool disable) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.setDisableCollectAppleAdSupport(disable); + } + } + + public static void setShouldCollectDeviceName(bool shouldCollectDeviceName) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.setShouldCollectDeviceName(shouldCollectDeviceName); + } } @@ -507,13 +678,49 @@ namespace AppsFlyerSDK /// public static void attributeAndOpenStore(string appID, string campaign, Dictionary userParams, MonoBehaviour gameObject) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.attributeAndOpenStore(appID, campaign, userParams, gameObject); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.attributeAndOpenStore(appID, campaign, userParams); -#else -#endif + if (instance != null) + { + instance.attributeAndOpenStore(appID, campaign, userParams, gameObject); + } + + } + + public static void setPreinstallAttribution(string mediaSource, string campaign, string siteId) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setPreinstallAttribution(mediaSource, campaign, siteId); + } + } + + public static void setDisableCollectIAd(bool disableCollectIAd) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.setDisableCollectIAd(disableCollectIAd); + } + } + + public static bool isPreInstalledApp() + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + return appsFlyerAndroidInstance.isPreInstalledApp(); + } + return false; + } + + public static void setUseReceiptValidationSandbox(bool useReceiptValidationSandbox) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.setUseReceiptValidationSandbox(useReceiptValidationSandbox); + } } /// @@ -525,13 +732,114 @@ namespace AppsFlyerSDK /// parameters Dictionary. public static void recordCrossPromoteImpression(string appID, string campaign, Dictionary parameters) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.recordCrossPromoteImpression(appID, campaign, parameters); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.recordCrossPromoteImpression(appID, campaign, parameters); -#else -#endif + if (instance != null) + { + instance.recordCrossPromoteImpression(appID, campaign, parameters); + } + + } + + public static void setUseUninstallSandbox(bool useUninstallSandbox) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.setUseUninstallSandbox(useUninstallSandbox); + } + } + + public static string getAttributionId() + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + return appsFlyerAndroidInstance.getAttributionId(); + } + return string.Empty; + } + + public static void handlePushNotifications() + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.handlePushNotifications(); + } + } + + public static void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary additionalParameters, MonoBehaviour gameObject) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.validateAndSendInAppPurchase(productIdentifier, price, currency, transactionId, additionalParameters, gameObject); + } + } + + // V2 + public static void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary extraEventValues, MonoBehaviour gameObject) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.validateAndSendInAppPurchase(details, extraEventValues, gameObject); + } + } + + public static void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary additionalParameters, MonoBehaviour gameObject) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.validateAndSendInAppPurchase(publicKey, signature,purchaseData, price, currency, additionalParameters, gameObject); + } + } + + // V2 + public static void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary additionalParameters, MonoBehaviour gameObject) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.validateAndSendInAppPurchase(details, additionalParameters, gameObject); + } + } + + public static void handleOpenUrl(string url, string sourceApplication, string annotation) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.handleOpenUrl(url, sourceApplication, annotation); + } + } + + public static void registerUninstall(byte[] deviceToken) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.registerUninstall(deviceToken); + } + } + + public static void waitForATTUserAuthorizationWithTimeoutInterval(int timeoutInterval) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.waitForATTUserAuthorizationWithTimeoutInterval(timeoutInterval); + } + } + + public static void setCurrentDeviceLanguage(string language) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.setCurrentDeviceLanguage(language); + } } /// @@ -541,14 +849,38 @@ namespace AppsFlyerSDK /// parameters Dictionary. public static void generateUserInviteLink(Dictionary parameters, MonoBehaviour gameObject) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.generateUserInviteLink(parameters, gameObject); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.generateUserInviteLink(parameters, gameObject); -#else + if (instance != null) + { + instance.generateUserInviteLink(parameters, gameObject); + } + + } + + public static void disableSKAdNetwork(bool isDisabled) + { + if (instance != null && instance is IAppsFlyerIOSBridge) + { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.disableSKAdNetwork(isDisabled); + } else { +#if UNITY_IOS || UNITY_STANDALONE_OSX + instance = new AppsFlyeriOS(); + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.disableSKAdNetwork(isDisabled); +#else #endif } + } + + public static void setCollectOaid(bool isCollect) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setCollectOaid(isCollect); + } + } /// @@ -559,13 +891,21 @@ namespace AppsFlyerSDK /// array of nested json path public static void addPushNotificationDeepLinkPath(params string[] paths) { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.addPushNotificationDeepLinkPath(paths); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.addPushNotificationDeepLinkPath(paths); -#else -#endif + if (instance != null) + { + instance.addPushNotificationDeepLinkPath(paths); + } + + } + + public static void setDisableAdvertisingIdentifiers(bool disable) + { + if (instance != null && instance is IAppsFlyerAndroidBridge) + { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setDisableAdvertisingIdentifiers(disable); + } } /// @@ -575,15 +915,56 @@ namespace AppsFlyerSDK /// public static void subscribeForDeepLink() { -#if UNITY_IOS && !UNITY_EDITOR - AppsFlyeriOS.subscribeForDeepLink(CallBackObjectName); -#elif UNITY_ANDROID && !UNITY_EDITOR - AppsFlyerAndroid.subscribeForDeepLink(CallBackObjectName); -#else + if (instance != null) + { + instance.subscribeForDeepLink(CallBackObjectName); + } + + } + + /// + /// Allows sending custom data for partner integration purposes. + /// partnerId : id of the partner + /// partnerInfo: customer data + /// + public static void setPartnerData(string partnerId, Dictionary partnerInfo) + { + if (instance != null) + { + instance.setPartnerData(partnerId, partnerInfo); + } + + } + + /// + /// Use to opt-out of collecting the network operator name (carrier) and sim operator name from the device. + /// + public static void setDisableNetworkData(bool disable) { + if (instance != null && instance is IAppsFlyerAndroidBridge) { + IAppsFlyerAndroidBridge appsFlyerAndroidInstance = (IAppsFlyerAndroidBridge)instance; + appsFlyerAndroidInstance.setDisableNetworkData(disable); + } + } + + + /// + /// Use to disable app vendor identifier (IDFV) collection, 'true' to disable. + /// + public static void disableIDFVCollection(bool isDisabled) + { +#if UNITY_IOS || UNITY_STANDALONE_OSX + if (instance == null) { + instance = new AppsFlyeriOS(); + } + if (instance != null && instance is IAppsFlyerIOSBridge) { + IAppsFlyerIOSBridge appsFlyeriOSInstance = (IAppsFlyerIOSBridge)instance; + appsFlyeriOSInstance.disableIDFVCollection(isDisabled); + } +#else #endif } - + /// /// Start callback event. /// diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs deleted file mode 100644 index a1aa78ee4..000000000 --- a/Assets/ThirdParty/AppsFlyer/AppsFlyerAdRevenue.cs +++ /dev/null @@ -1,173 +0,0 @@ -using System.Collections.Generic; -using UnityEngine; -using System.Runtime.InteropServices; -using System; - -namespace AppsFlyerSDK -{ - public class AppsFlyerAdRevenue : MonoBehaviour - { - - public static readonly string kAppsFlyerAdRevenueVersion = "6.5.4"; - -#if UNITY_ANDROID && !UNITY_EDITOR - private static AndroidJavaClass appsFlyerAndroid = new AndroidJavaClass("com.appsflyer.unity.afunityadrevenuegenericplugin.AdRevenueUnityWrapper"); -#endif - - public static void start() - { -#if UNITY_IOS && !UNITY_EDITOR - - _start(); - -#elif UNITY_ANDROID && !UNITY_EDITOR - - using(AndroidJavaClass cls_UnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) { - - using(AndroidJavaObject cls_Activity = cls_UnityPlayer.GetStatic("currentActivity")) { - - AndroidJavaObject cls_Application = cls_Activity.Call("getApplication"); - - appsFlyerAndroid.CallStatic("start", cls_Application); - } - } - -#else - -#endif - } - - - public static void setIsDebug(bool isDebug) - { -#if UNITY_IOS && !UNITY_EDITOR - _setIsDebugAdrevenue(isDebug); -#elif UNITY_ANDROID && !UNITY_EDITOR - -#else - -#endif - } - - public static void logAdRevenue(string monetizationNetwork, - AppsFlyerAdRevenueMediationNetworkType mediationNetwork, - double eventRevenue, - string revenueCurrency, - Dictionary additionalParameters) - { -#if UNITY_IOS && !UNITY_EDITOR - - _logAdRevenue(monetizationNetwork, mediationNetwork, eventRevenue, revenueCurrency, AFMiniJSON.Json.Serialize(additionalParameters)); - -#elif UNITY_ANDROID && !UNITY_EDITOR - - int mediationNetworkAndroid = setMediationNetworkTypeAndroid(mediationNetwork); - if (mediationNetworkAndroid == -1) - { - Debug.Log("Please choose a valid mediationNetwork"); - } else - { - appsFlyerAndroid.CallStatic("logAdRevenue", - monetizationNetwork, - mediationNetworkAndroid, - revenueCurrency, - eventRevenue, - convertDictionaryToJavaMap(additionalParameters)); - - } -#else - -#endif - } - -#if UNITY_IOS && !UNITY_EDITOR - - [DllImport("__Internal")] - private static extern void _start(); - - [DllImport("__Internal")] - private static extern void _setIsDebugAdrevenue(bool isDebug); - - [DllImport("__Internal")] - private static extern void _logAdRevenue(string monetizationNetwork, - AppsFlyerAdRevenueMediationNetworkType mediationNetwork, - double eventRevenue, - string revenueCurrency, - string additionalParameters); - -#elif UNITY_ANDROID && !UNITY_EDITOR - -#else - -#endif - private static int setMediationNetworkTypeAndroid(AppsFlyerAdRevenueMediationNetworkType mediationNetwork) - { - switch (mediationNetwork) - { - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeIronSource: - return 0; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeApplovinMax: - return 1; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob: - return 2; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeFyber: - return 3; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeAppodeal: - return 4; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeAdmost: - return 5; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeTopon: - return 6; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeTradplus: - return 7; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeYandex: - return 8; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeChartBoost: - return 9; - case AppsFlyerAdRevenueMediationNetworkType.AppsFlyerAdRevenueMediationNetworkTypeUnity: - return 10; - default: - return -1; - } - - } - private static AndroidJavaObject convertDictionaryToJavaMap(Dictionary dictionary) - { - AndroidJavaObject map = new AndroidJavaObject("java.util.HashMap"); - IntPtr putMethod = AndroidJNIHelper.GetMethodID(map.GetRawClass(), "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"); - jvalue[] val; - if (dictionary != null) - { - foreach (var entry in dictionary) - { - val = AndroidJNIHelper.CreateJNIArgArray(new object[] { entry.Key, entry.Value }); - AndroidJNI.CallObjectMethod(map.GetRawObject(), putMethod, val); - AndroidJNI.DeleteLocalRef(val[0].l); - AndroidJNI.DeleteLocalRef(val[1].l); - } - } - - return map; - } - } - - - public enum AppsFlyerAdRevenueMediationNetworkType - { - AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob = 1, - AppsFlyerAdRevenueMediationNetworkTypeIronSource = 2, - AppsFlyerAdRevenueMediationNetworkTypeApplovinMax = 3, - AppsFlyerAdRevenueMediationNetworkTypeFyber = 4, - AppsFlyerAdRevenueMediationNetworkTypeAppodeal = 5, - AppsFlyerAdRevenueMediationNetworkTypeAdmost = 6, - AppsFlyerAdRevenueMediationNetworkTypeTopon = 7, - AppsFlyerAdRevenueMediationNetworkTypeTradplus = 8, - AppsFlyerAdRevenueMediationNetworkTypeYandex = 9, - AppsFlyerAdRevenueMediationNetworkTypeChartBoost = 10, - AppsFlyerAdRevenueMediationNetworkTypeUnity = 11 - - } - - - -} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerAndroid.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyerAndroid.cs index 4d84b7333..f380585a8 100644 --- a/Assets/ThirdParty/AppsFlyer/AppsFlyerAndroid.cs +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyerAndroid.cs @@ -6,11 +6,13 @@ namespace AppsFlyerSDK { #if UNITY_ANDROID - public class AppsFlyerAndroid + public class AppsFlyerAndroid : IAppsFlyerAndroidBridge { + public bool isInit { get; set; } private static AndroidJavaClass appsFlyerAndroid = new AndroidJavaClass("com.appsflyer.unity.AppsFlyerAndroidWrapper"); + public AppsFlyerAndroid() { } /// /// Use this method to init the sdk for the application. @@ -18,7 +20,7 @@ namespace AppsFlyerSDK /// /// AppsFlyer's Dev-Key, which is accessible from your AppsFlyer account under 'App Settings' in the dashboard. /// The current game object. This is used to get the conversion data callbacks. Pass null if you do not need the callbacks. - public static void initSDK(string devkey, MonoBehaviour gameObject) + public void initSDK(string devkey, MonoBehaviour gameObject) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("initSDK", devkey, gameObject ? gameObject.name : null); @@ -30,15 +32,10 @@ namespace AppsFlyerSDK /// The AppsFlyer's Dev-Key must be provided. /// /// AppsFlyer's Dev-Key, which is accessible from your AppsFlyer account under 'App Settings' in the dashboard. - public static void startSDK() - { - startSDK(false, AppsFlyer.CallBackObjectName); - } - - public static void startSDK(bool shouldCallback, string callBackObjectName) + public void startSDK(bool onRequestResponse, string CallBackObjectName) { #if !UNITY_EDITOR - appsFlyerAndroid.CallStatic("startTracking", shouldCallback, callBackObjectName); + appsFlyerAndroid.CallStatic("startTracking", onRequestResponse, CallBackObjectName); #endif } @@ -48,7 +45,7 @@ namespace AppsFlyerSDK /// This can be achieved with the stopSDK API. /// /// boolean should SDK be stopped. - public static void stopSDK(bool isSDKStopped) + public void stopSDK(bool isSDKStopped) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("stopTracking", isSDKStopped); @@ -59,7 +56,7 @@ namespace AppsFlyerSDK /// Get the AppsFlyer SDK version used in app. /// /// AppsFlyer SDK version. - public static string getSdkVersion() + public string getSdkVersion() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("getSdkVersion"); @@ -72,7 +69,7 @@ namespace AppsFlyerSDK /// Manually pass the Firebase / GCM Device Token for Uninstall measurement. /// /// Firebase Device Token. - public static void updateServerUninstallToken(string token) + public void updateServerUninstallToken(string token) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("updateServerUninstallToken", token); @@ -84,7 +81,7 @@ namespace AppsFlyerSDK /// Should only be set to true in development / debug. /// /// shouldEnable boolean. - public static void setIsDebug(bool shouldEnable) + public void setIsDebug(bool shouldEnable) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setIsDebug", shouldEnable); @@ -97,7 +94,7 @@ namespace AppsFlyerSDK /// Use this API to explicitly send IMEI to AppsFlyer. /// /// device's IMEI. - public static void setImeiData(string aImei) + public void setImeiData(string aImei) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setImeiData", aImei); @@ -110,7 +107,7 @@ namespace AppsFlyerSDK /// Use this API to explicitly send Android ID to AppsFlyer. /// /// device's Android ID. - public static void setAndroidIdData(string aAndroidId) + public void setAndroidIdData(string aAndroidId) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setAndroidIdData", aAndroidId); @@ -122,7 +119,7 @@ namespace AppsFlyerSDK /// This ID is available in AppsFlyer CSV reports along with Postback APIs for cross-referencing with your internal IDs. /// /// Customer ID for client. - public static void setCustomerUserId(string id) + public void setCustomerUserId(string id) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setCustomerUserId", id); @@ -135,7 +132,7 @@ namespace AppsFlyerSDK /// If this API is used, all in-app events and any other SDK API calls are discarded, until the customerUserID is provided. /// /// wait boolean. - public static void waitForCustomerUserId(bool wait) + public void waitForCustomerUserId(bool wait) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("waitForCustomerUserId", wait); @@ -146,7 +143,7 @@ namespace AppsFlyerSDK /// Use this API to provide the SDK with the relevant customer user id and trigger the SDK to begin its normal activity. /// /// Customer ID for client. - public static void setCustomerIdAndStartSDK(string id) + public void setCustomerIdAndStartSDK(string id) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setCustomerIdAndTrack", id); @@ -157,7 +154,7 @@ namespace AppsFlyerSDK /// Get the current AF_STORE value. /// /// AF_Store value. - public static string getOutOfStore() + public string getOutOfStore() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("getOutOfStore"); @@ -170,7 +167,7 @@ namespace AppsFlyerSDK /// Manually set the AF_STORE value. /// /// value to be set. - public static void setOutOfStore(string sourceName) + public void setOutOfStore(string sourceName) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setOutOfStore", sourceName); @@ -182,7 +179,7 @@ namespace AppsFlyerSDK /// The link that is generated for the user invite will use this OneLink as the base link. /// /// OneLink ID obtained from the AppsFlyer Dashboard. - public static void setAppInviteOneLinkID(string oneLinkId) + public void setAppInviteOneLinkID(string oneLinkId) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setAppInviteOneLinkID", oneLinkId); @@ -193,21 +190,32 @@ namespace AppsFlyerSDK /// Set additional data to be sent to AppsFlyer. /// /// additional data Dictionary. - public static void setAdditionalData(Dictionary customData) + public void setAdditionalData(Dictionary customData) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setAdditionalData", convertDictionaryToJavaMap(customData)); #endif } + //// + /// Set the deepLink timeout value that should be used for DDL. + /// + /// deepLink timeout in milliseconds. + public void setDeepLinkTimeout(long deepLinkTimeout) + { +#if !UNITY_EDITOR + appsFlyerAndroid.CallStatic("setDeepLinkTimeout", deepLinkTimeout); +#endif + } + /// /// Set the user emails. /// /// User emails. - public static void setUserEmails(params string[] emails) + public void setUserEmails(params string[] userEmails) { #if !UNITY_EDITOR - appsFlyerAndroid.CallStatic("setUserEmails", (object)emails); + appsFlyerAndroid.CallStatic("setUserEmails", (object)userEmails); #endif } @@ -216,7 +224,7 @@ namespace AppsFlyerSDK /// Set the user phone number. /// /// User phoneNumber. - public static void setPhoneNumber(string phoneNumber){ + public void setPhoneNumber(string phoneNumber){ #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setPhoneNumber", phoneNumber); #endif @@ -232,7 +240,7 @@ namespace AppsFlyerSDK /// /// Encryption method. /// User emails. - public static void setUserEmails(EmailCryptType cryptMethod, params string[] emails) + public void setUserEmails(EmailCryptType cryptMethod, params string[] emails) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setUserEmails", getEmailType(cryptMethod), (object)emails); @@ -245,7 +253,7 @@ namespace AppsFlyerSDK /// However, apps with Google play services should avoid Android ID collection as this is in violation of the Google Play policy. /// /// boolean, false to opt-out. - public static void setCollectAndroidID(bool isCollect) + public void setCollectAndroidID(bool isCollect) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setCollectAndroidID", isCollect); @@ -258,7 +266,7 @@ namespace AppsFlyerSDK /// However, apps with Google play services should avoid IMEI collection as this is in violation of the Google Play policy. /// /// boolean, false to opt-out. - public static void setCollectIMEI(bool isCollect) + public void setCollectIMEI(bool isCollect) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setCollectIMEI", isCollect); @@ -270,7 +278,7 @@ namespace AppsFlyerSDK /// This Universal Link will invoke the app but any deep linking data will not propagate to AppsFlyer. /// /// Array of urls. - public static void setResolveDeepLinkURLs(params string[] urls) + public void setResolveDeepLinkURLs(params string[] urls) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setResolveDeepLinkURLs", (object)urls); @@ -282,7 +290,7 @@ namespace AppsFlyerSDK /// Advertisers can use this method to set vanity onelink domains. /// /// Array of domains. - public static void setOneLinkCustomDomain(params string[] domains) + public void setOneLinkCustomDomain(params string[] domains) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setOneLinkCustomDomain", (object)domains); @@ -293,7 +301,7 @@ namespace AppsFlyerSDK /// Manually set that the application was updated. /// /// isUpdate boolean value. - public static void setIsUpdate(bool isUpdate) + public void setIsUpdate(bool isUpdate) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setIsUpdate", isUpdate); @@ -306,7 +314,7 @@ namespace AppsFlyerSDK /// You can set the currency code for all events by calling the following method. /// /// 3 character ISO 4217 code. - public static void setCurrencyCode(string currencyCode) + public void setCurrencyCode(string currencyCode) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setCurrencyCode", currencyCode); @@ -318,7 +326,7 @@ namespace AppsFlyerSDK /// /// latitude as double. /// longitude as double. - public static void recordLocation(double latitude, double longitude) + public void recordLocation(double latitude, double longitude) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("trackLocation", latitude, longitude); @@ -331,12 +339,12 @@ namespace AppsFlyerSDK /// /// Event Name as String. /// Event Values as Dictionary. - public static void sendEvent(string eventName, Dictionary eventValues) + public void sendEvent(string eventName, Dictionary eventValues) { sendEvent(eventName, eventValues, false, AppsFlyer.CallBackObjectName); } - public static void sendEvent(string eventName, Dictionary eventValues, bool shouldCallback, string callBackObjectName) + public void sendEvent(string eventName, Dictionary eventValues, bool shouldCallback, string callBackObjectName) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("trackEvent", eventName, convertDictionaryToJavaMap(eventValues), shouldCallback, callBackObjectName); @@ -349,26 +357,66 @@ namespace AppsFlyerSDK /// Default is false. /// /// isDisabled boolean. - public static void anonymizeUser(bool isDisabled) + public void anonymizeUser(bool isDisabled) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setDeviceTrackingDisabled", isDisabled); #endif } + /// + /// Calling enableTCFDataCollection(true) will enable collecting and sending any TCF related data. + /// Calling enableTCFDataCollection(false) will disable the collection of TCF related data and from sending it. + /// + /// should start TCF Data collection boolean. + public void enableTCFDataCollection(bool shouldCollectTcfData) + { +#if !UNITY_EDITOR + appsFlyerAndroid.CallStatic("enableTCFDataCollection", shouldCollectTcfData); +#endif + } + /// /// Enable the collection of Facebook Deferred AppLinks. /// Requires Facebook SDK and Facebook app on target/client device. /// This API must be invoked prior to initializing the AppsFlyer SDK in order to function properly. /// /// should Facebook's deferred app links be processed by the AppsFlyer SDK. - public static void enableFacebookDeferredApplinks(bool isEnabled) + public void enableFacebookDeferredApplinks(bool isEnabled) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("enableFacebookDeferredApplinks", isEnabled); #endif } + /// + /// Sets or updates the user consent data related to GDPR and DMA regulations for advertising and data usage purposes within the application. + /// call this method when GDPR user is true + /// + /// hasConsentForDataUsage boolean. + /// hasConsentForAdsPersonalization boolean. + public void setConsentData(AppsFlyerConsent appsFlyerConsent) + { +#if !UNITY_EDITOR + string isUserSubjectToGDPR = appsFlyerConsent.isUserSubjectToGDPR?.ToString().ToLower() ?? "null"; + string hasConsentForDataUsage = appsFlyerConsent.hasConsentForDataUsage?.ToString().ToLower() ?? "null"; + string hasConsentForAdsPersonalization = appsFlyerConsent.hasConsentForAdsPersonalization?.ToString().ToLower() ?? "null"; + string hasConsentForAdStorage = appsFlyerConsent.hasConsentForAdStorage?.ToString().ToLower() ?? "null"; + + appsFlyerAndroid.CallStatic("setConsentData", isUserSubjectToGDPR, hasConsentForDataUsage, hasConsentForAdsPersonalization, hasConsentForAdStorage); +#endif + } + + /// + /// Logs ad revenue data along with additional parameters if provided. + /// instance of AFAdRevenueData containing ad revenue information. + /// An optional map of additional parameters to be logged with ad revenue data. This can be null if there are no additional parameters. + public void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary additionalParameters) + { +#if !UNITY_EDITOR + appsFlyerAndroid.CallStatic("logAdRevenue", adRevenueData.monetizationNetwork, getMediationNetwork(adRevenueData.mediationNetwork), adRevenueData.currencyIso4217Code, adRevenueData.eventRevenue, convertDictionaryToJavaMap(additionalParameters)); +#endif + } /// /// Restrict reengagement via deep-link to once per each unique deep-link. @@ -376,7 +424,7 @@ namespace AppsFlyerSDK /// The default value is false. /// /// doConsume boolean. - public static void setConsumeAFDeepLinks(bool doConsume) + public void setConsumeAFDeepLinks(bool doConsume) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setConsumeAFDeepLinks", doConsume); @@ -389,7 +437,7 @@ namespace AppsFlyerSDK /// Manufacturer or media source name for preinstall attribution. /// Campaign name for preinstall attribution. /// Site ID for preinstall attribution. - public static void setPreinstallAttribution(string mediaSource, string campaign, string siteId) + public void setPreinstallAttribution(string mediaSource, string campaign, string siteId) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setPreinstallAttribution", mediaSource, campaign, siteId); @@ -400,7 +448,7 @@ namespace AppsFlyerSDK /// Boolean indicator for preinstall by Manufacturer. /// /// boolean isPreInstalledApp. - public static bool isPreInstalledApp() + public bool isPreInstalledApp() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("isPreInstalledApp"); @@ -413,7 +461,7 @@ namespace AppsFlyerSDK /// Get the Facebook attribution ID, if one exists. /// /// string Facebook attribution ID. - public static string getAttributionId() + public string getAttributionId() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("getAttributionId"); @@ -426,7 +474,7 @@ namespace AppsFlyerSDK /// Get AppsFlyer's unique device ID is created for every new install of an app. /// /// AppsFlyer's unique device ID. - public static string getAppsFlyerId() + public string getAppsFlyerId() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("getAppsFlyerId"); @@ -445,18 +493,31 @@ namespace AppsFlyerSDK /// Purchase price, should be derived from skuDetails.getStringArrayList("DETAILS_LIST") /// Purchase currency, should be derived from skuDetails.getStringArrayList("DETAILS_LIST") /// additionalParameters Freehand parameters to be sent with the purchase (if validated). - public static void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary additionalParameters, MonoBehaviour gameObject) + public void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary additionalParameters, MonoBehaviour gameObject) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("validateAndTrackInAppPurchase", publicKey, signature, purchaseData, price, currency, convertDictionaryToJavaMap(additionalParameters), gameObject ? gameObject.name : null); #endif } + /// + /// API for server verification of in-app purchases. + /// An af_purchase event with the relevant values will be automatically sent if the validation is successful. + /// + /// AFPurchaseDetailsAndroid instance. + /// additionalParameters Freehand parameters to be sent with the purchase (if validated). + public void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary additionalParameters, MonoBehaviour gameObject) + { +#if !UNITY_EDITOR + appsFlyerAndroid.CallStatic("validateAndTrackInAppPurchaseV2", (int)details.purchaseType, details.purchaseToken, details.productId, details.price, details.currency, convertDictionaryToJavaMap(additionalParameters), gameObject ? gameObject.name : null); +#endif + } + /// /// Was the stopSDK(boolean) API set to true. /// /// boolean isSDKStopped. - public static bool isSDKStopped() + public bool isSDKStopped() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("isTrackingStopped"); @@ -470,7 +531,7 @@ namespace AppsFlyerSDK /// By default, at least 5 seconds must lapse between 2 app launches to count as separate 2 sessions. /// /// minimum time between 2 separate sessions in seconds. - public static void setMinTimeBetweenSessions(int seconds) + public void setMinTimeBetweenSessions(int seconds) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setMinTimeBetweenSessions", seconds); @@ -482,7 +543,7 @@ namespace AppsFlyerSDK /// /// Host prefix. /// Host name. - public static void setHost(string hostPrefixName, string hostName) + public void setHost(string hostPrefixName, string hostName) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setHost", hostPrefixName, hostName); @@ -494,7 +555,7 @@ namespace AppsFlyerSDK /// Default value is "appsflyer.com". /// /// Host name. - public static string getHostName() + public string getHostName() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("getHostName"); @@ -507,7 +568,7 @@ namespace AppsFlyerSDK /// Get the custom host prefix. /// /// Host prefix. - public static string getHostPrefix() + public string getHostPrefix() { #if !UNITY_EDITOR return appsFlyerAndroid.CallStatic("getHostPrefix"); @@ -519,7 +580,7 @@ namespace AppsFlyerSDK /// /// Used by advertisers to exclude all networks/integrated partners from getting data. /// - public static void setSharingFilterForAllPartners() + public void setSharingFilterForAllPartners() { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setSharingFilterForAllPartners"); @@ -530,7 +591,7 @@ namespace AppsFlyerSDK /// Used by advertisers to set some (one or more) networks/integrated partners to exclude from getting data. /// /// partners to exclude from getting data - public static void setSharingFilter(params string[] partners) + public void setSharingFilter(params string[] partners) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setSharingFilter", (object)partners); @@ -554,7 +615,7 @@ namespace AppsFlyerSDK /// By doing this you can serve users with personalized content or send them to specific activities within the app, /// which can greatly enhance their engagement with your app. /// - public static void getConversionData(string objectName) + public void getConversionData(string objectName) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("getConversionData", objectName); @@ -564,7 +625,7 @@ namespace AppsFlyerSDK /// /// Register a validation listener for the validateAndSendInAppPurchase API. /// - public static void initInAppPurchaseValidatorListener(MonoBehaviour gameObject) + public void initInAppPurchaseValidatorListener(MonoBehaviour gameObject) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("initInAppPurchaseValidatorListener", gameObject ? gameObject.name : null); @@ -576,7 +637,7 @@ namespace AppsFlyerSDK /// You must include the appsflyer oaid library for this api to work. /// /// isCollect oaid - set fasle to opt out - public static void setCollectOaid(bool isCollect) + public void setCollectOaid(bool isCollect) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setCollectOaid", isCollect); @@ -589,7 +650,7 @@ namespace AppsFlyerSDK /// promoted App ID /// cross promotion campaign /// additional user params - public static void attributeAndOpenStore(string promoted_app_id, string campaign, Dictionary userParams) + public void attributeAndOpenStore(string promoted_app_id, string campaign, Dictionary userParams, MonoBehaviour gameObject) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("attributeAndOpenStore", promoted_app_id, campaign, convertDictionaryToJavaMap(userParams)); @@ -603,7 +664,7 @@ namespace AppsFlyerSDK /// promoted App ID. /// cross promotion campaign. /// parameters Dictionary. - public static void recordCrossPromoteImpression(string appID, string campaign, Dictionary parameters) + public void recordCrossPromoteImpression(string appID, string campaign, Dictionary parameters) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("recordCrossPromoteImpression", appID, campaign, convertDictionaryToJavaMap(parameters)); @@ -615,7 +676,7 @@ namespace AppsFlyerSDK /// See - https://support.appsflyer.com/hc/en-us/articles/115004480866-User-invite-attribution- /// /// parameters Dictionary. - public static void generateUserInviteLink(Dictionary parameters, MonoBehaviour gameObject) + public void generateUserInviteLink(Dictionary parameters, MonoBehaviour gameObject) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("createOneLinkInviteListener", convertDictionaryToJavaMap(parameters), gameObject ? gameObject.name : null); @@ -625,7 +686,7 @@ namespace AppsFlyerSDK /// /// To measure push notifications as part of a retargeting campaign. /// - public static void handlePushNotifications(){ + public void handlePushNotifications(){ #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("handlePushNotifications"); #endif @@ -637,7 +698,7 @@ namespace AppsFlyerSDK /// See docs for more info. /// /// array of nested json path - public static void addPushNotificationDeepLinkPath(params string[] paths) + public void addPushNotificationDeepLinkPath(params string[] paths) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("addPushNotificationDeepLinkPath", (object)paths); @@ -647,7 +708,7 @@ namespace AppsFlyerSDK /// /// subscribe to unified deep link callbacks /// - public static void subscribeForDeepLink(string objectName){ + public void subscribeForDeepLink(string objectName){ #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("subscribeForDeepLink", objectName); #endif @@ -657,13 +718,32 @@ namespace AppsFlyerSDK /// Disables collection of various Advertising IDs by the SDK. This includes Google Advertising ID (GAID), OAID and Amazon Advertising ID (AAID) /// /// disable boolean. - public static void setDisableAdvertisingIdentifiers(bool disable) + public void setDisableAdvertisingIdentifiers(bool disable) { #if !UNITY_EDITOR appsFlyerAndroid.CallStatic("setDisableAdvertisingIdentifiers", disable); #endif } + /// + /// Allows sending custom data for partner integration purposes. + /// + public void setPartnerData(string partnerId, Dictionary partnerInfo) + { +#if !UNITY_EDITOR + appsFlyerAndroid.CallStatic("setPartnerData", partnerId, convertDictionaryToJavaMap(partnerInfo)); +#endif + } + + /// + /// Use to opt-out of collecting the network operator name (carrier) and sim operator name from the device. + /// + public void setDisableNetworkData(bool disable) { +#if !UNITY_EDITOR + appsFlyerAndroid.CallStatic("setDisableNetworkData", disable); +#endif + } + /// /// Internal Helper Method. /// @@ -685,6 +765,65 @@ namespace AppsFlyerSDK return emailsCryptType; } + /// + /// Internal Helper Method. + /// + private static AndroidJavaObject getMediationNetwork(MediationNetwork mediationNetwork) + { + AndroidJavaClass mediationNetworkEnumClass = new AndroidJavaClass("com.appsflyer.MediationNetwork"); + AndroidJavaObject mediationNetworkObject; + + switch (mediationNetwork) + { + case MediationNetwork.IronSource: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("IRONSOURCE"); + break; + case MediationNetwork.ApplovinMax: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("APPLOVIN_MAX"); + break; + case MediationNetwork.GoogleAdMob: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("GOOGLE_ADMOB"); + break; + case MediationNetwork.Fyber: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("FYBER"); + break; + case MediationNetwork.Appodeal: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("APPODEAL"); + break; + case MediationNetwork.Admost: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("ADMOST"); + break; + case MediationNetwork.Topon: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("TOPON"); + break; + case MediationNetwork.Tradplus: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("TRADPLUS"); + break; + case MediationNetwork.Yandex: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("YANDEX"); + break; + case MediationNetwork.ChartBoost: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("CHARTBOOST"); + break; + case MediationNetwork.Unity: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("UNITY"); + break; + case MediationNetwork.ToponPte: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("TOPON_PTE"); + break; + case MediationNetwork.Custom: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("CUSTOM_MEDIATION"); + break; + case MediationNetwork.DirectMonetization: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("DIRECT_MONETIZATION_NETWORK"); + break; + default: + mediationNetworkObject = mediationNetworkEnumClass.GetStatic("NONE"); + break; + } + return mediationNetworkObject; + } + /// /// Internal Helper Method. /// @@ -707,9 +846,6 @@ namespace AppsFlyerSDK return map; } } - #endif - - } \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs new file mode 100644 index 000000000..feb448da0 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace AppsFlyerSDK +{ + /// + // Data class representing a user's consent for data processing in accordance with GDPR and DMA + // (Digital Markets Act) compliance, specifically regarding advertising preferences. + + // This class should be used to notify and record the user's applicability + // under GDPR, their general consent to data usage, and their consent to personalized + // advertisements based on user data. + + /// ## Properties: + /// - `isUserSubjectToGDPR` (optional) - Indicates whether GDPR regulations apply to the user. + /// This may also serve as a general compliance flag for other regional regulations. + /// - `hasConsentForDataUsage` (optional) - Indicates whether the user consents to the processing + /// of their data for advertising purposes. + /// - `hasConsentForAdsPersonalization` (optional) - Indicates whether the user consents to the + /// use of their data for personalized advertising. + /// - `hasConsentForAdStorage` (optional) - Indicates whether the user consents to ad-related storage access. + /// + /// **Usage Example:** + /// ```csharp + /// var consent = new AppsFlyerConsent( + /// isUserSubjectToGDPR: true, + /// hasConsentForDataUsage: true, + /// hasConsentForAdsPersonalization: false, + /// hasConsentForAdStorage: true + /// ); + /// **Deprecated APIs:** + /// - `ForGDPRUser(...)` and `ForNonGDPRUser(...)` should no longer be used. + /// - Use `new AppsFlyerConsent(...)` instead with relevant consent fields. + /// + /// + public class AppsFlyerConsent + { + public bool? isUserSubjectToGDPR { get; private set; } + public bool? hasConsentForDataUsage { get; private set; } + public bool? hasConsentForAdsPersonalization { get; private set; } + public bool? hasConsentForAdStorage { get; private set; } + + public AppsFlyerConsent( bool? isUserSubjectToGDPR = null, bool? hasConsentForDataUsage = null, bool? hasConsentForAdsPersonalization = null, bool? hasConsentForAdStorage = null) + { + this.isUserSubjectToGDPR = isUserSubjectToGDPR; + this.hasConsentForDataUsage = hasConsentForDataUsage; + this.hasConsentForAdsPersonalization = hasConsentForAdsPersonalization; + this.hasConsentForAdStorage = hasConsentForAdStorage; + } + + [Obsolete("Use the new constructor with optional booleans instead.")] + private AppsFlyerConsent(bool isGDPR, bool hasForDataUsage, bool hasForAdsPersonalization) + { + isUserSubjectToGDPR = isGDPR; + hasConsentForDataUsage = hasForDataUsage; + hasConsentForAdsPersonalization = hasForAdsPersonalization; + } + + [Obsolete("Use new AppsFlyerConsent(...) instead.")] + public static AppsFlyerConsent ForGDPRUser(bool hasConsentForDataUsage, bool hasConsentForAdsPersonalization) + { + return new AppsFlyerConsent(true, hasConsentForDataUsage, hasConsentForAdsPersonalization); + } + + [Obsolete("Use new AppsFlyerConsent(...) instead.")] + public static AppsFlyerConsent ForNonGDPRUser() + { + return new AppsFlyerConsent(false); + } + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs.meta b/Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs.meta new file mode 100644 index 000000000..5a881deee --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyerConsent.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a97c986fe4ee0461badf7042e08db3f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerEventArgs.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyerEventArgs.cs index 1d1da7f46..511db67dd 100644 --- a/Assets/ThirdParty/AppsFlyer/AppsFlyerEventArgs.cs +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyerEventArgs.cs @@ -123,7 +123,6 @@ namespace AppsFlyerSDK AppsFlyer.AFLog("DeepLinkEventsArgs.isDeferred", String.Format("{0} Exception caught.", e)); } } - return false; } @@ -156,7 +155,11 @@ namespace AppsFlyerSDK { this.deepLink = AppsFlyer.CallbackStringToDictionary(dictionary["deepLink"].ToString()); } - + if (dictionary.ContainsKey("is_deferred")) + { + this.deepLink["is_deferred"] = dictionary["is_deferred"]; + } + switch (status) { case "FOUND": diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerObjectScript.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyerObjectScript.cs index cf5575df5..40c2454b6 100644 --- a/Assets/ThirdParty/AppsFlyer/AppsFlyerObjectScript.cs +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyerObjectScript.cs @@ -1,3 +1,4 @@ +using System; using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -14,22 +15,31 @@ public class AppsFlyerObjectScript : MonoBehaviour , IAppsFlyerConversionData public string iosDevKey; public string appID; public string UWPAppID; + public string macOSAppID; public bool isDebug; public bool getConversionData; //******************************// + public static string AFConversionData = ""; + public static bool IsGetConversionDataOver = false; + public static string AFAttributionData = ""; + public static bool IsGetAppOpenAttributionOver = false; + public static bool IsGetAFOnRequestResponse = false; + public static int AFOnRequestResponseStatusCode = 0; + public static string AFOnRequestResponseErrorDescription = string.Empty; void Start() { // These fields are set from the editor so do not modify! //******************************// - AppsFlyer.waitForCustomerUserId(true); AppsFlyer.setIsDebug(isDebug); + AppsFlyer.OnRequestResponse += AppsFlyerOnRequestResponse; #if UNITY_WSA_10_0 && !UNITY_EDITOR AppsFlyer.initSDK(devKey, UWPAppID, getConversionData ? this : null); +#elif UNITY_STANDALONE_OSX && !UNITY_EDITOR + AppsFlyer.initSDK(devKey, macOSAppID, getConversionData ? this : null); #elif UNITY_IOS && !UNITY_EDITOR - // Notice: After 6.6.0 use the follow code: https://github.com/AppsFlyerSDK/appsflyer-unity-plugin - AppsFlyeriOS.waitForATTUserAuthorizationWithTimeoutInterval(60); + AppsFlyer.waitForATTUserAuthorizationWithTimeoutInterval(60); AppsFlyer.initSDK(iosDevKey, appID, getConversionData ? this : null); #else AppsFlyer.initSDK(devKey, appID, getConversionData ? this : null); @@ -49,25 +59,39 @@ public class AppsFlyerObjectScript : MonoBehaviour , IAppsFlyerConversionData public void onConversionDataSuccess(string conversionData) { AppsFlyer.AFLog("didReceiveConversionData", conversionData); - Dictionary conversionDataDictionary = AppsFlyer.CallbackStringToDictionary(conversionData); + // Dictionary conversionDataDictionary = AppsFlyer.CallbackStringToDictionary(conversionData); // add deferred deeplink logic here + AFConversionData = conversionData; + IsGetConversionDataOver = true; } public void onConversionDataFail(string error) { AppsFlyer.AFLog("didReceiveConversionDataWithError", error); + IsGetConversionDataOver = true; } public void onAppOpenAttribution(string attributionData) { AppsFlyer.AFLog("onAppOpenAttribution", attributionData); - Dictionary attributionDataDictionary = AppsFlyer.CallbackStringToDictionary(attributionData); + // Dictionary attributionDataDictionary = AppsFlyer.CallbackStringToDictionary(attributionData); // add direct deeplink logic here + AFAttributionData = attributionData; + IsGetAppOpenAttributionOver = true; } public void onAppOpenAttributionFailure(string error) { AppsFlyer.AFLog("onAppOpenAttributionFailure", error); + IsGetAppOpenAttributionOver = true; + } + + void AppsFlyerOnRequestResponse(object sender, EventArgs e) + { + var args = e as AppsFlyerRequestEventArgs; + AFOnRequestResponseStatusCode = args.statusCode; + AFOnRequestResponseErrorDescription = args.errorDescription; + IsGetAFOnRequestResponse = true; } } diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs new file mode 100644 index 000000000..ee43009bf --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs @@ -0,0 +1,426 @@ +using System.Collections.Generic; +using System.Runtime.InteropServices; +using UnityEngine; +using System; + +namespace AppsFlyerSDK +{ + + public interface IAppsFlyerPurchaseRevenueDataSource + { + Dictionary PurchaseRevenueAdditionalParametersForProducts(HashSet products, HashSet transactions); + } + + public interface IAppsFlyerPurchaseRevenueDataSourceStoreKit2 + { + Dictionary PurchaseRevenueAdditionalParametersStoreKit2ForProducts(HashSet products, HashSet transactions); + } + + public class AppsFlyerPurchaseRevenueBridge : MonoBehaviour + { + #if UNITY_IOS && !UNITY_EDITOR +[DllImport("__Internal")] +private static extern void RegisterUnityPurchaseRevenueParamsCallback(Func callback); + +[DllImport("__Internal")] +private static extern void RegisterUnityPurchaseRevenueParamsCallbackSK2(Func callback); +#endif + + private static IAppsFlyerPurchaseRevenueDataSource _dataSource; + private static IAppsFlyerPurchaseRevenueDataSourceStoreKit2 _dataSourceSK2; + + public static void RegisterDataSource(IAppsFlyerPurchaseRevenueDataSource dataSource) + { + _dataSource = dataSource; + #if UNITY_IOS && !UNITY_EDITOR + RegisterUnityPurchaseRevenueParamsCallback(GetAdditionalParameters); + #elif UNITY_ANDROID && !UNITY_EDITOR + using (AndroidJavaClass jc = new AndroidJavaClass("com.appsflyer.unity.PurchaseRevenueBridge")) + { + jc.CallStatic("setUnityBridge", new UnityPurchaseRevenueBridgeProxy()); + } + #endif + } + + public static void RegisterDataSourceStoreKit2(IAppsFlyerPurchaseRevenueDataSourceStoreKit2 dataSource) + { + #if UNITY_IOS && !UNITY_EDITOR + _dataSourceSK2 = dataSource; + RegisterUnityPurchaseRevenueParamsCallbackSK2(GetAdditionalParametersSK2); + #endif + } + + public static Dictionary GetAdditionalParametersForAndroid(HashSet products, HashSet transactions) + { + return _dataSource?.PurchaseRevenueAdditionalParametersForProducts(products, transactions) + ?? new Dictionary(); + } + + #if UNITY_IOS && !UNITY_EDITOR + [AOT.MonoPInvokeCallback(typeof(Func))] + public static string GetAdditionalParameters(string productsJson, string transactionsJson) + { + try + { + HashSet products = new HashSet(); + HashSet transactions = new HashSet(); + + if (!string.IsNullOrEmpty(productsJson)) + { + var dict = AFMiniJSON.Json.Deserialize(productsJson) as Dictionary; + if (dict != null) + { + if (dict.TryGetValue("products", out var productsObj) && productsObj is List productList) + products = new HashSet(productList); + + if (dict.TryGetValue("transactions", out var transactionsObj) && transactionsObj is List transactionList) + transactions = new HashSet(transactionList); + } + } + + var parameters = _dataSource?.PurchaseRevenueAdditionalParametersForProducts(products, transactions) + ?? new Dictionary(); + return AFMiniJSON.Json.Serialize(parameters); + } + catch (Exception e) + { + Debug.LogError($"[AppsFlyer] Exception in GetAdditionalParameters: {e}"); + return "{}"; + } + } + #endif + + #if UNITY_IOS && !UNITY_EDITOR + [AOT.MonoPInvokeCallback(typeof(Func))] + public static string GetAdditionalParametersSK2(string productsJson, string transactionsJson) + { + try + { + HashSet products = new HashSet(); + HashSet transactions = new HashSet(); + + if (!string.IsNullOrEmpty(productsJson)) + { + var dict = AFMiniJSON.Json.Deserialize(productsJson) as Dictionary; + if (dict != null && dict.TryGetValue("products", out var productsObj) && productsObj is List productList) + products = new HashSet(productList); + } + if (!string.IsNullOrEmpty(transactionsJson)) + { + var dict = AFMiniJSON.Json.Deserialize(transactionsJson) as Dictionary; + if (dict != null && dict.TryGetValue("transactions", out var transactionsObj) && transactionsObj is List transactionList) + transactions = new HashSet(transactionList); + } + + var parameters = _dataSourceSK2?.PurchaseRevenueAdditionalParametersStoreKit2ForProducts(products, transactions) + ?? new Dictionary(); + return AFMiniJSON.Json.Serialize(parameters); + } + catch (Exception e) + { + Debug.LogError($"[AppsFlyer] Exception in GetAdditionalParametersSK2: {e}"); + return "{}"; + } + } + #endif + } + + public class UnityPurchaseRevenueBridgeProxy : AndroidJavaProxy + { + public UnityPurchaseRevenueBridgeProxy() : base("com.appsflyer.unity.PurchaseRevenueBridge$UnityPurchaseRevenueBridge") { } + + public string getAdditionalParameters(string productsJson, string transactionsJson) + { + try + { + // Create empty sets if JSON is null or empty + HashSet products = new HashSet(); + HashSet transactions = new HashSet(); + + // Only try to parse if we have valid JSON + if (!string.IsNullOrEmpty(productsJson)) + { + try + { + // First try to parse as a simple array + var parsedProducts = AFMiniJSON.Json.Deserialize(productsJson); + if (parsedProducts is List productList) + { + products = new HashSet(productList); + } + else if (parsedProducts is Dictionary dict) + { + if (dict.ContainsKey("events") && dict["events"] is List eventsList) + { + products = new HashSet(eventsList); + } + else + { + // If it's a dictionary but doesn't have events, add the whole dict + products.Add(dict); + } + } + } + catch (Exception e) + { + Debug.LogError($"Error parsing products JSON: {e.Message}\nJSON: {productsJson}"); + } + } + + if (!string.IsNullOrEmpty(transactionsJson)) + { + try + { + // First try to parse as a simple array + var parsedTransactions = AFMiniJSON.Json.Deserialize(transactionsJson); + if (parsedTransactions is List transactionList) + { + transactions = new HashSet(transactionList); + } + else if (parsedTransactions is Dictionary dict) + { + if (dict.ContainsKey("events") && dict["events"] is List eventsList) + { + transactions = new HashSet(eventsList); + } + else + { + // If it's a dictionary but doesn't have events, add the whole dict + transactions.Add(dict); + } + } + } + catch (Exception e) + { + Debug.LogError($"Error parsing transactions JSON: {e.Message}\nJSON: {transactionsJson}"); + } + } + + var parameters = AppsFlyerPurchaseRevenueBridge.GetAdditionalParametersForAndroid(products, transactions); + return AFMiniJSON.Json.Serialize(parameters); + } + catch (Exception e) + { + Debug.LogError($"Error in getAdditionalParameters: {e.Message}\nProducts JSON: {productsJson}\nTransactions JSON: {transactionsJson}"); + return "{}"; + } + } + } + + + public class AppsFlyerPurchaseConnector : MonoBehaviour { + + private static AppsFlyerPurchaseConnector instance; + private Dictionary pendingParameters; + private Action> pendingCallback; + + public static AppsFlyerPurchaseConnector Instance + { + get + { + if (instance == null) + { + GameObject go = new GameObject("AppsFlyerPurchaseConnector"); + instance = go.AddComponent(); + DontDestroyOnLoad(go); + } + return instance; + } + } + + private void Awake() + { + if (instance == null) + { + instance = this; + DontDestroyOnLoad(gameObject); + } + else + { + Destroy(gameObject); + } + } + +#if UNITY_ANDROID && !UNITY_EDITOR + private static AndroidJavaClass appsFlyerAndroidConnector = new AndroidJavaClass("com.appsflyer.unity.AppsFlyerAndroidWrapper"); +#endif + + public static void init(MonoBehaviour unityObject, Store s) { +#if UNITY_IOS && !UNITY_EDITOR + _initPurchaseConnector(unityObject.name); +#elif UNITY_ANDROID && !UNITY_EDITOR + int store = mapStoreToInt(s); + appsFlyerAndroidConnector.CallStatic("initPurchaseConnector", unityObject ? unityObject.name : null, store); +#endif + } + + public static void build() { +#if UNITY_IOS && !UNITY_EDITOR + //not for iOS +#elif UNITY_ANDROID && !UNITY_EDITOR + appsFlyerAndroidConnector.CallStatic("build"); + +#else +#endif + } + + public static void startObservingTransactions() { +#if UNITY_IOS && !UNITY_EDITOR + _startObservingTransactions(); +#elif UNITY_ANDROID && !UNITY_EDITOR + appsFlyerAndroidConnector.CallStatic("startObservingTransactions"); +#else +#endif + } + + public static void stopObservingTransactions() { +#if UNITY_IOS && !UNITY_EDITOR + _stopObservingTransactions(); +#elif UNITY_ANDROID && !UNITY_EDITOR + appsFlyerAndroidConnector.CallStatic("stopObservingTransactions"); +#else +#endif + } + + public static void setIsSandbox(bool isSandbox) { +#if UNITY_IOS && !UNITY_EDITOR + _setIsSandbox(isSandbox); +#elif UNITY_ANDROID && !UNITY_EDITOR + appsFlyerAndroidConnector.CallStatic("setIsSandbox", isSandbox); +#else +#endif + } + + public static void setPurchaseRevenueValidationListeners(bool enableCallbacks) { +#if UNITY_IOS && !UNITY_EDITOR + _setPurchaseRevenueDelegate(); +#elif UNITY_ANDROID && !UNITY_EDITOR + appsFlyerAndroidConnector.CallStatic("setPurchaseRevenueValidationListeners", enableCallbacks); +#else +#endif + } + + public static void setAutoLogPurchaseRevenue(params AppsFlyerAutoLogPurchaseRevenueOptions[] autoLogPurchaseRevenueOptions) { +#if UNITY_IOS && !UNITY_EDITOR + int option = 0; + foreach (AppsFlyerAutoLogPurchaseRevenueOptions op in autoLogPurchaseRevenueOptions) { + option = option | (int)op; + } + _setAutoLogPurchaseRevenue(option); +#elif UNITY_ANDROID && !UNITY_EDITOR + if (autoLogPurchaseRevenueOptions.Length == 0) { + return; + } + foreach (AppsFlyerAutoLogPurchaseRevenueOptions op in autoLogPurchaseRevenueOptions) { + switch(op) { + case AppsFlyerAutoLogPurchaseRevenueOptions.AppsFlyerAutoLogPurchaseRevenueOptionsDisabled: + break; + case AppsFlyerAutoLogPurchaseRevenueOptions.AppsFlyerAutoLogPurchaseRevenueOptionsAutoRenewableSubscriptions: + appsFlyerAndroidConnector.CallStatic("setAutoLogSubscriptions", true); + break; + case AppsFlyerAutoLogPurchaseRevenueOptions.AppsFlyerAutoLogPurchaseRevenueOptionsInAppPurchases: + appsFlyerAndroidConnector.CallStatic("setAutoLogInApps", true); + break; + default: + break; + } + } +#else +#endif + } + + public static void setPurchaseRevenueDataSource(IAppsFlyerPurchaseRevenueDataSource dataSource) + { +#if UNITY_IOS && !UNITY_EDITOR + + if (dataSource != null) + { + _setPurchaseRevenueDataSource(dataSource.GetType().Name); + AppsFlyerPurchaseRevenueBridge.RegisterDataSource(dataSource); + } +#elif UNITY_ANDROID && !UNITY_EDITOR + if (dataSource != null) + { + AppsFlyerPurchaseRevenueBridge.RegisterDataSource(dataSource); + } +#endif + } + + + public static void setPurchaseRevenueDataSourceStoreKit2(IAppsFlyerPurchaseRevenueDataSourceStoreKit2 dataSourceSK2) + { +#if UNITY_IOS && !UNITY_EDITOR + if (dataSourceSK2 != null) + { + AppsFlyerPurchaseRevenueBridge.RegisterDataSourceStoreKit2(dataSourceSK2); + _setPurchaseRevenueDataSource("AppsFlyerObjectScript_StoreKit2"); + } +#endif + } + + + private static int mapStoreToInt(Store s) { + switch(s) { + case(Store.GOOGLE): + return 0; + default: + return -1; + } + } + + public static void setStoreKitVersion(StoreKitVersion storeKitVersion) { +#if UNITY_IOS && !UNITY_EDITOR + _setStoreKitVersion((int)storeKitVersion); +#elif UNITY_ANDROID && !UNITY_EDITOR + // Android doesn't use StoreKit +#else +#endif + } + + public static void logConsumableTransaction(string transactionJson) { +#if UNITY_IOS && !UNITY_EDITOR + _logConsumableTransaction(transactionJson); +#elif UNITY_ANDROID && !UNITY_EDITOR + // Android doesn't use StoreKit +#else +#endif + } + +#if UNITY_IOS && !UNITY_EDITOR + + [DllImport("__Internal")] + private static extern void _startObservingTransactions(); + [DllImport("__Internal")] + private static extern void _stopObservingTransactions(); + [DllImport("__Internal")] + private static extern void _setIsSandbox(bool isSandbox); + [DllImport("__Internal")] + private static extern void _setPurchaseRevenueDelegate(); + [DllImport("__Internal")] + private static extern void _setPurchaseRevenueDataSource(string dataSourceName); + [DllImport("__Internal")] + private static extern void _setAutoLogPurchaseRevenue(int option); + [DllImport("__Internal")] + private static extern void _initPurchaseConnector(string objectName); + [DllImport("__Internal")] + private static extern void _setStoreKitVersion(int storeKitVersion); + [DllImport("__Internal")] + private static extern void _logConsumableTransaction(string transactionJson); + +#endif + } + public enum Store { + GOOGLE = 0 + } + public enum AppsFlyerAutoLogPurchaseRevenueOptions + { + AppsFlyerAutoLogPurchaseRevenueOptionsDisabled = 0, + AppsFlyerAutoLogPurchaseRevenueOptionsAutoRenewableSubscriptions = 1 << 0, + AppsFlyerAutoLogPurchaseRevenueOptionsInAppPurchases = 1 << 1 + } + + public enum StoreKitVersion { + SK1 = 0, + SK2 = 1 + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs.meta b/Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs.meta new file mode 100644 index 000000000..dd85a7589 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyerPurchaseConnector.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0636ea07d370d437183f3762280c08ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/AppsFlyeriOS.cs b/Assets/ThirdParty/AppsFlyer/AppsFlyeriOS.cs index 0b7114fd1..4dfbc007e 100644 --- a/Assets/ThirdParty/AppsFlyer/AppsFlyeriOS.cs +++ b/Assets/ThirdParty/AppsFlyer/AppsFlyeriOS.cs @@ -1,27 +1,48 @@ +using System; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; +using System.Reflection; + + namespace AppsFlyerSDK { -#if UNITY_IOS - public class AppsFlyeriOS +#if UNITY_IOS || UNITY_STANDALONE_OSX + + public class AppsFlyeriOS: IAppsFlyerIOSBridge { + public bool isInit { get; set; } + + public AppsFlyeriOS() { } + + public AppsFlyeriOS(string devKey, string appID, MonoBehaviour gameObject) + { + setAppsFlyerDevKey(devKey); + setAppleAppID(appID); + if (gameObject != null) + { +#if UNITY_IOS + getConversionData(gameObject.name); +#elif UNITY_STANDALONE_OSX + getConversionData(gameObject.GetType().ToString()); +#endif + } + } + + /// /// Start Session. /// This will record a session and then record all background forground sessions during the lifecycle of the app. /// - public static void startSDK() +public void startSDK(bool shouldCallback, string CallBackObjectName) { - startSDK(false, AppsFlyer.CallBackObjectName); - } - - public static void startSDK(bool shouldCallback, string callBackObjectName) - { -#if !UNITY_EDITOR - _startSDK(shouldCallback, callBackObjectName); +#if UNITY_STANDALONE_OSX && !UNITY_EDITOR + _startSDK(shouldCallback, CallBackObjectName, getCallback); +#elif UNITY_IOS && !UNITY_EDITOR + _startSDK(shouldCallback, CallBackObjectName); #endif } @@ -31,12 +52,12 @@ namespace AppsFlyerSDK /// /// Name of event. /// Contains dictionary of values for handling by backend. - public static void sendEvent(string eventName, Dictionary eventValues) + public void sendEvent(string eventName, Dictionary eventValues) { - sendEvent(eventName, eventValues, false, AppsFlyer.CallBackObjectName); + sendEvent(eventName, eventValues, false, AppsFlyer.CallBackObjectName); } - public static void sendEvent(string eventName, Dictionary eventValues, bool shouldCallback, string callBackObjectName) + public void sendEvent(string eventName, Dictionary eventValues, bool shouldCallback, string callBackObjectName) { #if !UNITY_EDITOR _afSendEvent(eventName, AFMiniJSON.Json.Serialize(eventValues), shouldCallback, callBackObjectName); @@ -49,7 +70,7 @@ namespace AppsFlyerSDK /// By doing this you can serve users with personalized content or send them to specific activities within the app, /// which can greatly enhance their engagement with your app. /// - public static void getConversionData(string objectName) + public void getConversionData(string objectName) { #if !UNITY_EDITOR _getConversionData(objectName); @@ -61,7 +82,7 @@ namespace AppsFlyerSDK /// Enables you to cross-reference your own unique ID with AppsFlyer’s unique ID and the other devices’ IDs. /// /// Customer ID for client. - public static void setCustomerUserID(string customerUserID) + public void setCustomerUserId(string customerUserID) { #if !UNITY_EDITOR _setCustomerUserID(customerUserID); @@ -73,7 +94,7 @@ namespace AppsFlyerSDK /// see [Setting additional custom data] (https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS#setting-additional-custom-data) for more information. /// /// additional data Dictionary. - public static void setAdditionalData(Dictionary customData) + public void setAdditionalData(Dictionary customData) { #if !UNITY_EDITOR _setAdditionalData(AFMiniJSON.Json.Serialize(customData)); @@ -84,7 +105,7 @@ namespace AppsFlyerSDK /// Use this method to set your AppsFlyer's dev key. /// /// AppsFlyer's Dev-Key, which is accessible from your AppsFlyer account under 'App Settings' in the dashboard. - public static void setAppsFlyerDevKey(string appsFlyerDevKey) + public void setAppsFlyerDevKey(string appsFlyerDevKey) { #if !UNITY_EDITOR _setAppsFlyerDevKey(appsFlyerDevKey); @@ -95,7 +116,7 @@ namespace AppsFlyerSDK /// Use this method to set your app's Apple ID(taken from the app's page on iTunes Connect). /// /// your app's Apple ID. - public static void setAppleAppID(string appleAppID) + public void setAppleAppID(string appleAppID) { #if !UNITY_EDITOR _setAppleAppID(appleAppID); @@ -108,7 +129,7 @@ namespace AppsFlyerSDK /// You can set the currency code for all events by calling the following method. /// /// 3 character ISO 4217 code. - public static void setCurrencyCode(string currencyCode) + public void setCurrencyCode(string currencyCode) { #if !UNITY_EDITOR _setCurrencyCode(currencyCode); @@ -120,7 +141,7 @@ namespace AppsFlyerSDK /// You can disable this behavior by setting the following property to true. /// /// boolean to disableCollectAppleAdSupport - public static void setDisableCollectAppleAdSupport(bool disableCollectAppleAdSupport) + public void setDisableCollectAppleAdSupport(bool disableCollectAppleAdSupport) { #if !UNITY_EDITOR _setDisableCollectAppleAdSupport(disableCollectAppleAdSupport); @@ -133,7 +154,7 @@ namespace AppsFlyerSDK /// The default value is false. /// /// shouldEnable boolean.. - public static void setIsDebug(bool isDebug) + public void setIsDebug(bool isDebug) { #if !UNITY_EDITOR _setIsDebug(isDebug); @@ -145,7 +166,7 @@ namespace AppsFlyerSDK /// /// boolean shouldCollectDeviceName. [System.Obsolete("This is deprecated")] - public static void setShouldCollectDeviceName(bool shouldCollectDeviceName) + public void setShouldCollectDeviceName(bool shouldCollectDeviceName) { #if !UNITY_EDITOR _setShouldCollectDeviceName(shouldCollectDeviceName); @@ -157,20 +178,71 @@ namespace AppsFlyerSDK /// The link that is generated for the user invite will use this OneLink as the base link. /// /// OneLink ID obtained from the AppsFlyer Dashboard. - public static void setAppInviteOneLinkID(string appInviteOneLinkID) + public void setAppInviteOneLinkID(string appInviteOneLinkID) { #if !UNITY_EDITOR _setAppInviteOneLinkID(appInviteOneLinkID); #endif } + /// + /// Set the deepLink timeout value that should be used for DDL. + /// + /// deepLink timeout in milliseconds. + public void setDeepLinkTimeout(long deepLinkTimeout) + { +#if !UNITY_EDITOR + _setDeepLinkTimeout(deepLinkTimeout); +#endif + } + + /// + /// Calling enableTCFDataCollection(true) will enable collecting and sending any TCF related data. + /// Calling enableTCFDataCollection(false) will disable the collection of TCF related data and from sending it. + /// + /// should start TCF Data collection boolean. + public void enableTCFDataCollection(bool shouldCollectTcfData) + { +#if !UNITY_EDITOR + _enableTCFDataCollection(shouldCollectTcfData); +#endif + } + + /// + /// Sets or updates the user consent data related to GDPR and DMA regulations for advertising and data usage purposes within the application. + /// + /// instance of AppsFlyerConsent. + public void setConsentData(AppsFlyerConsent appsFlyerConsent) + { +#if !UNITY_EDITOR + string isUserSubjectToGDPR = appsFlyerConsent.isUserSubjectToGDPR?.ToString().ToLower() ?? "null"; + string hasConsentForDataUsage = appsFlyerConsent.hasConsentForDataUsage?.ToString().ToLower() ?? "null"; + string hasConsentForAdsPersonalization = appsFlyerConsent.hasConsentForAdsPersonalization?.ToString().ToLower() ?? "null"; + string hasConsentForAdStorage = appsFlyerConsent.hasConsentForAdStorage?.ToString().ToLower() ?? "null"; + + _setConsentData(isUserSubjectToGDPR, hasConsentForDataUsage, hasConsentForAdsPersonalization, hasConsentForAdStorage); +#endif + } + + /// + /// Logs ad revenue data along with additional parameters if provided. + /// + /// instance of AFAdRevenueData containing ad revenue information. + /// An optional map of additional parameters to be logged with ad revenue data. This can be null if there are no additional parameters. + public void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary additionalParameters) + { +#if !UNITY_EDITOR + _logAdRevenue(adRevenueData.monetizationNetwork, adRevenueData.mediationNetwork, adRevenueData.currencyIso4217Code, adRevenueData.eventRevenue, AFMiniJSON.Json.Serialize(additionalParameters)); +#endif + } + /// /// Anonymize user Data. /// Use this API during the SDK Initialization to explicitly anonymize a user's installs, events and sessions. /// Default is false /// /// boolean shouldAnonymizeUser. - public static void anonymizeUser(bool shouldAnonymizeUser) + public void anonymizeUser(bool shouldAnonymizeUser) { #if !UNITY_EDITOR _anonymizeUser(shouldAnonymizeUser); @@ -181,7 +253,7 @@ namespace AppsFlyerSDK /// Opt-out for Apple Search Ads attributions. /// /// boolean disableCollectIAd. - public static void setDisableCollectIAd(bool disableCollectIAd) + public void setDisableCollectIAd(bool disableCollectIAd) { #if !UNITY_EDITOR _setDisableCollectIAd(disableCollectIAd); @@ -192,7 +264,7 @@ namespace AppsFlyerSDK /// In app purchase receipt validation Apple environment(production or sandbox). The default value is false. /// /// boolean useReceiptValidationSandbox. - public static void setUseReceiptValidationSandbox(bool useReceiptValidationSandbox) + public void setUseReceiptValidationSandbox(bool useReceiptValidationSandbox) { #if !UNITY_EDITOR _setUseReceiptValidationSandbox(useReceiptValidationSandbox); @@ -203,7 +275,7 @@ namespace AppsFlyerSDK /// Set this flag to test uninstall on Apple environment(production or sandbox). The default value is false. /// /// boolean useUninstallSandbox. - public static void setUseUninstallSandbox(bool useUninstallSandbox) + public void setUseUninstallSandbox(bool useUninstallSandbox) { #if !UNITY_EDITOR _setUseUninstallSandbox(useUninstallSandbox); @@ -215,7 +287,7 @@ namespace AppsFlyerSDK /// An advertiser will be able to deeplink from a OneLink wrapped within another Universal Link and also record this retargeting conversion. /// /// Array of urls. - public static void setResolveDeepLinkURLs(params string[] resolveDeepLinkURLs) + public void setResolveDeepLinkURLs(params string[] resolveDeepLinkURLs) { #if !UNITY_EDITOR _setResolveDeepLinkURLs(resolveDeepLinkURLs.Length,resolveDeepLinkURLs); @@ -226,7 +298,7 @@ namespace AppsFlyerSDK /// For advertisers who use vanity OneLinks. /// /// Array of domains. - public static void setOneLinkCustomDomains(params string[] oneLinkCustomDomains) + public void setOneLinkCustomDomain(params string[] oneLinkCustomDomains) { #if !UNITY_EDITOR _setOneLinkCustomDomains(oneLinkCustomDomains.Length, oneLinkCustomDomains); @@ -243,11 +315,12 @@ namespace AppsFlyerSDK /// /// type Hash algoritm. /// length of userEmails array. - /// userEmails The list of strings that hold mails. - public static void setUserEmails(EmailCryptType cryptType, int length, params string[] userEmails) + /// userEmails The list of strings that hold mails.} + + public void setUserEmails(EmailCryptType cryptType, params string[] userEmails) { #if !UNITY_EDITOR - _setUserEmails(cryptType, length, userEmails); + _setUserEmails(cryptType, userEmails.Length, userEmails); #endif } @@ -255,24 +328,37 @@ namespace AppsFlyerSDK /// Set the user phone number. /// /// User phoneNumber. - public static void setPhoneNumber(string phoneNumber){ + public void setPhoneNumber(string phoneNumber){ #if !UNITY_EDITOR _setPhoneNumber(phoneNumber); #endif } /// - /// To send and validate in app purchases you can call this method from the processPurchase method. + /// To send and validate in app purchases you can call this method from the processPurchase method - please use v2. /// /// The product identifier. /// The product price. /// The product currency. - /// The purchase transaction Id. + /// The purchase transaction Id. /// The additional param, which you want to receive it in the raw reports. - public static void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string tranactionId, Dictionary additionalParameters, MonoBehaviour gameObject) + public void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary additionalParameters, MonoBehaviour gameObject) { #if !UNITY_EDITOR - _validateAndSendInAppPurchase(productIdentifier, price, currency, tranactionId, AFMiniJSON.Json.Serialize(additionalParameters), gameObject ? gameObject.name : null); + _validateAndSendInAppPurchase(productIdentifier, price, currency, transactionId, AFMiniJSON.Json.Serialize(additionalParameters), gameObject ? gameObject.name : null); +#endif + } + + /// + /// V2 + /// To send and validate in app purchases you can call this method from the processPurchase method. + /// + /// The AFSDKPurchaseDetailsIOS instance. + /// The extra params, which you want to receive it in the raw reports. + public void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary extraEventValues, MonoBehaviour gameObject) + { +#if !UNITY_EDITOR + _validateAndSendInAppPurchaseV2(details.productId, details.price, details.currency, details.transactionId, AFMiniJSON.Json.Serialize(extraEventValues), gameObject ? gameObject.name : null); #endif } @@ -281,7 +367,7 @@ namespace AppsFlyerSDK /// /// The location longitude. /// The location latitude. - public static void recordLocation(double longitude, double latitude) + public void recordLocation(double longitude, double latitude) { #if !UNITY_EDITOR _recordLocation(longitude, latitude); @@ -291,7 +377,7 @@ namespace AppsFlyerSDK /// /// Get AppsFlyer's unique device ID, which is created for every new install of an app. /// - public static string getAppsFlyerId() + public string getAppsFlyerId() { #if !UNITY_EDITOR return _getAppsFlyerId(); @@ -304,7 +390,7 @@ namespace AppsFlyerSDK /// Register uninstall - you should register for remote notification and provide AppsFlyer the push device token. /// /// deviceToken The `deviceToken` from `-application:didRegisterForRemoteNotificationsWithDeviceToken:`. - public static void registerUninstall(byte[] deviceToken) + public void registerUninstall(byte[] deviceToken) { #if !UNITY_EDITOR _registerUninstall(deviceToken); @@ -315,7 +401,7 @@ namespace AppsFlyerSDK /// Enable AppsFlyer to handle a push notification. /// /// pushPayload The `userInfo` from received remote notification. One of root keys should be @"af".. - public static void handlePushNotification(Dictionary pushPayload) + public void handlePushNotification(Dictionary pushPayload) { #if !UNITY_EDITOR _handlePushNotification(AFMiniJSON.Json.Serialize(pushPayload)); @@ -325,7 +411,7 @@ namespace AppsFlyerSDK /// /// Get SDK version. /// - public static string getSDKVersion() + public string getSdkVersion() { #if !UNITY_EDITOR return _getSDKVersion(); @@ -340,7 +426,7 @@ namespace AppsFlyerSDK /// /// Host Name. /// Host prefix. - public static void setHost(string host, string hostPrefix) + public void setHost(string hostPrefix, string host) { #if !UNITY_EDITOR _setHost(host, hostPrefix); @@ -352,7 +438,7 @@ namespace AppsFlyerSDK /// Default value is 5 seconds. /// /// minimum time between 2 separate sessions in seconds. - public static void setMinTimeBetweenSessions(int minTimeBetweenSessions) + public void setMinTimeBetweenSessions(int minTimeBetweenSessions) { #if !UNITY_EDITOR _setMinTimeBetweenSessions(minTimeBetweenSessions); @@ -365,7 +451,7 @@ namespace AppsFlyerSDK /// This can be achieved with the stopSDK API. /// /// boolean isSDKStopped. - public static void stopSDK(bool isSDKStopped) + public void stopSDK(bool isSDKStopped) { #if !UNITY_EDITOR _stopSDK(isSDKStopped); @@ -376,7 +462,7 @@ namespace AppsFlyerSDK /// Was the stopSDK(boolean) API set to true. /// /// boolean isSDKStopped. - public static bool isSDKStopped() + public bool isSDKStopped() { #if !UNITY_EDITOR return _isSDKStopped(); @@ -393,7 +479,7 @@ namespace AppsFlyerSDK /// The URL to be passed to your AppDelegate. /// The sourceApplication to be passed to your AppDelegate. /// The annotation to be passed to your app delegate. - public static void handleOpenUrl(string url, string sourceApplication, string annotation) + public void handleOpenUrl(string url, string sourceApplication, string annotation) { #if !UNITY_EDITOR _handleOpenUrl(url, sourceApplication, annotation); @@ -403,7 +489,7 @@ namespace AppsFlyerSDK /// /// Used by advertisers to exclude all networks/integrated partners from getting data. /// - public static void setSharingFilterForAllPartners() + public void setSharingFilterForAllPartners() { #if !UNITY_EDITOR _setSharingFilterForAllPartners(); @@ -414,7 +500,7 @@ namespace AppsFlyerSDK /// Used by advertisers to set some (one or more) networks/integrated partners to exclude from getting data. /// /// partners to exclude from getting data - public static void setSharingFilter(params string[] partners) + public void setSharingFilter(params string[] partners) { #if !UNITY_EDITOR _setSharingFilter(partners.Length, partners); @@ -439,7 +525,7 @@ namespace AppsFlyerSDK /// promoted App ID. /// cross promotion campaign. /// parameters Dictionary. - public static void recordCrossPromoteImpression(string appID, string campaign, Dictionary parameters) + public void recordCrossPromoteImpression(string appID, string campaign, Dictionary parameters) { #if !UNITY_EDITOR _recordCrossPromoteImpression(appID, campaign, AFMiniJSON.Json.Serialize(parameters)); @@ -452,7 +538,7 @@ namespace AppsFlyerSDK /// promoted App ID /// cross promotion campaign /// additional user params - public static void attributeAndOpenStore(string appID, string campaign, Dictionary parameters, MonoBehaviour gameObject) + public void attributeAndOpenStore(string appID, string campaign, Dictionary parameters, MonoBehaviour gameObject) { #if !UNITY_EDITOR _attributeAndOpenStore(appID, campaign, AFMiniJSON.Json.Serialize(parameters), gameObject ? gameObject.name : null); @@ -464,7 +550,7 @@ namespace AppsFlyerSDK /// See - https://support.appsflyer.com/hc/en-us/articles/115004480866-User-invite-attribution- /// /// parameters Dictionary. - public static void generateUserInviteLink(Dictionary parameters, MonoBehaviour gameObject) + public void generateUserInviteLink(Dictionary parameters, MonoBehaviour gameObject) { #if !UNITY_EDITOR _generateUserInviteLink(AFMiniJSON.Json.Serialize(parameters), gameObject ? gameObject.name : null); @@ -477,7 +563,7 @@ namespace AppsFlyerSDK /// /// channel string. /// parameters Dictionary.. - public static void recordInvite(string channel, Dictionary parameters) + public void recordInvite(string channel, Dictionary parameters) { #if !UNITY_EDITOR _recordInvite(channel, AFMiniJSON.Json.Serialize(parameters)); @@ -488,17 +574,17 @@ namespace AppsFlyerSDK /// Waits for request user authorization to access app-related data /// /// time to wait until session starts - public static void waitForATTUserAuthorizationWithTimeoutInterval(int timeoutInterval) + public void waitForATTUserAuthorizationWithTimeoutInterval(int timeoutInterval) { #if !UNITY_EDITOR - _waitForATTUserAuthorizationWithTimeoutInterval(timeoutInterval); + _waitForATTUserAuthorizationWithTimeoutInterval(timeoutInterval); #endif } /// /// /// bool should diable - public static void disableSKAdNetwork(bool isDisabled) + public void disableSKAdNetwork(bool isDisabled) { #if !UNITY_EDITOR _disableSKAdNetwork(isDisabled); @@ -511,7 +597,7 @@ namespace AppsFlyerSDK /// See docs for more info. /// /// array of nested json path - public static void addPushNotificationDeepLinkPath(params string[] paths) + public void addPushNotificationDeepLinkPath(params string[] paths) { #if !UNITY_EDITOR _addPushNotificationDeepLinkPath(paths.Length, paths); @@ -521,7 +607,7 @@ namespace AppsFlyerSDK /// /// subscribe to unified deep link callbacks /// - public static void subscribeForDeepLink(string objectName){ + public void subscribeForDeepLink(string objectName){ #if !UNITY_EDITOR _subscribeForDeepLink(objectName); #endif @@ -530,145 +616,403 @@ namespace AppsFlyerSDK /// /// Set the language of the device. /// - public static void setCurrentDeviceLanguage(string language){ + public void setCurrentDeviceLanguage(string language){ #if !UNITY_EDITOR _setCurrentDeviceLanguage(language); #endif } + /// + /// Allows sending custom data for partner integration purposes. + /// + public void setPartnerData(string partnerId, Dictionary partnerInfo){ +#if !UNITY_EDITOR + _setPartnerData(partnerId, AFMiniJSON.Json.Serialize(partnerInfo)); +#endif + } + + /// + /// Use to disable app vendor identifier (IDFV) collection, 'true' to disable. + /// + public void disableIDFVCollection(bool isDisabled){ +#if !UNITY_EDITOR + _disableIDFVCollection(isDisabled); +#endif + } + + delegate void unityCallBack(string message); + + [AOT.MonoPInvokeCallback(typeof(unityCallBack))] + public static void getCallback(string gameObjectName, string callbackName, string message) + { + GameObject go = GameObject.Find("AppsFlyerObject"); + var afscript = go.GetComponent("AppsFlyerObjectScript") as AppsFlyerObjectScript; + Type type = typeof(AppsFlyerObjectScript); + MethodInfo info = type.GetMethod(callbackName); + info.Invoke(afscript, new[] { message }); + + } + + /* * AppsFlyer ios method mapping */ - [DllImport("__Internal")] - private static extern void _startSDK(bool shouldCallback, string objectName); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] + private static extern void _startSDK(bool shouldCallback, string objectName); +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] + private static extern void _startSDK(bool shouldCallback, string objectName, Action getCallback); + +#endif + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _getConversionData(string objectName); - [DllImport("__Internal")] + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setCustomerUserID(string customerUserID); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setAdditionalData(string customData); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setAppsFlyerDevKey(string appsFlyerDevKey); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setAppleAppID(string appleAppID); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setCurrencyCode(string currencyCode); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setDisableCollectAppleAdSupport(bool disableCollectAppleAdSupport); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setIsDebug(bool isDebug); - - [DllImport("__Internal")] + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setShouldCollectDeviceName(bool shouldCollectDeviceName); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setAppInviteOneLinkID(string appInviteOneLinkID); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _setDeepLinkTimeout(long deepLinkTimeout); + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _anonymizeUser(bool shouldAnonymizeUser); - - [DllImport("__Internal")] + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _enableTCFDataCollection(bool shouldCollectTcfData); + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _setConsentData(string isUserSubjectToGDPR, string hasConsentForDataUsage, string hasConsentForAdsPersonalization, string hasConsentForAdStorage); + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _logAdRevenue(string monetizationNetwork, MediationNetwork mediationNetwork, string currencyIso4217Code, double eventRevenue, string additionalParameters); + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setDisableCollectIAd(bool disableCollectIAd); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setUseReceiptValidationSandbox(bool useReceiptValidationSandbox); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setUseUninstallSandbox(bool useUninstallSandbox); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setResolveDeepLinkURLs(int length, params string[] resolveDeepLinkURLs); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setOneLinkCustomDomains(int length, params string[] oneLinkCustomDomains); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setUserEmails(EmailCryptType cryptType, int length, params string[] userEmails); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setPhoneNumber(string phoneNumber); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _afSendEvent(string eventName, string eventValues, bool shouldCallback, string objectName); - [DllImport("__Internal")] - private static extern void _validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string tranactionId, string additionalParameters, string objectName); +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, string additionalParameters, string objectName); - [DllImport("__Internal")] + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _validateAndSendInAppPurchaseV2(string product, string price, string currency, string transactionId, string extraEventValues, string objectName); + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _recordLocation(double longitude, double latitude); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern string _getAppsFlyerId(); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _registerUninstall(byte[] deviceToken); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _handlePushNotification(string pushPayload); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern string _getSDKVersion(); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setHost(string host, string hostPrefix); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setMinTimeBetweenSessions(int minTimeBetweenSessions); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _stopSDK(bool isStopSDK); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern bool _isSDKStopped(); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _handleOpenUrl(string url, string sourceApplication, string annotation); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setSharingFilterForAllPartners(); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setSharingFilter(int length, params string[] partners); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setSharingFilterForPartners(int length, params string[] partners); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _recordCrossPromoteImpression(string appID, string campaign, string parameters); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _attributeAndOpenStore(string appID, string campaign, string parameters, string gameObject); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _generateUserInviteLink(string parameters, string gameObject); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _recordInvite(string channel, string parameters); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _waitForATTUserAuthorizationWithTimeoutInterval(int timeoutInterval); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _disableSKAdNetwork(bool isDisabled); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _addPushNotificationDeepLinkPath(int length, params string[] paths); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _subscribeForDeepLink(string objectName); - [DllImport("__Internal")] +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif private static extern void _setCurrentDeviceLanguage(string language); +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _setPartnerData(string partnerId, string partnerInfo); + +#if UNITY_IOS + [DllImport("__Internal")] +#elif UNITY_STANDALONE_OSX + [DllImport("AppsFlyerBundle")] +#endif + private static extern void _disableIDFVCollection(bool isDisabled); + } #endif diff --git a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml b/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml deleted file mode 100644 index 080359d2a..000000000 --- a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml b/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml index 4f9f91b26..31d62df56 100644 --- a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml +++ b/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml @@ -2,17 +2,15 @@ - - - - - - + + + + - - + + diff --git a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerObjectEditor.cs b/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerObjectEditor.cs index 5852ee7ed..6cc00c820 100644 --- a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerObjectEditor.cs +++ b/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerObjectEditor.cs @@ -11,6 +11,7 @@ public class AppsFlyerObjectEditor : Editor SerializedProperty iosDevKey; SerializedProperty appID; SerializedProperty UWPAppID; + SerializedProperty macOSAppID; SerializedProperty isDebug; SerializedProperty getConversionData; @@ -21,6 +22,7 @@ public class AppsFlyerObjectEditor : Editor iosDevKey = serializedObject.FindProperty("iosDevKey"); appID = serializedObject.FindProperty("appID"); UWPAppID = serializedObject.FindProperty("UWPAppID"); + macOSAppID = serializedObject.FindProperty("macOSAppID"); isDebug = serializedObject.FindProperty("isDebug"); getConversionData = serializedObject.FindProperty("getConversionData"); } @@ -31,16 +33,16 @@ public class AppsFlyerObjectEditor : Editor { serializedObject.Update(); - - GUILayout.Box((Texture)AssetDatabase.LoadAssetAtPath("Assets/AppsFlyer/Editor/logo.png", typeof(Texture)), new GUILayoutOption[] { GUILayout.Width(600) }); + GUILayout.Box((Texture)AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(AssetDatabase.FindAssets("appsflyer_logo")[0]), typeof(Texture)), new GUILayoutOption[] { GUILayout.Width(600) }); EditorGUILayout.Separator(); - EditorGUILayout.HelpBox("Set your devKey and appID to init the AppsFlyer SDK and start tracking. You must modify these fields and provide:\ndevKey - Your application devKey provided by AppsFlyer.\nappId - For iOS only. Your iTunes Application ID.\nUWP app id - For UWP only. Your application app id", MessageType.Info); + EditorGUILayout.HelpBox("Set your devKey and appID to init the AppsFlyer SDK and start tracking. You must modify these fields and provide:\ndevKey - Your application devKey provided by AppsFlyer.\nappId - For iOS only. Your iTunes Application ID.\nUWP app id - For UWP only. Your application app id \nMac OS app id - For MacOS app only.", MessageType.Info); EditorGUILayout.PropertyField(devKey); EditorGUILayout.PropertyField(iosDevKey); EditorGUILayout.PropertyField(appID); EditorGUILayout.PropertyField(UWPAppID); + EditorGUILayout.PropertyField(macOSAppID); EditorGUILayout.Separator(); EditorGUILayout.HelpBox("Enable get conversion data to allow your app to recive deeplinking callbacks", MessageType.None); EditorGUILayout.PropertyField(getConversionData); diff --git a/Assets/ThirdParty/AppsFlyer/Editor/logo.png b/Assets/ThirdParty/AppsFlyer/Editor/appsflyer_logo.png similarity index 100% rename from Assets/ThirdParty/AppsFlyer/Editor/logo.png rename to Assets/ThirdParty/AppsFlyer/Editor/appsflyer_logo.png diff --git a/Assets/ThirdParty/AppsFlyer/Editor/logo.png.meta b/Assets/ThirdParty/AppsFlyer/Editor/appsflyer_logo.png.meta similarity index 100% rename from Assets/ThirdParty/AppsFlyer/Editor/logo.png.meta rename to Assets/ThirdParty/AppsFlyer/Editor/appsflyer_logo.png.meta diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs b/Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs new file mode 100644 index 000000000..b4c818859 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs @@ -0,0 +1,31 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace AppsFlyerSDK +{ + + public interface IAppsFlyerAndroidBridge : IAppsFlyerNativeBridge + { + void updateServerUninstallToken(string token); + void setImeiData(string imei); + void setAndroidIdData(string androidId); + void waitForCustomerUserId(bool wait); + void setCustomerIdAndStartSDK(string id); + string getOutOfStore(); + void setOutOfStore(string sourceName); + void setCollectAndroidID(bool isCollect); + void setCollectIMEI(bool isCollect); + void setIsUpdate(bool isUpdate); + void setPreinstallAttribution(string mediaSource, string campaign, string siteId); + bool isPreInstalledApp(); + string getAttributionId(); + void handlePushNotifications(); + void validateAndSendInAppPurchase(string publicKey, string signature, string purchaseData, string price, string currency, Dictionary additionalParameters, MonoBehaviour gameObject); + void validateAndSendInAppPurchase(AFPurchaseDetailsAndroid details, Dictionary additionalParameters, MonoBehaviour gameObject); + void setCollectOaid(bool isCollect); + void setDisableAdvertisingIdentifiers(bool disable); + void setDisableNetworkData(bool disable); + + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs.meta b/Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs.meta new file mode 100644 index 000000000..8157bc65a --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerAndroidBridge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cdf9d1bc41a8244b3bc2d249fb6cd7aa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs b/Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs new file mode 100644 index 000000000..86211fbda --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs @@ -0,0 +1,26 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + + +namespace AppsFlyerSDK +{ + + public interface IAppsFlyerIOSBridge : IAppsFlyerNativeBridge + { + void setDisableCollectAppleAdSupport(bool disable); + void setShouldCollectDeviceName(bool shouldCollectDeviceName); + void setDisableCollectIAd(bool disableCollectIAd); + void setUseReceiptValidationSandbox(bool useReceiptValidationSandbox); + void setUseUninstallSandbox(bool useUninstallSandbox); + void validateAndSendInAppPurchase(string productIdentifier, string price, string currency, string transactionId, Dictionary additionalParameters, MonoBehaviour gameObject); + void validateAndSendInAppPurchase(AFSDKPurchaseDetailsIOS details, Dictionary extraEventValues, MonoBehaviour gameObject); + void registerUninstall(byte[] deviceToken); + void handleOpenUrl(string url, string sourceApplication, string annotation); + void waitForATTUserAuthorizationWithTimeoutInterval(int timeoutInterval); + void setCurrentDeviceLanguage(string language); + void disableSKAdNetwork(bool isDisabled); + void disableIDFVCollection(bool isDisabled); + + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs.meta b/Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs.meta new file mode 100644 index 000000000..8e200ea10 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerIOSBridge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6847fb337898040288c165e3667101a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs b/Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs new file mode 100644 index 000000000..23a107cdc --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs @@ -0,0 +1,76 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace AppsFlyerSDK +{ + + public interface IAppsFlyerNativeBridge + { + bool isInit { get; set; } + + void startSDK(bool onRequestResponse, string CallBackObjectName); + + void sendEvent(string eventName, Dictionary eventValues, bool onInAppResponse, string CallBackObjectName); + + void stopSDK(bool isSDKStopped); + + bool isSDKStopped(); + + string getSdkVersion(); + + void setCustomerUserId(string id); + + void setAppInviteOneLinkID(string oneLinkId); + + void setAdditionalData(Dictionary customData); + + void setDeepLinkTimeout(long deepLinkTimeout); + + void setResolveDeepLinkURLs(params string[] urls); + + void setOneLinkCustomDomain(params string[] domains); + + void setCurrencyCode(string currencyCode); + + void recordLocation(double latitude, double longitude); + + void anonymizeUser(bool shouldAnonymizeUser); + + string getAppsFlyerId(); + + void enableTCFDataCollection(bool shouldCollectTcfData); + + void setConsentData(AppsFlyerConsent appsFlyerConsent); + + void logAdRevenue(AFAdRevenueData adRevenueData, Dictionary additionalParameters); + + void setMinTimeBetweenSessions(int seconds); + + void setHost(string hostPrefixName, string hostName); + + void setPhoneNumber(string phoneNumber); + + void setSharingFilterForAllPartners(); + + void setSharingFilter(params string[] partners); + + void getConversionData(string objectName); + + void attributeAndOpenStore(string appID, string campaign, Dictionary userParams, MonoBehaviour gameObject); + + void recordCrossPromoteImpression(string appID, string campaign, Dictionary parameters); + + void generateUserInviteLink(Dictionary parameters, MonoBehaviour gameObject); + + void addPushNotificationDeepLinkPath(params string[] paths); + + void setUserEmails(EmailCryptType cryptType, params string[] userEmails); + + void subscribeForDeepLink(string objectName); + + void setIsDebug(bool shouldEnable); + + void setPartnerData(string partnerId, Dictionary partnerInfo); + } +} diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs.meta b/Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs.meta new file mode 100644 index 000000000..dd4325726 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerNativeBridge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 409b8302434664a3785ce55d075e7f58 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs b/Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs new file mode 100644 index 000000000..73591a3e6 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs @@ -0,0 +1,8 @@ +namespace AppsFlyerSDK +{ + public interface IAppsFlyerPurchaseValidation + { + void didReceivePurchaseRevenueValidationInfo(string validationInfo); + void didReceivePurchaseRevenueError(string error); + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs.meta b/Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs.meta new file mode 100644 index 000000000..3e453b753 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerPurchaseValidation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7c60f499ae0d048b1be8ffd6878a184c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs b/Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs new file mode 100644 index 000000000..a5c02cf06 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs @@ -0,0 +1,19 @@ +namespace AppsFlyerSDK +{ + public interface IAppsFlyerValidateAndLog + { + /// + /// The success callback for validateAndSendInAppPurchase API. + /// For Android : the callback will return JSON string. + /// For iOS : the callback will return a JSON string from apples verifyReceipt API. + /// + /// + void onValidateAndLogComplete(string result); + + /// + /// The error callback for validateAndSendInAppPurchase API. + /// + /// A string describing the error. + void onValidateAndLogFailure(string error); + } +} \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs.meta b/Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs.meta new file mode 100644 index 000000000..459cc855b --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/IAppsFlyerValidateAndLog.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1a5adb7eab3284dd39a76ec56c06457c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/Mac.meta b/Assets/ThirdParty/AppsFlyer/Mac.meta new file mode 100644 index 000000000..fd182bd58 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Mac.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 96a328019e42349aabc478b546b8605e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/SwiftForUnity.swift.meta b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle.meta similarity index 80% rename from Assets/ThirdParty/AppsFlyer/Plugins/iOS/SwiftForUnity.swift.meta rename to Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle.meta index 89ca72b54..a7aa6da5e 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/SwiftForUnity.swift.meta +++ b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle.meta @@ -1,5 +1,6 @@ fileFormatVersion: 2 -guid: fd2ed24dc5b354bb29dcd1b72840370c +guid: 682114f7790724ab3b9410e89bbc076c +folderAsset: yes PluginImporter: externalObjects: {} serializedVersion: 2 @@ -19,16 +20,11 @@ PluginImporter: - first: Editor: Editor second: - enabled: 0 + enabled: 1 settings: DefaultValueInitialized: true - first: - iPhone: iOS - second: - enabled: 1 - settings: {} - - first: - tvOS: tvOS + Standalone: OSXUniversal second: enabled: 1 settings: {} diff --git a/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents.meta b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents.meta new file mode 100644 index 000000000..4b0660452 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 28175da64865f4e398b3b9ddfbe97b24 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/Info.plist b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/Info.plist new file mode 100644 index 000000000..3303ccd8f --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/Info.plist @@ -0,0 +1,48 @@ + + + + + BuildMachineOSBuild + 20G417 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AppsFlyerBundle + CFBundleIdentifier + com.appsflyer.support.two.AppsFlyerBundle + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AppsFlyerBundle + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 13A1030d + DTPlatformName + macosx + DTPlatformVersion + 12.0 + DTSDKBuild + 21A344 + DTSDKName + macosx12.0 + DTXcode + 1310 + DTXcodeBuild + 13A1030d + LSMinimumSystemVersion + 11.6 + NSHumanReadableCopyright + + + diff --git a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml.meta b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/Info.plist.meta similarity index 62% rename from Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml.meta rename to Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/Info.plist.meta index bcab80a66..dac263ebd 100644 --- a/Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerAdRevenueDependencies.xml.meta +++ b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/Info.plist.meta @@ -1,6 +1,6 @@ fileFormatVersion: 2 -guid: be56133c4df9044cd80f33b9f323a35d -TextScriptImporter: +guid: 58a86b0b376564c06bf8ce29e1dbfb04 +DefaultImporter: externalObjects: {} userData: assetBundleName: diff --git a/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS.meta b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS.meta new file mode 100644 index 000000000..b55a75744 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 218a2e7ff5a4c461981bc41f7d7bfeba +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS/AppsFlyerBundle b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/MacOS/AppsFlyerBundle new file mode 100644 index 0000000000000000000000000000000000000000..3376a474b6e3a7d2b3c481728ba41215a89be2ca GIT binary patch literal 1132768 zcmeFaYj{*e^1wY@1|ot1brjHOT!{u10d-tZXO{@Ui6n|5h?fY0C@KgGiNYcZLX`11 zimR-yig#VS$Mps%7z7D;1LUf%fQoQJKoAx1#=O6(I%j4QkpI5V^L}_g49`POU#hFB ztE;Q4tNWb!V9)Hifk2>PgFv7u&qjejw?H84&Pvh;QP!MiAaDTxv!d(ydl3IK|1uKD zNFXDDj07?g$Vea~fs6z)639p(BY}(rG7`v0AR~c{1TqrHNFXDDj07?g$Vea~fs6z) z639p(BY}(rG7`v0AR~c{1TqrHNFXDDj07?g$Vea~fs6z)639p(BY}(rG7`v0AR~c{ z1TqrHNFXDDj07?g$Vea~fs6z)639p(BY}(rG7`v0;QwO@Ecs>Y9$x%!z>EKZEdC$H z|J>|Apu(fmhG+lAfxv(P7Zvuu$SX{LOrSFTpO+6(CjVP_bpr;J4H;9G0<4d(_jy*= z=}_S$5RiNw%#8yRw8Hx{V8H0I@b$8 zRPQlhz%_#h4;V6L@Q{&Z1In%(RG+_-?y}ZX?TZZo$=Bg;FMLVoXkoB^f5-H-fmq^= zhoApH@X2_TjUBmnf6uwp5M6MvVes>RjBoIW8yHvrUw!@_A7=QbdH|C5SoNFKc@7v* zzF+xu8g8w99FkAh=Q_y9fbWKzuD#)^0oUGe^$5+^oxi7f_f#84vJqj)=7|{Lv^ZJ-|@$5&S%IE~@hyuF z-{0K(4PTWQ9sWsv|M*h#LJUiNeCwNt)x~Ce{gr$@d?L2wzX1ab-<4%*ruG_-E?I_8 z)&}_}`Tqgm$WbH8M(m5fZXUidhAtradicB=dwBd^JN(LPhKMTH@9)fd{7HU)dMtW} z?f3ebMyi|jGpTp=^1`G1_slEphg~^f^w{BpMhqJ;vTW2J;v4CA4t#!6sEYpHEeY?R zKMua~SwH>SKwxBd<8S+wRwns$d?`pvdH6;T88&Lj)hv_s@eO>&@a4BPc*&>ZqjsNq zBKBA?*2g#HUBg%D319N*_@J^ce51=*Zuf<+%X@}zk=HTF{}1@Cz41z$NcH&(%=h@S zM?muR@OhN%;mPl+E6Ysa_3>3MGDIUi2S@Vz$CpH<1nT3Fk^83f9^Y+S7 zqpln)nCs)~@}=SHrr4Ob3e|&>Rr@XVh^>3<&Z${c=O~>b( zYmXfK3?4Cj_=u#b-mAast-tl#`R(hMiyesaf53p^qVswc_9(K|hZ1iAtMVDMeC3^% z7d+{>{uBsI=tP;ci!yf6rcDA9yfsxy7aiOrFr^v(Y)+HFAwF=__Rsjw|!I{L7C9GBsjG3F4Z}#%jLiJp@~p!u4$8fb;A=VNuQ`^Y+R22}Fe5jUKy4uh0->^Ef8Xi7$R?4DK+PQl-$4*m_~ z8U#9)j~>-=*tLV?zi9f&1t(uMmNb?6PuhvxlYBL*#H!bAH~7R8PwwnB+ndhOC`?^= z>(a?*r&E%4{nO|)Yw>4BrbA#q{Vy0fve&g``|i8dflu%bOv4)poM`;~v0S_NJa0&u z2y+I#xF3Cn3@#sa zZQ0m;cf+p*r~DH+jpV;S&P|STY@GLlUp2G)h#RiH_L}lhf2fEB-VoLS3>*h7(f{oo zn*>HOBJI8WK<2BI=lJ!VvjSD37@2<=31lRYkw8WQ83|-0kdZ(}0vQQpB#@CnMgkcL zWF(N0Kt=)?31lRYkw8WQ83|-0kdZ(}0vQQpB#@CnMgkcLWF(N0Kt=)?31lRYkw8WQ z83|-0kdZ(}0vQQpB#@CnMgkcLWF(N0Kt=)?31lRYkw8WQ83|-0kdZ(}0vQQpB#@Cn zMgkcL{Qpn_eWS5&qm#C@jK&MMM`K;0PK!@R2LsVqG%MxMuF(01uaYG z3wXiB1^xQ;j>c9eLRXy9I8YR;2J|iiO@z**NZM=*(Iz%O8joCCC?yL!SGm6)B4z6m zp`!#S9vMLm#T%q}Ql#>3-rq0JjXIIXc$43a3IZqcFs0F0@O~bN(8kWRb0T+856xU? zCPE)b83b?f2s)vm(!>cL;IlLXh+-%FoC2;ZNUSQ3C5mI)=~32Y1y>XdC{3)dr5g*C zwMjtLHX;X5B2+F-W4qjGuqb^`mq1Z$j|$-uU`z;iT%z(ygicpd)$V4#j%Px6x`!`> zodKTXTmQZ9Y{hlke*OF1Qp z(0r{zw(pTBSlBZQz7uI(%zK{lR5u@yT(X;Ylap?~3~xHb{rX7nobVg{1wA8u6%azX zb+Si0y8At9=lAFwfP{1d#9BJvmuP1X`2{|5Pk)x62UH1IJhC8(ZB;8B_or@9d7K3U zjC)6;{*Wrrd>HGYj8zxMb|gZJs4aFPixr6RT}@YtW4qHjzh1^i6z>^eq}w#yl?Xi` z4Py!SElB#BU2st!=0m5V*y?EPhXN5oq@}U)*~LM~-3`o3hWi-}s zCYY+Cv9q(H@!%xIdNy-4_>(}y&Tidf%BcL}*xz%J$S5#D+c-#s-WG^S3p!m^aJlMu zayXu(LdN>Nmhe`QDC;0SkH&t1r)!L-N|pI2B~k4jr)*Wba}iSM{LWQL8&J^KWR)L{ zEmv&`zSTjx1{Z}(8IJ-*u#54aV5YLR8p)&b`GM@o4G>{TMIw802NLw?*t4Zag;hwn za+r#AY(Ehxlh9SP;lF8qQ#AHoBD7M95O55piem30tVIZmF5GNwOMs2WOR5TH%1ANp z9{eQ=zo0m_EfM+`WkpUuWEVNvS|$3*0F700k+xcvbD&^~txbdmNpVG0+1bGFx!x-* z5ggEWBG*q+rZ*^x(*-s*zc{wZJy5$B{^li}^)O$MSV?&z)K;iBNb$_VrP&q#kTIXMAYX>D)CMv-Y5dGU*#eLC(ZUMzLFvxbrjY?!meZRuW&Ph$ z4C_^9uE=L_+8`1my5SJXrkiG(}-Adx#Za$9W+ zH7d2uHA}zFRvvQB#N~gg!e_IIMQ#*}?;h&-g`&&Yn=Py)q1}Nkj#-(-IxcCAnptd%P zTy2OyQ75O9qO&1hnpmzVj?}VU?pZBTGLc2~S2{4`S{;vqKBA4aCs=PEGl`3J>G@kC zAp*FIA|0ymEr23nof@-g!0dZl+wI>PJ^)P08pfm{*6_LJd$SZWmR`P4Sn98+tKH@) zmIj!J-Jj`>vGfC=K1;_7W+#%b?e@=7V_;G&?QCx>9afhmtk%^gs%b+R>(&qzNh6wd zLf;8DVN4z_pqG^jiap$I9O8) zNzJ=3q7xg4OMnoXV-HN1mpkJZ8=da}HG*rdQG$QFK!kUMwyJiQ7$z85M!BjdOWE)F zDycm@K)v6k>~mmJlKMy*GI(2>)nVockC`iz%=9v5HuM%|?p8Y0?%7FZiqn`GDL9?T z-xO&7%#;9=V&<>X5M~C{Va7)6!>d&oS1J926m_-x9wPKc@Yy(kS~>7xVElnjLab^G7Ausb#)_ke?(^UaVauuNh1<>PuAYOxz5Nm zGBPg$>Gh^GN#>6IkeQT5<|dEK19iyQI5sjekDMoZ)Du9lNWai+ZycZ4W#hPsBI{fm z;m9*mA;IiK4%2q~SFIg+>EpP8oQz}RIxN{Zj=V|*d;lzg`#(T>Js+IpVLEkxB;Xhg z{BazwWOljJo9->(1B}d*B}%4Oip+2DWL^Ese#rbOjm%*lnbY?{=E=d@n=_5fhIYx` zOiPkkN8KOw=4~4Iy?KSSsLPTjd-vu{BeSAddow;o=Hw)q3Hu>)Q5u=3M`mapG8Kti zMiw#b6+6p@>hiXDkalbk6ceH5v=PmzLISWGTUQ+0<6h^jCNEHE0u723Jl*;1Sk;}+ zdHj(LNLg&$Ui18406b+5rV9?#XihLC5#OI}T@?FC8666v?mRjp4sFF3w+z8KyI*Bd zSVi(xOD-yitu5@Fz;Epa(q7I*zvF9tTGok${BZ4QIm-*Xf@=4_ib`B7+>~-0R(wI( zE+j$+(XuE}UD9<=`CP58<5|=c(U5+Kk7b=%`zQJi8vGto(vcqpo=uXTVc3Z!b7twJ42M zU*`D*u~kK}AH}r9mbgQHFkW6@bP!|fF{0+dRy-1+Z;p|!M{*U33NtoPXwXwFFqrj$ZvCj73cf!AHiA1kY zSG18OS17eATCne-%=R7KZq(vewYZTsXUnwBT_a-`4=;LL2n#bz6BXE|qY+=P5-dqi zRA8)Oy-u4ipvtgrE?2CVY4J-G!@L;3+YIZdbgW3?J|J|+fYI&Oj-yP%Y`@C08OL-N z-+hK3UJx>|b++$WAal~TljjO4C#QQIe4=-k&_=gC{Uox`az}QnlJ)#4bm_yKQf0Q^ zIgEo7PC#0=8>n(+LzB7_{u3RcWJh+(LYF@!>lH#gkd_i=N#re~l?{I)^ge0n?6-k5 zB_g8XMEV$|Ej@)`&NSfYEria2khFHf^I(D!EAFK9tKB1$d^Gc_LzmE2TK3RsQjOs| zUrR6x3=_)8-`#0p2QyhG0+X@@Ipo9^M0`Gx4PN~*7y$POAsHXjz&%Zcjb9IjweB8r zwT%ip?<91m@g-lTw7cBm7k6B)(hQh1U(IP8n3W5Yo=8hUpsPvb9D`e5D6toIci~kc z6(RF^BJ_8fF}^0-axzLR6*(J3k?K>TVRAR?@7%t-Oc}TX#EDR6MO3Y0VdLX=@vPFP zblVoTn*jxz&bWYJb|MY5-M)>izW{uBWV$q$kP~Tc+mm8RVlz&p)EL^?L-@*h3^*I! z3t+%T{Tmoaj`|tO7jr(z-=SW0XfSPM)X!s`fD1XK?Thzzo*39r+4w-T?qO|iNiYKcz2n| zk<)?ne9ukv)fkJ(AV?TuAA5)vG_X!4LJgG6F87!^WX#2l8=2#b%#yZAG82+yPB1e2 z+^RfF1E0)8q(zTs|K|0EDdEgX-n?XHDk%{v{ zk%6qmJBnj9MX{)Rb$)Ps)#1EpS2K+vty#Z%Qu1Mt=@S6l71OC9T zsR8%9z>52m=dQfD*?9Yno+82vMu>cZ=kiE|P7@SP-cJ^sbsZ0M8K87lR=Y7?(OfN} zvkAAA*Vz{Yp~T|CVWoT<UDCW zX&R??3B~`YOi%$;YJm5g^sVaj%qFL-Z|E~OR{w$bduL{J@U7f zPo}jz$Zy%gS{{|waz{wJ>^_@pIWn!~3ay3aa!JHPjni7r^jZ!}w){(4%ZL1y|FV{w zB{(T|(^~fMTJGNM_w)0=in^PGj`LgQS<5%mS~l}q z&P}$Qk=Am{p&|wPSt|)Ad_Q$`clh4~IRo~Q6<1gjJr0|tMLDy1sH(_3uw99_N!e7_ ztF76*t6`wFS#4HrliJ3$4aL(j?|lpyB!-Pm+Eu%qXYIlA=UA!N&F95Nskc(n{f|$H zdV=zQ){1TJ#XI-5CGeh0wb>GhE7Q5h&XTG3^C8|;h-4GV$CgZ`SZ&EVtr1&N8j&LA z_eT_o4Vge6W#3yU{S)SXTG=G9l|kE>|qJ$jV`B%9HX_$;eA*K)uz5K|fa7v%YjsW7~J1 zUy&#){-5%>qm}XbEYda!xFz2hm-kU*!W@65&I2`K^JoBP?`gXfXSVSBlElYHl8*wD zVri;0gr&+KJV~l2^e1EH?XIGO;j4i0_7R~Z^`=lqlv?g>7))zWbe$L2^_c z20SH#xZpqpFYQPvQy(0)UFw$~ZX8y25e_d^I@Rt$#vyUBE}Y|*oocMUvc-mIJAF1* zcZdKzR*y0s6QLZTelTOb!fHEzir=d|>`L*P$lI9>*g-ax(0|FXvg-;M`kb7w{LA+# zmi=WlS`w=+ihaU7FfXl`pi;}PjI(~inG<TtE5gwd_fQzz@61H{1i~cNSqoj;^ za-8<0kZ|2P_oMZO<6tYR6#s3eSGEVy(PK6Fg)`kJyy8uMF@sfD<=*KPFV$ks$?3tL zzBR1xP$s(Lgg-&j1Z>V%arI~?k*G#qI;%K#T01eX#m;c(Z!UI*%p@2UbxNy>Vrz<> z5|-JcSz8U-O9~+tZC63n*60S_y9|P5Xhpp(2agdNMha6; zmvPwK!e0)y57y#|TD+WMWijE-kdcjtBlpOr+TumxBc?0TOG)TN=m|})bLVZVr#P5$ zLL$4E?Y9HMthPvxCKg63s)}PnmX?*HCx^qIyOVCHUN3aNCpo#Q>{7Cc(7Cj=Zmc1I zN;ejVr5nd;u^hLzw{FbV;^xW>T9a_U64i)@@3}kG4I(LtnknLCI*~gK+c<5uvbj&> z3ym@745L`j`rp=?_e&}^ly!#q%?L}D{m@gCi#lJd(yw;A^VI%f5xLzknd;i6=vnJH zV$7mB9Y^j$Z8S)8afA&9R=AZ$VA_Inn!}lI){qCHA@lN zPFe`H+y|kXjZnx4%>`2Dd9^#j2tngsqp{C`z_c_nF^|l1ThjZp*K*a&C_Z(H$h3qu z(yaziOD3KI@L{k(4|KU|D`cF=5!&*9UaqzrU^-*Ae=RwgGJ9&1s^WI~ z!l>RTRGmoe0Fi8P1CK=LW#CbyejN1L4Z}zjMcPP5fh>^Y-&pVr9?S!QbRv1wBf7br zRY|U)&{LAuexE|kq?r@$zPFNe1Kd}V(@4wMUF37>**m%CQ6&*oCwvJ+5}`&y7)ibb zQ`XqM;&bcK)553jy4E6eUyh$P)2yfozr0^1<`xTA& z&F%om^~jzZ?yM{1I=8Qq$7>o2Opm(3SB`DC50YwothAjH-g%XXbe-GQnp!NiJz!qU zHW6xh0i*%-XbAaL%E0pR$rH?9*F(eTP>^%Gr+hmVV;OtC}^(^r(slF-DzG`-FpQIncE z7AMk}Nf)1NhmC6bBS%9PCT4b&(cF^=HB|t)jPx;_KqwLVv5Bd}3_lVzs>@Yp ze?M6ycD|C+)0K9jtMTwLFeH{t7^*L^_DN{`KTWT5BWWblB-X?y+u?Ox-XdFxW7EIe zA*&Kw85F)mVh^hjk=T0_iKK315ac;XpGk>5CDrlpv^(lb?0#+ae@ko_a4CshK~5xg z%chjXeBYB05Q6KWcv(y$&3edO!1cR{zM4mo2<1^NPJ-NdE996?^j|wd9AYQ;e;Zq0 zo~MbaI)0FpReX^>IVA8BumJF53UNztPOIJVieGleiIapRSK40o@C@=uJHh`p0*liU zpg~Fx-RXROek)ESUKUQ|s_4XD59dl6p6DVP zHUw{384M;u9X+hyASPMvC2klV1Y+V{UezM4;y_KRmN2|gNBH?k*rZR-QEdXCdZ@Pi zT&ox{sHb=k;!1PAb};9i4xl1VLco+b+(x2nI#2L)9#VktQvhg#J0;KM$U~x&b~h+H zjK2+OSVqHI{O*t=2^^!)*@o)vG*su)RPV61v?09MaO%jMDro7!rj33N5~1Uj)EBrt zIY4Gl{tVB~AIV14`6KxnZPYyqw~%hgNN#9o=pNLn1@!4ci7K)Wz|8p|13Y`c_2|ovbdE;uk`7B1qmENT%w2^^?`2k;if(-l-3M<f2L*W z>>ZLl!UL`i)gDpXMl!W|HZZzdON6czD7IlT>*T_zM7l~SBUP0Mb+^<~chEP<<(1C= zcA|9tD5*p#KHXqSf!ejlL~J8^=Uymf_!9um@@}kZz-4nlO|Tw)>bm$91xQ#{xtfkN z@)tSZe(GiH*b>e|w53d}(vr;&Tg1`*vAP9pNT`G?KOl@rbemD} zCQt#fO2HMH$^!jt+#>pm-U_%A9F>GwWH8Cf;&}P`qH6u!S1WVh`>J7}#5rBX^&g<6 zU&*&UYJT~;zR-vja3%nE!_iT--;-&DToBrILQR7kdUB^yI~dNzNppfdJYJk|Gw~JW z#e=VHEj~l(+E#m4=bdgoJazs8gMYs)nDnXsrYR{de<0~~&PR+K>%kuX+JSo_%p=W1 zkJl0Xm4KW zqHHj|JI+I*s}0(y2!dJrENy6|SW1Z-n^`mXMZfz@y{ReYj?azwd97$jNnPEk>5I5j zvn3c8UYRdqSSQV4_de=G{3O?|OP6XQv;dIU8a;^A)@g^19Ah%Xd3S<}OGd;207YsH z@g0g6Roj>v;*K5-CsIW8(|vutihX*XG&XtTeFO`or6cc39cas`z5{|Q*5OQQ=oJ!B zrP%16kTqXDc&k`s%&z{`W42QZp#g|TmY=x19vJ$YH?gU*EOrGdDNLBVsRI(72T*9D%G*+ zGZgC3HPqUey&;4dl4D>?yd|{uQ(DM`6|ZNya>63+Oj~LML^kT)fKG}{G;t9~da=l( z*m*{zfMFKQ)fFv)VZd}g#ov&e`{sXzyE&5PicR+9*JMDQ3Kegxq8r7*Rc* zk@qRT=;aU@S!A=0Ide57QRfYnQhb`U(VL6a?g7$uF&wmhL&fG_YSgJ8*-9YO9rL9C z(bYFZlypeODeAj;6OB((r8GrOgr5AFKBN@4;+x-fRPK{vXSxg|ebw>NzfQ1bw`s3j1Z#uD zRGTI)kolO3bj^4F@kPDWgcD}2kS@_fW_AK+KtPODTwJxI(fP3mIT|}hjK+D#AfA6~ zSLf?&nxKOdUd1wm*tfxfS_xh>8`m-#>)sOW{+dFS$2c%Vn#-(r!hLBVQgp_#{pjA> zg#RFMZ1-2#L)AJb-1A8R`p~f=o6rxV)JSs%W%Ad9=kB?R8As`6>Ac#eH0MiKsHk&J zmK|i1@?Hrg)jC<0YbiU_nN*$2+82;6#>cfL`IB%lX+FJK*LkPf{L-4Qd=X;n^?|*1(wpHOa@CH7w{4L6L zZDVEJwNuAmJ-tGYk7zvDg_yBNa8l&SKCF!8E$HgKq)Kc4CV1nKyU4KJ?Z7a)J>a=^ zZHlLs#?z~^TXDj7Ld2teW|F7rw(s!DkCk#K(n)Z}g6(!t>266=Ko{LLh$ zn=XTvHU<+}cxl(xZ&&Sp=n0d!2l7eD;5Ev98T{~5N(Kd#D-B-IWFqBL#X`77?(V)v zVm-9G$pngVw=y0atD`KhHIL_A&`69E+C+IP`Z0zSh&@(CIp+!?_D4qYPwea6?qNyX{n8eN=19) zEpAjLUaJ-%60@p?*J+jMw^wz8Ro!8&9#3!8$Et?mPJr;4^r|ja^{Tb{AiXNbs!l&$ zTP;aesSo7Vb@5DJc$eJfJae~NRvgGhif&}if6;lTP36OoL`7BkFg94Od-Q4(3tOjr zAdd!8<~`o60oPDZU2`b9OIC?UN|WJTRgOrSy~+XzBBtZ=LfR|f2Eyg z3m&9dx(WDzd>x(8J48-+W{!?X5g6=ZjuR%ZLsNp(JN1fA!K4ihShzG>+;x5SF7kl=hLBzMERc)bpu50PNoiY!`rGni1$K@x)uT# z3pU}wJuoZ#`8=^(vwUQAK1R^@RDsuz5&X$exnl$~Biwjlx2y(Yrae>RPgn-0e~(y6 zRY`1tZtKQR<<@jVxp2K`NA?xL%f7@SKE0x0KuVS}7H4!85`{CETi2*FSo$EM`7cJ9 z={x>=u|9~0^O-`#XlkM9*CNL;+*xRlh^zS2p&W*s6PGP1w z;~zxU?R6dbtR%KuU42=it}_zeM$ZZN6A)+o4Bw4s|8IO!;yGC*(nq$5;~%$2rFaBR zxR~t?T;_>{IM+HtOd0#rNMp(oS2=@&3^)XBs_(}0=H#a;v}$+ba*+h@4}>P1E3=OC z)x2Bqd(cwP`9QYS?z;+xz+xN$t(lyxF?74lh4#SPwQGZOWX_DF#Mb^C(HBpJBJF+hcZv4EF zr*HIh<)^9|RZ9O*qrX+wTjDgLy~M+r$V2}kOKp%Ksiql$WSX~ddZ6R zb+J<@S|_cZvsR0W;ut0alWo&lKxTR%w;RZV0@AE5NR= zEt<68&~yM{X2?`brU%wWG3nXUX75GSCfZVN%+VpU5H@?59^)U>PL5xsRcc1On;66j zt%`04ARU&+3B@F{LavfjRrp{Gn2K9Rf zmdu{(JL*#|_B?i3Y$tB1lr6gxJYb8cm{=*dIQ~YI?GQnt^R&@FEsowz_a)7XuB)+cFe?nR!9fW6jF)SM%FYpX)@LnX;+ z4}6K0VPUuq?R;Mhj1zfT@aw<`%;gG$&EqMa74ywnBXqU2dBTqlpR5 zuUg8MT=pVv6RFc35*r2Y8yiV4K{*~+6x&%8HU^O z=x^Y(Sdb`&<-${yPZHxiG>$>{-*IV3wlCb13f8{$hqu|{t$HEvfN5AGrUT`(&T z^y(FHbN?%RFuj}_Y6gayZ&7D(&y_H&6aKd#aB|!lANNB^-1i&qmr}T&RNTky6Zgwt zsCmMhDmV!29?s8=It7R<^tG!ZL$wZ@O=C6^{SaBGJ!z711T;mps2{QLi}NYs|9Ob6 z+C3QwF;hF)bYl+;%JcJyg0V3#%8JGcygjjeFv&k19LfD3FwBQ}#wK#T-4DZ!CyywX99x6Un>>P%7L~e2H zrhIoeOscX+zG|;R{T!X=ykD@o=SErn3tai9^6&@JzkLM7hfU}B1@ zI`0+57L~-lr(X0_+`k0vQ5)ad)D)%D^gkR^94lE=EY84(@~tK(c%f{J*;7HTn)Zs$ zR%OBKsiZJ4eyO{0k&0n8+|gg`ISW`x%;okZXL)03ZOg$;$_Gc>z7oq)B1;3>oE8?V zc@A{G=>3V_1^$+n;8Dar)@!JkwVaONlhY+OZnBx!rim(jJVKTO% z)8!yRx4}RZ==-vXPytwx-G8JaHVk((ubSjRLPW z;Owzs=f&A?&hwR^?&%mdoER&^9==}8r4wF2D~-77mwG5a5H6FtO#Yh#HBUEfar%KN z;CH*)Egl{z!nd+@L%#+nG1CRn4!|}r$8ij+7Js zBn|Dq($H?2U(bT|W->8qeUFAWC%i|syTbsbV@J*5uXRE(30A_j8&JfuYCoywJ=Dj} zF1SlTAW8xf3icUv=(W1NZNSD1L~+t?4%d{{=R|^S=0%T$B0PPzF4@~V4INZ3m%8NK z8%4QI^Rh$I%P-Y(xgzx}SKv26ey z3#2;sDrihQ9zIyewYbWTEV%FwLl}(zu2tdbT;Bv&!@%OPTJE)tht8Kq@fJg^El}ry zOraPy_Nq)}*>uuJdB`T!mIW?+*ZtyLta{Qf4ayI57tU)KaF_F^INsqu#PMs+!W(tR zR5c7_ADFgQFk~&cl(ELUlmWXdHB=g2$nt>wJRIh|rDGAutfS8#AVSBL#H$r&K&1IR zwK9(46l^ANSHztTzW#6!vV9Hm9P@O{*1ZG_CwE~rZE2O{M%)EaX1&$%vf#kUV3&A4 zT-|e|YIm+sb~;R?Qq@5GYv5mF_j;puTJV_Wt30@~G{i1uU&x_IB!3mdXj zhX3Bg3v6)jOEFiwUmz&eew^ncj9NYI9{_}~o_5GKshX|Cs?wTwQdRz`8_T^`J&~&N zkKra&vy-FM?Ww9<&#R1G?5CV_^1ZT2)$D2jzt{u!5AX8X1b3%Q91W6PEQ!DAc97(x z`S6xH$7|!YPT%mrhRObv|EgPslT&5qp!bSS*g0s=#yB~Ty(@!l-vO-BJx_QpGQ>1) z`cd7N^T|+h~mQi@C;8Jk%FpH6VJq2~Dq}%GdOO_H$E7>^CrgIm^2L6+uLg_&*FmsfVDmWju21v!^ARiR(lS=J*C zimW^ydO}Z1te~%8Tcnmt`~jJ_PEHi0;w{MKL#&E!V$TvndjkN#e#hkqR)0`C}wbmj?d8hRUeGVuevqMq=$1eu&otJ^*0R zv3TeyHr|+YJaez=yLY6jVySQz54DqsYkKt(tFE%@iu$c9sn*NF(-#Q@_p#bXC(RM) zK>5+$$W2gxq{ZT`B9&38Bhg1dko2t zCU2X-Zl2unmeUuh;=!(#n`(8vEcc-0N-g)eutF&EZ5(1 zTP-)xatX@~wOlJbzQ1jx<&L%77|Vq%H^Fk}SZ<2tF0tHH%Uy4|2Q4?=a*tc?9?Q+J z+!L0owA^c!n`ycCEmvi^)s|aixf;tYwcNNqI<{*px7F&_TP|Ta*K)1!P|$+ymOIvR zyDb;CTtK4j@!&a@%d*@hmTPIb>n+#Xa^o$RYq@(Ymv6ZzEZ50$;vYf1i{;+8TsOxl+qLZaMXzW4Fz)+(fIZwA_7`n`yacELUZ@w=B2Fa*Hju)N)@~ZjI%( zT5i4N5|(o<*NPpCjGyET!DdGl}*%W-fx5f_K!uZZXj87Olr-}+US>#x~QxMwSyInU5u zk@j8lbxTF~U@ct3Y#pm-EYmCyFDqh}P77TTb1W$<;whGF zP4eH;B6fBz$s;wOdbX^Hoee-%#GaPyLh>?8b|X2`lCmOJSW;HRhb-A2*&HofZ6{oX z9~s`;+{}lD$c;v1F9w$Cm6y z@;ys-A^DaiJCS_RlCnd4!jf{+@}HKJ&6*?0dONh6C==PIc4!l~tbu)|P{-`{dc`%n zeOxa1X1AZ#TOZR0>f@P_`WQYTyM6i8?DpdykH#zXI&W+w-ePZNa+FYXx7^}blpt}7 z7e5wdIUq_9yf{9-vM45}Q-v*ga%d^aAOlzw?ibF6 zfZZ=7mY(YlkZQhn@{<~3&OL;n6A1`-EckPKokBY(lp!LF5dTW|Ebl-y7HNI@-N&TTC3 z$6Zoyz9y+&BzFlq`M=#Voo2G&5D>Z)J|5L`!{Cw+7>9UiB}bt%Q4x-WyJul}dy&?2 z_IR*d&7+)$jz;4-eY^-n)aA=gn8VPQUJ`ka%jf$S##kbBfPM7Eq?|E>iL*{2ecKas$ z@7YrR8*8t3$olJ&0`bG5V2$5Xp>_z(l-4XFIQW6g!=CW)<;? zpyKSF#6P!kJ6_%|DDK*+Oaemgo7(+~EXvO7+RiN-R+M!AA_t1}x+ zMeASE|9!EHhrAc7B+4HKTOzcLQgnGY5_AW=h-6`^gkB`%n9K?1|ESA+BJ?hBTuzcE z?~v4ic}?0n!6WryQ-2IoU*wrK^+9%SGevePJAL%240wDH2?*p#XH-&0YZM^ZUoM5k z^gy};$%0v>Iym%cnvRbXm+|o~;lWEMaMhGhN>FLMN!RExa#tN&_u)Ab)j>H7bCQvZ!H^j{$MqyIa8Na{c2 z>*#-Py-0)N6Z5GR-Vi}NQiGh_-a-g`(fSx6>R=oy(XgCsI>!W~7(@!-&{LQ=;&Lb71iXvQ1mVv=yYp=TSaYH~5Bri^i} z%Y3060`ocuhAyuIVL{@-021k>k$brcDjbAos`o4uO3XgKFD;849mOhbr_>MDM~*PI z|GPt^^?463RF28xj(hq+ig&v@dG*9h2D$trawB~&g9Ar6JmN$vs5Veo%yHmySA*}KGrJ}-INwCVx3U8}CqH{Vl z!%L0zeGyS4LdR)8S>?C6mpvz%5?=AW2%y97Lc&|+d8LV?CSJh|Z_`p%d19N9%@Qll zvsRzbO67%*FYm1C+=%R!sIe2CMP>Hfk{8wOrApc(a>WvC?)61p?h#j@o;`5i`FH)9 zS|IO;${7Aj(dWE}y-tKK2agP;6FHj{=rv@jfyAxsTWzv-^x533<0YH2BNf^XW&elu zsvx$6B@5zP7Knh@CvoW9;&{pEJUwt0!e*W7#X8mE9vPQdFC4BGA2UZt>N)NkUB zMfZHM(ig%Y0w(5NCa*<2VV82<@1MnkIDrW^g;8?1k&_A5OhtE5yOy=tz?OTkCn6?1 ziSuBDdhr{^uaV7_+-TU(Tt9BRKi8Ynvd(njequg;8#CTwzJuq}15fF6{!8B8TZ6@K z5u;mdEM`w$PD6XcQQo|h*BZUo8+pyK5nM0HmD%^4Vho=kURS-h9K~*%`tjW>Bcv~e z$%~G{720m^^!YD3$_!#uuGq#8*~u${-Wz;U9Q9ri6rAoe!lI+^MHV}!@tLm3ned{1 zDqlQps-&vjw}H}A!eGgJ+RFfKJr6_|Q;gAt!bVJ&TXI{)mc{gCzT(&$GOYb{6(vG2b9XMc)m7fcVBjnW(CsuTO+e1PwVCP9ThUe~;j^{gyj`zK8&@Sx zpSN3uMW;gEz_odsH;F@Dowt02=X@o_{U@Yv^LE-?CEgPB{=98Xnwi>8*of)MOK!Tl zOZpZy^H!~h_!BZmrLBAG6FNtE4?qy=tdv=ueOqt-)}NIF#hS+L?O}gbzHW?2BQz_! zB3lyPbPPQvm3)6lj>^0#*%pGR-A{9*CN&df2AZlRRd2`{eN|Jj9Xw)ekRUt zg%=5Db}M}6x02)+PNY{ji=qcI9!y#%5Dc8_oOLP;F8!ua;M`c_Q&EICG>GUjPexn) zv8noFCDiK#2T>7q&T7P}dNEPNXsmf7D&9pvfw|52Gn<y;okL#AfV$f zNqb!%`C(dPFLnX|g4;#G2dg-FQL2)U?40bMrbu#4BUeP8uWs|my@qYY5T-%n^+s5-awO{bPb*8C* zQ&scuVSf2aue?OdBTWb#peYF^ViBKFIH4odw zC@}0N820N^*pEzNKg_UqOkv;frC`5!-`G0}_P*Z4@RcMt>Wt2hHi|T3?A&!KipaAP z19bWzk?@({$XITD)5h`%t?xyf&}LR%)}dB(tCg==p8)31r`Qis-Zy9EnMa{|_v464 zZWl#OtXEr{RBeCOJ@&QGn&{CA3$56E)ADNfYt}QgUEAjk@d>4=a2L6qDf-)+N>R9Y z@OBj;S4)m;OjpK$UXAwALSfRc4ayFR&71U9<7ma=?8zHt3UhxG81&%xH)NSaI|^sm zGBe{}LcOpGkOB{lER5!{#Ry*Z`oA;p0)kTa`gSzS9K<~A z?Q!hBM?H=)Fc((lI9z`Hb!l7e4%N|{U$C>fK^ZK0Eg7aH;0pk%S?vdv+E$=_hWBW=`UH~0rOwGYiyDmxh=|pD zNxS5micR(Dt*=N(bPW5aJkOV}iJu}r^3{P372}~pO5gSQJ`wuzHS5;B579>jMUN$mf`{pR zZ`{<@B+oKL0#e$5YnARI6=r0etixLHmK7{a7CdVOE0YD&q@YpG>r#+*HS-pVvybjp zSKDwPyXXl#dWFJ8?)i^Mm*5hwL&}>tnqWT5P3VqHt!)}v)z?z){~W8eb(#u9!b2lC z*UXaFQbIyshN8MZUai}lY_T&qi`HXbMP%{ekJn#<#3Xx5(Cz9j6|$#gTpPd*<+-v5 z@lwmB_cP?qc-G7HOdfiFf`QQW=?`CD(M!O-mjP#P2aj{?EFL9CS69hr9i6=K z;Iw5*CeMjLVbE~jhif?kS?PVu;}P^y-;-K__FuC`TH$EAkALk&TlV_ah3EW=pMwLG z1HL*FpRm_%v4q}b*&y{$E||k=8kjJyAdp>gA)5?5-G>P^p{r$L4Eb(KrDx;A*PC_J zVCO1c8=TBhfdG#CLi;Db{~~5D^e`=?Z|5UU-4|gzDB$%!|9e@H{z@XJmAdwF-&5d^ z7V%3|JknLF^>~?>@cs{!nWu08;~UT)wm@SA_(p zT#y&&8>nWUP$b))l5D$WmB)(T_Hb)EMcekziAH$U8(5A+9Nx(r7mR16k$<0qm)DBY@c-UqW8rSLK`zFHQ?H0sBvTR8t)FXc@1 zEZWw#E#N9`AW(CCQ_k%1L`hyu^6Htb1@Cmjdj(p9p5{U^``x9nzB8G!AG{<}K(DWi zyH`cee2oZTyu~Lg5e+}Jih+>eivMjgROb;|C6yQzWT;^Cm(OIT z&5;hHCWga*rL7-W%#YpX%vGi;IM_ z*shY;7N0QykVRvFD;wkR)V89oy6|aO3RD+X$pe>TDvrd15Se2{Zdfb4g{xmQDz6u#mD0+qiQe%JO~pu>itW+&&7H`m&BBVb&9k;T&xm~T9^FcT`;uOP z>u7d;ik7ITlk@WnvKNq7a>QlA2qcz+e=#4^=v#Sp_Q}giVjF#0m-I9%lF2>f?3%RNz#ku|K%&O%{{>sR>Cw$ZxES^K=KY%LLB1gu^YtUcLq&VHY+Aq z@nJuip=BrP0PcJqTJaW-)gc*;6;4QmKBTI$5j1O?$mkVLfXs**?SF5<=j1#Ggzl{% zQD`Le&Rk#ezmu2s)ybO#6uQrw5g<6(5Hv-Hv){y})!CJEw=cXu*Wp8}(Xt{i)HW)3 z3*{-C5sgP##pC&+OYt%NqcQtb;u~?p;e=m6e^_^4%$7dO65CK2;Ka|~0si$lrdH<- zJ*JFbT`(chpdkDH1qJgq1Pd#67G@W2q~)h_W6%x}=*aym#Ny}>l|w`Ky^(8VZRdUs zOCWVJdpYlw_0Us5tkF;ra$CwDX7vJs-~WWLz7JOOylK;OCX6RV;hhebQSA|GZk@Td zaAr$Bma!xIgevfSu~P7hryvSfbC>WU8&aD`Y=BoPaQ0gmrgIOuWLEx`=kLf#OpM1EZXO zv~b7&+JGirNj!40051brdyiH*V+JChf2$UA!vD#?H9RtTx{g$`egMj#*IHku9-2)- zgLBsCGf~D!8x>ypB1*nrBSw9jdz7OjiU!N8yx$9U-cN5KNcbx1wSq*<=ui>@z5Pyq zIOfXI7H@I9fkvIaygq)058jnT!5sM4Lu?NM-NVZok7XEiG37lN|y_y}#!ezOY2I6+ztZagvCU=hDK>hz^k;S(^bvNH~~ zg7jGpCVi2pd6)*mKuITAFIdbL$zoRFm*)E=qbUKyj3uIVq3`#Ia})mHX&pr|AQ+r6 zjEB1Ep$}x?#{b8Cp@M2zaOGrG9CPe1)x^DMEQ_nZfMyxZOA7Ph=ZeBk?nk#XzOwk9 z@ZpZ^{(MvFq|a);VSw3*bxDM-P}*Nx(DM7GN+}WQLTPjsS|J-L!5?6rfV z4rC0v1+phUM#0t5>>KFqpy1(Cg^SCBN9*(EDt9+jAysw2{MxZ}@vTp^!|P?OaB@C- zN;|BMfpodz4(oC}bZZ;6;mMlowFc`OimZ~R;TzVN?71?YJ-J0v7DrP{{0qF;8Ri(j zd!aNKq%sl(cb0Th)h>8Pbh}{rmV&PT?U8-{HzkA1dlYuvm>qwR;=fA^jWh?A4E|AE1G#v&>q&Nh@$voL z+mVAA{>$MUg&LnFEx8~B)H0ydE-jTrJTmX2M*KXB#9-R4NF;=}nn}VJF9{x5v}5e>H7+8nX zO1w|ltX{a8#(b`!Dajg=VEL z=0!`r&qK2CoD-FW(`A)xt+B#zD;?9E51vq?gd*IG)NQeSRI0Gu%R7I8W*55I57@9i z3#|XiCeL_uu9|RbL1TXEFwIu+qf^8PzMU+FX5$iu%>t-=3xQ0+_5 zCwZlsJFVVJ4S%Is(h4D$j>}bepb$3WA-UhGqlqvZ0gEb(rhk>Ps_?xvS?isg&5xVW z4admardr*%B0#PNq1ux70g^iT35!EzDLsmF04a;-eefo3*^!CR^OhYa*%rhBEPEGO z5Jf%)k<;N8MZ+qh&dW(60NvUjrVA=+C+|||fJQD;P>qRdpa|;wyMxBzo_UFUSlhH2ar;g;+C&Eny*jt>CXK?prOm_sao|fs*oN2>KBixGHJQ2Z)mM7T=K(5 zHEn>ZHzXCGW>5YXv%!{!^L#F*gGGJCoJopro7xUeKA`HJl;q>|G(ObKwo3BRhjwtU z9Bf09KYS>*B&?@1@zeM;%x2oZdQFS-LF!O1kICM_Au`C#2gF&1%^yafsCHqD%{JOrDELv7lH6>?3^TDIhgN8 zVbAQ`lLyv|6qbAJVp@Vr%x~d1yIp zCJ9RU#86Rt*?!!tS=i*evWWB~34O@ENaVu0Z6_XQCMk9>a4T*{vB}~fTjC`e&+kHG z3lgDT%JXo(;PfrCvXGoV8$`R|fX~n1@P=zuOLDZn+Ff?5k5bB2ysT)6hyB*rys`cD)M_CSC&A_>GaHZGdxSq^cXYLjdS(XjwG~;w?7wm~|CJe4#KAdPGR<^P{o( z{75K28_F9iGxeiZrSh@$@qnwaxwRxija}r_i1)!Yd`S-}kfp_Hs!#;?&Re8wpYzIg zc{7ekorfUkaKAEqfc2E`-hx!dUG@}*3P1ehk^EjS+tA=?3XW$SeiEk#%>3S&7WG}^ zgS1J4-0FiY)S_@TdrxihrsRprhrn|uwoVJ5ppaQ1riNWtx6GK1!Jh_ z!e%yLd?lE#mWOZ#?zpS4Z1{JU2jOe7N7qsy@jm0oSR@DccI1E750JUNS-x+ zQ}orz`8Q2Wl`nxUwfCW4cPcw)>2@7Y0S~4>j^YN2(|=Efc-lf?IH4~Vp+bDAED`Dl z!XoD{iBPE|7)oR<$6#yU7cuR`!+PKY*;z7rrwY4#uNJ)S%9~Z|HOz2?l=}x`vT6~P zirgSf#luaRCGOqh_`GLlJZKT4b@N@W1_kEgwpystef95xuiBjiUNao0fw8wpv_Tw&M|gObBj}Knz@^}Ws1x~{W9C*4~PiJ$Pdw5k%S#RoM#~G(0i|Liq?sR`+#<4r#mn9DzB%~4A)Dx`cls5Gq0x$OFE&oZ!3A1 z<>XOq8G*C3Ywnsw!jf`Uqj8RS7ec*xMbROmW6-N7hF8EYx(X#15; z+G0~>1Jk`Pb+jt_Yj4AS-jin5ccOo?Agv;(awKh{@si4DtO2=`6~i;K+vkS;gd*k* z=(|W$U3f}jKk4`zW(`rt%O5O?HKFanw6&Y~PPnJ~J7&MC-HQx-C|KD?%Po*59xNs= za*F5(@hX{lX7ZfyPMjLF)|SnZ*ft@0kYSOKuWZ>Fz<{+}HkZ+v$ejr>y2 zSXEN`QKkKe2P^0MeJv1!_nb)0GqTn0D+>O;*MrE@65pFCCj>x_fC9d#$jKY&i3-id z5|*0|RnydH+sG2F5Eg|AKeQq#3$2g}KZ!JD0e9Yzk%48M>EP8ul|79O8Abg57wF-W z-@TNC6P$OyJW_8JisGlmP~5-WRL>jbtWRDypy};iQ@IrDM0VrNyS>K9Yz&`96pgNI z6#$vYtTPhcifj>2oZpj}ry)%lhudkOlRwhQV9OS0;J3cu&k}poK30VK%5rp zWN4{-UVZio(QoO(0$bxJts`@j>|kqo4o zlgLKd$T|A^Iw@E3_Zy{JzazF&JQ3#&6-jKm{%nr@coyTe3NT&$aWy#MaOQ}p&dV%wpN>Sc|RiCR^N+#A{Utr;rUcWNgD{%1Z5&PxZN8 zhvmBWA7Z&csY^O%F2c(FDa3j85dSMx)yzXINc9$T5-+ms3SQ%tzjVaId`7DIhvmK~ zjOeYYs!FOv)^Z&2hUf)jK=>5?89(neNI6APJx#_%$4{YBG{qaS>l90c{VxTrMDdUfpmgi$f_vY`@Qy=%LqOOPO?! zVMfZn$iZqd;p-407O8tfw30S#{|`Y)9VZAPAX?y_8Wx{QuMfb4qOg6j?6opA+7~>dyBryasKR_3CKXHQAG&1}PT$ zSj-b$IaIxmb#f6QM$jxw1BR1JdK3}e$rA)PiKA$7j2fmSXfp-Po_wz`>4EROTh?w~ zee3WeDb*R%^p)~Or}4FaDOlJ9{~+?oJ1Ivj88kSuis6j0KFy?U?IAGtijTyLHqe^y zRzxbbwY%kA4}J<@=G6JPc>6GKRK3QGd$sI4oJfDh9TtleV2?NWyZ$Dl%bp?pm6~JJ zUw$^QKwo#{cR&CxoXj>=e}*g`DTW8ao_JM5gbgQhz2KHt-8y_9PujL84Jls|SXxxg ztpN1`I_q!>etY?^$oVV314<)t@noT%Nm?$G4WYlh{uLhimY`;>dw>cZe??0qF7oZ$ z$_7dbCtu9P062MLfzo9kO%&~{SuN9wpI8QdrNIOIGQc%+tj4ex(5~hMO8WYaJKGw0 zPhpL{r|_!!IZ?j09zO34(MY)E8xA9F(x4;+Z6YgJ#NEGAhMe8IlwF{hwC3kWW=lhJ z8^t~699V(8U9#>ceDdm$%UsYet#o)^0XZ63i9+&&S9ePIExV9+((*2zF9MRytj^C4 zBLJoED781ZZDB|(0Pip2g2A~8-y(u}MG8%8PhP6b>+33%w{1`TgqWNH$%hBmj_~)3 z)mid2>rcFVGOCIUxslAxNO=1V(S75HQ0N9WMLZZ1YMW$Rv%L-FhETklzS$!zpUgPMf|D(nkqU*{>(Jds9SZ?{8MS z4W+eOyagbjjdH_Br}-!izni73u4C}D#pdB7Yg&C)7GbYQ@Sr;T}Xb7=mXA8iGV**ALiYKJ2P5Y=wVg94WP5GI7E` zk=1KJHc|}G!-i*rj`wDkOa{Wk)Lf`~znce*B9De%gxu*KtUSp@$d*hX_xE8!R-$3t zr{G1SNL#>-icUFrs~6%*1~=u4705=es16Y}_}==IWOwcWuc_X>>O`Y@pu+mk1_p_( zDUSUa%`MhNN2kNQS^p1bZvr1>k^KJyIuef<6h~1v8kGpBD5#^LjuId^(SRr-c%ZC` z0^S-t7E!J!hSAPGK|UM|4uoKyqBIZs~AL1DyW_RJl7FoLl0& zeC{Bd8HhXy!>kyCDOw^@`(%?9CNsStw5up!3+@u?9ifFyE;%n$&y>FUkPSv!mQN;x zC71k%=RCq6*k?J-myyGKz+4OJ^82KAK8RdluP6@^r;U$gVAO-k*Fv3fZ@DmGE+35J zoF8w*u^>+Ct&8X!)Zv`|NbYXFn8RUqvaf$u5SGy$(OFmzH90$6%tC**x`?pOL4^1u zwxcAUbNT!i;>;($(;;h+4*GXcgX}q)-G}<+0;!%&BK)tO!C%}Cwl?GQy9_UuFbKjk z#?cP-iwXRVsM8hIv-l%t>-y@+T+UBx zE9C8md~!Ao5xb7GYV4MyOmGo$T*XPPK$(HPhpMAnpynxtrVIS_2Um#x%<(@B7|E>M4=GTBj+>&{oH3VV#$ zR^y3ws)H`12RH?2@~a3agtoLqdS`%6KRsZhWk46roOB}u45+BhPV8kWTE7qp*5at4 zSI58w`Z}K+0peOFfTk(fq_sMNBJ=-@nF!BrOiNf)Jyo@uq5G;deo6M<62uqaqo$$y z2K3pCx{awTpWFzL<^!QM>%O(MakNz`XGIv=Z!GMrAH{@{nj3aOqY;!CJ&``@m~$4*6Z>| z_<};AYd^|v;T|SzY!n~DXjL?cSCYBX_3rysz+CC`Z^s#fHO0yG#DamfV0sxS!~Koh zsom~kjcI{pW^@{Qp?&d-7`i|Y^S~5X5u_@BL7i==n%#8}Q8lbURq3h-d~FfOPR|J2?T)0e;FVMb@hpyjGSgh-%4m0Vi=qBEbPHZAE zoc7&G7fh-N2C?PPuOt%?D_Q^CC8uZdyx5)TLiE$ znbxGI%ce`wKv+d>FuD_Cdgi56ox9=eb;p~c;G*%iznKk;H*EUglJ3l;n}Joz%Lbll zLI$1aHTy{E493+Ofrp)FBd`}-ex15ZTBLgsnu!(sX(B$=2+|eW!G)sfr%Q~cF0`|a z4&c>`n5GdiO-|5c!|enWlhK_S)-U%wN-c$;Cx0KSgn>%2ppi3XHvL{6(|Ya&DNk9! z!L!Py_t4}jJGDX|LHcW4B;ipss36_E3w657P6WOr;Cbd|>h@X-WFJm6I&Pw-? zRS~56BYfO@6#<+L04m2G9lhJim0vVh^4xR0mN?q5CLW#;$^Za76-j4pJ~>ecM4w$W z5|p0@T}8!@v*Kmbr+_mC$&jXla&nlJ58y{3!iNbOt*pUEPH%E1jBDB!VG(4I=wfi3 z{dii3I4H}`cGFLW7)*)pCkgF};%qC!yA+e=HN75}D}R-8#WhmZB7vGfTIc647N&QR zNqd~V^&BwB+}bt=+-B3d=739(ChK@yUJM(JZ=VzB`;#Pw{IaD9()3=q;Dmxa4y5LF zChO60K3PmzW!)LFK<_k)i}hr(Ig>hii^Uc9;fxL1`V; zkgG}2|5U(g9OO0Gcbd6gZoSXoEi znp_#$--EhkOsi7Ly7wJo|Ck2b$_mmyGfFtP3&&E=`!L(fs7Hnx z!;i#IrmceC^i368RApm$ zxfo{ln-um3_C&=|6i+=Sn$3c8afL4u;UKYD)EHfTRpx8J!ty_S=D5fYV~?DTpdYw0 zh4nG7E03xwcyB8FowE^WV9zdO`bKpvr`&4oDYV2id8#;XVa?dAHaJW?I{#i0BPYkB zX=Iuz%)#;VMIyQ}ypO)HR`CiW`&HH|t-Okkc;+jYQFyqbqas>4%wHgAZA@)jg3@0( z^9S4}b(xFmtNLH+8ynTpg!4vv$}h(NG41KmJkC5C#loO5mx@Qe z?HYBT0@-Pv29=vyHvUh%$7U}+ zDt2HmA_7Oh;+Ds)mc+VUPK{L;Xf&j*yv5K&dno+2Wv^V1f~*tIFsp;~Uonir@2!!k zPi|_lAhB$)+E_SIp31ZhSGlKIuBpx%zHz+6`PkQt9&9>)Wb6H!>@w@A)D}(wi1eFE z^VDLKAimgxjLO7}^Q9wfU#up(f!)x?>KFx`+z{1MAGABt;n zYqE!_Tze~r;OCNeV$0WLM^KK39iv!)nryA<`#r3f>-$3)-KOu+e)za9)=H@SVJM0E zz!YQTlu8x%A&}RyKj)dbRBnb{J}JmCZ^6&=3rRX%|*tx7X6;80rm~ z+%&VZ)6c=wbH`_hO%T((`28ilWs4RKyDaq~HOwlL;blQgv+5)=#L$2} zxUhoC6{Xr_uC5jI@Y&?6CmFUjxi&4ME~_F{Dq^ipJ%H3r{T8HVGdAGUX4Vj{T;sk+ zFldmxJ;GS@sNLH#<;R&cqOMzJ%8#}-+K!KJl#=A*TR!Hg*rVO~CsQ^M($f2CeMQ`e zB+;DZyPKg*@B|hR^M}P|J$9bgbtZLbhm!#wHLN#_ytfOj`a9*KRynoXlwm{s zzrNP>j29H$Pzw<(f7n*}=@qlp-`s0C1Td^~tn9soK)ZQhj>9e9IZCaU8{k&vKjuX< zgw4?8{d3Edvzs``b45q0&p(ZiO;1aBY(d05`HW9^yOdCRWc$k3i?V(X6_ktW3)1g< zZ|p~MRL8MahxX=18O11G7W!tR^drkymFkZIG~p#3je8!n7*XTx11|mEK4hVf5S_4^tZj zD+d)HTKb?@EJ?>h&uFli*Acdc!*#%R_VkDNQJWouHcMZrwglw|OIZi$+2^PV4z!!X z9x_}lMs|Yqsn+B;BSnTyPd&GHL0){nF}uBZuFbm7g&|0vBVSIC8qZ*lQ2uzNGci{> z{26hLAPqlsjL*Ds7pt9NEZ0WLVL!jM0K1?7+qVs@jeP;lwAQ3HY^m^y0#MiA0=mk9 z)|aj64Id7W@i8^x=BTTUA?X6L5zn@!9tz;%xU+r0nAi0k=$YZDdxIrH{lhS!X68+; ze;ufE$-(9wM-y5N%gL6Ip~f`#EDv8+F<(nh?ot-RaG<- z@ctX=-u`3@p4g2BhdZ9-9M;+;S95VNA?`C1TZ4$-ozEOKEGsea3J{BGBLq^ z7OkBB5mx}%E^1URJ#v8&L3j0j4odn(7=J$8TbHe#q2*VyFMx265f={q#V4M(DI(F! zDh4clA@g*2tf096SMnm=IJ^NytUW`Fa9z3Q4W5%ru6)wi6Z9+-S98g;alXN)toh(z z#^=VizZZV89For(U8 z-zDbcG=`n68Hjn}meXlt&hAWJXBDnfeX_)~3SY(8iLElWGTd?+eZ7_-+fa+tjY4FY z^?zV3m{0x(ysGK;q2g)vT*$xU4&y^U`4)Mx@wJri!qkk|&;T`g(oFkzhW#s}t0-Wb z?>Uw-+y0$p|2Ejab5Z6+S8X-DdYJkq-Ancq?;xUgFprL*%7_meL!Eb0LV4_8T`zW& zUtoU{L-|wnXbo)eo@ELjyo51(gnX2oqI#y2$W3kr!lna%z{ufVdhe=x=wS1(r9M5a zP}>cnMzeY9Z)8)O@Kf7{UfT!PskTG@OKsMv{{mstyWh7&XT;$VFJS>%XhC`gMQj(s zf-T(g(gcJHh?Es5IA_1^z?Oy16jZm7xl5bAkY!ZA)^9e@l@QbAr=nrC>b)Q}pDx!O zC_$=o)G+QVx3oy`5KEm+{D(oM7R^#|c(iJ~%fq!poClonN`mfI17%KrR{4aEj3eOr*Oq!^>1p))x|3#&S6{-VcQl^Zz`ADyylh@ z^FO)Gn^-z-0ZR_bYf03ocL`+bE5x?9HVq0El<#S?-!Dr*XDw2j849<%2`oWp%K(SI z#SC1O!u#V?1+$L^#!N`}N$h^*=8{jpXdLp~bJZ}qEJ!^F5aq#Tmc$!oA=nj;L8_N& zIYNC>mr*K`>3toPYIi`U9aI%=A5|#Da010~ewR)6Yx!t_g|YCk_|n=~Mz_^eC54vg zL20fU0mpK3eTA@8rk!jF-eTO4{92YCdX&;`1!xyjBNlKwH?A*^&|YUEK^^C)j-Y%` zuK;~8Rtf};@qezCNIlB$s4?S>9N9RjtNt3-808Hqkh;bVN7sBv4mc*oI79*(gO~*v zXq4C&=j48A-i!{n<#^_XCuLuIx&@%7?Et z@xP>YVwB+jIn~5tRMW?Y6s-w4tXTirgb|$MgcWy4*>Eo`C3$Y1>D71*U*tQW!@_F; z1>t_zc!yg!8s|PJZ&qYwZ-dMmfWUy!>emiVoK;+{J@vtrTy86~!oX(z=@b#jpg{Aq zn8ghy%x~I`XZ75=fhOyfvyljpbN&q=$(aO->&52?M?ElS%&R+IM?@!_ZNm%0NGm=w zr<+H>p*&|8(9!tW+SB60V{{i94RXpDx}#(4jD+EQqwjP(N7E)!y}866ghYsQi9O5( zS-qrr6T%NLwe4RmCu@ioPfv=s@s(0F9j%$lWFmbR zB}EhcdEZ|o9v@?3VN8-u{A)&Smkgw@))Gm(*Lnd|d3%s&A}7CHU|6hcm}1GV`W9GOnL(5i z#rmU3K;s2=6$Pm^^`)#vax0dxcx1GGYW|>fj={)2@JSj6lA&ApQs2s113y#crux4% zm1ibhLH> zfy^NS{+N`8Nj^*)VGOh=9d3y)25bZ~mz~2lE&@3(>=YHo-~1jxAKPG(a4szLe;r(uX_AnqSrHoP0d#gyih>}My?+Musw*5>zUBtRU z`Q%J0HP#hP$nSw~cpKHyg*G5@x6?Tge??AzdY&ZUwj&I|?71Hq(E!8$6Gu+3RFBKs zMEKNV`_`26@a4vP>yzpR5^^ju%`s@IPx6aLy7G(TRhR3+e3&hOAB0ASWq>=w{#F<_ z@u)XV8jb+Mjpe0(j3G2VnBblmX#jY)Ky2cy3X}|IlKhfGz*QF4J9OCCPTkni+Nht& zZ3S{W(BwAf{rZbm@6P=FIn#mM9`=PXeR$V%L{0d=TB5G#~XIfTmxtfPX?zL#9U1P=P=A0IU?roXp9+h1GOB<43B^ zha;q^vs+DP(S797@jM#oR&m>zjdA)H`6q(ZuJxMPR*6ot1$sVjpZLsNuQi4f)JbO1 zY$a-P$?!@QmYAsJM_IPyD*ZPH)r`-%PxF7oNO~2J+(Csc&|OHEDEX=w`xJp~srrY5 z;;L`Hq8RD}ORsJyfc0dwhNG3rz0Pu8p@4!>j1K&DCd?83)XCtn{v3n;H|2%jkvf6f zVR~Wenp&v$!6MDv7>+01sHO2(HFPpI^G9_0fiW}AVj17U!lk4;3%Lj6ScysMC|lZ5^TDS^7h3@>Vuu0$N%rmZ2=~%w|l_qBekB zMc4-1<%yzQnPF zT;fCr!2U}g>;T$dC;;5(02K}()BA7-VDe9I=>XctDFB@50E+tM)mgmyiGB`H0l+Hf z@qxtvX$R=;02Ki2;Q-wMc+dgT#Q>W)z&wsmQiFUA+c`il0H!&>M{EuhNLs$1HM+q8 zdI3=C05~MlM>s%pF~A)Tu-F0m0Pqt-0=D)8Uo9|2Uz9+835jP0O`mD4$!L@U@He$=>S6kc+LSv0&t}Re0xt(qd(?2K_*)tI>1N( z<~hJ<07f~$=fwaIIlvkR7!AN}4lovg-5lVSVu0xm@SOvU1>mm^aJKG8;9R{H_PM0| z_;dw+Wf$JT4%UwTCQ2h?ffs|$2KqvSu4d2jQ=lJn=#vck7YE%OP`QD#gDCVZAY%+< zde_Mq3Vzk=GzZ%oFciYw=y3;qvyW;2n(XB&3;yS|TH*fDNlZBNHY3gU0KSx&gT2xi z-U>h_TVDd148M<#G?fy$5_H0VbTD%qnC9Du7-t`1xqYa!>_gpb9}*DzkZ9S5gwj6d z#UC07mZBkK9~yl2pMAs4Y>T1F;cjDWa&s_STi*-c2No-l?oE&w^=(al zQSJT@iNR%4Q*gQP>X$KzeP>OWxoeCi&c=N5$s>fbz_$AL)RbVpLzK@U*LqD2wT~{* zN8;zheP)QC!_hNQS3Oa~|1WQe=A!!$&MV1eWsB>5m;n{F*+WsY zi3t%M+3J<~WIO1!Ng2bCx5JsX7Pq_|&aZ~a>8_lIA{ypjHk7ow(pFh@1Ak{*)CWEf zL@h6w$R*p|rAC%tOC7R)YzE8FKk7E_N%EzUl35vH*k5F{R4-xSKJEMN7nEk7&$NGP z+QO3T;D+W+v_i_{&ZP}RGvr^$Oxv&B1f8a@J20r8J?*<5=k1ouP?FDz3wEB?&_Z1L zUh^a*(aoYvkk~^>43Yh-SF%ln8i_A`HCEs+!y}`sb+2z%cYLJoOI5;AEs=XPLUCMqv{GKA_W6FSzG0F`G>*9MJ}d@ z=;d6sR6;Jf2e_yf485OYSMBPBE^Xi9w#2=t1pym36)bochsTRjv*pb&o<#M&VNv9F zEF8%6EyGN3LJ1Ao1{#cAhXZ5mN`8BrwV{_GVP$4cM>NQCm@dmdmwf0lqpT&Xfh@67 z{ah3>bh|<5oMH12F~nAnt&KqJ+>(}|+EiZLu}2Prz(3=#U}*`h7j%L*<1aGa41-1n z!yiGbp0UBOe?(u9diPQ*v^!)n7FY_@WE%+NvQkMW6>j1GH*mu0qWz2;d%IZKQZ`!H z9^A#Za}=h#?#9k4AlTT^ZqD2KjPKU8W{qlE6d}}t*v`SC36}Xe`Yhuldhc(8^Yz&n z9w!WuK-T;8`Y#P@&H>|TVfB2&V5xK4#2=!vLFrC-Re4Uy9@~Ri)2#pth{Wc~Xk4Gu z0X9wl%ea`j9>YCCQ0fT2vI))+NT_m&86u3~2e3I*;)A_~leV}@dQrpJTJiojAMSh9 zcw2b5?`U?A{o%fme8C?D8HGyy!$?( z3=H{q9qHEbLAs;hvx#<&*WN0-nDVVx5$FdCdH&gi{bcf8Z~hZa0A~kSV;F13+%Ks_ zlFmB_%C^%J+SfkG_lQopQbe_@nRYR;T4mFBRcer!4c}^}D5+w-c4e0*Ej7K1ci>Kw z3yi-SR?k7>{TkPNOE$7c%ac%-9UDD zfk?zWvAlhZbX0}yiyV1{C{4X2JsfQ*F?`RTrg6cbSk}9NwjWG2QNzFE9IY@1si#;r zJ*F5xDpY1r+CZyo+7B!RQ{pat2eg%vV<(9Hcs>+%LZC4lE~%dmag?m?4Ooj@aA=Xs zpYnIf)&SIY`#O3mzmkb&qE^{K>SU}eL);jSf;6$s`(>D!Ux`0Xl?>VgX}{;Q>d`(> z3}$lxG%3JJ8|Na5`_HMg=|D^d2?laL6M#0Mep(M?t;48%{f?Pwi#xEw?_lQ)inJ7* z=M+!Rdl^%QOgmtYc6CskxRzf$vbr9l@IAR8xCb8-hXrU@6REz}hXm^rXPP=_BH6iQ zFY34UFBF~Dc^CDJr}NIpH~P{%6|Ym*orZ)?)&-vDJN|udeHKt&CsRm|1+kMv`0+dv|A?NRlCJBy@H@c^#$ptR7YOK|GM1A-EKE1uGKWoJ=5@j_pUQ`!fS8n-pA2 z)QNR`X#wx4SGJJXg12ugy#KbboIV}AQEx%o^F3mc2hxrflJ6(oJ8d^d4Ml&E-6FqZ zME2X&1+sOvk9b_w;DP|^vkbKi`!8)p7*jo>fcl)7Ml~h&Ek<1!YoI*JnbF8_jKrx+ z0qtWNqq*e9If+n={rm1Q;pcIU{qwPz2an5#I_0Tz0PR^N@{X`~-scw^5P=Iir7&5QOqtZMpxcJ+ z4D}w4dTfmP1QpO;Zu^x?qJw+rqP#mJ6hY607@-RIwjjrRa!HCnzoBQ`c$SJ!QJY3IJBK}u7Tt>TOSoFeLF#2wSajacRgfA?v;`yY zAn?nUW1lN|9W%OklWZgxyBj4hP!viysNM<0lR%tL-bR|NPwizw+fY*o)r+Gt<5YQ2 zK9xcmRqtrl=nY+%w^4~Q3^X^Mw{gJ`_&y|A;qd@yk8*6KV zczZ~Ua7~Cnm`Ba9ly1_~3E0aHllbBwD9cTn!9la=+^~7z^&ke0>`qMO&!QycHP?eb zOLz)ovx9pL&YoI9t4`~u9@5b+`MjB>$D_GXW@)E6pck1lt)a4Tz`P-az{>N<_HP9k*~W>yVa>Rcg46 z5aK^&VzGb=IU~8U5Yt0d3oSnfikKzXsca?ady|631NKq(5 z>-9d`IAfQnMUQ2ksPeWEWk^?>L!r6>T>izb+k=c0)s? zE?#g^+{Gig64J=~=0LGKU8(hWklOA%{V9KwMDc%xMD;SEwH3!4w9+m>S_b9{ zDxop_Y6sC&J;!buC)BHcc~#jpjf2~BX{O|fIq9b!Tyfo*Dn!a$@SKD+ghPNsvogY# z)CAQPpqK|;^G-Fo^2rrx@uxAo%8D)0oMxf%D^90?!Vfgx4#!!wa4^Gh!YuB85=5cj zkpuk>(w}3rhwoRgUJM3Tn43R!tZ>Nt@`Dt(=$y^+4jvN^xVUOKB0Z<-sC@Fc7KDm` zW=ZTw8(bbdC%G>xCvr(c07x<#n%V_aa!Lie=@RkBH<+;a-RM&PJT1l>cDB6(CCI4m>=|+^L zOka{zJ8SXI_Eux;^-K4W0tiyqn)T(&-^TC}3fU4~x=LfUwUKln+3_S)b>uJ|!_&dL zrTdE?^1dIdW0|>Bot?Pkum{@W#+Teda9mtJLu*m^#0#D}$SZ`EGeBa?EMIc93e;V+ zo!5(CBzkp=*S*X*G@#2Vv?G_?fmRcrw;xyv6hmQZ%S^@7qso z=vhs=CR?3?(VTjnLeReIa;sR`!KEdnKSMgR6hRpfNEjcaHip}RSX>sxExXY4P?r|T zZMwd^m0bZgc0Ni$c@Ze{$!$e(ka}mVh8v@1WBcthzV$UM%=dK`;=(E!)pTQourS?o z_)5PCN}vB))Y3IK!?yO|_sA6|~JjxRpXqJtvj156V9?G6)qUP%0Jj z!~5TI6$Gf{w+hKr`bRB+xF^tTJzt$ShUi}AR^`UtGr*ZomWiC) zq|i;Kg|@mf@A`H!nf~-Unjzk{cACmlI@hwEE}<>#acP8%YPz1Zg51T9fP#VcU>{Q$ z3=o}rWl*dg#|*=Ls$TctsBRef*l2O#Ig7ms*S}V zKbH4j^-DIU+jV6C+pM~`rR!$H7N$RcI4>;VJlt{iiEuu;jo9C+?XU0i8*P7@jH0#=Ea3e4RBL;` z2*DP7TR69Gjk8|?=h2RH zbcAzZmv!3y&fYC;kG7+9d`X}1U!qm6^vVaCSnyx$6;DV1dyV7c8lMB$YrNOc6xDc4p~mY+QDd(3Znk@h zE3W?^Dn^BO8r8HRsA5HiA!3$5`C1Gu$iMeQY4<9lgK4L-8(-ECT5bl`Yg@)GuQh)d zDiE96vK}D|`v<7+_Y@QImd=FR${g93QmVZMuSt-;SM0;CI9Y8 zOJvHYeY6DDG?dtg+$b0f6el~1Qc!UIk1ROIg+|;u^;(_0EL)h3Q#zlW4lVYQM;i37 z?s5J%V~n5k&y4c-_WWLP{_Ab>xA1)Ky>t8zdj1V3NATbD7Inia;{2;Uf7ByU{_CFK zC(f_){7G^B4|;yTIRD5t`Bz*1p`*EXFO$8Y0%vsH7}zkzR`df#;-?^p`7B(FwPn=} zwEsoA6yBEOZlQyZ0^0UQB*uwk+?iik2bA`4B8r@qRzW`5&50T-qOd+vWiZvaxq)R& zED8V2hLJoK|CHGlBsP%Yp7j^+IsY#oX^`r1w1h1E8eY9<3{Ts_ZRQ}=^8^8C2`I`= zvveJytYlJ00;BX{r2D`tRrz3khW0b=?V2Tn>}@6NK@O@qi>e&jZFe{Ko4YanXTtaJ ztPu)AM8w1lb^t}~wB1$r2*xo;VD>T`8tgq7sHmyUEdf$Z7c_K^o6sS)+3bGu><#^( zt!(-Q?4+`?ug%S$%?4CeS&xHz>7NSy(}{mN)@JQF4l_C$_mJ?UGQX#BxtzWE5JwpG z0-FtZA~t8LShn8o1XKtE)-C1hRY6OT(Hef~+*;HLMh-pm44pt?Xk|GkWWTx#d62kp zg#9Y{Fm;9_3)&*h9ReFGEsPvXbjKWoIVQb=a8=OBwOs`C3#3Sx}H=I zXDP+4c^;OeUX-zoX!(mF+`n)--O&rdejPm%ezBSQ9p~ypqD?C}Z4V63MO|g#5PbhK2Q%eNPgARgf4!tI4Ex-LDk`EYSv?0_gQhhce=|7;t8wk zMHKP4DRnABb~g#U6udg->2? zl3daR;mRims~&$42F-nt)$03y(%kf8h0)V*C|%KB6IGD<1Jmu``Ucw9hdg^+b^Gz6 z_Ir@4D>*GD@9ihM(S^T5_uO=C>sU_vVXWB|5^)&s z3&f|UDhoxIl10&N=yh9+JnKa{huYX&LPgD+;CeD$@Blez?7Q^GY?$85IZ|DAHGV)@ zH1P{;@hNqWS;@Xi2Yr7GL^eJJ$MQ_3CxM{tWNMAha^gyto!R|ABEw?O(jRI89aLUC z%#?MdRnK7{)2{!9sjhz~NR8x@r;HU`thU8-uq;M?|FerS=t3RjnrUnD7|E3dBp2Eu zHikamp&JTdN4EkSQ2^`P3hW@#W50_k+o=`Q4h5(eMnZ9c)C~7N?=saZX!ac^)jyC6?G1-aK9XN(krhhT80yS%b4H{d8&Fn-c5B zFc)J^f1%~_=KO@=on@%l5;ck<<(?Ruf84PVe1qp##PyH%{2t82hJUu_ z7i^|}o?jE!KiTv9#qbqv@<&_#VWVLu=g5O}AN;a4!NHNS)E}o{ZCP~#T)WYwdd=0E zN*H|I0E}En%QlY1;i+SdI~#lL1!F0nZ0}?gtfVH$F#1>GcLV#;Ot09*Oti0%;5REw z0j*7fiOwpNyFvHpwYlhbJ2QO;XnSKzG>skN3MR}pEpd&YvI8nO)kPR;Y6Dea2gRvo z_!2zAGY4lwj&RN!R&^xzeyg;3l{qy_&C)`=gF~tfRNX-wxyQ7F(JWroB2VF28~GR` z4o#M#-MCl25n%32eZsO?1rg)%u}!8Z2^`NNv1QA`aHGT-q&n8EE9=I<^igv?X@>tH zPDlmpilWx;Ix@hg>?zMkfwgG-b@n^lZK-3$6LuDVG^54-KR&ny<#>dRE4QwIwRYRd zEs?=cf4$EK!{xf?oa0IAGEA;=!^8Wp8;TQpjir`5yvnA(V#QNCGbdVC|EE&*asLhF zY*^l-0=8DX!f-L%UX9AstBkA5MV_R_S)&IBXI9u)ubbdAg)XRQ^2*YWqA9|6N)$Bq z6K@(?dvtwgs-0>GQs;mylG+_r1#vx0YvAF|B@PjYd<#c#t*MQGVVz8v`T^K{j_R)Q zuw?`&eW+?XliEb8E*J*i-()rhUwsN+{R&^1!q?Ek*T}-x=)%|7=xbUd{zaY#TF}uc^UZ2faf04S zS|&GfG@rBmb0nYF_~%eQukgD<}#RW;5y5?Xh(Is4em%dq$m)K)-Ic- z?-FgORj7&Hd#PoLv`tRz6e9F0CxH;xhE-IJgt-RLOFVPkar`?eGT-N)atIRsHkf^2 z*X@f^>Qs}vxGOXHFX7K*NPPW9EFv-NI;@)Paa>0&`WkV@t_|O`Qsuww5Q#5Cpg}^s zk_L4DElq_RS^EJuX=%m%RKvye$_GFZ@#kct32k*$cY5Ox@|l$%IKf!zoj_IzX$wd* zJwY@XMtiy&7|H4a)&qcw&?QA9y^|{~tB=c@CZIFe(CAOaz&5kEh+x~bz`nJ940~Ro zt|HhC9QIy^t)Sj#jx5xBLjiWgufaZFA?x6%UeNWedD^gy)eh1ys!9hGU`V5pZ6xAj zLY1STA8Q4jM*htZ?xHb2t+Bg}(QTnGLJ=zgdeySpwPeLwVOnD!%UTsx9FJ^`%U4Nb zWNTb5@=uM+$MxA}*xeREx9kmZM-K-(?Rw6{!M518i-#ZFUgE$RPq$Tdn~q5{a?Uv8 zR;7P;06Xz?he@76q1#L_Il2E1NE^55v3wz`pn-p8%AA_4~EQy8I3dQeNZg;RIppU~kYM=!+GbUu#1nIrd z3gM=tBjS&27s1`O(up|g z=00Fu1y%}OW)cjq8pExePZw(xp)5>US;jBzZRE4~0`3NBzV=$1h3f;rimPr52-}&8 zorB`JGcvPY`U0B=Ifbzd9JKf>e)EX)j9P_9C&uy1zqvc%A6BAt6lv_gm%;_&sq@K~ z%0V2Y7xBk<$+oN=3-&(t6SC{*55FUud%#e-%=c3O)_jk>YFc=Og_C$nxu@tBmo>*$ z9Uq<2cbUzlyB()$wOKWL2(Fu-blV~Q#uUyz?fUD1aaFC@g?9KIm9TKt;oZ zW;3tBr544-{_{I4CL`goIPHB)o3I6G_rz&0dAV}ZPAs6qYmv9%&9e0_3XnO<0jx#5 ze`tw`E@op84UEs|NzM7RA%a^O%Wu4I34bJqhXeHd{4t5^~9*u(_m2mw0;4aN! zOb^R^dPqoqe0tc3BH`nCu_m=a5jl?FokNX5hM;b9irnc5+%K05w_Q&a??viTQuE0- zNq|sxoeM`Q3JQR+#+xGSR44#?i1lpxHp+W7{~4reFtPobBZ~#h7OIwf?<)$mEgz(Y zTBmDW?KasO*7A{bQE*cVY7A1&5cnH%QZT%?-3sMLcKfBK^Cy`iCHd6vjxJH9uqooW z)F!C`6iSPViF6c(pwSP#tv1_RTkJ!ttlbRwEtx>z7}_HhP$h9M+ei!&+mSx7&))0R z{edw$PV@ETpF9epA2d4ce<2xD;yghp!ibFtU0HM*zo87|kJ6_`P2v^42F}-U@7KM zBLHnV^!Qf4!l4bkE#lBbO`$>M)f96M?I;3@ICL%reuYE!%2sR-rG`@o?K-5mvN+a9 z5e-3VJxUPwMFH*ST*LA;{OCKH79?)R@u4uh^*cskc&Uz*Wx3Ff!p#4^6ucLvnuMfp zl41{1AD}ZWhR5^&Wcd=utc|hg2;YU)7YZi4f4H!%WdJiTmEcfjP~WQwLtr%BWP;?Gq*=()sHTewsfih_L4(8v2D(LzD@g9#0#{Xl zEA2$;sHSrZ3CV6G@Qz7Sc_FEE3oCO>l;9IO_Y=y2WwFqM$U(h5TS!QGg6;oUiLOdm zul!DxC<@0ZjZkW0Qc%jv7<_26E$B?{!%vE@I%XUmYeJFQtyu$=96-gfQRNp&f>N1J?sePvnwckYKHTqxW;+L%KCENS_Oyuv*}@BHk5xWf2GQ z(O(QSK7&+;fwYP97sEt==M$GTAc_Kxk}z97Aql#oJ+mOax$v*@8wx@5!u~OSyj=r$ zIBjZY`X-pz1>CP3q0iJTFgU(0kBLhp$;V>S}gDyL5^NTc#biu>w*u$>JqePc5c?E0&X?YR=pOKV*` z+?;QR;yEq77#-!Os7(a4pnkuuzL7B*+_5(Yz_B{~*-dA7_9URj@o)|DB8&GA;ew$%d1N z_tm>vbhBNNsTWUF@(2N%i%4`*9wot4>L76h?>PmKicIbhwRWchSW9`5w;-9GV@a}o z#IcQ3u#I7MimGXq<}z&Om{~UjrPr5HA~zhff1^lp4w2;aFv&SYl5>ZdONTJZ{vdkp z>}Sp3y-UX(xeQwD_$i-umu9k9mE(n-%}Ome{aAAy;Q8dsmOilp@>!N7_Kk{hi$z&I zPBvgt!zk#ZcFHqC*y2RWSN@6eJXKW^;he!lN*`QAstNO=n!b&L%ldzt2?jv19!9yL zJ4-8G6jVQS0I}AC+>&KpxL>}K+(}AiVf{1u+1XWbckjpz zLEVP6!V>5eoYMQq2HXAmW6xt*MfKWnwn&JF6goiY!v_2}NHGwD6b&(m=OV2J-X~qK zso0k4CswzKgRtG}Xdwjo_1d4d>EJRkJy-8x3H|6=D)$}nAhF;;krIb8>|lh|w-aQL zxXSZN{8y>xX=j_fj{d6?zp8tG#BO*4lxKpRHtFM_2N4ur@};JL`gvp@60EYmC3%C;4PYDk|!O`ajeD=1pPTqO>twRnqcs6Ln{_hfkokbu*M1Ndyf@GEDP6 zqJq*2%$1294N8}RESaEZ?^+Lnr^DAiZ);3U`E+DqI9n>si}wcD>r{K^zp2C z)dEKMQ?*$J5SMFd-;~2cwYka$tee{Gsf_d!D#Fjc5QAO5a`P3=0%Qd9CDBd>6Blmq z!q$)=9m=r9KE*Ub)qOzSS~8#zukvCN86OEtK>I5rAsVong!0MzttF|w#L_l{A(o!V zD_}uO8QDfJNPXq%g}x;sNKy+ukM$K-cg{jHMmKd(^(7@yy4@M+( z9F)QD4Jg!twY7It&J4uxx(!uvix^78T6FQ#;h~>KVrbWVV4&dAHvyNe_cBE0lPiUS z?!WpoAG4fWS4xf>c(NPVLAH!8oXaJ8+pIH4JH30G0XB%&FPWON`fo+piK_UEA57q8 zj~wr|Qt|8~gV<-El_gGk%j`1WN?t;(p(cuCvSiZifz#xf*kImN}2z} z_y1K6_i?4%S`IZzh&giXiOz^4{Vgp7w@dw(DOmKc|Elo3_Wr9ozp8tG)*`t!>Y@-d zliW4U1<54@Ep+=J(sMQrH-?c!SD}K{bp!+3XF+E9t#8^46BjTk-n<-~}UEjs>8>H%Bhh}rRbBl#0mSJR-9STjbk{lCX{i3;R!&t2C zyc`kjB(GqN&;yjwBB&Hex%x?fUeD?(+W z-p1U-tUZU!0;#F~ny`>p*#;XJSc_6_E3XfK+-gCZx&+vKawJd;hdrp_v%STA2JApj z+mW>QJi{M=Py_<+RyqH>!|w z-c-#cc(yo}hhK_0m;RGwg}ai2uOoC{$KTD9V!nJ} zi>QH0HD}auWD&An3e=6SKC4EkNnmw78BVLb^X2b>Q<80xZ8bu3v@1ui6gXUC3 z1zP4Ycr`Fv{i5z<)mg>zkK_&Ez0AD?cO!6Gvj;uv4a15S|4lD2x%=^cAi{@MK@I0d zw34tTGyV?SLdDr}IIv;A6Wc3NxNeZVT6RbAF*e?l8~2x4z~W~|idAJ7Ou4H6;nNi&f*m$*^OKfx;zjD`@d7ABj zNpx*L5#3*g(wXDzQ-;!dL+ul{SK_;|_F2K_XSMd(ozD+O*k><3_dU!$6{~r=BkRZK z6#vZd`GzAK%IC(8Y$Ttf{c|**{~2Z&#`1Z`!S;DJp9lHpg?#QUshp3dfpX-?AI*+b-n+Z?Z1ZjuQ~p!oe?;7uK)V#B!iRPSer|KM3ZW>k2QGS z+Jh`_vHvP@xF!B;8~?S;f9>YKR{F04{a2`8L3*;5z1&kSeHfJQnCB||?Z|Pb(kma> z02`b;y=#e1lH-I(U2byv17?$#xsx((A?1_Jzu+q6I)RjV0N_5cTK~Eh1g!CfQQ>`G2M_fviME|vnKKwWR z59D0~re&rQmq}Um&;Cr^MOOWHg8Gby{Yb?WDiVL_ByP=EN{nZkd@#{)0Q=ZaW8M(ut|@tE++RF-6h8sr_k zhgiXimg8@%uP2G*y)2Dr5T#N2BrDBG*R1}39)`0W9t-;5#&zz2fKK#9K3Qp`PU#epRpI2_s@T76K7J~T!o`Apn$cp@)o|ljh#)#{6%$Q zgRG5tSgn)&I_Rw+CYzXB4)|4`_1`KA%12r?>+rRAq0TRQuFKcume#`8jjiirs%t!D%q%P) zYIW(FgDZFQu^2m=zk1IGF776JJ+;Pi*T#}X?_P@L=eM_B2Odie)&JW1=n#3oN=ORI zpZlRhq*EqRt+^o66IdI8c8J%^1jjzQeJdyoLhPK*rZzAC9dLxC`3N-Dc4}mhYTQ-L z`NWmb&W02-I9(y6*|lcFwnl>$Ff2mTq4#o|YWL^2;os9T+Q?MX`R}%wT9MtKbVDhW zF56kGW|ZW=kGi$zD!!Nqy;j*C(wO$^H^#;j0H`OUbv;f6B}Xr?2Fb% z?^4(d;?!`HN<}@i3iK(K2NZ>Atxv?yT1sWv z;9cMH8?HVjJBj!Cc2J`!7Pc9ED@`D+0e`ciR{QDHP6IycV+~mJUEF}HmCgwM9~#iZ z8*qoA=*caOP`XY7K7t|tM+4e>17556ZwQY&JX8>*nOd0O?L zj}4K`9W5Qa`LO|pl*IfWFCopPHg@u#`Sw@Iul&Es@9(vC{;%Xm#2@Hfe`H^~>0>B$ zs&k^ux0q^a+1sAESCm<3_#K{o-3hD$lSy(lXFvCLdwCCW&|NJbbUwL08PS=fc>B)! z`$&mLE;-+kzp-{*Jr$3hsog25(X)_3vL14!mji_gn@vJt5V2j{dK|fc{)+ZLC#o!J z=JR4yF4@^Bsr@gMeAg|aWZwcM?{eB7O1Aueqh$4eS~0wzQ_=)ZOoFGP%;K>c^W@B! zlDjG7JbAz=`6CJc4?G#wnvyfUZ!dL9`m95V2WG)Qska)LWVy;CoPdpu0Iqz-zR)hV zv>MYEzkfp&NI$cdpbK=b01bcco0u!9eT#Mw0t{=zy#6zseA~R{3sL1j8ZXZi$zDq6ZYE0V@BJ)5slP4nIWV=f&C zRW2oc76wb(w`+dSRZRLX7-?Zo6$(;YZmVih7cYH9SF#QjP&P3_i1L*UBu0})_TMv3 zz$cR)EW$hWJ-XmfLVLo+~Q5%xyscAzsQNVk>L-QK%OG{q*Im<7$DUIhFcTHgFA?e%MQx!t=pWHRJf51Y20k zDo_T$fB6Qg6di^=r8}Lv3EGad_Vc>c2hx|}18|5zb2jI;&SoNC^rg>(IQef>PLYMK zz?q`SL{~>))>U2)1U1P-w1CCyW6qvu8I55#!y`x3LI`&%9@`Ozle}I>Q3%m6tJ&z; ziPDOp-WO)yx1**`SlB&6_0H?!w~l%IgDjt=+5dJNyaQ~-R)ni4hT#6NMwDqC29nzB zcUo3?BSa}JoUd}(Z^Q3jYu~PHW8-{0P2vv7FkY*&cAr0SpTZUI;-%*pX4-6VtyV>b zML6zIk)C0e2a@iUYH^?50v}Pv+a%`&{`UdumFleEJJD zF>##HTffGfqlu&Zm!DTpjP_q8LPi|p*6M?L-w;R~;Ca#Z$O+CHf;qtG_GxtFv3 zJZZw(vO#Nn_hhbBl{0GM_eH27yq|7ib45FzLxKZBJ05ohknlDyguz21649~cil3>s zEk9hVV}g1$Ssb_x5Nxxu>5tpTdS&(BI+CfFmLO4U;(MYS!;4fYL!)rC-kN7_nh^Soo?Y*e%H7Z-;%@&VaC~kc9zf=76XGZbOLXrbX z;7EL%iLfi%Je~S~Ai2kp90Zc4YN{`6C7Jkfuj2M%L+hIWOd)9J^j2Po(UlhEEBAm) zeq2AFJXR=)p8=9Uj|yuOViiRqyv2DhFL38}(gJz>pZd-CdSgk{;M7X8z~=++Dde9L zD6#fdkb#ef-WV#!gOm)vqdoo=VS{0b3aJ&Aok)Eus#+ZS(gMZ)m{l(`qm(pn(7b+g zhvrC9RDXE3;|uSiKwD+Plhm%3&k}a2W!m8?SQ2`J%i}*~8*`q7p_5M<9W=J-6{);u zGJThoO`l9T^x9YD;#kiQ&E8&Ndn6nTT_4m4{$@xi22eivO*2)o2QUPPHMSls6n%>< ziXIaeeU9H~CU7?LWnS2&BHaU z^G#d9G3vZHE~WiQG$sGixP73V{SWfE)qbN3HU&0t*xP`mKsg1hy1gkgIJi}9uE}1e zKjK-kC&^Chws8d*ed&8-w*{%Qekb(be%Ti=YjA!wF~6K(j9<& z%=C&~0)Wom$|`a9_KNV@0>BqO3H#J%LwrRz(Fl;~_f{d7YB(C$GBIin%uHKUfiIod z%I$&h6#d#N`c*J5*+$|%S6Lggn#Ax}tmQzFSl_HZ3(_yhB<7uB#%ex!yp?PWH+N#V z&VsYgl%sXqLKRKg#D=@9N$ahi07$Hj)rfVu5Fpkgf!G>j%)7vfcCezgTrOO9L|pvy zFcO#4r+m>|Qw6%WLZW?OQ+o-kHdkIEyXkAAB(<?wy2Z=UKnW;Hu5r`&LwtG|=@qDBg zxPeI1&7-XLyvwHkorepB3SG!+yOqI2~*a99wv0z0UFScpiB7tPU9g$ zupF*{M1=~u_o!0i`6h*25#M$&&ls^YtX$kftQ^%e zU@IqY#)xh$O9tJ&RtRW*d6gI;Yo35+m{*!m!ny&?hZx}&(0r%#8IO>`zY4qk!9r`L zqjl-Rd*O$T;*U1@%g2IDi#naqXdA`stJ~m$3h3=)^oCb&DN#PJVu5WOtw$iVd9<3o zUfjm@iM7611m%2lKg+?((vNJ;%V-CpN2xI|yc9Ui2U1SGS&~!J50~p%aGn|uPlrr% zit1Q3M@3VQe`H;4X^gpVOmivBeh4MQ%BXlJJC04?*93LG57mjnuTVJrX%QG3r*|DK zbC>@KllJ!h&|Q191G{Dn>WQwt5mr6`PhL&-dixpWOcoSL`Wq!l@Rg*$N&^2%K6&z| zUG*fN;Q3=YV_AhYSxl4NF4`2RQ7J8Pm1X< z66uzTZql0!H)Ft+Ld9HVlY+M1b*8kZ(ZhuB;0JI@LVU(-@w6u-Wxa+Uwh${*SE+z& zx`9zex#W90TMcmf9hK6B(54G_w7RtF%qLF-P)l4L(tOfNvBa$=vAM(C_Ej?mcHM1J z^_ybB)?VKgR$qE2s}DP>F?{`5AN}~>qxw{lWj#t(tl__ZUkW83cH6)>`WlAi^oH8( zggJG;t1f$TpxTtG202gYu|&p(YyhAche~Q+QuE3C_^Il~2q!%66!Bbt^U3STtqG2l z(0i`~*HPGl@(amghzIErS_TrQ-5GS|_1VVA<3+sWHZjE}-Seb*!lYFW4SnZEP0lnDrBC-} zk1ff_TCJ$CUjxuWdRF1%@DjiWYqLjuU=ug7*9xQ}clU+Nwb-yr1SAu88Jek?`H0Vz zeD*|D^BLA;M`7l&J@p`9B&>l~8Z?B{h54tT%p<-bNVD#SO5vU@Thpb-Z7wchw2cK; zE&Uy|7!OL1B8vu(P>EckyEm8}GcKsgC;N&*`F;8bE=X4io$ypdcwSdEn*B<*GdziI z?*YN8&DIzltXfC)IT<$SKGR2#UTfARsFqp=_x}}8E#J&&d4gjP&z% zj^~~jPcFh!Rlsu{V6gf6cZ*0ms|eMxF{)!6)oGxjw$mxXxu*!-R}1479%txMqx47W z=##2>wMPs;xav{;n@^U;*f!xqGfbyU<09EnVYUGj(sOf#fn@462z#AZx$G)#bL95L@2KkN)~i~=5HIX1KGAWh^wC;%aX$nt$tSNT3(AQPA{IWFC;NlEA(l6pJOa79XM&oNY!#B5 zKHnB>iAU5+0ou2`Ck5&Aqf~+J$0r6TeYh98BPwLcHPaULLI;M=&bQ8|iXS(Dif9gK z3_BuA@M=rL!>U#hMd7SM;eFOCF8sEodnr5XqQa*Y3g6xe^WBBQkoKfjbV2G*l(5OC zF&s&@IjgUc_qD7?hq501JMmuy|MjBi7Fc<|5v42)vc2z<0BO`jUgr3alsP?v%3Y|; zJ;QRIa>_~R@hPW_hVrZ@U`k+qQ+b9N)qRwFEyBDB&s63gHtdNLvaL zc#!?t#OjiYeDVyDk-G#DIj_5I3x;P=5SLG{sK=2C+a&tu;|?G1`t=I`N(u|9?yjc} z6quG((>y>}^r*hfhJPE4Oct&0?9x%&_D_Gim38M5+KY~P_058gnJV0xQ4{aHq2}qX zoUg&teG7=Lb3|=06hP}7bV3WLrWB(gC4BVa zW18Y@o-^dXrLTq!oqXvI?dsO=oo~ja$*m;|G8&Zlcltx(7St2&Ys?yk85qcTrOPY5 z3hsY3G9NdP>@@ws4sJ=yCm+`j3PJ-RLV#2NEi zN86*@q17H;;lOz&%klD{e4F-a?VH2_QLcjWV$z(yt_D$O9ml0TuL^R5wsz%TP!uE<(J^l(-B->ra;Ot zaVS^%M?=8k=EK(|*!ZxB0WB`KtCyQjIom{g+{&d-wxvuesRj|rmAsi`^nNkqmttV9 zbiCC-ktr1MiN~efrfOaGUles*w1XO5cVRwMb^j5nIQw+fyhq>{_boyXBlL%Vo50%2lM$WX##?f%$$+g!uco{hm`lIR zr8Hcl-M{SNP4?29i{DX5(4AOz_koDZpa=K;X2N?(|o6d%I(Cro?-AmKt}(P^nwrK-(iX4O4LIe;YYty++; z>_Wi;6N=q<9fcus<2_Phl2p3?tE8>#$t${=V4SJ;L%ZO`tDwIiKmD?3j2wE!R}=hI z$h@uTDkBe@!Jt{xc-5|g!R(~>rqNbbU?Sy~O5;Didq_d|?aQ-}Rk z2M?<;6?L;uCV;~G4-dK++Et*FD(I940W%GTZQK~%PrkGq1{~mLv(rletBO@xF&hO} zstju!1XXLCo$R&+-OHle7jS~rWEUdobn3uMkQ9)PvPyNMPB+oWTheqI@7^sDosHpv zmQCDC`D9WgAd#z+`>JdOu~`0s;oXszH@8xskHNXD+t=?Rl1Sv$X3v-d@;`hp<)7LM zB$4;%qX*QQ>Us90TS2Dokd23a1(%hpp3PuiRVG2JJgS34l-uj9r8gTqD~R+U(t-IK zFpx}BqY_iSh6c0=V%qSE8wNr8uR>SAbDZM=!TD_wR5=2vBby1*$F+jou>g5oTgZ+M zxx^vuExGho#^2NusEr7G|9)3lti}idRZl+NlKBjoKBwJd?JM1iN~F$g`^69wz-&)`PV^#y`ZU6o$(#3&X>GcKl z|FjaU6D=Y=DF5UoM~_@a%$QAy2*H#Bf{Bg*3H&|Trko=jyaNgf>bNi}g5nOO_?hXw zj>KiEV+lnj6criHUCO!*bZf0Mg4CX(D;PdIs<~sK=HIu#s0)NLpWNH49Mh7QOJ2ye z432UUs}1!<*^@)NfqIW`J%iCWcW%s)Ls~#v(7yYkwPZ+39=D_mXRh>^;xx8(ly*vS z8uu=$IsLskr&;g3KD|Ny2?%3!h&~KK@nLWQ(1EUTpaUI9YNKO;(5gaN6Tztc5E^yY zW^qk*y{Y~MS+LC4Yok*ojP7=njm)+C?v0zjD_Gg%3(_5IC7v3vp)^GL^%n|d>kDO9 zBxBhegRNGhiJ6X&(-EC=he7ZZd|?RApb+|xbklzk8k;V#vXJ7s10vForz8?}f}yYh z(Wy}B9bPGFrZDpI$uuP+*j=oat|Ty>bA&kcKJz{_y#NKE3*$m^o+uTHOmN3EZAkgAze2&qXKRY~V}P(BXh$Ag{s*DdFKt8e2T|4^1|9`hyQ61hi}BOO3dMH94^b|D zAsO44`Si?lvd^?tdk0@4*e=7h_CuQ4fT>4*Hqs>8G&)@%dG*&3$%MmO){X|EgOVqM z4OYbMz^tJi1e$zQ$7u?TpIWcCxg(+Jz3>QH;vNpv+Wu)e@2oS2>X+zBTt$~YqMVy2Lv^+ zh?NiR=FJn1 z*di6*|00jb?q5pw>5jV_HSEgj2UDun)~o41$V_H_`!Q~5^_}sg)M%D5t51o;?v^Z1 zdKZc^Qmd%KMgga1XcG+@0d{o&=b(S^3Jvm`J6ynWr9;XLgrcuo0bT0hW>s=qU;(UM zQv~>U0WcK-+BF~%MAIT5IA6exQc&|Xf1rjvI>^l>*O&R1D=l{#|3A*&10NLFpSPEtjtO zIHTn)^2Qq`na>NH@P1J|hqt);ZAv^nwcXo1=5~Z@DS$#%-myv@) zO3fq0n&da(Oxs{$#IzCswJ()5E$<0te!eGpLj&^KzcDL%OS%G}gg&W7oW zUBqPthU9Y1QKo5`Y8c6EO!s3y!&(|TVx^>D_GtO^;%#mFi^WbmI5jP^WW8Qf087@A z`1!f^7b=Yj$*+VWNY5wplt@yCg+4?>eSsfUq1DW4zXxK?kLR8glS z^fcIb2Sc<}t(=(A%)!-my0`_))2r0hdy#jly6+fFSA>fA^v;0Uy3c%zMY`+Ei|%ej zq4ia(e()bRyJ|VT6hqnL9MYQ`ysT5ZK_{oCSX8ZF-^Qf>~$KqsIVc3(nWb zwK*W~8NMW&@omi-+Re(57&L=(02IR)eLqR?Ttner$u?gQcgd zhW}u!x`2ZC*)p9Y(}Q=wsfYWq@c#fn>28z;U(5M5nYV~yk~7f*B1SpFcW0287AVC5 z7V&@+tUQQP*5Yd^B%$(h#_$D^Vr6&!lVj3$y*nDwg>^t(j*39Ew%aOTN(SdhzIh-u zycfxWlXPK>+HC!XWfd+0xRc>W(h&LRkZ`E2rtLz-mpCw}QCRS;c{4f$VOn zc6}N^MuHm9M>;}IJZ!yqWRpG|JCVQKjKwU8i!<7YH3ev?v~5G;o%@5yF?Jdhxpzx6 zEnv;0LXZ-BCe$*=Li0%1FH2J(H7sJd z<3Wm9pPJjeiaP%NKiqMIWX-Z_xU1WLXs$`%ro>P8(WP=?c10!;d5|SOBhC07X>SBa zcQVm$;QmX4rgh0k5g!c7U&x^w zXMX!v9We7a~Vazs{kJ>QnBG*BZu) zZjZ$qbaHu}YVmC9jh7-{;pB6we*^B*x}tc8#qj!tqBz@0esq6p$9P=8(dpKX@wmAs z<(Bvh$6;U;$9E}?+sh~%{h%$UP%ivB<@n^j;VHSr@&0nN-azFrnDbzePbb)D2=2izK(DL6bte-Sk|waMW4ZJCC1QQJwmiGx(9+)?JJF2)qM zR!jsBSlp?$@%*7lr1^Z|jzfeds#j3V^vq@jMVTLX5vM$J>5va(?sz$e7)@&6$9Jn4 z(wTNK?F#atlZ;hlNOCbKgS->cdGjn!#^#zJuL>K|!TFZQvo?mW?dM7_<^=~(USV~u zNV$h$K4g{C0a}Cek{P~XICt=9XYlq52;h965v{jpCDPiXilArW%G&-c8<9 za+$V&FB$pY zrih(F5eY<1eNlX5t)lp7!Br&k04MP&#+~RdU&HChAj5|L%e4ywpqLZ@oLRX&-GK|> z(H*41x*uqTAO)X)i9vW|xal>a{R7kU+y!C0P088bwplbXaeXLIS| za9$u&P1Al`gEVJXzb%=b_S-GehThoP?3#C!;Optc!;#NI=&(C~yx3Q+72am1Qmr|l z{JKTbd*4XK4nmTv?--e zCjumWs(5!Vw0I%Z`%86}vN*ouBI+aVl55ud(7%YO$%76FH+?z@u}i>nC`Ap#e^5%s+YF-^?{?l|OX*lR zV@viKp_z4L7iAy9%%VHbpOvMF(MD3YdaZMX#*ZA-Rx}ZV&0ay|82*4;v!Hdu$7ycm z22Eif`EqhreX079=@M#VY>gzIN#t=$Zf=QJ=M37|WthTrHSZk+ZF!$gwFx)+drC4p zD9evLkfow}Ugp;)B_ATj2H_9-({u5@ULkEr?OOfn#_%IZMKZFAQq}b+?HOhNphGUz zng{wn5|s;wLs-w(n~rU{|M-Hzhc5wsFNoRfh}XVRg28T}er+iwCj`y-M` z+eF$xMdykGrYq@T`toR~GBJvVz7QqW)A1UaRy>GMutX!@c23)DO5Ay?lXEY!T&VH; z>&INRIHPc&vXn3kZ=2aGBdWCRg}E|)&jr-EY5_ZwiN_@4i6@-=%wkTEFrFP$;KwE= zmBWyqBTC$;-}G596{kJ(p%?$Fp0O*>TX~xB@`Avu-!T$wJWa-1vwj)yCt1~fHQMJ3 z38wE|qQd!h>|wDF5uildfV34eQ)B#(KaDib(TX(2_^FOA?mq)jYK(*TKQh+5plex2 zuOvG#S<1ntInxh6j!>m~$IJANnuya9s9OUlZ?+TOzPTCsdRQXvhjss$sonF`60doQ z8I(vy1}NQ+oljlRd(Wrv(OW9&AqQ>G6pFf%N$P@k1BGf!QfWu2)~O4G`hN%G9d>g% zYO96)dLjJF*srgdjG+@2fsQJj{rV(-nEl$y_C2@-Y-tL1a&y=#Q?QCsu>g%e?$(40 z$S_kXbn$FRI2$P?Y(~q5mu&_LqBH#PV3Wa<^O2n%CgpPCL9}FL+)XAc zxGJMt!E390^9s^$`lD)P9~p{&^;qG`VOgRD(^eCY=q|FtxCb@B;>RRk^wKZfhM4%Y zgC-!kDpM+DM`wfmOrb!Qy25!36a}f()LV?2ANqQP+8S-tj|-REWK#P+i0eR%7E+W} z`BBgj)mqdKO)%M!W9&#MvIfQWa#@$8vtIkevWk~~(Oz4JsKSF}g5gh!eEFF8-H^CL zoWWj_=6_#lG9((rWcEjek2u>;T?LdLLut*sLMAMA0hYl57UJC~Y)mH(ec2Eg(}oojeQ=Fr)~4{EX?1F8#Ib-E0ep5R zn23Wg8JPr5vHGwZjn%Y|XDCtXN#6C=gm*sqEv4piq4Oj6fd+ezY!>j$HB)mdr*_XO zXRkZ@5OY2y>O`R~4Q>hF+u+0JDfe}9(F%xo^Ps!DZ{}wfp^B*eAqdE2j`@Hrn`1OW z-cb}TvAI3yw#DWrvydx|l*ZN9rxsMvB$C$ibyii^2Y8{ei8N9sXHq^P#raGx%p|UL z#fAhanH5;o*P}}{L-F(`Q(v?n1x!P*ij-djS<+?7wrJ#I)$>`^@9arH-gi(%3G5S0 zN%;`H&}okV>N}0x((B@zIRVznl7OAavJ5EJoo!SdtUMDNl zz58Gr9tVLvp*Bz}iB^)crHwSUJw&n>b)vh0RtBk!^%D#w9<(l^({_r>vg#{SL2oL^!-0H*B< z*MRe@d7?z!=z0}Ed=0cV_ML{87d_1kCd}$ZloUN<1n-60=udxSZL7IyYG!Ww)}}Mf zO_v}{qv{c){9s~Ygk1%^Mi_EzHS3CB8cmHmZqPVl1<8JoDzVr~RTTa^5FFI@^nm{!rZKnnv^bxLXJN zb;-@lX9r=wBj~(j>ligm9OC^#;N*zo7J>LyF{jL|T;=5@0C@KIC+;i>4Uw@mY0 zBuY3jnNNXex&Q-2+mqBf%RG)==*EY{Z*vdWDzPYT?tpeIt@zX`@t-!m6fjq>)0wXx z+=pk4+JZk3M9~vuefyzaW>kc~r!-!~Pk#n&d_!scmw^|zxj5@$8?S-$@EXrGK&mHi zIrVF@;vA@1@f%EZMeENlT z3Jv0`g>x^^n|c841xOg8Jv#aI76yMbpH)7%ozsL&>oueTD;}jPg+sI$imbSxa zBNWG&c3Bh`;D=t@CV?reQ*h4C4TZB9?{wxyJCM6o_AdU;4`jjD3M))Ij_Uv0CSHo0 zPU~q4@SX3F%*E0wijS-;Yu`|)h?%UWE(p=%4$B(Y!}})zmTk2riwoMs3-2n4k3#K? ztcRKd@Qi?Sfm}npu>3hIx~4px2=HQ~9hzx|=C=nNF^_|Wb`(5?k8KDO*~M6ovAboU za!<@F{4l}_7U}dX_rC`)lMH6HwprUtX-A$Wqq5>I*+R8t?QIm_Z%MPXU@Y5-zM4TC zxWI|$eA|pc{9XaNLtIO+tyXUpQQDYY_7+>MUTmZlVN#dp*8a694s%?R#H`Dd7JBG@ zA$IE;-Qm|<_a#Pfrcym`o!vb8yS?GozJ73tLm#2}Yv^~gOB}9e7H$429lZ&7W<{|t zb!l2eX72}Cum*#o|M3(Z+kfxES+lZY^BmLfdk6M-d1nHzQIEXre4X_)tUFZd!s?U- zy#NLsCz{QPBx`wrd@=2B5I174V?oI!!^TW>9dH4%Wg-#z2;BL1(HTL`9G5dI$hj{A zlg`F8k z$HsP$$;y6t1}e)HsUvegmwD5hX=*;>9Ih#pXbp+z)jhrvchpBhzmjYXSvki)Gs%fX z9M9Lm^Ptc@hNF=1X@!gAt$a(u%2qqqU*LcGC-r{f>fN77nez|#S`CTOhMV_k^q?Na zogXaT&O8{UwU`H=;vy^Y=jgCraeU`4_Ih1$yo7)oKg>c2%1U&2H~g!nKfXJ2c!Yxh zC7SX|XXyj6DqW-xOz%>zcPZ)8t292QOCLPL1a#IH#|Lw9hBsu5J_eS=$IignS*H@i zaSjmZQ`Y5N-J3A6G(Ne@=pyeb@a1d|{hHYObs2~9m-a5Kbn2A|DKp4Of!orx$T=VN zR;b>Fw2H6cOM&|`zcFO(YY|_w1i%!e-Ee0R*V2^_&@tFxtbbsKCgpJuaV6gr;;+%} z=Un$Q-2Du6KSl1RkNfH6etNi{eD{+}?dS&kcdq?gml}hPaBBxeM6eNSO>_;Owo+rU zmDQb@BBp(9`+4z~Ka?s|`|xkr7^Mh^zR3k+frqWF}lW)B5#%Hd0l*T^-<%3f-H zK9yuO!TZ>|NDwUf9+o5{ml(2!#6PPf!v-MLJ|Bk{He!vr{2YP>X#}@91Pcs7w*bM% z*BAl;2mu4Vum=dVlMzs$-3~{=P>0|$L(q7)6Xn?sfdGWyDG>Amfm}@i0-0M5LBt_A z)DX-K5S--@2tWu>4uyR{V6HFMge7SNZ;DmKHNGJpTo@qO+aVBu5G(;f5%N_TR9|n< z+Kai>K|gNLT?6QkrilTCl>$X&6%OQ&+5mKA8uUyDT4tc%%yvz`&wTAj}e zHx%kF9|lTAoz?i518Xp_f&gr5rM0t8VAyANxEJc)$JRh`o!rotYXXMgSivK+O91i$ zAR3D@GA!Ic2FshO3ft98jef4Ckyg_?cR99r2G*d8w1Y5FHN+nsNcR*_#YC&(k)Z53 zR#qoFrpd;y`np|-A6fUMbYISn--3_(4ZqP(_#gb>7CBshxl_ZqV>M7ryh=QidCc$A z3kDYqDi}7XU?{Nv-m7iapk#R+pH~6M=PW)?ai25zy#I4ct>v?`OReN{^Jb;m&IW%i zvoaQXz+XMxUy}D^lEmp`9(8J z(QSVCH@IT9-Ro9DSKodk-xTivkdRTES~76=@U)fEjv3{d37v1{h`1SOn|qr(BCwfy zxx_y1r^x*bbU(x0&$;erG(UJQm^j8m)L%Ro{U^8bT#Q3iN32#YnSs_1xby>N{ZNm7 zs8v7EpdTpGPY?H#?|yPyx;lmqveO@&rq-$TXKsg?RV(s~y$R^-4dxlMQ|eDlYG#85 z2U;h_HDz-zU~Kq%rW9U$SpzqA9!S(sq;K~Mjc{#SM`Vf1kg@dNXd>!mt{K|Ls8a5q z21#OqGB`i7JXP9e;OMC@Xu!&T7S^Q(t&1`?xvuW~)K51ml>KkwM zMaPIF&Cih$B;er`vdbKUhG&rd0z)0L-Tw~Rfrc!0w1dmfz%5V1{f24iT9hUNIoW)h zm`}IIe#7RZ0YAd{fNwQv*bRS$bwH~f(9{gjz%WHUE>w6!?xQ@Lkg2_+YwZQ0t093r4rZi63}`VNyr-pm3{!`5aaYZTg*JL4}V_OmXg@zpL>5TdX;IH*e1Kq^UVq1fXip6H5DQ zb52cTZ%kOfv}D#~L3ufOj;iOO%6ZwDn$EDS=;>;ZG*WR;=^s}*S+szPA2D;1kwb&5 zPsws>;jZSDasQJQU@JDS179rlOkU-?8>A{VpMQ0;Yt!9^o|u^EqE)IHR~4s8)>^K# z*Lh&3$5{46A9_&*7y*x2F5(GZoj|&t4E@0s4;1UT#;VXo_B9kl_Ij}1L-wu|81`Nt zs<6%w{{5R%?qmuE4W_8pEY{TmFKVdNkN#77^k5j_6z6^vMSyiIW{QHt}) zNL$tEhdAuI?synfa}!jUvVhO;!k_d=Ip1;`5_<;Vn)Kd6uClA&qNy#1$`9p^ z4lf#72@0DZ-2y)uIRHGxRe!WC8%1@e7U}HlZ zqgStxG@q+9Mpq}pVr!S|>St6n=l6xhkHp?nmF)k@m*HfmA@O;c*il$d{zvZ$MYFs$ zmM8hT=6$1xzz{~m7j${^d0)KtBg+I$gXsEx)E9JUO&Y~HhT^B@fDi*e01ltmEEC`V zJ54)qr-Z2DeieENp9Cr~br!29IGvY!0YbE=oYhVagF1J${FS%{y)SIP_Mzp9dx$PI zx^ZeM@Q`~rO)q~w-id>GRAW~I0B^MaD;Pf(w*=iJaGpz;MFLwwB%J23KF)y8&^8lv zZqB=hw?!Q~Yoz5rZ~vE{l>w;uHkV`$1M9S_T&UWWk_qNGwWYxM{=x zz#t>^3t!B^Wync+AQ*tpVOt{ynNfFXfJt-UV-(jMc&satjLcL5z{Tn6K6}SiN6SVV zSC~F7vr_Q?Qa-5TTQX7@1_c;)Y*x)lN^4%tp+TWf$EEmk9LqQHg=*TQs%dAXsAfk# zsAfj9YQFxDBeX8Spw?_uTJvfefCj5ex&{rK{ZkZ4qBij}tMH*Tt4L%@;1+ zR6YG<8PYS%WkVSnFUXGYVozGd(Fc@G{Elb#o~sI|2=xXscI#y+UiP4os;$NPXa$fh zEw3}g06((7SzdQ38@dOAMH@%>y|`j0oaazc(QMJe6&Js->pdZ4qiqI*_Z0gc(p`U8+%(qunHPf_nu%C@feJsYTD-79Dl zWb6E09bKO?KXC8A)!LBg0d3Mg&~|3w^s(LHGk!oai9V#Bk$jcw#lY=lYI)J}r&2qF zUaU8HL0^3}Hl?boMX;0m_9E3LTwc}ia(1J*VQ+6A77=I1v&>Zuj9k~+r_#R*?B9C( zx7Pl3?&LM>N%r*o=zwlDePbCr$PzsMWVt|(qQm#u~?Yt?JB zd&#NOGEgog5pjWXTV|+sT}VDC*8&mPT;T5>>@C#uOT346eb4VhutE{hFL+V=;ts_c z6M>ArfIud(fWSKJ9G5Fn>y1G9|C##CL2d_@gV-2c7au3SyBOx-gJBq#L$Nks%oU>_ zTrv9T<9=|(=r3F``oR^$kM3~L&n)*-=YH1nV-)c(6sGL_*6t~{GaUcf9ikbSU*r|_ zDDnEx=%PM|*{u>)T$jml!;|9%CdU;eBQIYEy9fiw9A0hZ*jh{hiKEe{AE?z2wCjhK z=!bT_Q|wO}i1TWo`G*p>UWDvctsYLwaOAUfIMtP8+xDf!RYEW9iuSj<==T5ro~zV_ zV94fZgrYS5YN__OC7W|muN{lL(7ZqiS`E42>-XKd$> z!de>Rl8el_Skc-2?oI&qomxHsx?sRi`iFCb=a&<1;dt$h5@28|mF z-TPv(62e12Cc6JOX=3M%Monc`%bU-Q!L^)*S#DXeb7X}vpR-It(cBAOR0fK7kX6bU zi2k8Uc|Q((WVqZYxgeya+UO`dLJLY)c|PrFW7$) zKk5CtrRK9HGqk2kWZCw9cFiZcrG45;$!tas%SF0H?RMvQf!POAlIyGMVNK7~fcvqX z^po8Wi?^e-r?3*BRRZGWd!CKTX`~w0Gk0Dn#S~p&nT2)f9;;HiRu{b6qsiWLuX@$g zmt+@i1mFg7&2~I;>|Sd>QVs**<72FV>Hh1q5cb3M{1nISN^yl3u`eM$u+K4st&#(P zC^$W7QRMvjBW3xsyq53LEX%YT!sk+#><$KTzkN`u68fjDtdvyJ>2F?Ooep8UERrAJz&|rhDtpgovutV$1-Zk5RqPJzy_tWw})Ru(}b`;Hcf45NSqf?f(#UL zyNn;+`hrnHW#uscQ@4{(>|w#_iO6ASsH&A61=r10D+2%?j0RhJusE}Xh*I&1O~H>Ktl$Int! z0p?ERH&7M1*ZGvygXaB=u|=i`rvqM60hlF*_@VjcS~qfx=;$DL5%B7)f7>vra~UUQ zGWxm<*UaehrD=$6E<-%Me_nI8?`j!t`Lwj`0gFbJZ*Tcwgl?%&8+Hj!f$Ma42tOZ5{Uw;yri1%;rqOjp@w0Q0>2Y@AZ|5!w zUr}i^QCg0NFf#>m>}HS1$&g?&Y&Lz2zo_%5ATb|4DtNGPt|=i@!b+?coOz*FRgQzl z+!rQc@@HmQ_xlt1DHzOIaVE`;qCANBT>US2MPLe}BxgP8nK%>Q9%>B24$+v#99u)! z*+u=iRF5^+)XH!+g)UL;8)J!Obb0#RURJDVHc^=dXZ53#VzpUu?9*_~bFjf0y5dk}%#k*87v zgWBEE!-Hx?-h^Cd8Badj>deRB9cgvS;O)_316D7vr2$4Z4gf;cWukVfzNT%3^%%Am zw!>k{=&sfz3|U*qASwE)p-ADPvZw~DA3Gi&gNs8v`cbXMCwIxkVYTSLl9+J8Iz-8? zbV^1RPGa%CBYAg`XXPkRxsn22>~`{0j!75qnkSGhA`V`sel&tclmS*M;*lo$9vt)ukgFFASJ&p|vCarU!Z{{yL6i z;knJZS%?+Ciw4rrwb(E}c8E0_N8?u(1f5v+h#jxV#mK(LY0ACe7@G0`E4V2cImQq* zB)%Ex+ANRNp-RJJby<-Yy5cIn?WkCbu`new7S_uqurq}^1r_@R0OMm{h6F=_j&;aZn@!U}W+W ziLI?DTZnXG;+d{eaOjo#yun~L2~S5JG#>$pVio_p2!tMFv>q9~aK_>}A?s4q2RvEZVue&@i`_?>Ni5X{zQtUs08^w1SukwrzIZe!n>`S)vEBjxf zPlU@;z0q;uazKKDd!_OGn?x|{AUY?y49g!7l-Bz&r&v{)vqL0oAQzlVv~?X1E#!wY z0o0Qy;_8Ouwkv1E$4+n+_QFcX|2ILTG$bB$fK?7~GC#@4$K-+97IaPrv}>&c#FRnq zObM|p(X#m_BeMYvdhrzDHJ*&4K58OeVan&7=gt9cG!0iKD!kCrauHLwzzkYGboceC zHew6w`Mld~AbFq4*GsB4YCD04&tspn!Iv!GgSNe)tv(xYb{g#^^^6}|rBuIsL85Lr zz4>nIk3r%K3lF zxPeNO27vmTr$}er3~vIQxdBcudQD1NAQ=BY=`f5|4=@U4s#rs~?~AicvCp40Oodbw zV0wF)Amn`MrP>3}Wkce5(xDnfmSvcAraTLH!?)b!1OG44bN{z`C z^;-(EJL(pT=#mGl-mvV}_;PK48DYN+H9`DR8>aEl27VBo9-u)-v^ez{S)n4VGpq-~ zqp)2-(V|GS2a5y4OEUuJDOwhzMebF6z#ChNNpd4%u=0v#a)L?L^nu0{dI0?r`ss2} zTlj8j6mMkc_Hm;)!Dl-&z<44!Uhy+yw+|F1%Xg*q2Z>e=ON?yXUG3w&RVDc4?q+QrtqSss z<8WBdqi8z?u8wea$0g6wVBYTnBs2M40b!tO%ADQ+_^CG8O5yivae!oeF z^WfDM;&b^n@#IV`2ut)BZzrTLaX)|ed=dBF%;oXYB~3dv6k4dX3C*q>kWyI;FSct_jlRVwNAHud7l^*d&lGx+wxD-EkBQQy2Y8B$w-2~ z8O&uv8D*c_a7Y(@#foMJ_ovA^CGM3pHzc1Cpv`8WVqg-(oL#e#s+;ze6%@IRe7%Vs zyFOKr##4}gG32IMqCFvGj~vsk=NDMJL@)2XSU&sTv`ftH{chP<7xV1J!ZZv9{HakQ zmB;OE`%^rvF}V|DH-Xct^QnIq(<%5^qHBS$;y+ww#g8{|ihsu6(%`q$H?_A~nvQTk z2LQiLnKs%T{Xv{|(?8My+YIn|t`Pg5e5g~`-K&dplfgW}CwoGWlzTte}E+;jrO`zC%c zsEsRrP^!h>Uz%z$)imwdQ0T(dbFJE@j=|q1g6mXNdVLii)_E)Wkh0gD7d+73#x-Rx zYsxJK(U2%QJrK%`sR!D-pH^o=d7{z9cBB)^^8rv}z;04DNC;>Q543kbmEmsbu4pe; zbZDw*K7TubJWxP^Kx(GYE7m7U7!kLf$TMMVlPV-JG-3QHallR1RWs|GA~0{m*Z@sX zqG$c|(s!y~EI*^FVo6r{pvnq@z9+DjPY-_P33ZPjnf)S=_|N$P&kf+Q86tJB;x>t` zAKr7JJBrWTQCPn^Ydh^z>Z1+or1OChy*ljpH_NZeinUp(D;ea=bT6!NKeH<4e5diY z`yN&?6JS2RG_U%J~`@zWa7@JsqkYL&x5 zC=91cmYTZb-cPDRr_r2RiYFuYfr;E;GkRy&((X?Q6T(+*^{A0;t=`G}-5ACvLZ6?| zl9kVjPR<7y5nEtm5oO&(do40!{Tpy@`^J~dAu7C~#^?ENq1FfL6nZ-J^%D`y{X<6W zkC$X3Bqt1l0|(4EsocjH7=4RuBvWQ4JBv2;PC3;{vX@t9Eyp%zE%dgox5Or;oVDu# z2iUYX++0sXuvSA8hdGOPJ+sQcfh|pODfXDOtrxuzprDq{t`_>qp$AQGNB1=iA}ML* z=(uBn$*_AAWsI1P&|!BnoK-N=ZZK)w1&l4Y!p@(%ur$674+-bWUS-;YvMm=&=y8v* z*w7{(HR-F~G#)3Pw1;*9@`ZnhNWTZ1-DvoIFr9AL`WEsheT!!?@+31y@Y%)OKu!6_t-bl9ewe(<0x2z>i z%Umz|5?>~JtTs^_7}A@mq+a*$WY^3Gr0GC0G(+Go_L^wT@xHI#m~D>c{!BF7k7{2wJIk9sP3XZlE&h+w`B?Py|{ zLm@U$Y8(5s7n{0=Q?vxPO%zupce)aPZ0tXdk|HQ++Ks>O;%^+~3!v^uqYjt1m$!Pf z&_!>Ujg)a_xPEhpx1S5@zug{Rr*>R94@n8PCdjUS7*hMyRxn0mn=vtI&<->x8L6}~ z4T&S6909OJP@J+*te_Mxa`YW4b_T`hx(LaD9$;yO0;ShRy0Xx6tW6(WhStrBXIJ~S zD=bXxcaUZa?z~QXrDPeQ)CFe0TxbtW_nThvPWkao`y0PDlV+XvIUng!MlY)rZ0XSr zkHDgn;kX~WeWi6?leMr5vWZY7i*B| zi(PG%qP!a@UR__pS~)#VA8j&x1TqZ7%B{EbftBSAKqZeT7jpNb`~+VD94ZMLRN;3>)Ik<^X~#XINvl=rV)$`@;rXsbSlnu!~k{ZkXi){S-x&XNJbw1 zH&uI@P#TJtf7_no#mm2Ghd!;XVT@N+yq#4x6|CcL)f8e+AQJazFwtd*C$|Pl=d$i1 zZ875nWNvpx5?r`Ql${VzmYtz2agr$0YJWTHn#c#sjXQzYOc7d~e+x)Mkf!uQ79V%3 zhc)7ll%@@;yTPO}9r87lZMGlZTHpy$4F4NS>-w688@b66}JDgpz6yu zwp>`n-;GyFefY7?G!gxL%Pls0yzd(G8I%Ssd9%N332~RVi2RhOEFoRJ=*PCzi%Gg~ z;Z#Es9pY2akKFy7(s?#LEq%2CE?MHVYmQrm3T1{a?4CI{uaf_)L#LH*;+ z3cn7&q`Dk8FQcCs8Og{5e1MsLn2SgRr2oUJo2?KKr_YYGK2i&?v4VgDf{0_sfx&FT z*lvy_?`CVkhYSvEE-NXoiFNIY!hj(FUY0+-@U7aDx=t^Av-YHJZV+9Vn`r81 ztt;^#)!nJ3@p4SN3T>orwSa&^ZM#;;T8tO6?P?DZ>;NI?2o2SEVJ?r@=ac;z?NR;(oxlHG*r}@!RF<>a*ir; zwhp_v?xue>v4WMFwsxnjlvUl*t9mP7t*wd1hM!t3Q!vQoud&OSLT}*4P3^}>t)2-A zH-qjctC00P#sixE2-2nInVvpBG0=grb*{*5HlQqT4S8-PJz+*ic+yglG-PS%GR#Fts6Oa#%Mwa_IcV-*f_#L#N| zKeUB<605Fpj*x0;b?$eD1OkaL=XLi?eM!6&;`<7WEPtOY5V5VAx{7k5MtHqfl#a2{e_@M z_ms*Za@FFmuTUMfvmU*SPnEKrb!}!PBWGDI+~?jgecGJv79N2>d7-&y34`10Ivn|v z5Vep$*KnBA_$R|wOfW{VY#r9IX-=Zo39VL!wqBOdeF=$+ zk-2g3PGZUDrb=7IpIGXR%B9O*a9t+5-B$k71Bl~+aFW=L;j8Y_3A!t_SM`!R;hd^=54VJh10$ovJ_56te@Ekn-d z4{NOdLUXL!g6t zW*GOl>@C}1KS?ZtYg2nABR3jShJ_qkJaf%b)dXHoG&J9*ZRxCVx7I<^=>{%0vo)D$ zh7xZgIwCafjK8I4WQLv%GB=DKRGsmF5gWH>G#onmPhB?bIO{S7ZtO#lx-M(cSFP!E zdxx#}^KEZ*V2f)sZ*lkt0f&XWZO>$xmAIMppi}@A{U28{j-^yfp15NL{RsNUgHu-= ze=W4yUE4gg9;>FXx})OneCX<{iab$mPOBRZ~xPZ7SsDYiOru z0A>qWQ4ZYK?yC7>TFaBM|DrCb6|Pd#I|bZ>VC8c1Dm8IwnnAwoCjUuPE3J8$L12s% zNox@MYi>;yRrUD4g0gMXEtxISWW%XbP@ml?!Pq#|3cB&C5duq*;f|#8$1;T+7Pqxn zw(?ntH;-v!tc7{)X>1i<`=+kq<^Y$VIQgc|N;o;ITqTN?up=Kud=z=T7;>wJ;_>As zDt5pMxi`#EM~iJyV5~o#I>?%v$~r2Obu?L~D06;c>o!&3QLOi%+xD;mTu2#NaGN+E zy6AEB9>>UJv}k2bq=-E*qB~*|t9eo!1=3MG{h+s1TZicH1BGzGW(fU*;Fo%16!#Q5 zZHT&ewllw5#0a^`y{`=B`DWls_gf5D>`j1-KxwmngatAKU|QD6gjGTx68aQO@7JXW zYgfMmuy+M)$3WtJdoeq9bSmEsL{ovRpmaTK^isnv0{~s1pIm+*-~P}^7t$(f-A|?c zgdQ0zNpO?@ZcP4j>EvdUf8xxeTWbw_hYU~el_<{GTE>aOu_C{L$07x~f5MlI5?;Nw z>E%BdwANM8)p3I{-c)zXYXA{rEi@;`6GsiC~Y$tFM@ z3_>u+_i(d9MHIIG?;Cp0CR+_-W5d>EoSU9*S1a!a&UA})*$n2Kdth%*ku6Oan~lD8 z+J0!Y+7?|~t<^-{7pE&71tQ}Jh4NAAZ`@$fO7NRt;Nhc$b;AFAqR^i9V?~osGzxnQ zBEbv&d7Ah}4K^*+8giSGI8?$ImFDE!uWWZO`YRR-6b+(~Sy~N=?T^y1w&-<=ou`Gq z7k#5j8bdCK*Z5+9+iC_E1UFQDXV$LW!sOmTLu9>4R?41>_(|lTFCKxFK%&QzksmB= z1+p|e5t*Pk`40_OA6o;=ZpRM~vgGoUUA?m+l)WkECcZ8Y3bI2^d!ep`MihHPhnIT& z&xN*8HgMjfJyqZj+H<5jShh2>P#MW6fI=&`0g(#IbhI)A(=;TmqY`aPylM+FmEqo} zpaqRb3e~E{#pLM*F&+t~R~P0(ri^?DI$vD%L)%O2?TF8ItfesdbZ>t$vU#B6#Jvtr zvH$!624~_@{*=4@4A(O!fg`b-(!A&-x7yPix{SiS`5-WoP%UTQW5xVIRFD&X)QQN^!9oNc?()dKo8cEMHZ4(fwq)O6lN%E>ty|ZeUq~;n|#B z{V^;TWId3^Ppw9uV`e7)i8A8dZ#{*yA+g*cX9Rq}Y{Cd2@?Z6%O&I3`rtwT1ug|g% zf2wjB2Wjma+Fwcj>?}DxT6#S8X_sCqtTL@4j|VqAYq$9Uplp7$P|_U??Z=62BFD!3 z+l@@lD97%X;QBL&iz#D6Ynyxf<#hfIro^@Z^%61nFBEIO3QBx(xLDx4;rppF zFS^%N*3TUt*I!E|5oX?_u~{hROr9v_Vujm$eV>72zQlfiOqgX3Ml0>nOWP61dF2$O zMXRk~F6G4(W1nXu0=UnCV|E7akEw#2BVQC%X?x#`T?=?n)zMTXUBo>;BEb)LyFX2! z2@V9&$!7sUnJDcIrkG4`CL{fo3zC|8^g1x4Lm zFL7i3n+js?lfW>gzCe{nJ}z}Z2$n=p$U6SkI5-Q4mrU@}MW3{y!TZ+2K=FG>qZcSV zn=e{#ZAO~jkq@^PH z9rdV@=LF#pP@9CVp{U&S{+tDLZb5cejtkkpx%O{I{@va+??FmZ%Ry79#rFq7OX|9M zyByO*7gIvv_u19^pt~fyevQ!b!VhYT_SJL-%-O?UWHY0>C_b|zN$e9I#H7VvvfzrV z{%li{-T%9uAJ|>TH9C37#(`jqdbiW!VQCTHiE44tt65~(o!+I5SIifU3x$#i@AH$z z1~YqRQdAa^X;Rf;V)+*8$GGqUCAAq*T9jN--23C87s@Mx7P|Uqe76cUex|j_@gNzQ z0<4-^Q*RB+uGtUtbT;7veyj}yrTbJP>B-6LFg`<2h&6%x|A3}zb48LDnmz#fF=N%D zmU^k)j@y_SI|nmZD__ji+&~K?Bkha|<`#4lJ8F*{YJ$c7Pj>YhQ^s>#t7nTh5H=TS zaASKvC~Bs%PjZmR`xhEV$T6eJIv16F6ZEB2_Vs+jv+U|y0%adI$c!+cB<8fEHuN#d zX&A*>s50W)Q%-7>ec;K4TFE9ES~8*^D9H>iQF2`3%bqjZ)YO-@(Z9l)9Mmxw61JD} zEdpou434m&9UC|Dr*;GlEw#T_EH*C{AoFJjj327s9#M8AP3UeU6?@nIOk)6(d?Dqv zCR(8%ip23Y2vFeFx6A3ThA&IqbN@f}nWE^Mi@cl*8hn){@%`Oi zK>TW4`Qbu?AHd2ayq%UW@d2ITn54WUeqOGg0rD3v_(R6XQM{Wei1|PSFKT81p%*nv zC`m9FMVNBQ6=q%9M-3mo% zx&PG3z1UIWFLllNCG{w0&w6*%s$5(Oj#{002n_Y66fp`fAem9fUwzyUt0(;>rwu>3 z_A@n?_XzkxVK|;oRC>B8a#=yUYYB^$V4{lcWF4c%P;@xdxi8Hg?n^V4edTO8$)t+@ zb`xhX^YPbrlu>f%5Q;Qke&wUBo2@(&A9f9vUlz8Sc@nhK!IB<4tM(-5@ou~%BcrUw z;7O%(`J;s)k2&2A{1(j=dZNFpS+=wmaL0&}IEHIQE^^w*=C!;CiGd}#x?50VY@-Y+ z;!>`5mNUcaVat=*G-jNJSMU@qOtO75kL+MvER$V`(WbsHZd;L?IN9=ajdwEgxJcqf zqJ2ShGT0HnBXKyI2AwG(CH{*dG9MzI$~K?6xxrQ=D7*Rr4JR+QSSAkkJ@$GsQfj3e z5^ao7H-k?XC0=YN%m*~UZ>lddgYN?X+jK5&o+)`}Az%g{4n#YfL^h-*`|k^_=!FJN z(NFlBuA$%tzEaW-FEo3j5JYA9AYNCDGtDlc2(LCZ5y+T6XVWlx-V@ewyQ+c2fZj+vkN3+S;nuy(8uGY`A z)}$um@B6C1S7j#SgFpk9o7(D81lM!v9yKoz}`F1Myxue*gIZ+FsjqMRnyLrPOxt=#hzBz zAw1?~TB&heR#NI+hN~rZg9ZxsUye;*x|6r^#B}S*tqxi6&y1lQ@t^mbx@^|SyD80T z+4|m_Eox8?JW1-T-8!+(4;9?00i3IstiaU)Pbo9NSyqpUf0%lRLbWC6RVwlwx-A$Q z-{)y)$RNY;rea)z#2#TYJ;RIN8awML;JV-rX+&F;CL@0qz;!)o{c& z>5dP;=VrVviC@u!Fo1V41lZ4qK_dlz4>xD9%`fl^0C!;kvx_7H@sYX23SbJXEsj^P zRfD_cCy|AFOv^C)*V#8|(|~KKWZR%1SiOeA*F%q!9y(}~8)e1`f1zv1_rcUZ#7+E@ z`v4G3{O5I{6WP;4OvjRpABZ`O30tJ;k12M^|CD@W)~^v#cj#K3?#+>Gk>M?sbTL7D z3pFenS0iFJR~5INnwxm=0Hi=`jG2%N*>?UVU^Q_Zh+N`Wia0OFMf^!4wrFYO%@h&z z)Y=o$+Ni=x$`-wnB5qXMb8Ak{E;cx`pq!d2u({-B5I9yklgZ61h1IMFzlVuniwm1) zm!N%Y4KPje!xc8xj;mv2ITnG>4LQi{o~i{qINHaN7bv6E`#ThVI9IT` z$}sw%kfn5z8PCz1QQ(2_GeB-k19eCPUET_)z*#kJWSC7eF}I{mGSM@D^&-nO=XlZK z<5e4WC*fwSI#7aBj@NpCXN7f30C$^}w$<|)$;7t(+>FOQj!lTz7AI3wL$+tGn$eK> zi6Y{NAG`4$)*?4{mbONKL7}BAjDqiycos&*&R)%ws80VMCHNo4523Z#NE%n zqQ)eAN=7yaRI4N}*3UjaP8=yRoY%JLNYXz<vrHh|S_irE?I)D8vMSF@{jvMdvMievZMvzB#oA4M5* z@F+_w0xx>6#K6nBnsm8*?IHQD)~lLJyp)jG%)hJA;{1K536Yy5zCePnBtK_RSI!h{%>i`xCzp2n6k1d;1^GiK;r-LYK#OcI1?exRP zR;anU^HXBAGQc*?YAdXV5r|x3m&BAn&3xz&sI(0)A@1p6XUbySf@t( z@R{jk3q5?BlB3f}=Fn48c{&M%b0<4sFLt&T!NieVZfpo%SNme$U_^w^$v|mv%N(Wd zU4y!bdz8sWT(5!K96K)!+qWewxu}1%N$e}xA71n`76`%QTb2eo^nU;aFX!21aO_+y zGE54mWp2^qlg(}vXk44qT8L8NP)tg?Jb)$)JqDI)R-#FSbmCVtBhZh%a+fmLSq-ia zsJui&jgV@t7mJrK%C3GvmaG$=Hc}~ErjU&M)O)-1B$1z(1_3rn$T@*g!6boSM8RgU zQ(#!)ALQG(h@HfrJSLh8JJ!NORQ01^3iRyR6f22y*Sa<{qJx!hR!1rlmBf=sgdJ@7 z${e)$A#XewjMuiW!nsRwY^HeA=7@Xo$@V6qrZTup{?Lk%-@5 zDi%i6`mY0hmI z1`~4k8&#QN5)c*m8hR~CNnh_}wvZDrg20UBE74d^PTWp=t{NLT&FVHed0HrtlLtix za>7*y43Fd+O&6ma5<3UPt^J2dMu>%E)9?h(Mc>H29P43m3qJ2g@N!X|{1w}T)6fq9n%om*Rz zs|?v~sNmmJfgjmt0%?AD;cd#2D@7wtDv=`%yCG#?8y(EIH-n@}chNtrqJDTq8X_6F z(rVn0+9hv%5$>l6OFfffw;pkPFSPs!5Ma;PBpW^1U|+SVz@~Pa3$$r5jT-3Pictt2 z?>op^^`i4HRFk41pbVrT@w9a{&pUas!^*5oKGGdz-cF{;3;Sm#^TCamFoBbPXN2bb zQ?$e`1^E{D#NM$Nq=C;e%o?~usns}V#!Np~<1931joM-hD|~6AvDi?7D1+$cv(i}h zaHZ==eaO^PWDP^hO?n!7+xC#C>g;Fq9(GdUa1m?EO#a)J?`BCY;waaUp>dIep6iGp z?}#(S1G|AN;K59a$S>m7e_p8l;c9b7%HBYIHaA(b##%Y|)zlXSFNDQk;Fd-ry*Rg$vGUrhXuPlzFftmTH9-Ac zL_{jW@tA*uhGv?@!wG~4qVV)gkzBsOZSP)kzGkiN{~bj^KfKuTM$P~Rdl7@c!fSYc zL7qZO!y`G4u5poUK+F|HkTa?loT5P&yg@wjt=w#!v3@uySDO{I5_Sl|h@7Yy=#z`m z)E{otv+8e1%o}3Sv$~+UvROTBpq$oIw>FLG(hIY-Mp>zlG)0VYurc=GlEYo-csk7S2Fj9=?Ln%rBoQC9k-^3`I79`PPDo7o_m=}AL5wlLwB9ByB5t|r(9?0c0*qJa!+^Pa_Ec0XjiaS z(F>jvn=e#m?UqpstuEaygcLJ8QW3R^p=2gtzd+G6eTb&%-WlkXo=$vYV$a2e4{v5A_Wyy%TG zwRk*)U8jJw^TC3gm!$84I?4gH1E{Y9Itw60ainm2ZljDpB4%CiSC21Qf~iOflj zXR~ig2tf5_YuhN~A@-8m41bYir(KteubET7hXeX-2g=*2-+o3zL*i!$Mhd7~2Yy*b zuz~4OsK^WbR|w;U^>ooU>R~S@8z40DddCnrxfp1-J{f~D#D76yC#kTD4rH|kUB zBGoUjkh`0j$9!kv7}zng8N zs2+aIGgCxkFM1&SFd&K3LMwuL44rf^l=-7(6vta#rTP#Y)g_bineNX@Lf>qkj_HEC zRK~H_{X-)IH^+0}fa_~u0en`dG_DQY)}`@{$;kDV*^oHVRS8_Rs+5meth+}@;J(zW zLafiR;#z)~Y$=SFZ>eL8TF2HD-2aGiG`lJFt}yC46z`@!6LIU!A+syk;bF@=fI6|P zLLGf^gUaT73`p_~dFj09dB!tod3ZK$7YUAhpM#w8(Awkk@_tntJ2DHF9Ty-SC>x&l z)v*)oYUS$ceu1i*!QdtKZ71wvgDDF&s zLxTDuV@MH$b6uT_Xu`iN2`ON8txKw$o+12MRM4>3O#OeHjP#)3+}!ePJI-9IXynE` zwhAOsa(OVlJWo+=cY1l-Q#M%sE@XGl_2omUiNqGKvq^Uo%yn3DF#0=RLZOi@cZE~4 zE7|DQNM`MWCbw$RF^gxV5e#jHSmIn7|3*dOOFwb~I=TmRa6eduF@fyvur0{mMcBO9 zAerIpYa2$a-hdYFKj>h+S__3UDDX0Z96-KlIcERJK-QX9q2t8LsS(Us0WE6)u@mya z-@|G4vuu{QMCyLrrkm(!Gdqn(SAkl*^TR*t3MIjDl9m;IWR_JOZ9^5w$id12 z!-kz)?;&flC2yfj3JsbiWTj?L#74t%t=C2h#57y9kSN^4e%qJ?Q*2*_wsy0O_XlzSj`#u#gv`y!)`%!ez=RH zml8WQD?!r-fuUs$jV7Iu-GG4KRPrv(5DPwR-+~3Zwq(I}ATnmQ;X?u($+8p;PmP`I z>UlH>N_)GWI-OqS{kJ^F-b!$*j{msoF(Bwh2I4SW+;7kp4&SKg(GYd)k8Trzz;ZaNh( zK9Lo@F}I)U%N%75mTwgc1me!SN{668X1HY>BAbkS-31-e5kjo(h4q1CJSuyJ^XudW zHr`Z%&7F3**9|Jt(=MswNlHfMQrZLrX4c&6m^nt%1^R!uesZQz!fDDLpff$HD*NPS zj%9byVB-Eo+U82`5L65&dozJHiSxvlkdI}wv8P;13R>UvVEIg5WU6IUv232Ae4rDDq_GslMb zv&cPw5p4Vh;b5WD>^OAIK#e#*GzYawx#9c;vDXPIc)>)5ra2i*&7)-8A@{0S*JHxpi-E4WseV>=Z;pqJD=|_dSe}4V!j{ zO*Es@Y!4I{YYgQ0i~U7e>|>dte&~b%XZ#z>Z%AAX7WEo^ajH%(mBbIH^v^0yToFC< ztmb7}I1@a9HtrwP%=-tm>N6Bj^gz*&npJoQ%hfvC)%qG;iA7A;f~X{e=#P+Vf*-yO zPoP8e(U4|{O5)|H`6gJfuR+O)+sWaqaX9JLfT{&)WCI*kuxkd$Y)d|v?qqCvvDY>8 z_@Uhc4BU&s2oA7ZoW`PeIAG^2$oeaa8yt#_*6kf>|MgnvFdK26%w;W2XB~`LK~{+l zt7sm#yGa=W;_%U#n!np#%#asIC)wX>I^?gV+nc88u%9HaA+anCFp?8nhIP2G`jPl` zdjE+VvSW{*ECvvZ8GQ@aU(n~*I>7qU_!n+>)LRq)euqemBKp3iZXl`;bqp??j zG}_f?Q>Pbw(li>YU@vbj1pvl4y*3~%kSTaO&5Gkz2)(+m_(0rc^p)a3 zrikNf);D4Q2$hI#J6&S#ZYp82$XUlwgY9Ak?M{s9YwYeXCFMnzo9@orEko6c?NU@d zDnz_*GX=D=ivryU%1J;m{-Fr03xqYh1=dR()+H1O+B!Ckb(q7NMO#~8%`>bwSUW4~ z6H87sLWiZa>7`^~=bz*VZ)a6R&#)@Y=dn||iXX9?AiSc+s?au`iJh3SoWX=01XK#` zo_wRu+l{}ni#kpr( zm;**yw~PI_5QP40g}lqqY3A93&1pNPv6$;H@RS^THB2XHNHb)7TjIMvX}))ME~a08 zXYa?MajD3oO4b!ak}&x z^@0M(oHQjPpYJU+v5(9O2^|_BO;3PVHA90quA9~x{s9L++rfV+p|GheP?Eh{!t4E* zmi7PJ!H;zCZ?}g31ttW|$ajEHp?70a^mlRaIS&5r*6`0Zg9q}`i(1xC*L}7ZB)7Oh z@UPC9e0*bQa>PsfGy4f5y+8Aa{<5uldA{9pE8d`6r#or87g?N!X0)B^aTG1~Msk{x z*ud+gUH#BxteTXg+l%cW%ifFr^AtghTEL(@&MMQhs9j_MOkI#8X-v3aH%;j z=UD^TmV9F_(y7ttZWQuEi<}yqr=RS8c!YW~HW>9+t6rhNyZ**=vXEqJjwf0=R;~v6 zq35mFWEqsvRQw-Q0YncHnxsSI96FISYVT{cTNIFaIYak#cI-d4aDBO4=*?m)RwRb} zmKiiU4~ox_D~<`a;+<3wX%tqi;3|s=bm<1?F#q#cQ9DHrb$%e4yP8w(@>ZfS5H~4) zI=W?{h={W*r|oy^bw1=pS_%1#$r|#}Dzd0x$PvGr6q6mo;vj`|x$|U!o=-_`C)}=l zCpx7dIk-zlE*+3O>AHxVLc?Q$P)zsoBI3wTU3J-vy1|2R*p_%K7@`B9fOnvbK*EJ0 z_hHCE@eg|%Mf8cJgZO{}qGW?PmRw5D5=$}RN$*uA^Iib3r5>Ux?s}lA!v?CVc@&W1 z_401u3!JVF#qQGfqv;WI9!t$R`RHOvb`&=9Z;{1*Ao@u{>59C^kS|zPAH%fX?>CgE zl3y#?@8_N`7WH0{ebe%yh83vIWKnki_sC5~{wX9ng}8?i(27m=24dz-0~^HL`4+ug zb$WU4?~$JNJc)wsyp5E;w5{NIeU3wZYlb1l#i@Htqi4fB<5NRo7%*;~_+A>O$Zg%$ zg4tvP2Tbao*d-JSAaepptMD$Dp1z+B;eo`r86A{fo(NTKBt*M(eVgS~-?i!QAIW?e zlisJyH7D`oM{cf==RH9E!Y^uw{BjSNDnSrUeLPIMBlZ>yFxeMC(ayB92$6d|qDfMG zMc;iyJ@?9rV1L-vb1)G7+yldga+p=c3SRUc<>*zvpAb}q|I*b#_CKjKZG$leOwQ%? zZ6()vr$B?r9J^FiUw4$iVds^qzoOm93uc!Oeoi&#QSz+6-nRZK#}be2>iBayG@%q( z;-XYGcd{80>nt;A@g(m0Q-PN_~oqG+11f=ir z#yKUs%L8Ah5GdC(OO;&&8?UfgAo^L%`M5(53yE2GXMw~?Q-70<@D1mQ4fgIiCPp$c z)li}2rtpz!lozctqQak?qfyH}w8JyGF!5n{gJd2sNx58q@hgNMr8+U(9NYcy1wp30 zRsK~b$BUML+evR^SD{5avr&~>K;9P4QWM)rpW_I-pGh7JTqyde0xMhA9a+;Ydb#T4hG+~kcLFW zlF*;shgl(nj4{Dnz=^NehgXZ>KM{{w zS^GHfRt-Cs7_ao)r8)97>&a+;^f#k>Lq~R2*g=qvRZn;nH~k;mY%7`QDbgKj@9h|} zgC=V+{twvltgI#)Y06~==$iJIHI+m5SElUn*fGX6;lAI?*ufttv9T0&Qv)(+FMYMX zKqGap1oJpFu{VhAA9^qwu(avf!;oNvu(l3gqAY**8qPwry29-YPDKZAAwRv3s?`;4 z+GW=a5$~G|9f{k1P#HV@L^OzwGSLhUd)utHq)TUh6W<=8#Vm0=^>$=q&J2FCt9K-e zLs?Y)9aU#{?c0O@bNRnxcGtGWo`dB)9OStfX}bb-XN!YbT2~VPp%&=y!UGyVj3vKD zD0LdE#OvjZ+p6E%Fzdft$Y!utlO;NO_bO}0WR<#x((ao zesTzF7f*owgHC2XSbe2Ll-vq~Bbwg`Xt3rv=T>ZhrYz#jPLL=@2UE~GGG~htm=c2x zmbaN6`ciIpsFJ>lbfY9~Y5WqwV9Xs$RUG1C*p;2|XR`4AJO?I(6#QsZ*z_PM!3<>oM$m0#qIcOT+k0B*$CN;Pw4ij9nc$`xwPK-QELxdHc@W~xkPDYlcgcnwjCB z?UhaZbDt)~Y(`v6enCz7m1xu4WVBn$X0%0Q2HOg5;!)5{r6*3ae2I%~KAbqjeVymN z+-00ZT#`RMagx%;Y!WBV)7`&xT`e)DEY)?la_(|;cpqOl20yJ6N$R>1?(KKl1bZ6l z{tQ*i>JSz<5p+U&wh;jt0rag*)ooL}ZYu^s&JBQT zkGD5^0;9*M?mCO}k6=L07~SJ_Y)4bIwLhCUmn7XmEXu{4L`*oKxFs~x$OGFSAsBw~ zVfN$3wvJ&1jQ4OhM?T)LwK6$7j4;L&Bl%e{xA$JFen^%&R=&eDk>bOLQDr99|8Y*V zXNqoF)LJN+XrGO+U`p#dSZ{Fi{;lAnH8x&ItwHc@!R!(qM?md^!mK%Czi#Dlv9-W~ zV^z{l1e;1?K9;&4slF{fl_crf3+-;}oHgp|c;|Nf@1!2|SGm)b83yx@5P_S? z&%9p&4jkDKV8KZj;^3rC;F@1(6`cgbZR7A&>%O|uCcf@I%+kvF;=(W8z1|>X%9LE_ zVq#AY_mCWr+}l4afT|~moW9w#)F+tS%rA#@!S@hj2e>FfW)VznN9SA zXzU?#)T%Q3DmPo>*N-4~j>l5M0e|X$7YQa>(?SU?)1O*iw+C68cBdT=C{wPD|8ZZg zjdoX=cYxZfhm!N8y#CKvcP7jE)-dm{SXs=H^Drf85Z;Ht`B6UT)TXvJD;3|$r{cw( z!dHRVckLWA$Y`;P^o7w2#VG}hIiraw_Kt5tj?$}#nCX^tA52JUGE6>mxk7SPb7MDC z1dpUgyB-8M`q0%b#ScVoVA8e_%HUu|XvW{K7NenZj zDTb@ryQw!N&TgwvigQUEe3)Z{o%`_c77R^g*~GuC9OfGoN~zfe)~RgiRU|f}Hwz11 z4AmCtxrTujnl#eJdZA@Wm$q{b1JbT*AAk(m#O_v(`@fB9*utuAL108O&7!i@TgWskepwZbBgtBCp`_9!73om#U? zt*?08WM$2erroV`d{Ucu?5y~Dmn|oxlaD(5cRdF5GR3=H29!+fqp2o)pPkp*>C|SI zlHlE9D+yjtwIX<%bjQ2ACB&>i`QCUYYgnisv^tF`7(*TogW*k5_PYmF(l7oG zKXjY5@_#ba_3xWaTx%6+%@Xti&av^iII2Mb?`{HoV;1!?-QF3xj;t)ofe_?@cx%n;QTcm=O4Mr*gu>;A?)AU zNQGmQ9Fyuh8od4ts~|m}Cqo!Lf5Fn|=F`Q%fl`(y){bHtn_R)SJvW^m$s`&trc*OT zpJ7J}?_P2LS=F21$tK=utxiYxQ|6Cd<{4&mvqkdxt_J1sOQ(|85VMmhnZ#Qz`we90 z{Tl0zO@B(AG z2eUGr`G6b!?m$G$@WRN>gwhZ^_l0qyW@9F0=^yw%Y-O{ylIN0KiAze(6$K9y2GL-; z`^_d6kdI1!GU*6wFH?!LRYEr>InABx`Nph7*wn!wx7h((9NJOfSUX@lk9A7^fGs+1 z8TeGEIrOT-w(zA=SaD)b$a(8Eia1^-MbZMlp>4|0B_pZOQ*fucexhvJQvphOmUzE!DJW^gX44q20!my?35`REV*mhe>m-7@dRope6l2pn@dxGjVgszAJHL{F zZ6&%TA!<0?#Orgi-r{OylOxR4)a=^vIT$h9o4WLfnrgQYrV=t$U#7?FY%8681K?5o ze>=CG^KyQPfkH4Wv)A6`N1L84n*3jCFlY7K%u)j}TG7Cwa|nl~tlexub$my8daLxS z7&qzT`7bZUrLWi$1{sb3kl0~h%Z@Dl>{|im1|@9MNHEe$nw`#Xz8}y>%Q+g9m`8q_ zglzFPLc&M7F@7muZoR0^%rj6Do0HwAzyX+peHawn^c{p3Shlj5(k zTuScYR=6Q(qBhM^QgUm_M_2!ZS^?R=JXqYxMxnI+Y+_3aus)NXOW$V`8-xpbZf{Eb z;53LR>q?TydRCP64Zek=U;3H~g+pBm2Nuzq>K0jPWq+v$zPAxMhW*phdHsZfG} z+ODTIBL)V*xdO~};h&1_98-UiFE(U~&jlG12P_jNkqZ*Ci51<{`@ps9s)NE4lI(ww zM|@QV#zv!b&pz42`NTHu*kwagTN|Pxx=tE36JhL>yhUX4s1hNg!K}1IF z(oSkeH#E=M=*X0=Si@9t7rSYjMd5_zTt2yMH1shQ{d;SfA5e+t3H>tm)?Af?(E%4jBsXLt*R>!XrWt|J^-wgu%Pf5J+lX zBIgs#r4ZdCCxj9TUwx#8F5n73xcBRh2Wcwzy$gksUiF$nvM@TC()6kpja#x> zl%hX+!D0yjY0-ZKCy{OoM(gJ*C}sT<;r7oEx4eV%egA6Y>AqRQABZ{Vw(n*M-?@bC zHcR-}CH(xeYrn3QYA^l3JtT2f6RQT?M$d$dwe_wx(s>#)woAXZt@K7OBjmsT$!{A{ z|I;BfRI$N!Zx;X0M9J)yTxm+V*NJ-B_YEsJ#42bQ*tmpsbRnU6M?JKESWekLcy*;c zGVPw9z%8ST)Xg-2!?oGR$dXOmOJ)ug zm4u$SMwJEUD!U(B_M@OwES?G4C^1Zhnb?umgbIA}#=bJ`r(%sx{gH~3`Q(1=8fSTj z!qDVw0u^>7DwU~O9J~Q8O#|A#$Q-K=X5QYS&UG2pW6CA)pkTlusb+QbU44K|3aD?MJ@$ED4esUgZXGq zGQ@{ zW?t?z9SU=kgu5C*#8js=~_IwHBzqzY;S=C-;)R zq7P4xiaKpUvx@KSPwl46C%ZY!4}r>I*#)_>b2cyQ3T@#E&B-_Srd*+ER_Mv$hNa%2 z8P6=1tJ}(Z!%VJ7Egs8FiLYyhGp;63PPf>@ckVD=h|W?gGO?4D=AOGtTkvRvd~y#I zMB2V?XHcKn2L1^du1yY?Gq40=kPt3pT!q#Yu_YSEzUwqZy!LxbkfD{w`PTk~IFUMA z89oCiAPJ~z2gg-?88Bfj|9RIKRti~NJ^7bnE~|`Juxo}}4#WE1(}eXgT3f$oLBo2m z6LZ~iSi@!^N5cSq zzCTKro9>mrFbO;C4nWtl^CfHi&~?1`K3PM6Pv!uQ>l$)Y9)v4yPec_WKCMj%l;# z*&LJ=pl6jJ_gT$)<&s(coIdaf(Lcn`jICXPn+M)cm1PYHbEg$ui(RPC9wuSlc7mxF zS`Z7XNhGKIj7BAHa0l~KnO-5=v$f;OrRs+|8NwKOO#H#S*D9tVIK!osTe;+3jw{+~ zM9pf|L93H*KzoGQ88P-4u+9{bAdB`Ty)UfKKhKk`odep{fX0@oLqeD9er#M5vqxrz zY{-?(pBOsBrj4GO-F84N!p#KN_s=iEwW6>iSf)o}MUEeO#JBH>mCA+`zSFS*6@Lv} z$-)YCp9w`b-pmjQfmeg1-I$s)00@{;%tT~z6*BZ&;uw{ESvAIgQn3wK4K@@Pu>uzDY#&E4_d!fptFYC{F9I{+9>slA6IGFyRfB0 zLFR+x1Qv>PMB}%rs{{1A8GW9tL&z%Zlb5*+OLH0aK^YQd29~7!F`Fd4&>0!kcQmTQ z%^X{uKHQW@R_PK)|1|{6)b|c+BVt+GorNV#&%Uyt{8X!Xd_7EIrBa~qI zUaifbW|SRmi6|VFkhNLT5(ZlWJH)a5dJ5w4WjPlnI=+tiDfG;^#~oT5aQ>YFnh|`j zHQ*g3uo|8VB1-OP@G$KrPqP?AS_@;m_MEk3o4q~t>AXSbu;?dmILMjg#*;No>14o= zU2H{SK;(F`@K|eK@`tKwWZ+o)wXj%#Oz5CH?cQIItYC%TZ%bf7fQ@grs9b@^ANqY` z3g?gX)?RLf{+x;SCD=nLiim^QwGN20zDiWn-m(yBKlvF_J9zSS+CaS;AnFTFGRv(> zBe`uMP<$*foY=6l=$@&kF^vm1v<}-{a{)I4le^k1P`rS?0^&}NT5f_EM<$cq?%GpB z@PMkNQ_xEc61s@@!)~H4eWrtIp?>Qp7h0zkUkX&&#u;Ct(@i!5DHk7|4SEE+R}OS* z2U;+F?{=W)K*Ok)d?hM1@Tj1Jc&&qo84Vep?Ah0(*#kQx&7x~Wzak^dxY=1nog1~e z47b@DXxYS$#D=p7qs`r7Dd_!zyCM={eJaxsSa)Ezu`Z|IKKs&mfup#K2?5Hu86}lP zmG>PTM3l8)nVQ|g`aGE;xgi-E&{(tFM6~)*Tc}e(v(ld{=?cI%<65_z>FOjsbQm&_ z2s0xb$y7qNPs~nnxMjosi&4dfEV|$RisQXkGC*M?Ob4QHi1s(4&jUQX`NtP(iKR-x zS|TMyMt~5H%JdCFC!1L1@^KEp0$)c4f^6wRB61DOACbXU;9ZUWmrdM51~K*t;3k&R z=($;Oy5zM5(5b6~YjcTsAd{#(PU_r&XOl_9rRh#~J!Z6)dxvW{0{K+J zs=coxKWT`&h@7xu!ZG*+QnQI?Rho`E4&0vt50`ccMeNMQZLUaXqS-md@4w65BYyj< zO*_Lb1qWdkP;=9^94<4g&sIiNdMbe)8ydD4)(aQ?!;Y>TGj|Yl+p-2_C6@V2nJT8+ zY(!utL${}zhz*Vd%K|B)+5KqqfNvUk9e-nPzOkad5X=a=+{5E492p&oGYMN^OLz z=2!{0TQZh>)U{|wHN|_;#(}O?*)iW0pIUFb-I71DiN$=Yr%$59LWCRgH_G~?WsQ%m z6FghaV)rEuYLNL(6_jNl+zi15Sk2|(j>!npv}5935oKa`leG@spObg?HgWgd4pPpG zPgI8JGOoLZJ0;qu+w9#>0PfimAP&=zhs4U%p~3K=qf#GDQP^*3eKzs=8b_r&7mBV> zX?=X`7;Du=@=UY=k+@?AWt~Y@jRx7#*dMXDhg2LI^>vZwkskuwVRHx@Cv~n!HK~YE z{GaeG$>qm}s-V^p3+!Zu-M*~p+PFbS8qymZ-*ZPBs$H&}GSK*ei}zZ@GsJI&JwfYG z`X1tKO9u2Mx_|BhV;H7r@2^UeHBFD(k@TP?NhhgOJ9+=CS_(vD?iuS!a{V;<>T1K* zG!Ronf_;VxY(sFC%Tx~rwUP$D_e%%;RL@MMx9x4%{~R#g_ok z;kSnaz>)(^Vo@;iG6%Pvi(U-erKUD}&wxFO-NCK2qp3Q?J{L#ZtmP(RZ3=(Act{qsBZ6{@X#;}a;+48l9_l!XpN zlo{hHR1TkVHCI8T)WCYQ;qFrL(1ug&T08vr*mcZ&&+k*V;!p-FY$8h;Fn?k2YVH z{N?Iz<1PQqW?M==$yati7*+3mqMm08Ld%g4=W|LbahABr(sg_@_Up%@r5#>raSWlG zW<7TdVFv3ytxc-a7nC@2Dr$$e8N;1r9YHW}lf-td%9x8-VBZUDF7`Kb5P)q*aq6L) z4XPXjn8Qk91v~|=1k2bpP+y-0j21TFJuxw1&Jl<+Y}Szt_#Dcj$g+VzKO`9324+#T ze%Wn5hK6ZWIzu4UbQUyd)z__HCaaQg1v91|=(b&7d=t^?3pp2%f~UXNS?^qDz2ios?rXwDjGwh$pI%6eM}N#&&7e)VU&=s=Px+qZ(~vhxk%k> zEHA7yukF3f-Tzd2qy*y2AE_L}BAT!*;?_3Hx$3{T)v${Yv-8kV$nbY`4dCv7m}sf@AR1)? zGpvT@Kz@g8)H(pah=uUD2l*i_;e7%#bIZ%{Qn=}}tz~_=bY|n1jF_tQdG-3JuKO-J z$}D$2=9ulEZFA_i3+rOPU7Z`=O=e)TI+We}P%08ye)2=aBZ&M!SyN-S7YY#I)t5zO zuHF`%1-25)jz;&B5ei`USz(R9U?V`hFKS4m()UBod9RZS?)!jyQ#k~&_vY|_hl+`T zv);A7AFz1;l&oQSO8m5y)R*L~j+{ns_%A7g>1T$qHJ9P*wPSH=%Qm77UhzO6nRs>r z8&Pe2ubb=zigWI`PX2_?0TeXgEl>Ek$nNeZ)%?6qZXxepp1@LCvA9R{_QXfaMaCso zuqdGq-g?5^)?y=e3F0_BidE0jlOVDbsiQq5O&O>G$CMpA{^G8Twu;46aZEYg5FGT9 zb&frbdA30K$#+~oUg3tz@ziJ#8iN1Mj)u#bq(zXq|4h6SPK(r~ndHuNV8q+>za?ui zfQM52K3IG5N+~s7 zzkoL;*^JA)!cmxofJlXo+mO4cjgiiE5pn}c+(w3wcE{#0o-2$)?Ijw*>Cdx?e~D09 zJt4IZX|FsyO=_a1J!PGUe9VTcxCz}Gw`(Ix^0_`kPceI|+0}B)LB=CsvTR~IYcM-P zF$H|{!fjKNx%SQ`*1k_`uqo2Of~gk?1;doSqeQ7|m{GOC#hSFuu-Wtswi>tKTgUhf z@f~28G(;(H{T`msZ3zBhDVz~@Wp<;PVHp`?>Cs^21^R6WcG5R~7$xs~?^&h>#7^5| z#M2e^90}yqy-eX8%B)IXT8sU(3tMhKhrpJ;FBf59?@Tb?>y zS;sr2-WTQC>pB*pSKRoXDJv>mF+Os67Md)Ikn%RUHwn>;0p&X9ymla|6@{Wtwi;|@ z%c%f>y4i7p@ZtW4frpgf411Q z6FyD89<>~;ZdG#-9ajrGm_4-1i7UmIIPG44K57m+Xz2Nv2nr zwQ2eQfs;bP`@fb=^Zzzm8im97?`Je?(}AU~O}}FYvkIKwMVlaZFld@r#39&49b4^a z{AZOsR0xdb{T?JcJ6^fbQle)jDEu=`1DSi_$qE?07nDh+cMN&rmaHb^56ZKxWfYOj4bGc#`T#UtWR) z*Un#6T7KZ7Cl#U-9zDvC>=Hy`AlvEFhsirP=ehSb5I~{Mt8se6}%)+f&UDPW3oDudpqv~@;(&vnxLx*RF z4#^H3oEQMiSQ+Es6g*IEA=23j{? zYB5N`mh0yCf7W^dh3lBG%*Ll3MDG6{Awg^Re}Dg7lf9L0xo*Cc{ASfDya%u)z-%`7 z-&YAPOCR?$!2JwzKZD)R5cf0OeqIt;Tu5YcA(736M8@Xp4m%^qF;`3Ry}@sUSiO`l zlm}EB0UF_I8xhtWViMvNVj1Er6A&HW-TicRKjrSH%>9%!M@i~#-ny{rb#+u^UD(t{ zJXfUm+L(o&wKQh%0_(ykl5A#D9Ao?gO31o!!wZ5#2Q{-Uy!&Kb`&Dq47*IKud!@^>gQkQfS|7pHtMZ4E;zk^oI(#C;^GX?BTk3M{8n$UDz z#!f5M)b~~bPX;^xz+V=tVpK|H5cCdJZp>zZ$>z1hVCYtVxkSw*)xu+DitNrskI6g5|m5y6wd@W;Q@oYdvOUjmK zs6&(F!E~3|H8>+ahU_MXatlg(D^=I`I7MnEg;L!+>9>%XEq;Z?OC9~}dm9SJ1JBxE$+JjSuVxZ`T|60QkuijNwii)R7dXx3PU#ii{e4s_7o2Djis zplM9-zMF%#6zYZ0W<@o5_lTsno)tOow=yEz2x_U~fRKoP;F!T}7)rR02@&A~Y1|hn(jMuT_q*k2D+8uH6`a%r|O|Bx;aG;6?e(7;q zh48L}{dkvTxmn+;M01_x>tp%ogxF^b7`z#2&(Zcpcd5RddjU{)?LDk#ElZHL4k)4C z(bNlr?%=6|ICX)w*FgR*Y(+-z0%2yl1WBNBaD<|64$;#_r}v>p;i+_RZIGzPKgAzv zSn2m57P7?yfHs!#{zDol)nN5a@hT81>v05o%sO-%3360!xwWu+_{MiLfYCS~y}u=; z%Md_jD7uFnHtX09#DS8+{()Co)z+$gqpD-G=9_Gq-eQyHboGYYq-ii6C_Jd|m$p(n zG+`a?>M;CR6LMfjRM~}CM-SHzh_4TovV;G`jcV8;L4o_PnQAO(7cOrkA0Ws4s2=r( zZ4i#Ra{&`6z=Ah-grH6U*dAwn85?agv9g*3!*F?l%l%IWfcHQ7wn3Kcr*ej#(_^S` z2P)J-f}Y_)fIz)a}NigIg(L)Qpmj)m^xCbgQk|QGO^3| zktlG-_x;%3%HVed-95iikC#5{N*IeXQ&mi=%J5!8x*aUM9D(La_Gk}Kmj!It)J5ti zyGq9R-c|vEWhS#eNdKzrp)g83XiNr~$n<=po4fpKxOtX{oJx<@53T452FA)7OeXU* zD@@XdpKMx>(M4XXcQC{iooia+j#6QuCwM__t^8nT5_<{h=$mp6z-NG~%_dgN6)oMV zwc9|KCL|E|V0RGeHt)WWu1-DU0YjWl9d=DYZ>C8u?9Ho{ow3kA%;S5P*<8#G!ZR&v zeC)kO6!mj9aU5~3CsQgI4hD>QdKo8PcY}J6OUP^=l#yTCbqC0~j}2d&f>7BD^*muNx|wZ?-o8fo3UJAwr9Q{WlV>5pJJkd6jyz3xCb;erL01uU7&b`mI{A3c7 zNyEcM?l6Ai6em_Q#iqArs;8vVyKr9v(`*~M>1_=W-kJMSoJKnwyWs!PilOf48C>_A zhwnY}HJLSen83c7EN-^F8cqUv+lJvFs+eo;%guYjF<;{YOoYv04irrM*X(Vr7Ly#F zgS%%7xJHn3f!uf+aDuyGf@ZU7AI@kp9hIc~N#OvO)etOCJ-t=F_!g`d3_W3Q4{OqC=qVBfe>y(hLfE(G7=un3n zaL)haD(Uu}`Us_T0y)*|+`Vj?+)86$H+JFMSNb=#7f<=#DK=@4^L$}}USkEE5MrJS zk+B=QYeWh?^cH*F_EVE@=qDXp$Pbh9ft0lAT1y{aQl{u4rgF~otw^P}GvjFr<0-56 zJ>dd^jQFDArZ)BNm`bzaq-zF%B<(K`?*lh`dggg#H1*5@Xs%P3{BcH|Qz^ek&;%ud z!QiHsBHv4+DGFFzOGh_+uM%p=FUOsGl8!t*o5)ZC?nu`=b*xBbxfiNKCr%xEiC~Xe zH~qOfwhu6x>T(F$$zJna&1TzAa_N*w9xp7f`H#c0y0Y6UbDCe!=U6);&&Eq+O^_?i zMYBZ9F#BCG(LjW_eo%7B4wzHZu z(VBxwpqqqY!T@w!tXUC2XJ^48dnRex*D2s3p11W#p(p)+pD+)i>4U5ihg>ZvwX>{XGVcaam4Q%WcWs&>~vwVM-t8td% z1~zsIv(V7aQA5K3ZIf9mM@nbo!dpR`unZYG7G}_gq4sH52N_BVGw8!I)aNsl6=u+f zWw zO1918)~67(J`D6{lX7F>zz9wl0G$DaW%OZXo(jv5VNgCp`p*1^Tqpbn9xBphLokv8 zsmx2Nl&{O&mvH3kpYBU-<*Tpz61DiMa9^S-Ux&Ld(Vef(?yJOo?dHBZy00Sl)xmvb z@3h+6yRYxvS1b4Rx%=7#M*?%1`x3|V)!@EXxUX66OT&q@$K96(A77K*SH1hX*?rA) zU!&dEbiRVP3r|zHtqV_axlVUq;4OI7?rVbkI?8>GcVAuHSFQWn+rCB&r%*>1973?j z1qTysXN+`s#G6#clSa&}oL;ZbYCncBSpa zK)@d3IRLIz&3)wVQ9G(!y3Qkgz(3>Nqo4S(>#6E4KvK`LPtlk%iQ}ze5y*8!@RuCq z!7Q{Lg@qbyj}b)vtsL>mileC_r4&=0?~GL?P_hy4PB>}r}Arr$b!~> zU}Hb3ak|%a9hmL%UmXWFb_>6Hn0u8DlAXLC3o6q4sgxCn&K(BC4zYG?88E%IYk7x$ z!TIrn-l=IbqBnZ;aIIoEZvx>}WQ{Fe8iG%5jk+WobqOHPs0bWf(Pv94()mL{t5_4i zvp)WU6j@aB@YR>l68IHX2ekbqPen#RJ7K-X#m)+20o1EZ_yKHQ&0*JYCe5-vL$++< zHgb{pF5R|N-8P@>Mg8x#ZhMDrTY7%HY`&X~l#MSAMb3Y{wR-np%XTu^`Yk5w>mlI5 z04Co&F!Ks<2sL0@87ad|nBgMEO;QYaWZ24EpigFmB->IKlw^BV!4{J38RD!T$0Xn2 z)Q#NF;D3aWxu2Ou0FG|6m3|U`M*;*X#CX%nut@uDqaqulA{$(huk9zXAJQsFaBt=;6R14RG9j3Aa{(%uT#;*| zA|qUpOYA4nMX20ZSmams>0K?2gsi~<0UF%H)l#WiPAM#Mc&?UxqFPE_Eq`&fe8WT> zbSfqawSwA~(7s$EnDG!XoW+MK;0`MzIaX8{TEE2)9?uzgIaN}o5=%zb8`9@&Ad=#G{$4duWB z)6qJ{SEY|))W6vT70hhwwSE_DPJ>cXP?*O1Vd|o?UhOM0*L9HQaSdsbu8TFb;C~<^ zafse=w#sC#>k1`<{w`cb!pxwO4|E|E5{x!A9fEFr(_w=iwK*tvlE{!{Qpz1Ca<`cW zY&Hk=YVQOp7N8C;BpKZ?7g>@E<<^doprlABM_u1wPCz(L`!@(>Mo2H5?1E(kZ*@V* z)Nu-qS%9$0>xDy!%jtzD_oYEcVd-X?o5{44P24!m>}MzyLkLk2vV_z0Zh~ezd=tqk z%H+0>Tajc|;L@Wh6)BL?66v(avea1XhgCDl`o&AxZOtZjwfYvN#{8D8L61y6ODuz+ zuhoFf`I|?C1^y2xE45A=YO5^HUH3mg@tNcp70Y35tsTO* zDoc1LQMv&sU%S26T32`;h5zieMx(|1WaS(<^~&@d(c%RMpceozm(uQs9W8EELqb}- zYjKViC5q1^$EjGxTg<7RpjUb`S`0>A4n8NIhQ0Z=(W1@)cC_fO;^|m7exSt_B)R5v zm9g0O?*G(i@$N1;TC{cO(Bhaw_y%QZPKzeDw>!)gUPj^nkrpe+noYE!-a=Z;b^wk5 zfYIXJsg4#ms39RO7FnF5#ZHRPBz+ajcpuMz7Dupt%ku^2sKEGigl+Hv3AF5$w?vH6 z;SREx-cKH*^6A)-{J=Bkkpz(-%l?K=@&L(d_+yRHWDlbW3!{c$oj}@Hxr;O{Yr?St zZ;0WVu=!K)WLHq{Z-#^Hg{WY1u^sI3x+zQZ!cV!BeO=+j6yAKx)!1q>8MBEOA8Jm@ z>s;~nh8S!$j&$KH`b4B0VR4R>uZ=TO_EE8n_ssKhvo4p4sOLMk*-lY_~ z!e>(W&)6z=rf2lGfo5kvwk_I7@62$v6_5VN;`6C zg<9sFO!-;t3RxQZMoFYXeUN=k__})p1@+Z4CnBcQLH)uTVen(?HBC`WqbRvDhoEQuMy+}w$?-sJ> zo(*=PDRz!0HZ z(l49KMC4ubYoUXvQC$e^V zL!c9TB?^<*t3|vy_Dt*AcUp}vDpvJ=@jhyRuHl5+xd=s6*3F(0G>kr4ts>s>Xmv=E zFYe1>G!f967<}&p*+6m_jZ~E;aUWSud?qn{rzp9Hon)B?4D=bNlkm4kd~QQjyVKJn zIl*Qk$MJsTJOo9Y-6=lyarK#>JZ_cY_4sSTtF(#?Fk;?uBP9EY?zio+NIrRQB%65S zUL$F69hIuTcDBm5Y`VapGJ1sbAHtb?=sBoAt1t6VAKuYH{YM0~CWP8KggS4unzUup zt{~5O7*bKr^@7wF7SWps_%xfSuz)-{6^y^eG^NSf^s(`0CUzCog{p2Qc4Ohkiu`59PHH8B_N#Yu<`z4s5gez%53>c$^W<6#!65g_Lj4q% zfPp(uqg7l(@FumU(&l)SR(|7Jc{&QIOMcRlb)N7#jc3iFtAr0FZzah@GDLb;ahc?T z?L{3KNOynBwtDx{BHQ<#Lw;lvQ^SI%T0zN<=iXC(SoX#+=^wf3%BapMY}v#mq~a17 zmb%FDNqZxWzvdiR8x!EZoonan4^)sBg8vr6{AQH!H=ZcF3kQC*~JsN^C3^c=1_c!I~>9smrbn1_9hbCY@i*VEKyvB6G)lZwLdDkH6U12 zWARH~3FM7w+4nia|M2ZUg6pbXDXc8y&r9_(^0)0p#)KjzogHI-xwN)2v9aCrpZJ7<}2f_EMeNC?-Tq=iT@Uj9O2)w5N`cUi}0#K-lQ9(P;)wG)NYQ#yI zL~p^c<5Va0=#T&RJLy82VEhk?Hdc~bDX$c-9~k_9eNA>STef6NUnGA{9NPsJ=dcl6d$xr%UfLu)EYsW_E`32$Xn;$ z;^IiQ@UH7XDhI0GyF(2rzMYzA)?2K*Nb9JQe(WmM;atJW$$xrsnZ?&FwKawFI9>Qc zX7*~KR;QOy^{7`WJx8ky_Tu2SbErq_HAc`*v_O0+%}bB14jarBNL!EC;m$DES^-Pf zwHKQ5z+q3Yg=z0v8lv4?g_2gHT>ey-SjUR%a`H}RI?8oswkfRd!zeAw5LLr-V&gx*0qS4Qd3%DYx z{=$C9|8E`yv#`i9^j2NW~{sLCAh&y~`tvglM*Nk9lC zyLP1tvkjGFvOCp$PJ@oNW{;dEFxW)xCpP)EJVir!-nD>~gP~$j2|CS3tG&7e|D87t za-J4~fSk}b7()?i8}_nDgm`~X$(Vus17}%?QH0qNr-Pd8Z&)It0ZB*iBM<*~DIYI3 zFr7mU(t>1-5o}N{_pB15$1-XN_Mk$J?Y(!aTC!E@i0Y*^ys8drNQY)O85-}VA;Ab> zwQNmC#~2d~1lY3TeA)WId-5gg@IREIZo-6Q&l<&5sVP~j(~E*zhFOQTH!R$MN#VzLt7cPSC{$-MGSU-ybVE|-nOj65YaRufD8P`^Fm_6Uy)&FP z>q>lUb)H?X?&N~Hj^51$O9=LM!7_s9xL`TK;V#&fV8#Wz6MVo0Qv_dh!9E1vbin}x zKXt)D1UIk>USmJ`i33?X1zLxIitC#!2I;O8v-51+{`nuSCO>$o&-PaU- z@vec^9KKhg?%-THbeWYPB^+RHK~-lm(jEFgGZ|$kgsO!%677lEVj3Bv*+S-`RJv}8 zqTGuKa{sXP7*0n8?nV64INJ=sjjV&+~8I%8mjnHlFE~r*qw;5>Dk05H`~gSS<%`PuiKAWZ3+4Y zDYbLNf~|(7x~y#4ArFgput|KbwdH$|AWXWg{g{FouX`EN=$Q7>hGCi(D7=X+c zAjA20E9JF&Lp0>Q*2_66v@(^MQ6e0PIOvL2tx(ubqug$c&Xk|A6yM9#t1XF93H# z(p1#6P19CDYuZX$F@Y{CrP*NeNpg);;8zxA(0Z9U(%Z#EM9Ep zcCR%}$NwcTZSpJqC8O$?UZQQMhk)ef%vG<2ay+`Vm?nwJkos>>%5XwhqYcZa+j!b$ zYqj_3q==RzrT;JcAP-xi1$P4eoX^=C^;-j&4CsXV~S0 zg80vgXUSQ!y%MEnKijTNt43^z!ep)M%oCub4YU`?tUkO5+DjP_(%V>8??JQylqo27 z3z@gT(x>s{M;-J2#gieH@*UOj`Jpcxk1hGO_#W1!D&Lq3-#ck0}K zy)5jr+U91jnCsqOl zHy>4Lc4tQ}4n{{+NFnH0g)3cpVWBTJuy`cT2>J+c_3)bR`0FL=! zZ-eM`(45KgbpSff-YKHH8F!u~9<~O9Y~lwXyJ=z#BTL%}{MWVuF9Wx==B%)~y;G$M zwOCPTkwSNv;da>4U0Tf*x%eByGTqkHa6Io*={DVLHzHowmwIwb1S19h_|UYNRjkP& zv1HNtw4qK|QK3XCAO57Fhb=WJm#%-}@$2(4tLbXf$1p~{> zB0kBp(t_ahi#O+`6;`{}4wr^N5JJe?jeH?&#S!=m5T{@lrnecyZ(5QK;*pn#X&M}_ zXgStGrGQtYSn~b|qqQZYq{tsJ$}(e=XFx_HE@N9wdG-(;!Ra@~vr`qc5M`z_`WCJx zpP_~DNqdry^LJX0fMdnLe!rTAgm_!Y(gsi)wj&Nr0C&ID-PRWDL>X4t|7KaAsZAl? z==giGXg&$_k!uh$LD)ys6a03OFe>U`Ih+cweJPQ>uxsis{FAP+ zVKZmCjg;8iH@H5gdzi|yiT;KRn<2>qwAk{!YOFi({8v~K=%jr~4n^h)p@44hdxw|- z=xduLG-qK4GQ5)CTL%~KDiAqQJB4zt|KBx95sBdOu1Uopgr}ZXpjVl0_NXRS3kuq! znzC!;AJu$-B4%b-Y=!i$rk$=?;2hq1`=PREqDcP=>M#}H%gKppqgT29$jH%4=8kqW zM*3-0dTKoxwAfEio=M0px7634K~ck=^BE#cGqVRPHB~`34jU!XWa?Cp+w;VyPqH(x zF=@d{-37i|*)R-@8-tU8NnBUrV6QbS)73e4koUzpv6Jm;z7{H$wg+&yRX)+cI~=kJ zpS-HIuD<3rlcv`zA~Sgiz-V;~c}p#7BQ5r&o%$0+JeaP6LdI(NKOC&KqBmuhl9t!j zIbWj*A=={|Hp&ey)f4XTq7YO7)wQ)&fZ5-rt=ZswVA9s%#JRR6$I7Ih<|6GIW38># z-M+md*H+#JuQEHgrAchXZsJ$hh;*;4I7@sf+Gc}<4 z@{T!Gne8XEy65)`TkP0HC(AUyHwZrsvgD=WOTV<|46FM-113WXgYxghG3?kgaEjWj z62t({G3-ULMK(5_kH>->vW{TTO;q|v;#$qCmF|oWifp2%RoG&mC|i0s(fwFA=M-PA zzi%=@A{n2)-cb=D!hLA6ifjDj53m3z-=^8zFaDNH5}USRau0NMLf|cBilWC7%}UUQ z9Oo1YlP?UzkqH$g)(uEg zvkwx17B)w9k^`iOkj3-gPWQzyL>msa@|to!c|!PFcKRIoFol9P7T$NFMQrycqQyq! zCQt{))z3kZ=Axr+x`A;L1S5zukxJV&y){!Ou=%NL8ecSPu#mxTrp;g^hw{c&*U@5E zfP;1C+OX5uVAyR6+Y86SK7Bzdl<8ZXC;E%s)|$-3mK1v8!R|*kXSLMmx#HHGI%1gn z-b2r-Q4of>WC*>P)!xkfPXz>R5Lsy;WnQ#n^Ud$Iijol87e4dlC0}U z*a97*Kzj>B=|*T}oD!u+A~3dWlvpwU_LfF-q2#OkXMyAkueai;PgiXYG5n;0X`I_J z1l#OMUT9*(yZ(6z#{a4UB;oY49d%?2SWjG4x6kFABKaRJqc~qRT|dQdlfq#N{Il_G zleL6d_Ptq7Qq}BFiC-C!lsJYQcJ9InJo1z~dDpIK7ZZI5we85aa+)AvthvIPT0B&h zyUX_s*cL12{QYY?zk_%ygCNyh@FQ+|$tO4kDC)4RKQyY;Rj~I9T zPIkJ%@-zgGLru+BzPHSTHDsGyqQPLd;K$cF^)NY|76v<#myA0}x0N0I8(=v4-VetH zKMk_vPo`S3rD?g_kJ%_fh4XKMA(r%(Sv*T!1~TZPoLvlNwYFE#Dn9mgT8X-&pe-Oj+(gRQ4pE`D-qr|YlSps>0AyYAa#$^R z`K)lt3Ab2gs1~RT^PLE$ZeCJZXidjq?URudObKeEI8j76dC@(L~M zOew$`8QF%aBWx`dzrGJ?IcaGW^1Umc6!9h+F(PUC`iN!(t7|ecxLuvZ3?=eD(M)ky z*k7o$oO!&B6#RIW2?O6NMWBew6W1EFhM?Tqjj$}fLK!7F!ckx@C~Ql}WQh1tf!OS8 z9H-m5Pm|o}g&GWb>Ckxnnb^|L8Q4NXaMWTjV}*IC12t*7&9LLsz?>{*JiUEt7J)-F zSVIqJ)#3jECK{NWJVOCp!>e?xkg*D#p1iQhUey*NDDq-%`4u{~Qz za@&lmTt(NF7!m^;{~kq+N$$i3bhf65QP-Bxz{bbV0KrW14;_5Tcqd@s2}Y5-X;pJ| zlB0~l!qe22hG3M6&`7OG{bVOe0pFYPv^vv!c(`#^b^0geJeizmY!GpAWkWl)mYlbd zlSD?NdGzAg{^!bDW_cG@`bT9GLx95E#dLEfArsS>Sz}jUCC0~i8%3t9t_5Gi z2QSe}HOw1=m5TC{C2CbVwhKRKQ1qkeQFMN|%jxgk@R)B)Kx;oki;5~Xr82QE%+gmK*x8ua9h6~PZM}A+{A9|(+ht00 zQU<>-Dh$S*4dbF!SE`A!7;K`Gpb{=`2R1$n<%8Q!Ef~+NbyPWfvwm_fpf*49G3b7* z|D5;e7y^Hj@}|y@bm~AW{`f&?9ownB&hC{U zA~-*BMGyKSQ}hQv^m!}1yzx)Q)n`DOf&8p~%=BZFMoX5YO=XI2fvcK4jtLHftCJVQ z$-&z+hALly60^1tUua|_EYDZ_CCFJ^oo!*QbxJhA^n##F@B%Ol$-AC{pzpzX2 zAiuZ{8}{!mD=`=~?uEPzDhA{RUM7~JRRzauLbd5P_`mlzF#ap209-o#_ri#EfT;@J zyEVc|B7?XJQ==1m7=0uQ)p?f~0;mtko1kIvJ#~_GFS4@4w*4b(-#472q=c=$ylqL1 zw&SbPKZcO@GDv!y3m;d0vX{EV_om$!k_j3C0|)s?tqPbNP)-aOp$e3tKR= zt=f0VVG||}z(3&~Xf*}D*ZhPt4O0q|j<;gn5zCebD!Wp?nI!0AW~e2@G(Z>Sj~>rP z+H-%fzx7UVhSjPCzy{PHSmS2$gH)GyL$r<{gN7{fSPHgvewb7eV$3^$6bi?_s2`4B zCPz4;@X+V&bXzkV!-wcoLvIhZ}Nz7W?nx_oHa)Wc#og~#i zQ*`=L^#jvUZi#-&<#H#yVVDPqYRE`0g@yOGN*7UTD)v2<;=GQ)SYh1cE^X>T)Y7|& z^6hD(u;33+O?0rk7oBBLj6{Ub~)sqOt;{bh;jX4Hdw=n%XDt1H| zb};Ghs%j0yUBdLYNT+a*_(Zf0^vbP>Z)(rnr?)n>K*%OGT&Aih^Bn=MMrh(i#%RuI zZvI2IbhRt{u|rkF$rf`x_7dO10&TAk6*2@a$B+TVZzUlw>Ho0Bid)14`;swClJH;- zB-xGSU}V@T;9VhjnUT|3zf0hA8cNPbaYxJJfx(A;XdU)TwVH7-iK(K*vhgNcQ^+Q7 zoFoc11TXUIW{XSFphOJD*T*L9ig$ZjBglK1DcNm#+2p;GfDU-fC`v@Atc@@@ti!Zr z2FCPESEk%!I0b*W1hnrJ3w|bX#|-IA5Fzs~u^n44lp(o4wJ`H^TYuFX)H$3);x)SQ zm~TI^_b+wim9XHrkc58WL9Y8wWWK4T>0+PC^gER}NlX6%9kz9JsB^R7l}$kQi{n&) z>eeIsdBkmz86kjFSXvK>ceaP@j1rF`VvFbOry8Eye2)X(!j`7>V0=wU!{ofk=A2=DZ473N-s{et*9R}uYJ0D zdK0&`~TBy~n9JUj324*s2z}icM;U`Vc&^NmxG3dI}QHjXG zxp&gUJU0kA!H{Y5RU(`9S108Ph5IfH0#>D>ZGLIg`0WXF*;~EyV!m%50G(ljB>5!G zr|yU03%KPhfH@Usdn$Db)1fG}#<4%dPmS%vf|Ts{O*T}QHVV~^JS$@hf={T(A<8*$ zLq0T^n+kazsm-|nZ#C8FCFZT>ZM&*fyzXK(Sx%pq3#2_RYXQy#=mj_}&FMsuM}d0S zwu6Qeo0xjTa^Dp8D3e0wrRJU6=-U0LR$2x_rGkrOyzrF%BREl!d@!%C4UP*xu!-aU zDEwgkSF<$e%$JRU239|Kv)P4j$kZJ)9Woq202B9uN5Rt*T-IdVr1G7xnJ`O9m}zJ6 zzZV&gR%LkVNgHdcf=lSCD*s|?jO|OJt>V(Xmd>PCIhfsR1^U9RgbA)8_&in@fyq56Dtv*9Kt58j`>p3Km~MP}*oVc)yzFWkxOy-XI_d@3m-! z>)qgqDBpt$ASh3%inRUwP6)lrRX;dwS5>9;2~Q-QP*UapvxHM>)fW<((d+7c7i&Q? zp8ykRf}{Fm?n@&RkC~;W?;1=V0i%3^~i7*X8sbP;vlZeS4E2GYlDf>;wEqxyIo za3ZA~3?@*S6tEAs6E{S=)0BALmj5g7qK$x5O5@8gBFDyJL0 z4ah8J+5EeY`|)Yzz5R zKkQ0-!xB2~Ob%&}@w!^NQZL|9&+E5{eg2EVOhlS~95fXhoo5C+)T3`mX?)PS-kLTW zZ8w{EGt6JB{5+PL@~=h_>d`fun63QVt8^xL!xx%pgEo`69HDnK!QnQNg~PDE)ZKrA zDu`P;%eGm2}HFUxe%7zIbU*3r5akD!;h8Q zF639o;iUu1Haq=8x`N7kQgo1*j?YAjsT6gUt~2|Rv&uU=My@p7snW}&-`ES9ob(Q} z7$h>PdHksRN0jT~ism9%I3o;(S{>|3UjgMK?@96NbmJ=Jmz%uVMi>uLth20|Ly zVa33eteC=-%lvP-nE!JC>xmZ&>h96=4u&i2NAqPf3SuSCbXg!M*4O2Dbt}h9Qu%Dz6odXfY3P^*T`R{d z>S|c6g5aU@-Z-XLINRf;fSC?&Cc%|Nsb}be>^W*ST4(h9PYGVViQ4GJQG}0Kf>59wcEKniEP3r0w*`76Jz73n zBHv_COK!ZzG?WE{p|Hu?z7+Icmuf9`ngu$*HF}jk&xbmXLS1>r#O{iAy+izStFVS4 zd#a!KT?GzJZK8`_@;Ae~0$pi?QZcVy6hTte-w9zkVttB$!6()nQ|<;hMTk?ZW4mk! zTB{1@re=c*W=50+<6J;aYCdy8IsRJif^z)zrh+XTf6XK=VnydMAmtuSEke>D)YdY$ zncDQ~Kb=74o)sY^02;MT@!bCtT$5oPCmO|Uuh0yJN06jW@k>WiiXkW&!a9hF9ff1w z%YvlkkZJ6sja@mcJLyC2RplH%)!;qCO5*?HSXT{aZPYs_E01P4OhFwT@N8mdha2a? zEk-&#eotJg8!Tt^80ajlJptFU+@Bg%m7%g@~DTfLk$vq`QuNmhU91WMT?;USdULwJVRGQWe_Cb80oRPu6Cr{%fNxeD ziCeI~T8(U;m6DhB?2d54asLq~z>wJ0w-X3Id4eskymDFtIet0QguZ(1F=}_b`h;d^ zk?jXP=`Ig6$q&hA{Foyf?6s+Rr?uFiSFeR#p8N=TLD#)>vq(4*SdMc>7*x=UIA@<6 z4t-qL8E?4$qkLb>A97C4CwkO#E$hdx0^M|$L>22Ks+J3|#LiYbHUeRV$()Z zU|Nre0;ffclcRvQ+;W?NLY>}%Yg*Qg)e?L^x50YgLlm`FqvSS zo22&`7JKEe=wvuMr5hLZ+O|E>;moLU(!m(;|HMT-c#7fTb)}+gVh6yuF4%O2@ngOV z9_$_wA!Y(D96dd3^t@}i>41<8@M?hrsX|kHe)!ndN)PLUm0F|w#V=>VKDZ4qjsjOZ zfcZY?l&k(GV{tAI=KG+p<^KQegGw8{PfO|cO9w=C?`(DJ7RT?WhXWX6njH#-1*RTl zQkikGui@;qr(7u3(xkZo;u|n1gME$FkRI5X2{2@?jdzK18+B`%(`Iufk$9P_F^V1I z-|CpF0prBWSrK;8&6KTk)jwY+I;#3mysZ0&u-0w7E`~-nCtGRA2U7j~;-`UcWad;v z@-aSOAeL)pUVa~Ou^r#p#4o3bCJUPSQE;T0n!SB2FGpNVl8v>hbT)jHsg#Tz$*>lX zn46vsA+^yh2fpv*+p4(95?Y*JYcA8 zaUpdi^dZR}mi2!Z8hHz^8KmyPf=UZJQ8!~VM%@tb?Ng;JNlw&K7o9}XNn(Ud;<>v- zH91k_93xRQSc; zL(s@|t}J}b$o0e#e?qR2j=|5QUIya6RwyFZG77l5A5kx65@oLL9JyMNy^vhxIj$D9 z@1VFNS1KCvBG>14HYeA`n(uw@$lCv#ToCsy<1X*1@xnKG)hW3dxGY!OuXH`g-a|d0 zfw-0GtySNN&7=%|=d8x!Bdx~L7%=i2@!a1d3e~wv z_lYVE8ERGk<`mjaz;X;VjN*<$k`pb+uVqi=&hieH3cTv&v2GB?y{2O0P)+U?()_0L^o?3Kbdru?LlRT zi?90$b5qeL0nfGVXnK~~9;a2-AC`QzRpVw)AU9{GX}M%it0!c;N<#vI!J$ zqU=g5S|G~y%vHO$+Mg*p%vGCHgQ~2=|1QzAeDjlMJH|YQDyex}%7smv!(z)d?E<=l zrcIw%*tB~|j#zHh$@!)oK>VLI?N_>&3RW^PWfL-ok;wjHSMpiX|1ej zAN7rzR!<0?%Ii%R=c>I_(=+?8w;M%sO}oQN{QorViQ56dI%%vmtv}_$rnSq}aUnyQ zUc1KCK{EQ835as#Mk^C1=5(>X__dN)@9O{`W`L8wpCrJhb3XOAh-MuPaM7L)Fv^$H z_3~3zw)8E^8Kqz`eA58;H>u0M_wg7*c&fp*A<{nwcZjiaqVd*<&9pSYmX1stNq*`1 zc&2OSecY>ZWoA$Yn?P@}sah%$pV9h{U4oZSc)$&q1ukLte8Quy#MZYVNfKKSpNh4{ z%H~Lv8a+QN(}VAw?aF`d%71*KtIlCiH)Rvmkk3O$AsU7 zdk-C*TjI(z2EpPHiG+aew%!QNOMXQuM6wS|Oc$L^Ab5Lb^LIm|E{ujx9Is9ZvE zzxZf_Vq3S&@!rsAF8@_3NbCSo;Y|Q>_QUtSyqa#2viF&6Juo0zXL7pM7QR=Ie?pn=M1=~=D;<%$nWAgMa=v$~Rlq3=sW38+fRpwhcBJUN*M!Yy z4ZL+9k&mq&_CA$1+oiev&lA)$`8EloW~Txh4?47kh=Bb$4)SId#9^n9CBe3iu&_n(`PkVp_zP_&?Ek)omn zB^IJ6fdmr`OG!XnFofiW1VV01ZdhDVQHe2X)v9&Hx|CWMYONw}xPq-!w7646OEnQi z+_3`p{r=88&%HMb^nL$${d|1*-FeQOnK^Uj%$YMYPpHa=nm)PUQ^cQiZ~BoBbQ|rO z)_o`xRiMj`gh%U5N1Hlav;b;(2Jl})ON*KsS6YjfnLmYHqP6|SoPBuu7<+V;O4MN# zzT_}twYakmklZ-04>!NKyT#u+`z%$crSAf=*|e^`5-ja&6MZqU0zIELkN&`Q{I9HF z*TOZeGvaK1;VNW0L*u#s&8woOFkk3)YhnEz;olpN(RVpk+i}(W>hz8C`I1DdKD}&w z{ySWPaZ<*(DJ1$K%Mhu#w&IaJHH_JlT0voVvt4LjzgD`$)ov|6B(Xu-!GY3o556kS zpAK_jsJABgW>fdYr7rX+Of(Eso#xR~)#BzOw>0XXLvMtf-9cY@^Qp8G?+^3+9$X)o z?nWr{mq=+_Mj!l&ZK6DN0bgAJ(h+ILa)gNwvr@pfCW?UN*PI}r3L5GElm}Yd7*_wu%y$mgVx&r>O)s+S}(Vkh=P+U%>!O6vSBNe zqd$y+unn%$b95cW!8}vU`BUBn%@bA^@pru0%0ecWkkc2)2v-p)(r=wIZjomfZ$uw^ zuVaEA$iMdwQ`u7J$6s1i)$RPcTW(4>;EGdhESkJl+Y?>V zIr60QEeSOwynX4*(I~CFLSwQydmmG+(Z|EZ;z~A$e|A*RybYSeFZn#9sHN|ZFH;bk z^!@Zt&*S&^&+XE^+UaJWt~htfoEj-HM{JQK|M=S`u|xlJGVJ5O-R4aRh@i!dC?H*b0sKwiR{Z_E zb}im=Qc{b*A_DUN)MD4l)71p-AD?fnydI8zEAw43yoUd!q8UOIG4PYIM zNi`ZqFS^G>Vsj_L;K)jbskc7A*ZPQK{E!w83T8b$-qoOyZ?y za~kdlfaZ2L>@i-6?Ev*Bv>{cTlR=}0v^yD8fd4zV25hYF-}0O^E)b1Q zy)=y*80-5asl!(<9oKv5xWfYLn=nHvu}b!0Bb&6(XchHz4^2I941c-xzJv4)t6od4 zCc)p2e`Xv-v@|X)YC1Oe8IqqXYPvv&;unadX*@gJX}97i0qs!yMmUcjQqXkPz}9;P zyFa-?(rIZ`!&p=n^cuQ#c&v3BFLYLb6K9-CIJ&6m92oXIQEpY!$=WhM*BGA6jCT4! zDZx}_u*2z+d@z5|j$t$bd&kwSmeC))prhZd2Q=ynz~ctKG^RIExp4#StdBOoTW46Y ze#)9L88iS9Uaj^SUBNKK>+y5=_ru?4%{J;&$iImBEf=i}`;_j#8Dm*11jU7L*^~FOa8dt~Gd-cQ40kr=M zVC#u~F}wT&)>5Oyf2L5Ak%{}GTv#cT<`7A+EQxPHyzSSia_+FyVnx*CT);R=va@p+ z!XXyz*_xy5D8}`xbxMFgOqNim!2PJg(&~V$eN^!Xj(4q`AWtLvSLeaFW$N2SEfWyJ zyBwe5zLS-E9MjqUAam35S99hIqygN*0({hvUQ2F7NE4cC>4LOTxf0`TI_z7}l)91^ zoC+K#J=|)N949>-LHLN&eplqby>uL-N#B6NGaWb3xg#KU=cv0hd9RanmwC?Nj}k-IoDgR zWcxc6b^@!{rGsgQ=?i(&EpM+&_qJ0;{I%!i?4PI_=ibMt&7%iDr&j4y-ih_BK6J&^ zI;UxCucsH#%2UZPi8`J%tf+Z^GZE1hBCYXpASVOSI z@&{Cfz>Vb4c*~5Hh@T^JtNjCVr?FrUdKdd_9o))&XXR@?&L&x=t@A0*7Gvt!W=vbhKFKM3$qPvfOZ+LVfVQ+rtxQaT1SazlIM$f< zr!vtX{W-u%w3Pb~uvOD@U*fC$4BkS*dwg_f@wr31sBY{0Znb`=+enJfe9sreR&xfl z+k!FV;NAd#?xEX71);UEjqu%%hEheA$u7*$K5OjIPfw5*q%DK-=6e7O1a4h?Zf`I8 zEI$kMv!(KyM`^;B{QocifBlX($=tAE3{XbgAH>g2FfrYHJX*}vsXZQdW9k%{;u$uk z?DSG^i)?Y>Si^|>6B^C7%yQu{7WnS6#F}R*kPsKQ8M9S_S(O1t1I9<397BoF&ch{TK3RQ7;)1yf4*X#P-bm=e=ai5V| zq65dvGiV-g5AX12_&h#=wGU+tCml>5G}&j${OkC-T}42lC2izW5VwS{DdaDj!|7mg zYWjYarb*vr+}mY#7Y)n=4I)pW-OS{?E<;xtI2IdZ_-LS&W>@r^%uwy)XTT8|{fwU> zHIZS3%ivjy$Kf5MrT7{8k>M&ogYIbhRl3k+$Z#13lHsc-U6lrsVTQ}VxUxSzLLOpT z5<`K@)|+faEq|TNKZQ-q-F%m7^xwD?a!1{jeH~9F$HOiM)@$?{S&-)Jn<_B3b^$|PnHBO!au&ERVH3Xj z^f>h*Q5{_r&TGC$`k=^D^HZw7LlS^PlAS{myF=MxotVjI?PFDn&Mhl53}$b zo!IO?%*`;$YbqbfKs=BJQG2PZo2HnY{7=bg(i%o%Z5RK&)@c-NQy8s1cbGNd+#zkM zIP$wt(M04|tABp0u@b+FTIH(G+xoEH8h2Ss6Yt5qb$%t2Ozsm@rdK|5^X0V4dC?T) z1Wt$Dsb;je@4PWoT7FwVK}AhDR3M!Sq`(#v@kcEKnva|!>B$Ihu|RDDjP&i!f4N3wRf_1)8DcLY_F$}q z8MM$=S_9^|@Gto-0>Sx>UhZqW&1o0X0PdC6S;w@$SIXQ$e!ExtE}+`7CR`7zM;-{Z&h&f=!f{n z1g?|BD3AWpf!(&{G_J6@RO9`5xuEeorj3v5m-~ZQoV!uen2%=$y&UUXVl3CRW>B=+ zFQfVrLEg>NCs1AZH8_5&-JR7m#}B_tcUIq4oR$02N&LF`{8qZoLe=fgswqmW@0MTL zz>oF)4}e~tX#ecu%4+C<&e}1=uB`4L>pp%~6a>lKreA)XSdEZu@IG-)uuIuLl**8^ zuC5eWOTkXAbfq<%ncF;-PC0+z1Un0!U1sZlq&)_z&3j0;Sbynw^MGuU#35J{r(J)n z8elc=b!n?~tGzp-qVJf{9F`$nF2?-55L_JdZ#F6~=I44ESYUS?vTrL>4e_~ff1dSU zH}YD}kuIN(u6c|+HmD!A*96Ep2LhC%;lN^hE%Jh7?R?nxZc@n1jm4w>Tb29%B!L8Om&4-Sq61c}r z`OCC4!5qrVD`wM?aBl82Lb?<5V=5nBm`;Y`+^J7QjbK{tsZUf0*;7Kh=!M1nR!`rD z0N}WqO8#9jK^H)N$I2b>8~&j(huc3r$LXKu>_IdlcVz?lb05#;X?3CCIW==;qOgpK4k}G^*tjgW`V=(HSQ}mD>Tk(KK}EiI z&DrLJ%6PcBT%&5hJ_4=xG_Kw} z2BGl&CVNlMyI1X{0v||Uf_qEaY()d@FC6W7SV&)z*Pn-DD@ox%OnB!#BJ9&8pU+h2 zxn;&R$)9u5i1a__WZt3qa6~L9=LJ)+aRV7K8zlYa>@Y4d>t6zAlGiPLBo9R}(uP`6 z{%Ua}3_?VsCGC34F2^U$=|}!M^jB+9Q{zTH6Y%oYuxdP>JA~I1HjmFBCN?D2_cmjL z{rKdj~2ZaKa^O_x+#d0p%LT@uP+NTeY~|khYJ=TYkGxooGYD&#%6Edxdoy z4$$cH#7gVh1dliO^5r-B857N4XR77R*|{|m6nhR2Om8QOd!V;28hy3V^Yu;3QqXjp zRv^yX*6=vb7+)$ko04x<=kOg|d^nRBO8&rPWBg_71-(=S`jqb;VB0P~QuXEge`3&l zn^Q~+`x5iW?Z^FB5hx^k$-;hKuO+wB9=;u?g5-V=gPTR8AZWJRylmC4KU|0-tt$!`Z#|&gTtmG-mPRyZpMkf9VZ8r$5_8WqhK2hB@qOPL>MDCx zZ&kL%RkjeDPzcjSI8V7lHs^OJ=3b4eCKYoxxf4}49ehesaY*uXNL>Ij#YIo;dw1@Q zTdO+In4jhbh8`zWn+77bZCl{vZ0ebeO;E=v0}% ze<9v<$#Ux{Ep1MoVFLLXO)+=V{#eC7e6ou~*0nHHYa0-*Ev`YVtD-sHDx3^NEMZHE1Te_1p7NJpHqr>iUYWfIH4}x{C#q9@V=d9zM_DX9Le>&g5 zD}@Z3k33Mk)hVp@voCUVwiCDGFe`L^ki?hC2DFi;rAl^{OVvF74nNEI$>fSdL>c;| zQuEJ%@Z_6GYo14cW1D*e=-b%l?f|}gjIq#cowOqv-x#+&jL9y}+Y8RIzGqXedhwEN zF~0iMa_*ScAAIrfoggM0S{v(IWJGGy$sqg!wTWA=QlqtyJ5jte+sG}z`xW<{Aa%`m z2c7;$eMYZQcD^@_7RCC$H$<7&v|eSEd13Lnhk4vACrde!M@D=pRMMv4dnngt5MtSs7Z^aSz%s-%4bMu!HOpgTaEMY#z?T)N2GV zEWOtA&Ql?zfcv?x8O5cYg#X*Vm8{2W236qlGl~LdB9v2Lda~yWQpU*d&uUrt>FxH1*SjH z%JFKKP3Ob(s-@@S7G?DH7Qg;%@>*|U^VrkoJ5#^blwuxgrk}Z`=krk~P5vIt=_3-|>##*;g#rJSUB8n<3-VJo*Vou-*}TH`oZIyKToCLH4y`+tTw1 zrgZwn=B?MDvOaoCGCPnuK14hbCNKo_20ZTvbz&xV~lLCL;;5d1^6J?9Us%W zSlL_79of3Tfnn^azTu#*2Cs2YSA(Av?68ZzoV3cLdL6Wc24b=g8sqO-X6F-wMDHHF z$p6L@JDR^g)On&SO&T`tlOSHpMG(7sCZ#7qU5&nGD%)rr+-~|#mzzhQzeGNDPIFHI zBOUebh3TW-J-_?#)ppu@)RD7!bKy5;#LxSD`0Bh-*{6}x>o)hEI_B_`iJl!THl15< z@9ufcJ&#JTyWr28|C(sxH8$kh(ivuzy$;HwV_3RR^G_A!HocnLw7%&ZKC{uBcEli5 zLT+^)UyHnC^kyAvXw2rtXF5EbavRG~R7-3qzjmdz_#dyvrUAa8iAt&I*wI8G;=d~7p`Ll*f>ujMzr zklXa8FQjz83J9q;m4At|R55m8VZaXX^gOm3C)3WAI%0*yssf4qM-uxk^MhWGzMlED z1eVuSF(@PV*-w$?Cwlj4UgnQudOiBKi8D*$)LxLLsGipyqE_=MQO=*ZGlk!% z)#h8+$>38nw~z@I?{ip+CS5BQJ>TZXicsFDAA4P0k7WUz*QdGXi=^g_`l{E}XIa`; zQr@;H;8Bbpi&b@v^2kSR{RJ-*V{c~Px!fVNXFDbRBrE;uyTTy0f zuO(w$sqZ9FY(_>_>R`RorSj}|lU~0PyzXwL@~O=1*OFd8px0>=(_KZ) zHJk!bo)#6@lD+X8ab4xf`f*s!{$dTE>!k<9%q=ntbjE-;??;(xKa7uxE4~&8aTt`Csx6r-X;vuk!|t;q1p& z8t6PsCVKN`ILy}iSzK0Y4W$h~Fm6|8cK)E}zbQO1hOU{+7UvX_g5}O+M&ub^S#uZL zKRvJHpH;(Q-FgFbu|v=K7w-6>=h^cDdoH%;#r9lc&&%w&)Sg$^^GbVOWzTEud96LK zx91J^yvd$7+w)d?-fquj_WZp)@3!Z?_FQhy`|NqYJs-5^3VS|m&qwU}s6AKObCo@x zwCB_ITy4+i?D>K{U$W;~d;ZOyuh{cdd#PA=LUOzV9$;A{MeqG z?D>g3TkZLoJwLbS7JF{B=hyc9)}G(nbDKT?YtQZW+-Xnm1NBIXJ-gX6-JTit+{2z( z_T1B+z3sWTJ^R>mUwihm=K=QYZ_fkmInbVm*mICQ2itRqJrB3%P)IBm;>Mho2_ z^c-WqjVW3wLb)U1GI?}Q>qTfthJ4_w?an=u^95&1__-fbb!!rgnA3zDWtztU-g*K zc3g+5bwXbYeJZ5Cb5!N2-#!rPCA40sT=3Mro2HbqEYQCoqK+^4n^gnFfcMhJ}( zI$Y=sp@Bjd2<bh4*I9i7NL)YHVJJNdQWJF&^nmp_xJ%LJ^^zKY?aTo4ysgT<9~Q7LDYMLXQZ& zCA3E96(RXUZO;k)D6~?jmo(==p+AVr-5`P{i)o3s{KORRgRP#o4xwHT{)$=g8}MTA zf589#&-Pdi_+9Y7z|+D106+Z6_E;YHByj4d+l?Q+?kyy3HT*8zb4P3m_!hjS`@ze= zH-p~>N5MCOQ+w^OeDt5U{FD^05nh8y+XSu#w}7`z`=%%VSiU&$!!>J?PS{UL4Vo<{)T+32JDE{fv*Cu z1Q$`4i@}eAXOcc2{0Mma=oD|+Psk7))O$5;p2qvvNmKhz2A3VUBeoHI0(cR41Ndn0 zIp7uW7z}<9oK>9S9RPj_JaR&cw-EZxSjL?&_4;y$vAt3-~#YU z(kDT`{rD8`y057dSoJ`=y^t;z&9VZBQ|+FGD9}Yj-b8BZ!GD*ITAU* zZz^rM1Kfu;%>1wC{mxIH49#`mSD?uQ-wIw1P6yu)z7qb!puZ2S^3~2|^zX~Ozn8S3 zlTy4tP`}VoJ7VjKQoMV?)nLf1oouapOVQb@NdJoT^T@k_VBe}=?uZS`OYyECJ!jaC z*dx$fOZtZ4PTwyB|Ke!sg-p)@*MnDpYr#)}kEgF@fisSwEc#*^xEOpT{1^X-E`YB= z&rcxzoNQNaU+TOaJe_(DCjC#x?uZSd+)`D5A;O*%1!IA-ZBl!EzJ@3!p z4d6`D9|C*u`4#k!fH#qzj+`C_uLZvZ{R;3B@Vh?GF~_BNo3?r0UzFFEkMwE`ZCM1( zS!0kVZJ7tY11x#>;r&W@oJQK?0sQ629kH$SO)7Xbv@hhOct23)#9Y@8W(SPJy&ij4y(Hmq?N&4g9{^-ym>iaZ!nPdlkxL`-@ZpO$sY*5q5 zJ7Npb(E@PlDU?t8bnwWc9kC3?O9?zjOiuKN?BH6;Jrq70;aLOy{@^9!cf`iPzbAMt z{Ldsk1g;0@@9 z@?Ku=%8}ijN!tdK?~Ml9NtvgSFFi{CO77T>GaIq*p^Kh4F3{efd4ub>4fNGv;45kC)ugB2 zvLm({njPSSZ-pM&^(61lz{^Pgl<_d=Zs@`9LUY)?&}07|{M7S~0*|0>?=asD1xvp8 zTb}00Psmq7T2No5Yd)0!5lu?hJhT>_dxP|UlD-MvJJ8X;EvFse!zlBsKPLEyz6#m& zC;hGaXg4%pG9KnUfV~EHBfbBF?db>74_Cl{$wSPu(7Z|A7p&M3>rHwy_{F~@=)1$e zAN837{gY3kkI>%(%|}n+zo`E|!3IA~ThWjEz+Zwhz(0V$0QZOfTJUCYKVY?D|LYQ@#znzkVJ54fsa-+k2h)1N=DY zDPU5pzM1?hyL2b%AHw5I?0`pqpZPcJ5A;o>4}Wb(EDwA-d_IQf^kY)I7w}8pf=?d! z;{SMF&o}5F=7#y;Uf}-d*)nKWgSSF+J@|WYP_E=O8Tt|M|K^=U`XJQ@dGAH~7U&0| zf4ShL|D-LBkqNjEybc);1{Z)|p)9QdCW3Dw@1CU3`kH=&{$OM> z8{C^ZfB%u^MZh)KvJBe3Na@i3hz-2}d_4FKXf6S_9>w|>J}ux9(lI+bQdJ z;1S679s2Zku=-i!b|t#I3EF>=7Ra?PU3A^qTQ&|`Sap`6#hMeo69f&U5Ce7FSs zCb$l~5d0nZcxa|m<{sZsFXoX6)GGs=#T+=D@+bU&9z$OQ-t#By0(cDgz|@_wh2Rn3 zh2XovL%`R9S0jT@He&z5Pa>xuDeE=xO445?eZA6;Wc-u<0eCIxt)%}Oya9PXj~;yl zR=d`bE}9ph`4j0I!2RI)Bs%gg*yBIRCxw3(lD8K6y}Ip;Re%pgCWFCxe>m^eAIDQ> zSsH2Jh49z{mLI=A>CG8CW7lJEKVc@D1R};Q8PlJ!uzs4){dyK>F}3@FPm6EmOdsfNegf zug=(WXKW~aJ{>vKfLD`uCN$@Rvq(P#{Ach$aJK3R-UQ7ar2o7ZvL}52=_A1FN&or- za&*io(CQRew_4c zz)|vE3;(;pGr{-3^L}s<_#Dz70*?f@kp39>+oAaX$axi5{V)BPPMZG2$g8CFNB_o> z?+<&q_mA;@8EGd`zip)53O){8zW2`9bZ|C&uL75V4+C!o52K$3QP;=!*%`|teJ|4g zyC3}rP6NM42sR4-2HmPWaA&Lz{3*B&TtwcFD1RP!G4*?9U#?B+}Md0lf2!)GZ*cQJ%T=MqpYpxQXkTLkiMabbn>3Q z0el5^gY=2uzE|#y-Orpl7QF8@=rQtXBk!}|Ecmp7ue<>{Bg0ML8*W6N*Y^9#_g2e*RnApIlJgYPGO3wRqc zY$5MYVEKQuNFUuJ7JCOijik>7%P;s9>D_zAVwz9YUo-cN#qJ+Wf06$50kPOJ=<}i9 z=V!6l-Sov|{DqC+t@y7eLcffSrsLtC0)1#yEVdAuq0m$w7mJ+z*$P`mzg+MxYdY{N_)5PaeJyw~>6N7a16)J;BGUg3UP^r?lD-anC49z$Uj=Wa zEmNU+Mf9W}PWtQMjiiqz{WWkmVNAUaPw{zY5WWxTAA*NM^9uN1;HB8NtHAGryFq^^ z^c%n)#q*&}G($h#!0Y8Gyyhr*TV67iK z^7a6)|9Oh{K01~OUJK2m(4>Pm(C_zwyMq_gt{=b|;3e>U3I9j*H&M6Ce4f{Xf9La* zeON>KKG4*_{|4y$fVZLp(@5_NE+V}e`hCG3^*Mp`1HqE>uSp*a9th1~(hmb?fk%-( z+@~Ky`UvnQY{<{3|Iy%$hv5IdMSKVR3OEz`Vc?bE4@e&gz8m}%c}Ia)(5{zA&jr6g z-QFdAEZ9Sa50ZW|xEuIc(oX@;B<~HR7lVtySAa{vBf+;pGZj3Dw%<+q4AH~$LUi>E za27OENS_Ygb}+UPnVbgRBusi4cpZ2W^rheu>UJjSXM$IdE?aRr_*U?6$~qOS_(M80 zqCb!H{Yjq*t^yAvy$W0c{s|qZ1djo~^(MXqcqq6HnhJ0~@P6PLa5wNL_#5-UBhj}F z%fDbs6^fBNp?Dj^|BjA|>={s;O_(^yk56^kvYtW4m@FTwKjA0_=Lu>A7-z(c{Be{TmL z4&DTxYr#Xn{V4azjp!;kDEAP+Ncz1Nntv@p|IzJP;19rxFO8zkDVMqQo2bvtVA+#8 zXg+VEUl@Z2fk$6KKOThsgD*Riegq!?z8pLTyeD`mSmQm0teU_x!6Di^a0d1qn$P}8 zTfjr8&j;Z5z*^6}0sfeaJKJc>2J-$JJP1GVbJAZcgFpD6r2ic}g8E-dS&g&MPx@jJ z_>~Im26!I0M467{RqAlK39Q@XyZwwKQfnjllojudVUS{hbBsT zn4=epYwr)Ad$^qQExKI@9#M~;fJcMRo)0~F=aDz>TYC{9&|E@Zbb4&brvL)I5pVRw=1 zQ}B53x3rt`uO)94M@kf*d6N16N^l8&;yI+>44%vwYJvW4@VDsfP0;)itnvp_&P;r` z;k^HvwEL0E57@7bH^yRG7u?JkF1{&dae$uCJO|Do{dstg_#N{l^q(+){0E#tKed8S zyP0xm=N-_z4A%PL{nv>h+=9ITzX8qT;G4kbLUY)y^b`02@YCSw)bU^7b+=(hNN>fb z%(8=(Zs0>mKlLv37@SS|AHmxPF#btD;BM*( z-j8ur2G%-f1@e9fEWLad9JWrqZ7ad7sBvK9#g9k!2Bh$RF^#z)|vr{+Q4+>E8hG;QOIjM}6mlSAahPZv-n2xDuTI zApH-18N3QyLRlZb#@zi7@&=y^&y&HQACQ96!rZrl^aJsM(ZOziPSmF#^{FHMUh?)M zeLZq*gy%Wnf$&*P`mKLK2H=(C{WEwVFdE8!DoZ}t)@T0Iq+Qkf~#i{^ke@R`S9^3~$ z8%X~N?13MH&yV0i?U$>7z{ zg#7dk{ZqVOQjXG>QvMg%oJrtVER^jH;LJg0Ysednb`0O^y^uGSY3-Cjq(qo!eiKRu z-5A;*jS6MH!}ZzFIBLWCIu<&@8^}D6`Hzry7%o!#lgKiAz!vThscJWbGT#q*cZ3=t6YoCWQ0C!`3%wD%9G`WzH-)O~CcURuf?w97 zDdd%&AQp~x2xBsRk#`h4#$?U)iUJ-Vne{=f45ulM^} zJ@&Yfn^82VI7^K!^4q$vcNS+9y5Ae}!t{OJo_`8?7n~A*r}}rD?_h5RK3YaIMp^kX zc7)j3CqfhI^<~KWTWG3SB=z+lQsaGnTPl5xM!pvsd4H;RZ3>#UB4y+~sa|VJwab&` z(dj4lp6N|O&*-~-y%DHo+VvrC)B)5#6Gb~SsDEz{rOZ!_c$2c`d1uf+yXouQ@i|C; z3w&4x%^yj7#%0_V@=ifmGkRSe@@k5Mdi}5d9L~^7FY!*lxH*M+<}r#YSndx&ak#zt-=K~t6SM#!s!=Hk%)eBttzkf@B;ex7vim?uKs z8T;VW_J1JcT@j4OS3=$(HeE7Tr+G&*h>A0xNb@T9doj&BA5K??vi_0=Cyc?}AtgSc zVe^kr);($7yGs2yv=6D@DfRM{th>^@>rzO)HASfprI7k;O4gle-anN3mZi2S^{14q zJJP(%Q%SuhRkU}dlKR)wtlQGOXO;RlOZ}Hpzf8@#CC&RusY|+v_Qr0c{;^xu@6x=# zcI%CO==O6`Tf1G0t@z*V?PJZ&IL8|bmlJx`coW?C+}AtK^N!o&F5i4*{T9<#;Pcz{ z*s?y$^L}-(uWP&3`Gedzx+54zzhN9vgR^^}Bj=G#x|iowuujVObE;R9#blpxZ7Oag zJ=+}0x+E3*3;ca3>s!{0A>OYFWqiz(BH6DGow$x&p%iK_K3UerkrD4qXFHDaa`3Zy z|HMWh1Ey-^7py))Bl)={gg#u9lJzdj&6M6BFbSvB`)%&+G1B=z{nij_;M$jEb~Jse zH@0h=v^!hT+q(pQmxR)92*K6y+qGPeK=%(W^@?0M`+C1*-PE7)bqe)8t3TuG98D*# zt^fD5%v`4HA9VMQJcwHoS)00h)0z4j1unu=AmhyEx_iq){n@h*_54eB?`4Vi{ZQuJ z-MvkrqnR>NGNHXAg|4_SrT0(i-YUTtQ~Ge*?Onl5DZRI*d*7xomTpcxfV0_8q-Orm z-TORspZB_ZS9i+--@+Fmy=M&my&Hvo)GhOt?%rqJ$o*Zn{jTipU8#@d+@01N+DFnT z|E0A4uXp!8PJ`f!v;%gedzYuf{(+4YWmJIJlmDHS)1-wxr_K7U)K~8@xNuI|F|> z^T7k0f(sY}w8dQ&>>ejxqOhcmo4(qZ{i`r#`wynDJ+{A1mF1J`tC(op$}L*8<-E$@+e z#a`Z@d%)~(J@y4|?135DYN69(7p55XJzi^CWD zUz9GjQoF}^Gg(WfKg`U)+`BY%GU$y^6va$Qzdy};B?SimN!k0sH1CI$GueGj%>sUy zdh&`i?DXxD-7Skl&^H5{Ln)7^rM5_A?g(W9m*aLZ*bW7Lq||RLb-UnIDOsf6tS|Df zNy+?cTI#wKM(Y5^yGC@~_Y8`FJ`?l4uZ=?4eI{977fIGXVew}*6UENb} zlY%Ypwh!=$ZuGz#-Hy1Ud+LsEi}2FZ(r@UVdP#c5_1#lj(tF+9J@v2Yy>9BB`a-&T zKD{^alXOPR_Vhh@cSZL+0@2;~UY6l)?5;lPz87$N_hbDE*QpLM?9FmovplpHCjW7n z{1-!e0ACAH_9vmezGgwMIpN}zJ%CrH$iS-ZeM5U3k#T8C>M@sUOi2I(9lze*<&az+ z>iJU0yFN78${6UKHZ_%A zUAVq7Qa`U4e&x|feNLx@1=Z22NwengcDL`6$*LPB*GCpEqP$b8Ybz#Ij#F_eenNQO ztZ;oip*%vP>gP3-M4*pG$|F>*KHN|jsjVO_QKkBDw5+<8S2f|XhOk%GNJV|@UX6=1 z)<(T^BDGe|_d44pD`oL5#?SK|w=xGK_EQ&AGGpI2RLB2Rjk6R8W=PMuOj^E#%Eudbncx=QVW zxFkHUu2TkA@FbN`8?BDkgey9c?DnNqPFYT+4tHt4H z6tOhqG*m?vOjef3Wwqg&_KoNuquk19xW1^YA$lqb5Lqy;CejeDXjiz)P+*!mB`hiC z&~?+Q8>(lizRK0UguF=k+zH{@#&%q&U`@?rbS7LI&9ASQ{w52Yu`wk)ySjnOjE~e$ z3D1i}!^uOUL4wH(&#x{Imqg}Lg^sz$msQu4ME*CAU6oxPuAU$6TyDE^iW}?dBK6UR z;&6FmJ;V)YcNs!pL~DE}x5o`^wWY8&N|W2al`QgW%Oe%LXM#}j!vB*>%*I7fyV}O^ zRP0Y~d9-?db###=R zWad>@!PS%W5p@e(PEiTHDCe;h5Tjh^HlgY)m66Pl<=Z<@14fxVtnS&rgCiV zqM``@RG$-u6w6vYzpRE%X|J}YBFFJq@rJ6Rvc}r-Dn?Q}u2gb&ua&)^x}v?f$U1!|oJFA}cS;yA9o@|#Y;;zjtEg#1q zm>n)IuMdZ7CzsWi%?mTS+siyoHL1M3rm+G2>pYe;<1nX%EAr5TggmC!md$6(Yy7pV zQaf_^`w~jfmPYEUXEQ(4ls1&j4_B1VT2wk|KDtYXlqL;fvUck3it37dhBGt!*s}7u zC)G2Vxj8;*X3x>2KNV+SktX|D&@qcM(!JV7O{r4qqKH(hqMCsksV%Fwk?JPyh8(6@ zbhII-ToYxE*O<)6n_4n{q?`Jj{~%`LBJ=8M!tI7G6&TmZh@Ka&*SIUpvpVHgR8(7m zH4>yts;g@lU$ck-7@lu~h@81hr(qs`u5pd^_2Js`MdN6K<;kmVkj!%{kXe*Tpmug) z1!D>4C5+X8L19ClW^co8B#w*J$Y*ipdm?%e6kb@1p$bo`4Hs3{A|{ny8>wA1kAbR+ zTZ&(v&x7yHS}L!ngt6Im(P@lpEQC~tDQZ?^VepH>7hp!MtaeSFP+eP6 zJuf^q99_VGD-Jg(1C6jQDUL?!>NK%eH~3JE8&@A`kO!#Qws2k@(}42il$Xt`E5mZ+ z)FqGFSxBxi%48?kOSyCL81V++S0C;&k9-C9mgd)nnP9@M$EViU*f^jEPI52s2f7xe z%h0YSG)UT!PbcBqEYKLJUsM-$a~&@ySK(exw9#g**JMJKai5%bk&7dO3r>aPS=(F_ zf8AwDN(DL)v7RH=a_y;i0X4ZM!6aF)WjO# zkD20Aaw{gH4v~5W7ln0PX9S~Qa+!1wQ3MHzH4BN(0{El12$SAeHrtJ08w0+@B0pYG zV*{?c8(L^uUbqsw$}%Wn`o>1IbcodANMJvtZ8Ap1ew#bJkk=t{L@HIwjiP+B8f|EG znJRh{8pFPzq-1hIxU2$?vN~K-(O`aM$I)-AvJOT;O_9P#x(SO5r9Wg(E}k^eUuQ*Z zxzdp1yFOY2Dwo=ngVl^wz=kpBC$}H#2{!R89oW%j!Fq09V^mgmT%>N17qK-S%?V7l zCR+S_>%u8c=Jmk@fSRdi#|1-LKLVP#DGm|}=h3y;M9U&&s9}W0wPP#_9V8mXShTsq z8B3Y2d6D^He;RX@(_D|%B^eQuQ@aL)D~cOuxv|8mwLV;jV>iDB101MgvN|>1~RGpF@y50YiAcPVtq5uH|23V>RXfvOt3Yqhi4^NO_Bd3 z$=21Bm51r&dQ1nSrm)t%S%9kfrOB>W&ue79iPYQ3n;));)Xig}8rxW1Q$dogyu(npMf+S^7KA#Mb`QpSMqEPJI?%PUP()hqRzioOSRHO-vh3`AbssXS!p zU{l^CX6;niy%qZ|l9LKl@6q=`v0V_iuZUAfI@CjFro@M7vNVIvj5~hqU16J6WUk#n zNA~fFW@>E({!VRJHbB9#>hihfm)Wc%V`Y>c2BF;6zK%pQL15y%dEtucvf>C6beLh_ z9Gyaq2nW5gN(|C)_s`MppJUuVBiujPj%lg6ff^|BX--pLscKO=U*4gsMro8axSype z8m%j>_bs%mNohm-s+2N1%PLE;1FD1mRVDPVYN3Bs4gH(#Ixe}#rwpBDGV$xyuCI94 zv3?!jo7h}^JHB#k+t>kTF;Ge*{l483ff?K%ZO^rWy1Dp77k|8vlFwgKZzCA z22G8W`(AOlVN#`^dqL8KR;m{J#45`gWixrsc*#BBV~q~id*P0CvANV{Tn2YEJUddq z$Sdtk)j3IFM4NFv4YLNvqBOxnQl`KT$~w->WFkYCuj5SYZK87`4Qg$NX|R0>6O+7X zmeuvBRM#y8T$j;hBqRZb|wSW~0+ zKBTk%i6N4(b4h8oP-o@H3cFE}4r-L+O|1(%nf+N4Ngqv4X4(?(t68#_`D+oN@BNq4jsy#WJ{I{!yF0S=>E%cS zy--|TTTVoS^%4$6Sk9-npq|)BNkonWg+=DMKxPj90;ULuk|m+5rAK?CuJ<|wl@zX( z)tXdkT>N#-*hO03$stuE6W&r_^E9`XHI#>I-Rh+QT?<#_*4LLUnyPS5u=I^6mgme_ zA#SZ-8NY3)raBC}rMcZ{@-AHzBPrGFq?inYRDGg6Ec=4^lzS&X5q~_Ov{95VYWKor zq-@Rj<06r{)r2cddu^~x31g5NSPRillOs3}*wqFX^N@}pt;*`zjq=qAf&?+T*B6;&1c?zv^8H;%5G&UzM?u3W{PGQC3pcFjsH=sw7m|$R`v|$X6J{bEc7n znpM~{cY*=YVM)vKO1%<{>R)WTMy2|s zHoPDZTo?62*kgkNZQj-XWJB25v(iLeN;`C+X;GpUf#aOW(22k;3p=n0h7W_+_b;`t zlBfc@hB+oi66|c)LN#YDqm9`nTFE*#zMhG?J+69u%zF0Y-1I108BDW*5eOFt3&!}W zFjxx_POqIkmIV;OA1%})^Hj4*l|_E6F*m=Mkxt)DX3v)xQAJKeSq&prYN`$j=={)w z1urz^1nB{txLO1rgW<3l`x;6kMi9Wdz3*zm2~54uKI{?>o5% z%hVuKJfx76*~pbKAZ}N(v-!-M6}FdYX9emS>t}~?vl_I6h!BH5E@hQjAB7ch47`H| z_betjj>TUvKFs7A3@;i=_?G~{JWCE{mHe8rI@Bk=2rIS_T~391Y+l*IT*f(@GH!!y zT;4>tvkE8<6g8OIsF>RnsE9{$1A0jxJMF*5TDqMC8yr-g%xd?8C26aCQUw4hNLW}`7(KIdR9e< z+o_*|+U&;eRXf{G(+G}@E5m=N@hYVqa;o630p-I$F|2krw^*TFy>)fRp%*85hNkXf z@ZvL>_vD9~1D*8eunwuE#xI~LrD}3S8Z;egKO>ij%>w7LTCA&>)zqv+m@%$>N#>xW zq|1JCbqYcZ(P&Lh5}!a#6Ty+Lx|%(k2}#icGzUl1EQ?7k=^e2M7lXwivY2QyNsrTrNd6tVWg`uTnev=%Px=_3GkvP}8nn1$FP@T_8@iW;d^s+P51j zYw>R0$7Rq3O(2ynUdc6$%c+a^%GzFXiFHljcqEjvt7axEfFD{&3JeExN3GlT@$H`H z+dVYSIV7@szWti!wqe{-Damxo>GU^NF=UN3L^V1vEe*J$I7w{%nKa<*y!m9tijKAC zTynM_Y41=%JUu8Wp3ttuF68WNb5Msa2yCg4T&pfM)#$amznL)75xHV4Ou$xLBp)S0}18W^V~+)+N4>C&t` zOyc=;R>0o*+YOOgqMGe%hbEwp8KdX8YTHrbxUhGB-2P zsDupU!)Sg{?8U^x<}tBrowK2_7%R0z?Iy$=m#SBq5Gzp_b6cz^93h$?u<}cB!-OSF zBRh)oaiz-VYAj82#3f@+9O{BI9i-7kk0)1w*T+vR){Yw!l!a!dCD#g7oR(a(KsWrJ z@~h?+jScv0*5&aXH+&rCRDX($%hmR1j8K7Y7ocz){5`W=_IU}`;2O9ClJ01!PL@uw z?YI1zu)>tVy4>kyA`{1~Dk|bMI-NP*;)WJIEUcUu4p-0-1TW(?(v#qvFd^s z9G-ATui^>byz1GQ>>wOO;DiHyoc@x-Z^{~p_#rgeQU9$|6TKE$FsRIA@|UEG8E72O z)b3vpr=e%Ne38>>B3C;nYQ5L4-cpTDZSgubMpWZFHBe{Q+A}Ndl+i3+vIL!(?38mC zbe;Gq2otGQgt1r~_sF+m?4rO0al_U(KJB*o8{)?+n1R@I!s6k=gewYlUW@5K4P-qW z-&|&}S2k44#oB6*p}KOB2%MXzjtL56QH)Q+vAMB}f?*4}x=*uk*ta9`qji)yJja_? zk!{5voqensUf1V|LoMyj8hMJ1;gV}hS9R!O|D(~4PUcQ7Jc%L~lxgRtRMW0IJn7a^ zeiCk#&Y~5cqA)wQA&BIZM0_L9w69wL9I*E{SK=gE1jlEB^6GhIHF=zAj53S6BLc-N zn^+cN0TDcy71Zo7r}=~T7D~d#%GL)vQ?3stl+_aKujfb!W;Xg(4zAQ;-Y9L0rxJMDb{Kid;;gsX`ZjV zR;j{aLI0pOnw308>2K6N}4wUOcT!-H{~X^H%DLnj_!5AHxD zogwvAKcLlq3mVGFW3dc&SQNLDQEO)b+u7|JI~P9=rFRu_Lv@yo>%<{oX|!4L8XYuF zKKHEX6C;qJ$aRj&>fGQ=wsN?$Q8v0b8zcc0=8d1`pZe8sDsOk9*(*yvD6BnTU$|IU zZF%K1))VltZ5JI{aF&eL)#50}hmfmJNz*rJ1KzK&?xUY|r`3ZlC=e&)QOD)9-z>OwVrBVz*3t*vmANntG= z8g{!XjAA>x>sAo{j|4w=JfM1)x~P6Ho?Bg)msiBBgl}b4lNu_DPl^6qWy8)NVm2pO zMvHQ4Y{u`el`06(`JRcVqp!M~Vqx|L;aPReHCQC>f@yfO7SIi?92a^_X1IXP$gQo7 zFpr}PI_AX*sbKXU(KQ>C*Y+^H_`Yn{uY-~5Ph`I5tjOtDqn*`sBjnnG7L!jR(L89h=e?a6UMV=D|f|=f`$%O0Vqf@K= z(3xtv7XE?p&O17sFsv!I2}VVk*|a%4oOF0T*r}2m>8>!~k9B#9y^~nV+im#=LP{(G z{cbFEdnl?x7h~Cum{`?JuWfX7d8FT@?rc{e+*+;rv|pKI_!16BaP%T>@q$etU)TzF z`$m-ATif-)zz1%gdO};qo(XGm{4`);ZDKC5nFg)3QJ4^5F#RQ+%Lq{TJr z+39wOr)k)8=We7kKAh$UD(A6-!Vy4sUY0s@&{YO_GBH9rXP(R9TSKgICD)HQ4?mal zrdnB`w@8}f5OR*{5;p}j2gzJ(GZe+vaST~zXUDxx7Rg`eyL&OpYs#a+?A%=TO*pqf z9pjgJO~fK}&2T2%W&uA6l#~*L5%O%4FgSDXPl4nqbDCn;jomc}Z`$OEiOJIUFqmg8 znZx0_Kb6#xfypQhVzK|fE-z?i$CVE*>!`+d)S!!dJCdRe#<)76UD7=ZTgKN<$y1^9 z(X0xys&3;1);wvB=c__-rSH07Ak>D8=t5+p40gNjnrqHw$+&LOm(Je+d~h( z?^W$iYw!31k9A71)^`c2li3(gUY@g7(dx7F+QZypdnaqtSZ6+2G}2gJ6lJbEUADl9Bd%4i#kF)cYzKk-aUoARX*hWJoGc7{^$2oPeuFlQbiJP&WU`^UmtzmjsdR>kcI7L?a|&CkteG|J>~@$P7VGrJic50a=stL1e}dbB zi5APnil6HVJRVn|Sv&OF?bW#`so8YjVEEKbCE6{Kj1HpltE{4_l@T{Fm^ZAjy|pvmPx#zsl5KgG9K&Grp5nd)kiW1F z@#(}#z{`aaxG&m}q}q1UBxyb}Rgb$FIsSUUe~gZs2NKHlBzXmRj|$rMqSV%#|5es z`g04Lju-DZmlv$SO~T1Bkg0@a%*7AvD*9vLI)BhL*uPF0+%RMf$X%X#L{C2}7NwWy zH6BiF{AP@;D{!yfkz8g6$1YGv3lL&b6(@}E7rCOwE{a?6sj&G$W zRZiG_Njm0HU(Rm0t4RD*YjA_iB<}A#1$M`END#FN;+B56pi9GROEUk$vYk(eWZVpLG_7N6257rl|uUgDP*Fu8MT*N~T#iuX> zb6ReGH4|ts=+tB`^6&=v1aQ|(P zeK!^8%qP)=940$vM6RyOKM0PnF{a%$&ZM-CK`vQ<|4qc|MAHJHW2X41PK~3=i8Et< z$U4DG-O2&D;@~?j@j^Pjz>SXYf(2Y)t;}`+Fo$WkF&sa-%mioNSJYn~`u5eoEvq{j zcHk`H_BQ2u=Ahxh9qNk2U1x;J%}zoS5&q%Z-4@LO^JMxS+e# zwmO%XC^w|b=TZid_ryKt4yshL8=54Y+6|c#c{P2{eysMQwX?07B=pY$0rRS(Imp!i zjDz#4I4Mgk+_qOOY~arsHZwA|G;IdcNTsa@wGnFrPX`l%S8hizSLe6w+>dJE6jLm0 zGFNY^PEM%tff^^=P5U%q4)HJ66t z`ZU@%Tat~?Zd_Y)1D)q$yTrP=6dVqhH;u^r!&J^t@SQ4u>BMs0kD&YCuj-J_WTN+7 zc=EE_ws`SBbX8`dmqdk2B7wt8WvHN237g*Pl1!_=+uyFItdj1t0;;`o!dG7z!0RBh zA-p29M^jl!@L*UxeunjJZ29|z|_Qd5`vSjs#{k;2~DyT5{ zVXJ{a!}KOlJyW>EZnRz{e&u*al`mY#=?@&eM&c~QYcYvlP4z5#w@&_>9Vl>D7~|^; zZoJYzNRuO5z9J>n*X=K2p!=@2+O@vH+ zZ!3r}l(zS(?B{NRJYH#6U8d%uI@*aw8iBnkt>P%N1dtqTBzd(%ddhN$K47hQllE%0O^gKk?O-_>ozEZLgdC@ljfu7>J4U zQVK!1g-z1oDtD+lsqJgWt5-SJEAIpf8w?3ff|%Yum@X@>OkYNqdW>Pjaz zJ9U27H4IeVSBcK;>{>~nbAk(InNE`Hs70MQW8eIb8+FkDXDnnK{DrfBQm(x*W5vdoJ$UVb@mQmq`~Bau=nvn<3)Tbnc@6b61mhCvF;s%z*9Y7>S~bc?Z^{w>!9D zNq(i18~{o=9;WVSN)i5uKVj|Sq-j7In1e3JT`(tj5tzW;`5C?-y7D$m2#K{Dt*ZCq zJATjzBh}#gt{qjE(`YA&PHQ)@`ql7d)WN^$BCo&F@33{)j?n3m`6#m zde*j{OSpo@C~lki$kHz6bfar0l=fbdKS1S5$^8gs{?6HU;Z4~AP>X?EAVm594|{I{ zpH+3Ojqh`kFsX<`El%|q0Rhbf0Rjpn1Q3)tfGC9|WPoT$LJ|Tv73)~5ma4Vbk=n`H zYPGgit5v?%wzgJF9a^Whw6#hnrGvND>h1qodq4ZU=RJ9suf4aw?|#4g&#Pgdv!6Yz zz4qE`uRR{W??(0(^gALc7O^Ze^$Tr{?}a&HSRf9Lr5p@`-9(Qy*Zeuj`t+2MKVr&( zJbP9-i`v?`q#X-bxiS;`(vP~_(Ycr-&31=$Yx1Dqa`^RA86xYh#xqID6p!0+g}GhG zZoJ~p6AdVlH9y@UQ8{SlPKla&f7H@G#pgu1Z5z_kV^=5~5uz3SDOj5x=yQ}XUDT@W z6PDHbr3xQB&d^r8*O4xAOhRrfL6qEpVt0c0WbG`tY`(CwrC1y4ci6DU&Wrma^-C~E z4c^S*RctbeK3M@V!-J>HmJll|&eJ}EBeI8RquujtbCQ`F@pbn~$vssz zlXdH4+LXJUAfi(1?h-37vL(45;C6<}e1{B=xe_gD)HY(r17;RLpWU^*xYZuvwiD~V zKz4CPB+(DIz?%2~IOd&rdjx#36%mv5lPhgZY>Mui)j~Z5yEw*2iEEm&`HnwVQ=d71-D=CzWB#^~gLnR&Bt1 zDGL`SP-M*FSQ?=*9V}CeIHDt2VL^$TwB5`q7-QdMrvla(-D#zEEU(C%;Ua7(vb({o za?}D~iIFE#;q<`XDCGG?YCtpgJ}c@s8d&3(o2!YQ+FeM)vizum$@f>g?FimO55U z2<>|G+0u;aAa8P`W^NlC0b)S~+pwhJ_XV`YS0qDhRzj+9zYP|%(Z0mUIW2PsE{{Ja zH)M$3wK@_7wW<26@vJz-BWrs(m|OYY0y%RbGxu*uKGN|?B(E3z$q8Vp+;_7r66WIkMDZlOOq?P%b45TbM7EIAK;9eu{b&#;4 z+%T%(jupEvVnt%vOA6xl+9kVNU!QgHp%EL=%clrSGLh_B@>j0OqEJ(k8`5Yqt%C-f zZOKq~sU))-MA8t#;L#udi4d|#%wr&lofMfRWFDg8 zR`+hVk3A7`wtSnT-L8JH`)coOY@RC%#&Sb2j>O0wY{)0qM%=sTzPQhn7Ae;?h{2qt z6h-Uz$e9U-Z}5l}6>?bF!KjdW|>vhId)JZ3fePo?^8Tc)O&pMG!xx2&br)X25W*fP{8Ov6Re zegZmYLK!s2MgwbVJJsW)#q}9EZ%M_WW^~YUr>Z+2$x&hMOk<@A_2}0M;da0#vRAt6 z`ZaG%vyMG{s z(e!9^wb_8vZ46vw9QcAujiAfM(Z2{zsOs!GElEe#dSZ~7M)@`9gBZryZgLde4 zWRX>}*$V{q^X=@A^BmTkOOT0GBdos3b=6#}#QNxLY=`5OCH{^NyNlbuxVt#I<&<^e zb`9wlWx}UjdbZ@P7`XYsepetn*I0g_KG7K}V_Uj%^P#Wj*K3zAv z>#k?UfDjkf+KX=dmA5=gQQwPxMegYB!e_qV;G$@o2!hLfw&*qZw0T|P&E?aM9n0&m z0Y*ahwY6;N#kI1V*Kfc@78(C@-AN~mOj}`z_w?4g`uA^sZa0Se>^?=n-QtBqSM|+Z z@&rZO)M8i2YzvYAU=P~6oPEIItv;ARmSl7nkQoHug7fzxg$RSa*Y=hMd9^Vy#elP1 zau5T@o#mTQ63Vtpd}76BfOm}7(9PnSIp>3j{+h7n`lfbU>Q>yK%)!b&;9PDX7*UBWuME2@FLFF>#jV-JaPbnK; zBA;v@Tm#}JEg^{;A%(0xnU=v^OD`(b^;#|vmN&Y4typH&209}M25rHX?hNm_v*mZ^sk+cEZ9A4lTV!oJP+Q)(v3B-kRl3VrT77d%XMHbDIzlGhZ3Ezl z^Tjoh7&Iij#Y1NP>iZ#$%~lOrB|=$m788{LF=HZaTqthbjOmzu89LwWWTp507p^z= zeY!9a`QYw?{5P8W{;gF$N>qxGWl!AIpo3Yyp{*x!LyX9+Peq*_?c1VtEm8O84m?M_ z8(Jd7lC5MBY!xw-`^D)vvG*-wq-bbcXJT_p_GPV(-=f8J=mOWo6k?o=OxPXhqT0UghsW5$rK_qM* z991xwZ0(tVKWIF;fua;}{G0_KQVbw!{EU<`&u9rgAxRjW=GLyPn-2WPjle({_VK4_ z5<^s9g#00g`Ji%lMkH4yW2zdZtd4<2ossav;L{EMvh7`?OTVLcnhoa zQJBKuNRw>MjYgx};&kn}Icn}~=@Aig`ldPR?Ti|7$8CU((T3w;=p^KObEPtOfreP$ zx<1<9p9Pjz9Tn; z5d+zlrUcgG>e`yxd2`l8_8d>th1m>|lGs~}a5NTFlADf;?6RUX#H?U0HYPb_2UpbI zhJC?NNrY`eHoRyX%bL>C(l}*_A^-fI@Zwco9TN*d|LBcSQAk*g{I!gV9+4Kb&W)`^y z6YKRlI~x!+VO-|@5U{;Xw&KS5_2Sa@OwW?p_l16rv!37tPjgsF>jBL@t#TQiWwaPV zTz0k>B-gvs=LR>Oy3sK1`jTsR%x1Ax$Q-GP#qQKzv<2f^o6^LIQzlNFJZ194sZ*v- zsH~hYVRGdp49%)4%PVJ3o;ayu^5jXClWQhTnLKAw&6J9Xl~XDwPMI=gLdBGt36m-( zPN*?3`fz4jX6mFho4!eImLlF(Q+0m*qPk^rv}pR$r59FA&U&3VVQo`ol_`^H*`BgS zw5)Tbo9r%I-&qE0yA0PF;UkZB)az6flu6k}yX;hE3tqwl;U&;rWumz3nqQe%qH<|e ztDoSk$7*1289JYMSBdh1i?J&vRM~IJb)q&-%Jle2B!a=2{_@Wne0#t*IKmOMTO-)q zrlx}-MEY*-WIBF?6uEGby%7cpHmeCL7keiYrLsfF2*b$;V><{NZvmI2#V+jX!bniQ z&xp>P`zhCVmSPP|%;r)IanXa|!VGA`#0o|PJqPuQ_Ik2T9>m5sodXA-WX3p zeo_(N9@#S1{4YgB=PJFju*eNA>!;QIe0C}+_Sb3N+1@Xam|A&anppnXhfIt_{d(gs#VnUa zcEV#~aY@AY5<0pXV$(MvCsG!V|E$&kZ?iZbiHIk9Iv`j<{wd_5&@j4eLsFQ`{6p3PRb7?!C(X=ZjPkFW*j~j0r(XV@$Da2LG&e1#dd(v6TL z+N5)L?QjJ!a=(X0r_3ah}?Kkb$H2(bZ!|SC5NUkCt&R zto0h-YezQmHD>jaWs6sxwI-6Q=~WUkp~QKX!~rt=kGr zc=@^ho}c}yJ_G937o=Y7?Bu(fpLDZ`N&gPH(}gw<?c9x^_>vdY ziak${X?ViA6nvNS6wBsw7XG2!IZ%t)srBy}q#< z$6IA-iO;e^lkvv=#{TX9p`kX8c3^~ElIh>!A*`2z=ls6=8gpi2H;f<5fwai?-y@uK zlEsncs1cLwG9ib`kW~PCO;fDeGF6MoHD6gR-FEORk*pyv^)1$YLcF8?!M9k&z@?c6 zB#b$%`Lm%~u{6~;bctOi_Q-hxEk^NR6|vo968kzGZg0%5S+b;V?t-)CEUTYAzpiH1 zf;sgI7N1s^NxsH^4z?6Flq|%f&#@Dukfr#-zqDA3?S#c5ullW!&{{-!U7rX!wj`jSX78LY$0L1U0Q-eZ9+9Pr;?0=xE`@IisvvlY{0GtS5_16#Z|uTYTnra?m#N{~ zN;i1$uXUKyMz1rvd;&x~K2X#EHEOdhjpmEdBJBYeyhpIO-7E-Ns~99PKWEz^v)u-r z86LSn=*F96Nk;6`^-$zl3A$vKwXDaaI2uo!zG&TOte6Wf5qTe%$!=N8d`E}xk!$C= z&4Ipj{(ZJvbhWbP{m>b7`->o*>1M!p%n2B=Azf>5bhS6i(vTl78=SjuYl0Py+HVKf zv41$RT0Otn^uNuo8OBr5FxAL^1X1ZJBi6Hd$e7Ve3uTEIEliXm_IPoS6Pl;xXJE&>v+7?s%5xR{Ix40C^QeSl9=;{-(56chUu-=3jhLSnu6>G3g;!gETgKofb zO@pl0$nuKqf!qv;UFyp2Z{uj4_>zmC$dDT4Hn(XBrIiT)*=x))b2E^{wTn~sGB~%= zLMkV4ApbQgGVG&H#Ub^!d<*Ym~!=u#~w{?vJ~S{UU>c(Jpvb7{BF%$ zP?b4t&T_Zq5(7xPciL%mH?G3y(7mEXug4Z6yJ?2E97A5M7rJSy2HZ-QE1`>ISDqki zSaGuS>+F=}&uMEcFa3IO+zK#*l+AmX_0Ynmt;a4yW>ldYnTRl8i&t_*+vg50*V(I} zVcK9a5Q-Yg++Avj8t4i zbZ*pu+$F17SZaj5$Pr&pgIgm^Fd)8-1R{h2K>M|I*-ZsFUS@S*%&T}d(f45S!bsfR zU>A|!46tNz-Ew;z%gkRicX4Ja64s_YC=$tC*m0#=i8{slB~E9EcFgQh?tfmtN@hjk z>X8@e5~UPW6|Qk4Ma=bqJx%rgi>lK5G}e2QMNT**Rsf*`v78G7Mm~H|)77?;mWZ8U zW- zQONh+dN<3!O-vj#AA2!1)_jB!(%kGNEB17VtkAVITiFy@qqs;15zj#h&-`>2yYCGD z(*`MyR9IPy&n)#&)!TK}=**gBi{>vnZCd141l)o)haT8-H8C^h=n>mqx~2$yj|`|9 zBk7CUWnhJcHeNs1v<*w|_$aruepzwkv_M3@N=Ja(*ziw0-?QWR^%IySTD}`om=$&2%gTHAHamfZ_L&j5(e0S8b+dLzs?nJbc9@CFQTv(_ zb!e}n%D&Q6Slv_^d*vJ8 zTd-9!bC|%XK5HIjsm0tTv(q6M9=gqLFd^iKw;ZjtTi@+0(-LmM!R)PkSpl_cZx)Lh zFjj5Gbx;|>v4%v0RaauQ$d?5%F11@iq!M8I_cNYR6Xc(_x;t~4au6LAj`!xtW zvBM33Eq!32A9T8_bltz!c1GXA(I<}LV);cFg`JN=mGF{8;}Hdwp)@~z)79&01g*5Y z5qpKPH4V8y@?-^AcByUdYU(pkOqpGu^YLv4XP=Joo)Fpjb|rM!>Xj@jY>v#?J4{U` z06$e0*?U~GFp$=EB+oRG`eUlP7|LuB`l~OF>WxZRXZ1tx@My}Dj;9S$Q z8bp$()S^;t`+{J$uCuqGNUclz$Ce%Ihy8lKdz^V{U-e9}crr3pJfjLrQt{>E7&^)2 zf171ojzta5lSz2O)-JSRx56j3@Cv^xUxw;svfE0i z5`7hqB1Au6d}1x$s0qDKkGJhIhI&m`*J5x|Rw|hVPq@&)1TQc`#7GQecW?8jC{{15 zS&j{Q%V3D3I(*;Nz_EI>H6#=Q?XFH6z_-b0PTdkQ&}Ckv+F+}RiA#gEP0Ta&*br{E zB2%4cXOUC;7%s`4sZ1IeY|6eHd??UurjiYW{yK7d`n8{d-JcCCza8{j&RW8u1N~PY zEhS)&w>Hbpk+YOAzUBIb5<6h6X)TG*N*cV_uK~baC<}CTSn+@ZU;8*Es$H@o za?jYn9aT)Iuc)uUCZ=;+qJ@o3;>n%NH&< z*@Zm~R(a>Rh)gW2n1C$YWe8;zljc-ZRz-DD}l`A#$%$= zc#ERn3+T@=xbdgP(a28#2^W+=(J+}3l%181R}c^ERkMqFrlbPXMQ#_m?Rh+>adrqS zahhLdU-(ssCKLy|58QWH?KE+N8%;0g;!Ojp2+bV>BhetXkC&lNmsFW_!Lk#-sc~~p ziyww(B6<@(&KHYd&D-!TL?{t!-t-t8$&sxs(u-qXiytv39^<$&-HG-@%?NdYzTbBI zi4bm|1k$owWANP=x5--eON)t^*+re$r;Qz&a-W~o^~qt0?68)t*ruy-n~Xsqxi~Q9 z0<-VwX>% z2d#+3lZ^85*0@N}$#%+>T(b?!jgw=p*-30S5D^PNCTJNNjZ}_4pnHk~gG((Fr6ovr z*)q|Mn*G+oIF!vHVbA*|a5N4KL80o{@wNWGnF{?{1!2!J$$c!2;`L@V~4JF~zIn_!?| zCQxoYiQHtB63Z4cQ7_S0w`?F&)Y-FpXmq{va2m;dxeX7n=CGKAkzRxJU+8F^^^fsf z+}k(UwTuSXDerC`KNH=kZ2!P4>3J=s zMl(G!_W8AJ1zWikZ)ZGEu2#Q;sl=>Z{qE*>Z>e8%e#Oa^lP(;Um?>g~RV}TUytWC= z16G?^jqOgEi9q2HRy(Yp+$t>^#~$ytnorDv1!Cm*P0&6l!bgqmn2~GV7Kui-i*v4< zX~F6V;F45E@dkE;!UDNF@XE2xcrXmx&T3|tfCRUn1wAtpjwykaA|#{p z#%x{IrSEoViHbI&k9|B&twyoAAO{NEsusw#Y=`aM$8VwdJJaR#lMA>4td$!Zu+G-9 zp%J?hx_!$15n&zo;n?AmajO_SZ`;~ra0F)^s)4MUQ0M1{V|wu21oXA8158oOFB(t4 z$w?W2CKB-x&`I;`!O01$-u7K$>$ufFIjGFO!HyX)ND!7IW5}u9=`|nAj`kRiw15V; z6;Vt}T;Kzdj1{G*1ssOPyk`&8UgC2yaR|3o-~T)v=IHyK!E4C1dfULweaIcR`@qz2 z1R?``XSmsR9#DpWSZ!`fJE7$;cZ-P;NN~?EVJFFm-MpvRMe*X5;3K_IAVg+C z9plE4cC-$$0U_e;E|##%$lwNEs5=3(AXJrS1Kjw&7P&be3myM2?nL+Vh;k-F zrWA2HL-v_sT6jfWJ?8D_uQJ>4D_OX(q`A3%-n@+)dwR}Jct!K(P20F}8piZ1me(fy zPh5VYM@sAJu>B!N?bY}i@z(}B)124nLr@mf$qrsAu;YOdxpP-5V3$RGUCpA|vlg$a zuU))odCmMq*l~f?V%ZAYvb78=sj%A`-4cgf{w8AU8uYSGnUJu{dE$w7XH7QTd@&V& zGXI0l4D%4y0QKu;nKOf#gMyZwoUvh_gnrge|CGR*#PRm*8|e@xv!v?I%9YCLcC06# zdeKQ2VaQcCXVL5kO;I*DMp2fpGoEu}mT&!HpvL?8p|9@ew-{SDux}grp*IAt@#p@t zFG5-V{}5!xFewW*!eiG8-p0e6)&25cRHz|Kyn$UD^cVk6I4s34Yxh=KW znTGk;9O(R}ZMl3g?*W4ick5uKD+j)C>+;R(T5pFWqc=VGjec8k6$p^P)0nCq08ebKs@YiW)e zGEf7?qy8$iIq0tKwWd~6$8(7OsH&(iJD-SUVVng(&Dp`PS8UmHiP)0w@0ze@jrt~_ zbC~IlXkq@n9fl7g@<3ig9JT>_iR)??FPSsDz8)uCyG-xq4%3D`(M_fcEf9kqH|)=z zBbLjh+;Vz6H1hAb;>iw`ny{44`>8-UW)Q^0HOp(3VM9Xw;yV1l>i?y~n9`H<*gc}j z$?&nxj>BffaS<(PX#0-!@L0qB5SVa_&0ag879&Xd1RF{^By<*KayycNWS98+s-=!f zmdMm->WiYKc2ZVuFPC|H-`&X|(sy}~Y=-h&hKyq;?wl7zdPK2hnBfHU9*r7pYH{D>s?+We=M;jw)pIO@uhKDn? zy(MTT9%Qdzt4zkBd5F`7!C=hI_PJcx;ruQharg}16rM3ewTmx;zKUz zFhs4oLon7dk!b$Hul`BMmW8HsG5W1_GZWBEQRYD2G&|*lStI)an#AN8I_vljH4td` zs>==>G!Q%VD#kRy|NPG9T4C1`&#f}_R&KnU?LV)j9lM1g^@+2`xkAWYCkg+S%rUTO zp25kRMAy{Y;|_8jSFTi4Bl8IT@otojiw@9O*5e{7+-MZnqnx?I1fLs7W`>a%D`W<6 zV!dS`nSQk5Bcq6Ta1nDL=g`A$(3d^>-p;gD$<~nV=`Ci|Jq^Fb_(Wa@MwZ#(7P?K^ zjy77aHr3kB?(WT9@$Gimu{cO@!w(xgCoU#AcCOo2nng0>bC{ANK;l47ykL{L*}~8L zBnBnv>pZQBfz>N>P(3nD-i|RFl!Yh5;=Ih3dq*vQ?^Oo1Ip~B!EI9w4}n?!R!OAtHjSp&;2c%EU3G4jdqoY_%S&73Vm@~f zE1IXB26mT~$Tl7XZ#mPTMwTEpE>_1agVns5mi(>*Bg*F)n=W z!(h76eMm1mNpo)P+!|aEij5VW-EzgcshulL-<`h|>g}cYi#lsNyS4#?YKG?R-L?ST ze6&Wf+5G>14(JH!V0Qq|B>rU3rF|Mi5K;OIDo_yH`zssS(d zGDXfmIqPH_Ou|Ft!QGE*g5!@jpK>u^RmwWNv{~oDZa`X_rOn!J37X>lMJ7o2a_Iuv zPWCd!CCJ<$gCfF$|f@HTUP5QKun?cN!aq{ zki#=2vO_LRG;*kfnM(J0KF0Hl1EM8NAvo*&#e(2$ylki!zGjk47^xT}WXnR%h{Dj! z2kU}E4>9Djoon;r>T>pPG3#Y;Tt3Y%iJyQG03HoSzs_~gG`VCM17$#Xtj5rw8s|^q zH$XuqVJFB34(*Hl>!da4*6L>lpTv3=2eLau1;t$HTPCWmd}jHIx#&y;bO@)6@E zNTS#NLc1rgA0mZvOXdl(bB1z4B||Y^NBx2&%MCCS!*iftjAZumoattZv-#97rezy^ z7h*Fgh_Wo`7s%F`RnBOCc|=(G1rl%3JX^mE~Inu06wc zI=(ZoWzN(r1`_f13lVAAVQq_w)^66$WRqlTkoUM{fbfJ|Wdp9h;3p+Ygv#VAGdjsQ zalh&94%eGo4G}kcv_z;SE0t@TtxjOOXG@3b0q#|RQwvL>76@l)B(ThCB`5(T3)N!! zCi{XfolxFAenM6E_=%IHjZG4D;8T?rlF=5T8xU2B>1;sxNCB*P%p}Yxwp)>?L^j2R z05LI;%^gthg8`sapqSaA5dD0ytYja;^x`dT#XZHinzVRUaZ5+B1ZBM9maWCj#m#N_ zr=`yVP8y3h_7v9^%Yh9z*xS_=Hogydqu=toZu;5JM%)*?CQ_5 z8CTl5qHVG)klq59)_I|=m^@zUs<>aZ7AKTP92!(->@!rk6eH8*Gfl5wAb7|a9Zi`Z zGN|2v)kRzq+!D9LO_CVGVGv?B!lR6~L1u{}O+zbfQ=Cc@(VyvywyCnJY0~5-2*^y_ z5MMpn_YKLiSI?XjccK2{JsE>BW9`gf0WzYkg6;!i_H5M=5v(p32rJ|EEW;{i@L?E&}ZQUg8j{ZRshFvDHxTz#^NTi%;5>l8tVFl8_cF zxxTz{zuzXTcL^^=@Wfa|nx7voSOY1;n{3udmD#qMv9S86)qx-^%80lyV9=G=o`zBa z8GuCkOva0Vdis*q&Qipm33G?UAdD}SG;T{~9DJ$EPJ&CeV4H6zF{6bKOiIRjw3l21 zYMvm9FlqFpJ24Hm%OHT1qc}kM$@i(9od_svyu{d$cGJ?b>;}czF zw&IS3#3#6{HphGcl6I2iYPC6*EC`lZFixx?N%K+3__JCIl}uTHysWj=??f2_?|ZO} z=)x>!EGRg%(WzIS zSs@2&lYA=n!PY{cMZz6Rw_jRX zW1@l#H1bvF|J}M8>skE)`)1P+cjVQ|O+g+X9~pfMQ&HpBh!nZ|5|I|@YafO{w0Tj0(< z%b4A8zX*2^+(XYcW-r`raQDMKaJ4Z*t}QS5wyAdDm;vS@XU4eNCpPj3Q`{B*TEQf3Q5FhS( zxV>->-GcaV?}z&txTV{SxgYMQ;QkP9!+FN+gZl*B*Wg}vzA=YiUtoT-%b35yedI^R zL^l+eGhajcaA$rXF!#Vcaz|jEg!{dZ24?w(3e2*X0`olF+RH+-;Kl-T_6woe0r&iu zLUZ_s3(Vy&ho&0tcZv$kLvTMdw7|Rp_oweDFo*9fFpp0yFk|69HLbubfcw=Y1*QwG zNZf&DW;kSM5uQv?X3U_IAix!Y8FXl9hIWQ#5Rw}9p9PrkFEoR@2ARQ^4mN|{Im8UQ z6@RA`}KjClHa5JdjU^DoK2b)1# zMwr1j9%2TsKgU+&?oUXXrvk1I?@at zccdA7>``X$AC5AGokyF&ZSOLJtBx~+zI&V*c41@&jX2&6-Eh1abXYO`ip}5)MwvnX z9AyT7c#Ii(+KFb+9r%0aSkO1t3~e6=Y@7*yKHdykdXgDD;$$=El9SEgStVxh+6ohX zyTX_?6HL)-6O8$Ir3s&_G^TW#306)sh3}hY!qKOg!uhA*{S*`42KRSx7oKW@vrjeQ zop2AIZp?)F7Bn1gV0O!%?6rr?!%CTN&%OxYPGcP%GBf1#<)+|iwD0RznBcILrf@0R^iS$d*wtVPhBcaCM58HK zy3Pb^noQwe(4G!yF~Lt;Od*a?1>I;b`&v!G`Rh%v6K!T+8=lX>^EuEb8%@Fb4ij98 zwlR2<2}W%);f777U~;z!7N8w`u-624K>qL9jP<%c@Vw6i@9i@ME4G^8ysakuE8HWu znQ;C#Q;20<({a8j{K5GqoOppTTP`w1&tC+k_Z|~m`5sfa|2=5e7n|Vxi_MU^SEKA# zn{fBl&=EUK_~s519QZ*K&i$Y<_1Bq#XRb5m=Ic$c?gkS+c!M$DxX}c!-)PLccbee- zou=sYkKp;Urs%oP8nfwhCivLrj2Ur@36|et3NN??X@0>J4ZhV3Ipucbb35AGJt)sT zrf4_ZpTT|NUK39Jh6!rEVaz4>o8Z&;oA9;!jajz5M|E`GF~X67GSIn1V|l zfeie}1Ybv6UHP~vIQ$7?E`7=b*FR;sb8Cdx))5a=>=2xnHNmarr((0 z$={g5V_r07(moT++GosnerpOY{GBoX`HCql+i!~Q*$WcKK6H0(EGY6y8lhc$v;gn{hy}bKDc}Ti8>w}1SNw5^B)HV!54=Ig$oW2 z%z=jn!DWXAh2K6jFn>Ed2&cXyC>(i2Q1s9df%)Lbpx~Dy19R7rK|#S$fqCkvpkVaT zK``s+z^pqa2!JW2)D5;D7>>Q2p%sBFuxrHKdyw{stST%RRv-3)WCdt zY7qV!Zu7LD@aAcOIpLHbSaV8H_;I-3I3+MAo*D$RPYukSa36zv%Jd*uH9au5!)=`r z6kapB)4@ogJ8qRtJTDSsjGq-yN9k4MD+?je%Lx5d>R1 zg77mP0S@*DMR#@v1;e`nv$rb|5S(&(U}jtq1Z`IYMPI!l2w%D)Fnw2puU8|_YlDKJ(DQ%(a8T5-GYG?*f+72F z3CxaLgW!={gQDqQ48p6w7?^*2EeMYJdJxuqJqXVEdSHHhcM$yH?!X*yZx9@RFY5f> zAiVTm#QR1N?EVJo^uD0z+WQ0Zs|SN%&h8+*X*cTfCqY5UPXqJZ(?Rg3r-P!?o(ar_ zKMxAbFM^_#zX*cPUj*ij-vwdS?*sGUSA+10SA*b}uLfq=n?d;AH-liun?b?2{|roZ z7#4jd48z}qp}FM9uxQVbq3Jj(EcnS$p*j87F#OuFp}Fq(u%M%)R*LulI02@C#wP8b|?ZfHK$83sS;3=7tEg=TkOSTui27(B5hEa=@D zn)%y+T^JVr;yt1H^?MQi5~OiS7@U7;Sa|QHVQ}1KVd3n{!eG`FVPWGHVfZB6C0B-K z{rke;_VMMOR&o@?ISlJatVN&bT%#`sKBudF+E> z@cIYCf}z)gcQ=H=hi(W>)rZ1h*@wb{VK;_D-gQ$LoODxozzH9L`;jpG%K5N?YCjD z{Ohg|lD@POri3=3cWV_0<0%VBuiD`D{CSHi+$ z_J_gr{h_({Phs%lpTh8fKZj=TU&4a({u%~5{t8~c5f***jWFE%Mrf7?1>wxFAZQK? zh7=DjFwY%O5Og0{P`Ky7f}s4Mfi>|0N47GWesf4nh~?@qZ!S zH{VV?ExrFK|6?pygfDUV--Pv;xBUMudUND|;s4G2|J8Ejp!d^__}j~PgKebDKd0jHe*Enr{^MNf&Kh1`GrVf{@FkZF zzIxC#nZyxK;=h5vu3tF1C&}Pkeo4A~{9Qr61dc&an9OGTuUz~{;>r*4-NV4YNe+zT z%R>g*7{A+BIG5h$cs^)&MEoVj_wf=gX6uZdqY}6J;_URtiYI7De?D=WEij z>C2p#{C1_%kE}1owRz&poR|FeD)Beui7#_y@{8V^T|RhO`lelFVYA~h1-~I1-<3+o z^XWhCa^c>f+ZW~Lo6q;euV$zFS}NUg2b;F?bVx;RdGhI}`4g8n#UD^-`CT^16)as} zo*!ww5|=N<4J^$1FPTcRN_^-)NOixPQ zmax1#mbireN;jq_WtUVl{1fZ5`SaIlWK4=bp8j-w9d!x=rs$8D{zQ-SJ>giA$F#YK z8?MRDP%D4$sSKAYzpsxpe`EPb(Wiyi$}^9IKYD34zvA|vO@6Gu)ASrSBR9W1f79XP z{yIg!=Z}|%^f<1X^rq!GE?-JMefV_w;{4xc`8+-8_Uq;I%eT0Kc=?R!Ny+Cf(*M*~ zUHA=ObFQc73#+mT^88E7XDt6I{!L~2X?{dlmYq9?ER`}_AbK{YXWz6_9vg?iB z;#m5>fb|UdZT(<&IA6c%`kL+2bJ1*E`Ny~KwEQpk;ZySO>+5q^Kat-z={7U`2{e1b&u@0!Fd;LO} ze~{u=#Mtq;E-N+rV(Ht?3A&NjXV;I`o}OFEaH;$}ztjAQ^>wN}$vmO_()LAcFQm$^ zh4=ijn}Cqs_Ca+!`7R-zQrmI*R}mkQBEYAAJ@M4ACyxIjaaKp1 zijV&?agF}J=gB_|UHu#wr|cel`Uevqq2N)T_$7JpX~ebize-#y|C_|M`Y9-I<^ghqzY$3y5p=cM0)>Gg;dwpa1p54^!~Z6CbYNUnhQqf8*e{Rnc{~qF6|MP9)ntu6y9{fkdHU9mSxJLhr#5MVUow#N{95mR;pH{w+ z#5MUDOI)LG3UN(;oJw4iueroE`B|JN{pESmUz;cW^~AOE^%2+V?;_$_{ai;}Yu{fa zu9g3*#I^c+khoTVKO(O2{~6+1|NS%K8htP3Nq;|ajX#A$oaAWw;Sl1Q{ydSmrk|%0 z*ZS8v#I^plj=0u;oI_mWZ!d9;zRUCEe*rhv6O+JnwuGL=&@gtS~_cY>K{hdWzv+p($*XX-~xJKV6h->Zp zcH)|TxRoyUgBE)ejrc$kLJNYp9jAy5B^{t{1M{X`0MdJ@qbRdSdow5 zKqp`075rr4n*B3}xTb&WiN8xp|03d={`?SeO}_6Y?&s}&Hh%p1C*oTB9D0x|zt%q; zMO+(yl@ZtE?-b&i{;egh>Ayw9HT~6)C;bh?HTrsqYxQ?6agBeUBd+z2_Y>FFAD$*Y z%2ym+Uw>~BKT5$z4tMn@`=^sXAAb^Yt$ybc*YrajaZNtYAwDLVIi7v~A0+PgiTGe1 ze~9==9-!;-{lvBUdxN-U{|!3W@ki62!}8$6iMv!XM0)xTBd+yNM-tcgQ%zj6Z|4)& z__LX~W*>ZkxF+Al9_fNz%{WF;Rhes*&olIP7ALYcg`kO*r z(;u_*q(3iD{1wEt_IEaMO~3XLuU5)`H*u}}_Yv3Z#|MaO{oA(=b(CxRd)Q$P*VH>GvNJ z*Yw*H#5Mi!(>(eAnz+`!{zP1>zadAu@@e+(QN&%S3==(njw7zMzj1l+iNv-3bt-YK z{m;&WFD9<>w~n}`zg831__L9?X20B!C;y#!^52yQzlFHgKR=KMf0B4*rfThzuiv3Z zxtiDX|48B*f5sEn+J7B!&Az;XxF#RhUa3jjxw$PuOhC|KRpjVi@2sA77*9;e=~7yet!#bZT|NC z#I^SEDdO7xy9e{ce~P%KU;mH?FF3|=R*QdB9=swCJ}(bmp9k;DgI|*e{|s@h{d|SE zHh%dQaZNs+C9buP-xJsBKj3*oO}`8#uF3Bq#5MUGMO^E@77ZtBH~*6xh_xoJBe%jxj9e#TZn7+)1AaM{rENF+Wh5DiEHiqRpKWr`my+3u6;%d zUQ1l#-#I^ak9}?HbultB=?dR{rwf1xHagIOQ_-#CKjlR=} z&rr&DIdN_L@`XJ34~ds5>HmYcR{vw8x32&B#I^bN4aBwf*+E=u|6O_FUqF17Qog5% zYwhE2#9b*fiFo_(jXe2>$Ge!?{MFHU@JiyE{Z&I;Yaa`VYx;E+ajpLuRqW{3?BBD9 zYw~j?am~KHlXyjjwf4#L_t(TV`|U;IQFI@nu50yzgWTd5kEn}k00gI*Z5aP zT+<)b#5Mi9mbj*0dWmcL^-AKJ{q#xVn*DHhp7_5eev-nUgGW35X!Um}agD!|iEH|& ziMVE;Uqf8$KW`+ijc-4Z2mc&#%|81&ajpN~O#~;l;8$?{w--i;{>hE~sTK{<>ajpNT%!Ahu*Z8x7xTfD)iEHKSCa#t5V&a;7 ze}K5wzkP(bHvYJcxF+9U$&>y!iEH}hyTrBfKTceepJ#|``g=cdt^A|Lx{{4j+RuFA zTK-FjYwf3jxK{o);+p(#%oD$lxF&yB5!dXCyNGM^Z{H!VjURqPT+?5#6W8Q-=s3s! z@e2Pdi8m?uPU4#Wxr_K1CH}L-HU1Qgcl2rfYdLXk{oowpntr~HxTc@~KwOiL{lqo> z^(JwxeGNUyl~3z`44yo#wf?J$xF$c#h->9PkGQtJco%VP{Pz^`6BPdbowz1{ zMJ2BM6P5T=iEI2{KwPuWn~7`uxrn%?|8@}9oqQR15Y_etW~{Ma}1r2l>5n*IC&agF|0@}&O{;+p&yRyfXS_(8dc+Noju# z#Fr`fUBtEeyNCE`N_;cH#nkHWK;l~aI+VC3U&j#F_V z6W8c#&4X_uuC@Pd#I^Q)0dZ~oyMwsaf8I>|bftd(NL=f`-XN~opNCI$@}ZUQ7~-1! zbpmlse@-MGDD+PvK1#vQCa$%=CgPfXxiwGz=MmT1??uFm75Y9!{A2}xjJPI$&k)zv z*Ipy8*^k33UHw%m`PUM6p)!Gd|38no)_ztH*Xr*~;u`-}6W7Y$N?fboPU4#WI-j`K zzCMr#|1@!}e|dnorhk4+T&tg#h->BlGjXkc{zhEm?>~rZ?K7I>Qr7Z6iMW=28F4NB z$;37KPa&@9pE}}N`|2Y;DI>b}$;p-KO?T`w>OAu_rLtK-eCB(J;QycT- z-%VU=f0q!~?2D_3Yw~piajpJ#64%QAIpSLR?AxQk*XVmJ5B_+b{C}P& z|KAhW_&f6yCpnsY%_6Sx|8(LS|5gy!?EiC!Psxa`ee&{qGw}%u{uFU-eDwlxO~3zx zxVC@n@KYUswEl4-am~J%Ph2bi+C1@h9X9=~^-n2rjei@7Yx9pE zAU;;9zk7&l_4mCz_)myy?fV7d8hwLixbkc5<6z>N{V|oe*1o3`*ZQBO#K$ZAxq$d6 z1^*OrSBgv^-+n$vTw9;}1#wM3?=bVB%W-BZzDD|1RR1 zei}zyqpy_sm<(&}ljrY>Jn_#auE}>Bajk#7oVX@mR}nu=q3?0x8h@WAuJPyB#5MW< z3vsRgGu4i>TKxxORSdPK~Qsjem=XpP5Vv{|nFn*44h9x3_XM0~1(KS5lp-#3XbRN`-|b@XZN z^J3x}|8FF&&7a>wT(h4Z$dmrg*^WMKe0Vc)t$%%#xMtt|fw@w8zP1zB%6}fG#nID~X@1=>JRd#NR<&lfPStYy5kNxYqyuinvz(*NAKL^CRau{%h^8g1FYc z&LFPY=NpJ?^j}U~>z{WMpRDlzZ^X6!^}zYAd|LZCfq03M{!-$aes3nO^?&anUZJFa zC-GAi{AJ>retCnqR)6m}-IZUn-$oJF^xKKVrz!NUBR*QeuOzO~e6bBi;%_GIsLU|IkDt#YuJLc~0vGedOjP^i<986( z`u{D&HT&;o;#&W8D{)PKKR{fQj~9q*`s;P#ntUF)(3M}~&xypf`Y9ovwqN$Jz~viV z`hmjVO2*gfZz}OoO8m9ND;4|>;+p>XcAoqn&VxTnT+{C_5!dX$zYy2j=kP_2GsQ~z zIu<)z>t8=gT&urN5!d?Hdx>lGJxN>}-~5HR)_)zc#L=&{ucL@-{Zkont^J-!T+{De z#5MhQ4RNjizby~`DDg{`y-U{7vGTei>BfyXfwwJK}NYe-{}Q^p=@7~sGF2L?DWz<~h{3~*q8 z0|Oiw;J^R}1~@RlfdLK-aA1G~0~{FOzyJpZI55D00S*jsV1NSy92nrh00#y*Fu;KU z4h(Q$fCB>@7~sGF2L?DWz<~h{3~*q80|Oiw;J^R}1~@RlfdLK-aNvIx2X1V2Cs}vV zy_N1)={`XBVY)}Ox$qI)R=T5FoPR0ZD!Q}iE}*-TZUf!%j9*E22Hkmdm(hJU-N#AC z^K@UNyPxjsbPLxzdWO>-Nw=8p$#f^vJ%{x4(ygZd>2#OVT}yWZ-EO)U(7l}Q4!R$q z`x&~o)4hl8x9I+m?oa6MrTaU&f2I4Mbcbwkj&3{M zKDyiKUPbo?x}TtX3*C#zuPfoB^9 z(|s4+v2-WUJ(ccUx=ZMuO}CkD2i>i7-%Iyux?f>A@2C4+x_jt8OZNr3FVlUEZb-R3 zkgnW2A$Knfy~)+zX=i7j6hD;y%ToR$>3??0|5*C3OZk`5e`Cu3bo!s4^4~=Nt5g2l z=zl}X|4POGCic|fmI{9# z{imn=_t1Y{%Kv5hr}=jB#~ht$|8o@o8|a^=^8xy&^L<`Pr{Lqc^BqV3G~dpo|H@Rk zuBQKnl>c{>^!F+L$9y7peVt1Gba}h!zb%#Tb&CI;ivM>N|7R8dKPmo$Kk4XC(=$r( zuU7omDE`|N{~e0|=M?|livNp>|FB)T%QaQ;zm)ay3Azs{@4u(NcZ=Tb^o9?AEZ;qT zCf|GM-bnX5bbm*8#2S~5k9P{+*QH#a&z1ClnC?I5j$NBgk56wU{r{(3ufP309$rsg zjEAxO^M2xPU6HMqhb+k4%aIJ{pCdfjJihJ1?P7gzV)-SU;Qy}vay!zJJATsl)OfnP zXpeciH>Bv_!S?}sExVov>@}yq{x{oea(C3e&*s+C!RK=OOFI$doeEx}_@7SywB2(( z^}?6vrr&qd-|MYhcBf#yO1^s;-`|s!zPAWb?eAjzn@j(Fnfh-x^@v&e*81oDjefG)^bNiP(>ipC7^@ftpfp+v`Ogj80zw6RT+hLFX z!1*82o~?I|Qra`&#)_pwaxwNyGjy|lX>9zu`&C4WAhq~BXTYxImGJq_nNzPwc$f^ElN zE_!@A66WpvGQ=}9x%IAnOPccY?-E9S{+>SfW{k$avq;Z| zcFO0f?EHOv??!l#5Y^<*pf9?3FQ@d$JmQBEPwS&4#NVmltB9XKJY7Ex#7|b@OZ`ZH zSn`~sZ!*LE?s4~C&-Z%rvyblwGyDyFznJ)^`F_k#UHk|6{%hio@!i*VIr5fY2l?yy zyfek;h7`YtoaOkh)z>Dbch5#ghs#C(Hv%Mg_iiA+KK~^bFI`_<#P1@WZr@vpKS(@X zpWBK5NWrfp{;Y!UApWv~?Y1>Z&ddJ#?XL^1Foc>*e_AjoETM;_PhwbI)q`F8mSQ zR!#l7knY9s8_Pd9@$Yixv!^3F{Wt(0o_@DWe>>iD^}9Zud7W>aj!#!>w;v!qcf8GX zA|xo3?WNo_-r@33%k6&Ry$ZgE_znesn)pW*d>`@868}8=9ic|}CG{db(IVov(OpIN zhjb^={T}t$UY#a$r5qve5oBFu&vE z>wo+FPSY=3IUh*bh41`{^Z$Oz|EGN4PuJUx{$6J0Po!`uk09Tqo$2>qJjC~d81I*#ck#>l?)l-z;lo$C`tar0 zo8rgL)@*+4<@fvJMZ7{nDbAUW5NB- z|3j&CJRNt?|24X|uXFV8qdU0Cz5Dg2^mj3Q{+d3Wn9`@)&&}39KE8J&JV=gJ)R(XR zr=$OR(jjl6PpgS9Apg?#);!{?iH~b`js{0W4m4XJ>T|`f4<-AYJY2cs+auV&2(HY`oG%&<+5LVI(p1(M6+MsM|z(A zZ_?w_$<9@O)9BendiMV}>GA346l5bBJ$I6xsK?cNcC7wy+u@a~zI;0UW90VH==mP$ zS@Pec$ETA!_x`?`KKT{t=^rDvPXupi`K#F8H{9d+nzlC^h<6iD&qr+_em?Q^_^pfh z6~v2D`o`OLKmVo6|3eJ-BH!=e`)axm(e?J7*AIVV`8^-Dr|PAuD_g(r=DWtv*O}hl zR64o23A-JDl;BF1clf=oJn41Ut;CNc{$z?D+le1XJk3ujxA4rD+uOCC-q%v}Ub!i| z+=yy_TDeEiPHyOR^!xCd8v&3$a0luB^?fd0x?kBz{7=NErpoQ>Gi|SXdUmAf+1~xH zmFrlRYslueUoM%S-$lBMzv<$o<^LAqWeR==@lzH29^!Kpd^hpM3jQ$hcPscF;#~^< zH1UfRd@u1G3cinc@o#hUXFu_ql=!a^|Ga{m@3?yQ>y9IG%-={o`E`)5F`fHp-#y89 zzb^6$-@i@#fCn7iKjQm%zW<8vOZff@-@Ev3n9dD+zy5WX&MPlFcL?z>6MqNaf5dmc zPWcMok6`+TJm}*4_Rxj0$*+>~>*Y8~$?>Y5RD0O$-nDizIX6_3g0i_`zpR)!}kmL?(4f6dCPAu>&MsA(|s-5tV+ zZ}--0xkOQN{v!CwH;=C*KVEyt#Y^*Z2l3(Garo{OzjhKoO2Ky#A4fcGU)@4{s)FA^ z{0!o0`tBjVl6YEPcN1?^@P~=7XMg!(s(gEhZ(;m@rf{#Hy2!uF8ScE_IDYNo`}l9W z_wV!lE{1=D?;j`b-+xKGfcrW-h!5ktm!~DH-Sw=0F9%Pj{Zr0Ay-b_n&a-j7;(K$)7uae{R#$e>>Ajr+@NZ7e39O3zYD~mGCzz;a4i* zZ)JN<)47}eJ=|CC=|ApQj?Oe6YU!VrAK#z(azD#-eYyO*r`x}Kx(<59<>&MLJ>&cR z;#(+}SJV9zUB7Sq8NUC6?qQU(lj!<(;OSmUf1i#I*G7LYrx)@4?Yf>{UQRr}{drrT ze!h1f&)17j*V8Yyp8WiGnBAMc|MNZ6vp$@8uhYx%d+H&=yNvIjX1{dm_gwwVKR0{c zcrWoq3hw)@{jARhhC71pm305za^w50^t?jMhx1%{JRcfT{J4eh5`SQy5tzW=z&fCl zoBz%0fYQSIsONW5|M~j=B>lgb@_&&2X?x&#`hO!8{(F4?Bi*6wZ+$pvcS6VepK<(7 z_oMYUJO6Y)x{dZwI{Xg$r^AbW5G=0iq;C@4^t;!`+IhA&e7ZdEj4bVM zKGVw=fAp_idCy^ZAK$;{i|_kY-;enC{@wQmOP+O4chDX2oO|!0yN9liuZRr6TdHYUgI_5A13~63OC<%bbOY0dK@=| z_#Fy9g7`xUK9cyO3LX)EQNhO&e^tTDi4WQ5_>-o;iuh;+uO>cC!RHZQs^CkAZ&dJA z#4k|r2I3!A@D0T8Qt&R~4-ns0|N&I1^pN_wS_+!M2QuER~ ziJ!o6c{=_s;uDCc=e2Jk{xc>0JBYuk(032^enhUvwrb(Zyu$9V;MGeb^K+|jigrlGc z$YNMpCrza^B{M~H!Cay&BbP)i!!#vV)GV}AvW+r}b}T=2U)Q`}7syf4`+NU>kNf^Z ztatsp;!`nS8~E6GnH@4kJk9rF0kttIb6epM~Y=SzN5EqOok z2WrXtlRrk@{dK+o^1qXJ-@gONH~CH;|L*mJ$orFj&~1Ez$#*61{yJqi`R?Q=y48;$ ze>Zve_uUR5A3@%I{A0*F$-6&363Azfci(?g$xp4Neir$KZzl;1T^6u{o&L+Q& z{4TfpIpp_~Kkk;#C0|C~{dM&`@~6nVZ$EuK(p~*Oi2D<#DYqR5oRsbU6~~X>IC`JV zAA$c%{uykJN2{?p{v5jorBZ%NPahVe_ilq?h~2&9IyT<<(qNeV>#n_2VTi|55oQEFBAXB{ivt$ zAo5G`H7xIOoIw6(JjQK#%zfl~6|!8DD1Re9!T65Ev&lb)&GmCWev|9=y*QQi`3-xs ze9eE7{_4?wH(cj7w^Yi%j_)lMZ^Faq{|h{w_4oW)%Ke|dZ_PYk zXiaDM>&IsO!~ zobJcp0`f(*&))gx25FUlXtIg?l;}D zNw#ZO%0<&(Fz(~#bv%B1kvETL<9WO<$9UOBY5#u8o9!K}##sM2**<1F6+JEGC9B^5 zKD*}gA-@;@eS44iA8zk5#%m(W>HfM_Ir(SFyT4DXf_x5n_wlYIpG&@x+xkKR)#FN}nRk`S&#C-1o25jGr0D zT(|8~mMiFxIa&rM*9be=De)WtNO>h58teZpWAv= z=GELj!Ar!ojYmDV@6(oEYM=V6lzzWu0_&Unw~WU;x9jj!@)_japI2p(&n3UXt-g!= zO7iaSugfOCsh0M0$RDmHpG&^B?+eHyZ?3~Oxh-EldGqDTmSg6{mgdEciSI)UY70OmU4kh#d?3z*SnX#*HMpR z^-p`Z$3x*V8L#RRHGgv{p6_^N+9{bP+x>2`a{||Lfl4NMSO+( z3&XgNXznN8jm`bWYq7Z>*%Uj7<=p4oMl|<5r(ttnbQm`GUCsU2&dfLWck5ttfA~l4 z^FAc=zBlv!v#+;FdGmhQ1NePn5%05JPh3EJ&cyem zzIngD`5b`xe1Q4ffcZRu`CN$kyomW+iTS*V`5cP*e2V$piuruY%6Fu{MZ}rJJ>2(t zo7jWT<^Hx#${!(`&+(e?Z!+KOWWKLy6z^9s-}`0056pZ|nEC!N^Sxr`b2jFC$IRz) z%=ea=?=v&sb7sE(ti|iHT;}@~AAME)OTNT0JPyqJO3mLxFyD`FzE|IwC*{re{+rL2 zZ^@PUJBj;=$A~A1KM~i_&URuc@hI^WvDp%7*PnO|@owT!;%MSi#2n%h;`_wC#P5jz z5S#KomoCJ+iRS$;kK!ES2gFZ_Cy9=wvb@cS9f`LS2NBJE^wD?$aV7Bx(RZ1&cNH;= z7)4AYK22Oge4E%}xzz7Pe26%KIE(l?(cIrN-~VCWe`UUhu9R}wE2P~;#3JG+#8bp3 zuSmJp#H)xm5rc_?iSfit;?)bRjJS0E%)obx>#4*HdqWS*7JZ!$t*nE$%`M%;$ z$u}&Je$4mRwSP-|J<} z8?BLgor$*+cQF2;IEHAxxAY18B5^fwC$aZhY4;&wI?;T;!y3GWxSx0*%hj8BlI8e~ zc#Lwt5G~F>^@x7NZbb9_ALeu4$2oubu9xNe5AgxwXyRnzi^P|SZxA;TcMuN}PZQ1S zr{0CqPfKDqVi+-kc!GG6_&f3EFQmS;LE_cK+lWJm=Jljyco)%pp6fgOC()1Bn*xcC z63y#StMEI-Ply)R0ZoXv5Y6jjgK;MDFQWNeYDcas%=e}Qa-EY`B}fV#q&AeCK^>{}}NbV%@DWzYWnmuQTscHJ_6T zB7YAtnz;Cc)Hk1p%3}T$qWK(EKHft7i1;1xZ=!i0Z2N7}Zdc+R#CwU+MDsbX$#@~r zyf4>$u4^On+iaJ11Bnk3M-rzH3wB7kJ;ZN_r-?qrlE0jIHL(XVlxY6mo%uU+qnV#h z%p$sovxrNG`NTJfTZxB=<;4FIn|vtCyUCVqf&wSp_d~en+%A5Div_2s1-bYL!n$H=o#0A9nh)0O#`_+HIbq`8=zQlWp z(Zn?36T}?i9O7D{`JCNRY~JTo_akY)A+Z&)Gw}wZ`MlpiY~J@{-hVWn`R4s>=6zO$ z%->D?oM_&cWZti4-p6L%Zx(S#mdkwpa|}K}H1C`G8=LQMG~d@6^0Cyp@oTflttcb|4)^ZDAZ@EM}dacSSYZ}cjB8?hhJd|$Hp9IE;Jsd?Sb zybf+Y7i~UoYd)uIK2MugCjCt%zD}$pHvL@kLy3vRrNm7{^LNly^iFgw+j5wH>PMktq zNPL%Q{{HPg{3o%_@6vt)Vh3U%u_v(~F`hV?IGebDSU}uP+($f2JV|W$2kS+=n>d)5 zM062n5^t@PdVPuM#3{rT#0|uqMDu##r`Ws?&Agw?yw9x8X=&fQ4=oOx_o*#BBYE?= zu_wttPn^9;^5*sEoBtH25vLN(`;Zr5^SyXiD!tOtWR5FC~**R81YHs3E~-Iz5mK`bs+X2-b*xpH#-FfGX4|rbHrTYM&cIY zQQ{e5y}zZu=EOF{Yl!Cac-Du!9(C~FUzaNTNb+U-{=J-eH7m!hT%PI26mW}KGj@0R%$ZtL$Vk@-10CHk>GE|#y@ZTYfk-`B05 za@vpCbN>EQ$(!X)pg&{x=|W}K_Wi}5l0nORP=-OV_d8dpUQz*9&l~Ut9a8Tp;Cx zh{42gVgzvrF@~5x^e3A3On;_bvwS|3GkG)Ly5osAiA$#0`vc;{g{5;*QY7%n)NcvW%_AGKH&eb|J$e^OboB3J=3pQ9{1(# zK)sH{D~X+morzZwyAaLtUyc7myoT77crDS4ml=;>=9}e?z(a^J!~|k0F^lLTW)pLW zxx_qTKCysUNGu{26HADt#4=(zv4U7hwBPine)rLD{!>4`L_eZGF@P9I3?c>-!-)~Z zA;cJ>k2G(8cdP!@5Bn1Xh=If);{UCB?)|#Ew&gebk^6cCvp%Jqci=gpwD0-P@9qWt zDHm{o>!E`CF0#FgELRyR?L}Om-{2@ISA2nTc>^zQ`Lb!xeH`3fPJ0y>=r?fC#r2y- zx!?<2XB1Jc@B-y>-2UFD`|=z6P|l~8>lafl$L;TDn)&Xrl=g;Ppgk9VkI}upyZ!h( zj`8QSKD%#`7xBszCe3H&Wl@*3fe2Z zKzlyJFRnco{RX%_e=^H&qTh&%YcGO+vo6qHY0|~DmpAI-%K49$a(Nf%H-U0yy=sdE zl&iQvdzF++aC?63-fnjC#jQs$7>})BQb%FMBUc9*W%IUZG0`0l@{IC0RyStQr z{Vs4n$(PT6y4QDiG5sc7puI9aKk8oJ-MJUpuf^w*axTzsDdl_){rh+)xP7k1eYuSN zDL3Q-?Pc+~98<5hSU`LE7ice=&vn$+j+tL{k^Pn|lkq6IK)-&=&p&R<2g&F8OuwmN zHOmF}s_7UULxp^|ylKb8nY16?yJkBkA5+_W3gq2${(42TWx31#H>2ryE6Y_mK-%|> zsM$}rn@znKe#xyRZ_1U@eo-yuN^6;K+OMo7Z`zON?^_y|UgYzhs`f8XzL54yV`W?_ zh^D{VqG>&2rB+->b-s;0fm+S5rR6C3&;H z<=EuiVKLU&;kspuB0ov>#qe`R)hxr)JgPCk~VSu=JRW z>kj7s%KUQXU;B}izpST}uVnrU%)grXKF6gUGe4C1es1$0VSWJfqYp{@6PO>we0w3) zq?_C4{z@+Ld>TUoF3y*xJrna@l=UehmJzKvJU)rR#2BKBXxcINMT3sY`kVQe;-wL| zGy<1K;L-?O8i7kAaA^cCjliW5xHJNnM&Qy2TpEE(BXDU1E{(vY5x6u0mqy^y2wWP0 zOCxY;1TKxhr4hI^0+&YM(g<7{flDKBX#_5fz@-tmm=S2&A;%*!G%_^R&rJ1iqNvb; zp;4hxArGj${y!?L=09CZ%?U~MtKeMNl&_wrm(ulOUB6VHm^(UJG07p37xPaw9@AE@-^CREAC-x@HYC+Q)hE?IDs)KL zz>rj*i|XpEfX>`=_W9$cWPi%i2W~gh}yQQYrn|5Q-kgQ zdqssthDF-*>{5FBYpI2@7qKTbL!v?-2~|D%MfR$iBW+esLt|Q-%3+aVx|6dCo38)2 z*H(=&!)1C>O$`pKS_8EvYRT2`$ePJo+;0}-Vz$s(L#v8M)u?iRNMuiYAf)rqhupe0 zi%~tqbZrJoKUf0naj5>ytVqpRHGFYp20Lj@bB@gAy+$~{V3FrU;Ri7HM^Tz_j*y(UZEGMX17&G zg|L_%-eLC6?WZ0+J=HNaWRNbajw7k+n3?K3Fl1o(z_3)`n9BnT8mL+R>M`xFrzV=; zwa@-vABxmQJgfBCSu_89wX18MuZH_PWA~QqrSWxn>EoO_uci79R->SzNUvK!s$W#E z8upE8CI>-PNv9YD`*&^izi&(nT_hmYcSz`c>O|W#IJ$pS@5Cf$zm)jI;fZmv8Hp*$ zJ!3PR)_r4qb9AzAN?dGG;$zPEp3d~Rw8T_h;9loA%T5kTj(4UdjY~`((JL)2C9QgX zx-%^#E+cVlV#c_E<5HcWX(^AUt5SoV!*s;~q4$JEhxHAKii+-}x(G>4O>*`c>rBq* z7n>YA!kK2Jxh8tlQZC9~2+QSvo_xCMRxe+8Y;t^(YQ~jyZlTajowHoIfBz#tj&sX| zCB&x1#$`CuqMR9)tC)iSoTsE7s@^GSqhm8vY0H&!o~5=&#&Q*%sl7jY1F-6@lJm3? zK5$^fpvbdi~3 z@_!i=wQ-&CA!%_5iDUJu=ACCW>>`7bV@;uR`|OvQ5j!l&*+=a+S@z(bZ*3_Qm64`) z8MUtevQQMY$7W2XGhJ=2e=FWUC8KID4^#V_UXlFstVsXN(Zh5u_g{wjtijFibnco~ zrSHphW~wcgeYEy17Ln$R*N;6_tl~UdKO!w9&Y7OxCwX{^YUf`@Bhnd{nU=1$k9yFK zvRwbRH6xuPGLvG{dS#`isixJwq6XqTT}P#)WtazkiW-p0f7y%8_A2_9$BWufVJV~4 zPOJt$T{Y)<0aM4GgJ1fK_d4)!LOg&CXfk0mDW*}zbJpa%tNt%k(?auagFVx*MskCc zsaZlA(dF0VsGg&vQ-+Ox^ps?EpvV{(JvPu9qmL$%agI(^^WtLT5}a0A(eoZf zgY<#ft~5G*M3gf*-WpS;A7S>aG-r}CRvo{poe`UuY~@_0dm53I<=&C2qxHYqg8-qCYBHWhgU6?yn=R0FtXV_uB!4>tj{a=$jizr z_s%Q!F7onQuV!sfh4k`QHx`u<8#ju!Di2o;s9vaaor;c27!^GtGd3;Wa{1}1@rmiF zu^Dj*(WBMkM~~6#Q#~&|B{MC~8J(fdd(jz*qt$UFCpdmwQoL#_b6E7SM19Uwk7Gwp z3w?goCqHxEO^gpujCY=Wkg{B^>Je}&J~%NcX`nN0bYikPa@44l)9RdEFeEK4cAS+~ zaK7`Z8dJ5J$r)0{RTQLF$L%qv&U3Nq2(j&~u{pOyEr+k3iRwx~?LBGZ)Wc(yX(6w$ z|GC{%pSsil)j2nBUyP`3T(ok&Q!=LnRwnmf4p@|wbqhbYH_D}X3{{83^Ios0qn+gnKDW6+>RP9#b9iiKl0J~?z0%$wy}}1R5YfxN ztm>5&=d>@^tTBNq9UUFk+iYn$REH(Srl&_bhda}p$#JUp@-9W{R)bx%e^m8W3yh9d zN9vzB2I_~-sIcClDJklqoIEg1A0Gp9{M5`SXIw}|hPv+4C#yttme&u9bLWN(SEt?H ziD~H>gOc^bcVI$ddQa!r#5m`GaeLs)On|1Jq`tSfsk@Oc~8Ksha7`$V}5$ z)UjrceNK@XmX&6y!&+EaSlYN$)wq@BV>5hotXgm@&DWN?s_Lm$WvqRT77==H&)z!c zXXm2(^}JcjUlbJ{(oHjKF*-yl0L z*TyPyzdGKlhb)&ts(x@wUBACGLygO*u$0tsQRC9p`B`0=WQ|ihe1^JEOV|B`+fOL$ zk?oz9GMY;Qm58tteN#s0QbTM+IrW8NL~KTax`OVRn5IsVDQSsLb)C~QMITq~24g6i zWM^x(nIJj)GEryPpjKL{TOvxGc68&q?<_kvP@T6@($pcz^s9C}^{m5jd2n=8SkH0E zv7-~?qErp1URQm^qDC#Pf9z6SvrWjO7TC~&Ba8f~AY^vP7MP_)`l6Gy1i zr*EjEGieYSydb?AfXzXPUa2(B&(2LOsJ& zM*>Zkho)27%Jxu~QgQkq6&{F z9IbY1c}k<&%++mHov~x};YW9sS95myxMX_?@@vdi%|?%~FEygo(+hR1Qxyx&DUqJ) zjML96bhfZ&HZ3JHRgEx>7o8_rJxImp$vzsZk2+RbNsXMk2(lNY^qjfT!*%Jh8uRTX zKWk%@pC_wVG%0qN(;nA~^At!|1Fo2StM-$e z^QCpyPJMeII)NwlY87*9E6F97+Q8>4p&m>b)k~9Kvj|(MpvGL?p1omf%zaetvL;hx zXOd#$N~xAJEA<9@GieNuOX6W#ZZj!G9(WbDOe>YP)HvCP z8<&@^nC7$>EZau9(`i34b8KZe)y0M$B`vjWQxolad7A3vk`NussldKM)g|+*QhK$9 zsjKwpME!(Qr3xfv9;1aeoulJY?Sp2KmwJ@iSNBzq;^LaKR732<)$=p;!IdWiYE;gb zh_p|g@)S%hMOjsuVa^fisyj}fl`WMhuS&$Jo-Q)RU9y zR$O(=YB-bCt}IU)^%bDLcGcZvR~1m>sg6SGIZ=i^06A`ns>4%mRYDJdS+KmSxk)Lp z@p`UWQFXd=+FK~UD$CQSs7%$7y|)xprBYHer|X2-Fxl0!)qx;d9dG1Bk>fT$OLpems@a*z z>9NC|YQz&qpEbJfgOca19((FK!akYjYos~#30bdqflYM@YpYO;6Ryq{*-lr7E&JeJ zY%?QGJpgpJ#85`36eh{hr_AQK^tcTBcu-!=VfrdZA3*FMN3>PPsuyjIiXEOFKPuWf zTrZ@z^;5kBb+AxZXX+9(Bst!`Xx-UFor`tXB~1pZ14TdeBs4MIspiF}Tc?|hvi@me zKM%21U&g(j*tA4-@1R$*zV8=rz1Z2Rmu^k>h_&9YljgLt>yB_*rFG@F9+8=zP~&;* zn?8x@Q9bWf7h_&O+Ehc_H;T^`z9ujvi8)oJYv%_)N)xx9x16h?(p%l4!^9v^0q-(rggwG#H#S@ zDJ_SkBszlr>PgP9%n??0ou~wBMjf?))=S>%S}Y}LtkbluMl9X>+*>`T&^?7^ zs@-$6xfcG$J3K|*-rVHVFELrKNT|9NcRG`~6P9jm@rg)K∓F|H;Sl(6yaudL-0s zuJ1hcwZ668%gg#`rCL&t`1nNoS$UGZRi}ETrdrRbek1U)fBJyEk4P|bO#j+Zs}O^4-WEi2Hi#;J?tc&GJ+m%3}HpKJAvO;-0! z)HXg?&&zu2EnURE+aD6Ij%(@)Jj0q;r%#C5Exf&~ZL4)VE7#~kDVa&}jGZ)OUwgk@ zN9|0>Bh>A3{m}eFjry#$y3T1ewY=03VBBc+N`+oyYo_;b>y)>8I+{34UAn9NMct!I zRy&f~=MMYC$Gh)pW((+NBi0VJtkd7t4gaF1mZ!R{>Qpa$s56n?`PAtkN?nEwOUbeh zc@Iif&r>qgiOt&If`>J+uKjS^ z+Stq5@vctA=_j5`>yAiN&#%&|nzvr{u{`zN5BqF%pl(=NN_x6FfR0YdaH=a_a}W2R zk8B|8E7ke>t-8Go>$ket3)$3tRG&U-SLTVIwa!P~Dp2?N z^|L^G2U(}aWaT!!2Gh3d>5LtEx};c7Km1Tnvv=v~kM{KA-TL>p_vq>Ay?Xl20X@zB zR8Qx8rl)(3>cvx!ENfytYpHrrg(M|Ks0Wr>*mP@Qy{cbdRXvv-(=`f@>**I|b{i-3 z^qX(>bnZz#b$xHov8S_s(7(U)qw2vk{n6M|>twwUYg2=$d#z;+y{yXl>dRL=)N@gJ zL_S?#KZc*J?`3WMQYGpSvi_+bVg22(r?sw8l=WvL{nXN0)YLpyd-heg3o|m)t>>HF z9oExY*o-5G{W_04TCIWNOUMZP+s`DN$9CVv8D{y3e@$0*syn918NJjw zE>%6-eX|kA^y-J)+3WwkTK^pds+yk?+j~xV|9O}>SeIAD}UY0^3aEzfhp=y;I!Uttaebg zcV9IlIc}WwNmDOtd7)~^+kT219q&{}8nr><)U6C_g*jWk-eg#2qPhpH&O7Q^PdoX-+pCgbCZ$k3~Fs_q7I=O^>UZItEcNW z>*=B*J^gHpo*sT*PoI6cp;{|-r@l{5H|WnHIu(w{~_j2?CGcZs(3?n zEXf+jhUyoa6{U`&)~u$t1ol+--K^ZE9PzEcoAr&&OpZ%Xd#XM)yxq~hkym5hI~_x; z_dD9BX6x&Yi6QZneg4XthZJVdy)x2iExfX4&%Vs~w3B+6e%{H;DmdI!Eo9CS^*0GT z`lt)&fhpF;rs}bmrhYSL>!VH8!Bo$(_BT~cnAu;bZBj6$nW|oBPmAnnv6@;QZkumf zGcF6%zNWU!T(!59*riMDX_>C$=~kz>nY!TBx2mkY&CcFi%2efYyIO@kEu5+sp~#*V z+tU(zT53}k20s&!DWpNx*R=3Ex4u4EX9<(({#ZdTr9H&`n!^RkMU=(bAiX>Pt= zs6Og_J?chpi1q1Z=B20*tFZamuM>q>M_X7P<{+<*_G%NT%V2d)l6GBuVtg-sCFG0` zRmX_C)r|^u_4#`9-s)he4vl&_lZq|B6#y8r5RvOa0iE2`TKLH6xb^;)UF zTFB>XEaZ~j`!hFZv{+MczL+2>ivS$ZMMS;+G9FXVLhg*?;p z?1h}77P3?=q#D&(dYW%fOYCW-npz&}`*y3m0^G)GqBf9q!cVS@tY2G)B{<_o zsT(lXls3JrMQx(2Gi@WBX~XqNMBgad-Og-*-s)WqDe85Y+3l-W%*@McA8D;v#0(9GfLwE=5>2esqq{UcRhKk19P)gAP;gn9MB%ysDpJ6m*7M|FT35M}zc3OZVz z{nX0>y7u3G)jO9ptBsZ4*2~I!fi<0bdG(t9*;>|gcWc)4hw3$*uGaJ&wWdqjoxP^p z&sozM=ULPFYE56bqIykdn>EclXH5&wyQY73s9w`$ZfpA5S!-I}`m8n0ZDZ|LYg(+< z)XS={r@6EB??v{s+@9vVsOJ>g(=vOSJx7m>zWZgZYGdD&JJg`&w{U#0D%#p754QX=e|3R%PMP0plzB~+$;;JiTCAq(Tvc^pVZGE&_A#?pzTQC% zmV2Qhw?Zpaq1<`)SlZKadzzyTMrthWX_-CEeo4+i=AZSRgIxdKPJNfEz+c^*j#W<{ zVy%fCqRi_hJI}jw&FZLj2|CNaqDE)G*68d{x6T&P*?ZNUWmk7ra^B8zRcGa@Gj*O_ ztfz(cw9KAn=jk~G_O#TVx|ZlU`S!GAN!8x-u^Rr$YJS$i@<<+Kzm}%%$fQ{({D)ba zRgt`x^$4DwIioV$RHj&E)MmD)xl8r$MfSAZp5`pma|-QgnLW*3uICik(^7ltTA}CU z+tU(zT4_)7UeWW5?P-NQ&CSXOJB%nrs4aN zO2-<<+n$pgxt;}%L{;-OHS@MxgKkZK&!PTX;NzU{c*!x_@w`Wm^^Uc5%N_OA&y5Ql zof-{p6d2cNaNM^ZD;>EW{eu3f=hL8mz15D@jwPOhTkrGqYuVb{yG7gjz9Ta79ETj! z9jiPC>z`*G>pW*THaY4ywg1(x-?Yd3URxXY>o?!wy~U$h^Rs^H&v7jBh`YhtyYsV- zrej}lv^(Odr|&wZIJS6<-{)vIsZP6|dmSx5@VX+~BW|E~ql2C;n>^Mzu*=_`5B=w^ zeICC#oSBzh)->UiW2U3Yt`@ChKC2tsI2CQ%ltoq4zq>XF*MCWY{PdVC_)%(_yanb{? zf0{0Fta7~TIOHMH*&Z)C7JG&scf9WS%W=RFA^$aKmgmv5dCR6vTQb28jvg%<`lVZpIdI4Quc8q%XfTP8WUdQWpuk>ir zsG@22?u#AY)#=&1S&L?qJg&L-#yOs+>ojh3%5$1yW!=s7$Hxc$a7CWy9ccqzxvbdH z;nr5)crl% zAA6x?_v6jGH~zru%X;0rH=gI1>k}Wc*>kez29Hzi{_xoB*>8~}VY7NDjC#TAC&yvO zn~pad9Pqj;u)^ba&szq*QE!*$>#EHg!*o;oDsD7j7DmK@f=JMv3>tEHs`t?+%k@`jbuZLe*&({BR zQ7Nuu&u{dM*VEpO8#i9$XxXyQ9Ss`P?{VXeoo}rAxgz}v^)pxPM-B9@)aUWUr4Iey z2|Zox>HOBwb(UkoS01XbrH9U+Yl+C9idid1QkA7d7+| zHQsu+^F8YMmFLttGaMToS%dwba*TP(F|_|AkA04=$vf47vD3XB&Ujqgd7{Tb$9zZ2 zSA7;i!kjF!5`6bb@$4elJmc8gEDv zUl}0%?@klnhXv!EasednCg0pbUW3-PC;=_2> zl79*3%n)zHM{x;mF;ntC;^wo(4X=~_+u}gn z1xMg+I0N5~7vk@6Azt*NwEro-Yp&S$dg*Ttz8e?dWc=hjDgO$di@(5c;J@(>>>nuY z@4?;iK|B(dNH^xVCdwd#C##eNc{!Zij@w}I$z3Di4f%s+oC*F+n7fHSZ z|AWi%{fi}E_Xg?j4SWUm%9H#p_(9wUe}x~y^Iw+oDL7!Mcn1Cgzk*NUZTN5eG4@#| z^}olL<2pCW@?MEM;+t>~?tvq5I8MZo_-P!6^Y9YUFPwn~<3gN>rxZ!~=kNlYhd+N`@*iMptN07- zvrXLKc3GZLxEFp8$Kwz1M0^0hftPQW_CCa$a5>(IJKrJw_1q!lw|ybvGQCFPIf9lOO>-zoLG?h!lj5}b|K;@9vF zyc3t=pK$PAX|HV$Y5&@N;s=!V`oDv-$nV0-@th-4zL4?-_*?S6pGv;VUDE#d$He_` zzvJRG{1Bdv=ioy8W|@>P#aDkWb_7fNKjU_|;|a;%iz9J7o``4S)%b1Py4)1^*Y%FPD7VP-%btNpW|4#ZTfm{Q58A zC-F7EidW(-cn98vzrmm3hGA?kd>4-SUD}Jq3Ghh|S}730^_@0vyy!+KaB^uq*7w@!sOt-jaV3|Be^nX?IKBx2}}$7%sjRzpbnv z4=(&2zLGyE-l30_e+Gx*=kZv4u)eha4*msu-y`+I8%RC^Kh{Y6EMB4yBI@TI{0eS) zuhhS%h2$sVcUp>1;5~lgx_zbmF?=m9$Ld2k_VKFIH2XWVaQvTyMQhp4s z*G{|`pTftncYDb<>@W3K_=|7D@g2k?@s}ONoAF0iiaQOE`d{Gw_|7hppNRYNhuv4< z3Ed=r5O=;o{0Cl&TSZ9wZ{XYUdK`_n;K}$`yu{>hl=gSvPB)4F!AZE|ebV3LTO{8D z&%zJl7D199kN4n3`1l=?-;DeB5PyN6#0?{*KcBnk504HJPsHDbiQmFry~O2sJZ>2! z?LCWo;1&3BZw-|8f5+`{`*6wk!`pB=_Uj}0WjG1%#YOlu zZhnuH4;UoL+ zh`8~C(th1&aaa6Mj5r(*$0Knno{S&E%kk5AJD!10;>EbhL(>1N_*T3TKZv*CN%#<6 zhA)ei<^2ff;}#D~`*+7l{!aW19)uI(C7+C&JH<0_li}i3_;b7)cN-!3lh`vs?DL59 zAB6*O=S0c(#+i5ocHzl*7G8{3kCgiF;;r~N{sf=Fr|{*`vOIs|+i{ao(%yZzGfu*{ z;OB53yc!S12k;xXPK@+dFGG*T}3~rPx<(J~?@Om7C58%D{AN)+J z)NdXu%kvq&1K*z^`A6{4vEmo-&_~5P@%!V%j$zW?U5|-_aN2nBAY6*G@ZWeQzH@?< ze+5V3tvDW+;m5EePWqpQTjLk;t#}cB5a;7b_${1=9Z$&eY{wn3PrURu=1Ixli|f0@ z>OIo-_1Kz;;#~Y8-i(jqukdfUiBsw~m?ZUY#2xU%cnO}0eV>-{tMNEohEHRk;nM!F z$x=QL|A8OCyQfHgJnlMGJP+T1H{mq=HU0(H9U=YQm@W0Y;k9@m{u#S)`ZH4gb)18b z<2SHRg0z1M_r~>~mHOHEQM?h)#ueBxP0ITxN_*|`Ks*gk#QAtF{u_UZTTPet+KiO; z0`XuRf#>2>T!f#-r|=87$IVAee|O>=aqN64ACJGov$6G( zr$``+iU&nhX{~4~p-{PxM zr2oCIO8rnA_L?{mKZa-Er(T!*TX@$S;;(VZD)D8h(te`)?2G=1#C6w;$Krjs0O!3U z`7_FT{fcq>G1A_z_z^tkT`4~qJ2s0q<45q6?{{B2Denh#k`nAVL z;tU*#^Kd-=0FT4RUEv^PUpuipl|277%h`A;c-E3Q9Q>hJkP^7rEH zM`#a!g!kjmaq~x|{@%}|d^CRGsQ4Z1^|`oBmMmZB*W$r=GoFJxek1vH%6hya@nIbN zhvdV@NxrO7yi-}Pf1A_dzwmST`p2aFXE+Z}^7OFx_fC&X{$4NfYs$L4B)l6h#pRUW zh*QT){SMwzzY<@MCr*%jckJ_o_`$kTeulE{Zw!6|FTlGg{}KKfm-$Hj#!pInzV*c2 zap(Hthww2x1K-eC^6T)6_y_zgZtarxi<(RMyYa^@#53`T4&rZd#g*b-Pf7g`I*FI! z37y5B6D2?CDseQvri*x!vL2rhTt!keWxbJP^yCzHhY`hqM6DIk8@RdEq(Nm;+H~bzR+gtJ-r%Hb4z2d2O4*nh= zzyq?Sd>LMg$Mu!^t)7wf&500);$Ly9vR?n2@00v2{7a@!2!Ux=^5KjDY* zqNk+%3Y<7e{1a~Rw7C0B8Q(oPR#}g)HCghH;V`@a*Uy%G30{nUz$b9K9BD7*87Y4c zehR1KlXyP<9UsK?pOyN*;HkLN^U{7Ez7KD}E_?v5#3%87eA_f>zY?e8cC)1Yzwto4 zX1bJr4!3zuyc+kMA^sM-aKH=FUY9wNABPL)ig)85bHyEJQ+}TKG5nqWsHXbag71Av z{4?&fK-}s@sb6Q2xIg~qW${$}{4#M7UbtL*1~*$F4w@tT%bWS)IAy)RRN$?+;Y!Kh zJXi9w*N9(L*2mvNYsIH=!a8x^Tq*w--ilM-mVEbllHX7$UV}q7h`Y|0{KL2p-n&Wi zNjT_T@e=$KF2xNuOa8z3DtyaJ(*A0kf@f@#@*A=52jXw=JZvqH`kU~r*n7K_ci}7X zTD%Sagy-#$@_q}Yz1Q%KcrA{^AK-Mn59i`C{09CG@5aC4A90;x>A%S$>AwlS5&Ppu za5p>w-+^;+FI1Yd@0m zTk#9{7>+(9`M>Zi+;XKX&s(?~?)0&gABw|p3Lb`^!B64kI1it}>pzk9E`Oc%$2Z|! z_&)qGPQ_(-CjJhu#=qjd_;36(zUHv>-|P+P|JEbon{e2t;=y>vXX0`Ao-*;Pc=HMI ze!L5x#-+IHD(UYl9Er2Pkox+4p89(0W&9Ez`laOG#mV1@KgW;bW^YRU^m57HgdfMl zaJO$IKON6LDPD$;e=pvQ-#8^cgvb3L{u@uhAqCQZ;m?wf$Af+mKaZdKO}rZK`9r)5 zC!7}ljbA+@4tq=5Z}4C7v-mB%7B6*p+UJ`JoZ}(BdbQO5ppMwQzi41xv3Y;dNPHjV z$Kh$p`ucVSeg(gaw^P0ZpTd@pw13qa>HkmM4_{GF@{i*e@d~`BzT`{r5nOMrv{%2O zhmhzigitod&R^mm-W{__GaS;@pAkm z_P9dYdljF-2l3@4{?IQ1&=yZCE-41bTkHc9&m-ZjPes~J*f(!7i*rQ15H}59(Bk}1Q#4lsl&0?=DQoivm z;=6G%o`!>OmHZ|=7ypRY<162n_JV?>{Db&aJOlsdHpzd0pT-sV0KR6cw0G!s+QZB4 z5KqM=coFW=UGiUHpF71pwn=;c#q)579+LkJC*kHFNcrb*Fs>IY<)2X2$D>Z9{hKd8WOZz+V2waBe;CgpU`A=|{KH}Cpr2ozLh`VF2d&RNJ`uG%xr{QG- zByY}FGb6<2e6<{}r2JZZ6sHZ6@(qin{rd)sZ^xfwC%$H=}@I2ff7vmxLFC2?o zeklDtif_i*I1(?y>G(~Yhd1E;_6}yQDwsA;wc#=Y8@0d(uv zQWGWr5H7+~aV1`dgGWmFa-5Hw?UD8>@y$49l$3t}yYLgZ0I$I1_#jS5lKQ{lT-xC}Qa zk@f@9r2cKV2s?2pegRkDP1rwO>X+jP+8P33!_+=cEA?wiT1_;&1?D)}Uwi|1i0Tk^Yc$unZdA!*NgR(vD&!wEPaKaWeMN%_s%bu6pv zba4qzz$b7n{uSqA?~kSaHtdH>v1za2bJD(P?8>x=(G{dn9RXW{-h2gl%ioQ8|= zWL$!CaT#8TEAVFQGeeelKla04;sE>y4#M?6k?{z}?QlE}#4a3$7vTHxHk^nn@p$Yr zQ%7yN@aZtaC2OQyWlVJ?YLo%EMGqyfMf6(oR0mT zm-16^AfAW&;@5FJeh+8h12_kNh1cRrdRN8%hj z0WZTj_#M0y@5XQAa{M8##Gm2jFUazm{rOjH9$)^mC2t;&1F?C06=L)F`Uso-bKr|o z|3~`!40{}r@#;HA@@9X{!Djz#K3DQ){|Uxsytm<&w08!Z<5BZmsc#Ys{Y;V!Z%Sq58th<*Dv3#e5qUcN}NP_YmzLF=`Rb9{vND-~q?jK9i-rNjMN6#xeMc<5E5co8>RS!Q@MD0=A|| z`!6W#?G=b$#X-D;rKOOX)us zM=I<73-J@U93P>)-?Ltp{`sAJ5N`jK)K9>@aW0;Ui*Yfo#NJ;^{eWrG{%v>&ehO#f zUAPc8`9|uOd-%M%0`S(&k9FN9XxDe;# zcBfcgoP~XIq`fzA5dID);H!RMd9iu?m*PZ~*W*=*pT>UAOZ$s)5Z;J~;6uuK|INY; zeq{f~U6k$p8$XQ8@f_?oOZwYM{c!v>`2>7b1?}TdWxIWxfy?nG?DvASZ`MBud;cW$ zhu{ZsHlBkE@fWxpH~U%DzszL?`_!=?pEu%g9E&6H3_JuE;TU`ZC*T&pNc*Wc6ldWy z?81w2Hr|DE@PBbGzW!HfKMyD2e7q7D;KRy|TdMmHVY0q;eiH}x65ott@O?NRkHg`; zrThw09)E%J?vcFT@6x_cUvW70$C)?*=i?lF0GDF3{QmueAm*A0j$UrIo9L~dU;&Qwn2M&_*KjJLh>@VrB z2zSFi_e=RfI08S3vv3~H!9}D4&7+j3AvF}hR|28gsQ2Z&*c}V;ZF2x=Gmi{VmFb;ZH%0Gx*cq%T& z8*u6)QvL)k#OCp3MN8g1zDi=m=J8d5&EqR5R`T`#k>xAJ-Ejqe3;VwBWhhh6xDsgE0aNqgnEJ5EiK`f<1vKZE^8OMWd*z@Op*>{CbDuf*MO zaI(}Ng0u1CxCFm~{Zgd-J{*HBZ)ratUyCd75FC^$^`F5-_$^$COL6cRDeqBN+Rw%} z;0inh2c=2*$FU19!^L z7Z1P%cpR?8i*fJ-DgO!1af$!I<@m-1jPFFr$6`M`9mn8zaX$VE`%jYk=JB3@&Eq|2 zvgFO_dMLNp)61E6e)iz9)go`5nh7J@G%@dRq8irB<-c*o;U|*;(WXs7vqz- z1b0y{mg@bn9H(HPZ0T+9-I9=V7}zd{+_i^Z1(pO?4o}8B9;eRi^ZSgaNP1TS)NoJic9fm z?4Kv~m*51v9~WSc=F(mzz6}R2k@_QW7M_iZ@CNMjvXuW42QC$Rw~+R;vAG^E!RC70 zwM@!)p?o2Z!X3!iBiu z<0WkNxm(*dMpQO4<*=_u@c25eMP7 za4 z4#j>r0sG_mH~{a#fw&R};r3mn{a_r9!|`YwfphQ>{2q?M-{S<_;#z4x75BnfI2F5a z9?r%)a1O4(xwzGJ(taMk6X)Y$xBySXg?J+_!l!UCzWRD;zXachOYwMIhL_=Tyc1X8 zpK&E_8z}8t#j^c-V;`J>eep}!4}XCD@h><42XvG61MwgngrCI0coh!ECvXIAd4se! z1oy=;*o71D%QzLEz*)HIjnbYA--)yFqc{h@iF5IOoQMCw`S^;P)b)8=%kuwN#`ikq z_HA8O0Pcgc@fgaNsr z5f|daxCsA(i*du-r2i6pB`(DgxD1cS<@hCBf!ECYGUz<&5a?2n(t0r)i>h>znS{1*6>OKg2QE_b#cQ zfV<&T9D%d&m=U^*X+Rw#T;5>Xg&c_ep0-S{l@qAo_3vn?%j7#wExD;O* zBFj^T`{Vz`-h05uSseevvLOjA^p-%tfB`3fY!%zG2}PD%go}huF4W_sdn6q`-N{#M zixMD^V0v$%lQ?uj#}Ilo9Rh?BAV4625Lyy?%KM$&+2`43cc16Zl>GAkKM|kBH_y(@ z&i2{a+1)o8&NKWz!zVKQ3B$KCT=R;o|5q4Zh2c*bUYp@fCdu?RW_T3Cn=(9>;Smf^ zW_T3CdonzR;S%7q@Pv^6yUKu<1MXdESj{;fFY6|ZVF*yE{P(r4Xc<<6C6NzP{78h+ z2=qtrEc{Q0iC(?O^)S;bSkYtKRs1P>9VUA9e%H#aGJORr`fnQaI!yHHy{|o(Ucrj~ zRfArKiC(=Ab^_BYSkdoe(CaYK-_aov?qhldEBc=q^a@^e^01n1&{UNF`X&r3|MeXh zR{ra|Fs%I7cLzLzdDA}y1HORpVV_t2B9Abv{6+r3u<{q#c#6bV{vx|Fto%g=7~XG+ zY~PnLto%iO&#>|rS!=4~r~E~J$guJk$uq3{Mb2Va`HS2QSkK?*20UU~IKIt*(*}Gj z;B7ShgX$+u|KmTi|11T*-k)v-O#SC)zQ7_BQ;pj?=(D|z77+;df)B^rdP0{U!Q*9kNzR~b(rX% zo-LwlR^CmfuVBKb{GTGDeR>@x`o1|5VPmFOaJBU6J-+RkUcrj~TqAuQru5I4D-otK zy@D0}aR$8(6aC0}5@8>vS8%oT*D(D6(<@lf>*X~IA9a}0Z{0(te+bhnSkdoC#ZloHW3cQCzz37_aoGTNutVWQtoXj6DEn&}m+=r1wob(rYY`=GBf zy@C~elR>Y;M8A5EMEH>D6|CqFH|TYk=#OXmRcFZdt6)W6ssC+}mI-Xh^a@t=dVXi& zqYhL04>El{(<@lf-(kqF!$iNtlL$X#dIc+by}wiXI!yHMG5tKIS8%oTb9!a^-Au1w zMZcdRzYbISH!}SKrdP0{zsI20VWJ=644ugI3Rd)R8y0^AQ~q_B=+%3)moUA875(D| zy$%!o4>J`7ab;g^V0r~B`bzz8zr0Lff2LQk zqG$EOAHQ^%(qG2($1uHu6}>)Q&%#F?CiBma)+6-@Xve(UXx=yjOr)qBdTB9ioH1uOb9=?DJkAEMV`qW=?5 z2osoI!GurgUyVS2ie86_{*1DWpULzJR`lGxe0m)w`kIB3{zpu&U`4NwcR;bmzdoiv zh3OTn==J(0dL6C>yzU~I{tZm8U`2nKjP~W%VWOvd$m#D9rdP0{uhjnA7fbp-F};En z{RA29r?115zIrcv^>$hR3Rd*v4SF3W`a3xN2BufAqHi+jb(rYYd))JwUcri9PY+qF z(P5%j?{^=@^a@t=MI(J3CVKVW_cctfU`4Obx0JpP6TNyL{AH$Bu%g$~BYGVs`lk+% z0iqxl46F117ci{O z|6j|nI{$w!!|MG1Zy8qS|KDU-o&W!gVRin0joqa@>iqxa46F11^$e@?|C1S3=l|z1 ztj_<>XIP#8{}IFL{QpS|tMmWAU|601zlmXW{{JC{)%pLI7*^;1-)C5z|6i$7=0~0X z-;iN-{{Q<7tMmUqWLTa5Z)aGY|Liqv_46F11-%iN96!T?YI&!iT+8op0NGu7uV3wswZq`L_8CtMhHA zFs#nE-J$ULJle+$tMhFQ^CW+DzO9d8b-wLPhSmAD=NVS#+t%Gf(yQ}ryD+TIw`CYs z=i5$XSeaxH$~ zZ%u@?&^|XlRZciNFx8k6sCWL>91t? zPKNJgcpAgMXLt<5A2Pfv!)qdKl6N`7TQS_v@Qw@*GK}S!z+c9&M=-)vmj3{be~#nN zV|X6JH!%DJ!%s8Z#PGWWBW%t0y$(aM5PV=Q{)fMH2!_0GGCn;6Lh;*-lJPqeyb1K} z-(XV5Uy9+i89tEV6CaZCXE3}m!`CSMM`b)+8%_MiJS<_l7M9@sIG(OKC3xe@39hcP_j5sAN);R_y=@I4G4`hjM96P>9=5b z4CA*l`~<^EhA((Z(jUt3AoDwq;SP?!mEkeZaQY1I%K2RxpDF!apO*1kGd#%hv@*Pe z%fFZ5WsH9u!-q2e%NYKIVJbG_-_PasM}|-2^jE`1AjMzJ{zRi0eueq(#qgnA{s%H# z!}W8aqUZX&hv5#6e}m!0Tpw$EOQu)D<+ClrBe?u#F#HP3S7!Kq#y?rnGr#Kz{w~@V z`~Tn!%YnD$M7;PpF~sUdr&9%Ge z?Pql}tn8CzhLyeZbcU7v@p^{Ue&mx3tNppZGOYI7R$o`jr|h?zFs%0Tw_*4_mVXSx z%HB0q(Jzqs>t$Hk^Uh#+d%oZQ8iqgP_XF-{cvXh~$ndEQue_d=Z$ExdU{i+gXLvlr zpE5j~;l;;Ec~T5NyRPh?C5A6y_@@l7wvLQHi(rhIYY$-J$KOQ+L!TdHf7R<5Ue53n z3}3?VpBcWB;cu)j>6bA)lHm&&-jU%Y40kg89K-uE+|O`<;WHUNiQ&ZzpU?1q3}40Y z)ePTFF#6bXzJKQ_hM!RP^$?8wU!9ft|BUIMVEXkpkoh^0;ZY2~$?znGUtzeD;X@hT z7chn+$sFa|XTW&_{)qt}XTYZ$@P!hFRw4g>ZNSe+7+Q|}`&h!zvgF@)u$F~4fwAHyvjyGK3|^A40tC4P8#rm686jIBqRP>1Afqe z|7g&!ys?nS=l2~0u9dJa?+hcp&xk+RfX_1En+^J>jrdOt_`BZ;msgVk&y%n(f8KzP zHQ-AO_#p}V`TMgG{|)H6i1g#PGT_Mu+%I8Yo`a3}Qza}XcQnb%jrjWv_;myRmjQnl zx{NMglL7B(z(WRnqJ({UFE!xX4E*02@Fxbm9>!W-o*fOiL&AP~14jJeM*Mja_RH&L z1OHhGLo1hmA4?dk0{OQRY$uS%hc`ChZ4G#w0q-VZf4tkzfEO9?2?qR21HMthe*T{` z;I|F@PYrnZW+FdwvO^X(matzwqb2OiyR!jz7;ujPmks!23H$t)8u2$6@B;??xB)*S zVV~c7225uyP+z|Mn;CGe0k;|Oeg?eIfR8iaiwyW01HRjUpEuyY8SvU8!t!rnz!MC3 zcLOdN@CgQdxdGo|zz-Vmiw69<0sqB-|7O6S8t||!!ueapfY&nM4Gnlx1K!Gje_+7% z688JcBnkWdd5!@uG2p8W_$~wfjRF6`fZsLXRkjrQ_tW3lfVVT?oeg-F0q-MWzr8Oo z;GY=qaRz*vgooGg--QNztpVR_z^@wc-wb&8RwBQ{760`Oc%%XEY``4`+-<-M40wqF zpKidH8SpIz{2K#)#em;2;BSl!=Wmn&&oJP94S10OpJu=}8t`%he$Ig3GT=`Qc+0KB z{cn^3k1^o!2E3~QPcz^S1Dd;YSFEARLNt7{ZSc4o5fw;U@?`MK}^+3BpkbWJ5d# z;aG&@5ROMU0pUc1lMqfuI0fNUgr6h)0%0k_FA*+AxCG%+gv$^vN4NsvN`$KreuZ!~ z!ZiqFo4gL;280_CZbG;P;nxVaBHV^>JHj0ZcOu+{a5us|2=^k~hj2f_0|?6z9z=Ku z;bDYF5FSN%4B>HvjSx0Q_%6aG2wNhMZM6$wKZG8HUW7h`{SoFPWD!n7I33{(gfkJ& zLiicN*$C$#oQrTC!ubdnAY6!W5yJHd%MflxcmiQfgtZXXM)+U5`TtM58BvpLo-!lf z*Xnhb`{;L~b$WAibE#CwbeBt+d~R}~kT1062U3|FN4K`lnB|og|n6526yKRH3AO6>wLc^TQESTUu@Q_~^_vzIS@apI2mR#nL-3YOFoA>kH?wm6^juij3hb=`Nc!gX|xY|1<`O^ z0-&Y#QftV$%e%7$;`L_w%F!G;Tc&uWo_-f|jzXg@XVKj3lI?7n>6KDwV<~rR!Yh?9 zoH$!wXUpuOS7`NmQ(#_f&^$R&SKri97#b`^;|vaRF=XvN zs~EKu^2H)r910Cn#xyUB))kd#D+cx%7}zVtyBml~u{F~}Nu})0sW5_G9F>wPxw(bZ zV2r>sGTl)eC?8Y39CanT9VtN){i%Z2mRp!9dGRGPyOhaVty*!(v?u1K3Ywg4bDBHV zpc@)eYLnS~U!PZKAEXju(G|90*Q{4-Z90>loGW<+FFh&MGoQxqT$%}IPVQ>1Vt}{M zLW8^&YYg;Od}y$@V)X&vjwJOUN_a6N=mWn+9yFV9=d}=3>#2Z-s)-UNRBJIvuF1d> z2h73~f(yf*6f7)rVz3bG$-zQ#PY@0?eUgZZ4vhm2BxAC0U>FmI10#Acb|9M*hmGQx zJS-%80v>2WMXlm z8<f{`OGCu-OTPdZM9!Ne00ZBIT<#Hb0#iL6gTP6T}-qV?X)Og5V-dOi7E z8j}~61ugl3!Binr#M&{J>dtzYNs_5_x}#j|p9TG(H`5~&PgO-7sS@*KrJQH-XLVal2)wdlBrxiH#Cqrz@siksJtrnnsaFklQ~lIuz*OW zGeyd0s7ELJq*@?o<>W7w9z>Kd`AP+>jmiceFv2hN3M4<)WKetQ8y4bo1A_%D6lBrJXeo}5JtHqGM11JWKxr(@&Si4NQYs78 zH(7+d>2yYDTUi#5z6}maKJ7V=a@N+$xPyaPk0JwD<`q*q+P*|;DHjT4IcUkJsQ|%F zeksX$e?}_TR~Abf8C5Lh2Otz`L2+%BMc$InX0b{|a!50sC=U+iX?agnVT`tBDjj^D zmM=0wTaj%Z^m%3`M{Ri$>>3^_Ru&kVGsSTRTgoJcw1jX>M}I!&%_^Um$z)Nwl5OY{7T?X;YzK@JXqC*}L@;CXIlqpmr#J<_Gy#xx3f{>yQVTRUZZddMPDD zeS zXlQPg%cAhdL>qc94KZF}W-5mkR0zj+brqoBq9RUl3bGl zQH6ZE+*2xcdJD>4u@s6eE=mp7&|ri9MI8tEpEk3(MSVhV@W1q9gaUw1C_mZB=8qfG zni@ie=QpQ2Jt(zhvbl&ZG#_Ql1BlOp#Xs&_D(o45`G>C{5s%T;qg@w|rM8ZqKB1%dD z`a^35GZto9%*Smxf9NG78us&raH2AK`o`T5h{EzL(3phM=<)_IQNVVf_+wg{m6(mG zzmOfm=pfdYES4CqU~9ngeW+__(3@1qFDe3Ou4h^WWPy1?h2imq6+yLrW{iZ$xgA$1 zq)byID2f;_g;hnU0GK>N)}~nr*#@l7Etqj&z4QvGb2}2|#ZoF)YIY_m#~&jZd_u9fa_Y3#dsgCY?;7Dh6sJQ4NW{ftp>cy@$ z!0~ZWylrC?CliXw5R;x&82SLwf{D{nUbD)iTpFC!@MU~%@7^E1-NKHpOg~1<*cM?2 z>|8YR+0}tTvIn}K!)7`wf!U%A6@8(Hsx*z46x&zMrV5i62imrgiv;FeHR@T$LN!uZ zveKBpC$vl}0>$t8MvE_?=Sol<3;{ra@+b_o!7A*EWUV(Q3KL+Y*&pNQY|_rnL@|0P zbG#KPrcwSnd0N*V9g|_u#Ne>F$J1?>`Z9D@BGej;C|GfMQzOyRI+RNdWO~FRjix~= z8BC%DsU;`89x4Z{Y-*DHn~-Lvuxo+Q-T&B%X@eRHlWDJ(qFdO#g(^ws6J<{#D+4z#Cdc~*}z{Q~)*!wUzB>P0g zB{2rlZg(iEh|N<{e)P|@D~cL0_=vA6UjYyCnHEhN2ecPG9RicRTD%a%FC(9q{7eF8 zQ{5iQz=$a##vw1P2BN9?*j!aTv@NJ}QQx_4OnhQb%a;-xF;K%U6s~+T3O%c2rx-3n zBGs5KLQ~*RS=gN@y=)%l8v3_5grN^x+x0cc-kz-JiM`o8^@3iB(u-W6$>JZd>@9j8 z8abK*O;#wu!3^T&L+{RGb2gRhDp1AG$Jjs)6U{v|cVsY~yS_D3gA%Ku**O{~y81IP zK+u+UdoByL&*svcU4->t3?6oA&^#2O*oUGPr#?WPkvrz}fi+_PCu4V@pTLuYas?zY z`pw7;P^$~WSW(GOa@6Ayoj-Y{a)Aw3L?uRbskC6p)1OT7@M)lK;HC!?y zwkHR;_YQaiJ%cC=F#_#?xJO3DxdLr^_WDaIT;=V0JHfGy&sZxi`wQU`?_Jcb*(Z zVKg5!FZnNJ0dSVaoZ?Wir-ac%{@YDTiC2>zf?c~=D1=z)YX)%EkGckrRiA6QKL@EoT_(Ct8>>f(CV_j2#8GsDxnq^=G zn1%@_!4^H>HPhPJixVYG1q}y!(+W{d#P+qYR{}eY>FL2Rln6P@^pv|DggG(EQyv7#~_SG*q-3uZ%7KLe1@x;m-`;N3Np>h!~LjhyOLa(9- zW#R5fXp68>A*2b7t12;7WCNK#XbHqulq3-deDbUfoHWG1PCFm$v@x+ao8kf6K%@v4 zg8?X;*x_(Rp>&=6fF!oJ?-r_S-d55x!z(bBw5CL+0or!P5swbs7D9m#s5rTaM=Kz>onxC0;~lN^p@-41vRJpb^=E@`Sp!_ zXjRagg)c`$T&CEb6Wh4ZEoJU^C;LbYwzPi{F7&fFWC(`BjKgpbVPZ#SL@zWm+F+oq zrJyIsINH$3%AFe;lcncm(Zmu~42s82JjORP`rSih<&`#{nWcM`^ zAQj&DggGgg2PHokD#`VjN;H^OgXA!ob156F(66)_Fd|VQ#uuPdEg4^tD}O2qb1X@!JQ5a1aacZw$Ia~OugINfXh_K$!Za*@EA>P7T6mFZ* zNC6v{R44?r*s|x;)qL4?EZT7GCF=(%SE7V0*-Ck-RJvoKtf)<7H$o5AvGYY^bH}Io zkdYAFje@<+o_^Z+bw`U7Xm3)O-U}Y4QCHy%V8*h!ij1)G&u$HmlgpNv~*Pp#uCb`{+Tjb z&!d157fw&ZA(u*@ua=x#)%YH9#>&Q~_c#_4mqE zDaj_=IBvygto%j`Ogr7lFU7yMp;2kbGxB}mszC2jV~ChOxPOO{lGF(qjkHIxBoKCu ziBrgo5^#uW`!E${Q$0A9rBL%d@a_;>=f(D3He``v#6SJTu_bVSCJpm|L?c;T6%tt& zaHSQi|LClen@S&!phjb$D6lGujyL98mPK=R_4P?nj1%GIOb2(l9jQK31-{jWVp_GT zf1Pb$#Yb%iekLRcp^=Ye8+lBSHGq$p4s)!qHM{o*v1bRAIm;&9}fkRuV()fuYi;ahmai=hTx)B$V%Im=x zhC;3%@8F~m!Zq$dB#|T=WvJ6LC1NY`7@+edw0klW7NRb!Xx&0%omqOWEbzf1FyUFBBk_94?AB8x+ zI6`>F`2MS+kQ*Af3dD-XiRLVA6J5YsmW)K@A)UZhs*%HV3$uu%M}^?70t+%K&z=vF*B4sf8ot^-n;2?jiY{?%X)iQRXs9=L{m_%kj zELj+X7N4{%kHZn^#34jyAvlf}hz}c#T!c=9caQL+m1BM=1&uK62`7xG=z=`-K)r=5 zEC}plKaqGy4=ZfWs=ZSr3Pld%X{IRM2FU3a03CGkaB4)HQbLC#pDbDpOp_kZC}s>q zb@imusK%nn_@5FY+;#rzB$9gOe^)8hHZ}hDRb6cp4qE)TwWr!9ob>o_6DnC>+ce?7 zP^<=$DSCm@-PqJUc3k(k#^U(;V$+yHQ&VBWxJ5)0qmVX^DK<70$BrwSWbQ$y8-7}1 zxQZGYi`b-;^I*hyHkJ$%j^Qkp&>DljJeS(KI?+kL3QqN7^vPZuqbXB7HPB=c*6(R& zAUu_7l;pF~Cw#8RgM*0G6cbhQ(wA1*s!OHp#O?wn5?1HZ;uPw{U~eI6zG<4^uAi@f zeYh6g$zU#36JjYk#P}>SO_(Byfu&I$ms4mP#yU}Mv23yYB z5)zBLOxkXExX}yujlr>yJZ1oN!SyRQky{9setd9N>VSc~dP20(CFqH}vLzs^6JcH` zksZ_D94rauex`LM1&Gt_6IQpD@d}X} zzY$jyONOxRT3IUMQNva1P8l_&`m&z|gR5z~)&;lB-g@Lx?{97pBY>0FmJ(mc6hWX>v3 z;;E5BqA-FR6Q)3yN^!m0Y=(OY=$z5*KGSx^DXZ@iWAL$;_aW=QsDLTidFBuZJK$0d&~ zW#8@wohibXBV1`ZjbZJx5EHlpFTO_MPdPKfRU*s{3JeUhQb^Ie-I*6R2=Q8g`XX8h zR2iIwi7N&*rcjDxdy>wI-eO#hQ`8qYVTlx#mRgI$loeS|4*ISx_s9XQa2)MPyYpN< zBWoabGt|~k@f~53w$O^fjB08 z6jm@k#iXi`X~d}lO^r4&sNLwu7>{BwQfls#E_v=;kmWhcLq`lRN=*$LF=)YBItB@~ z=?^Wj!-O#dsm>=ZO_s|dr8fol#QM{b(gLKy+!|=SSS0H=R!=04Xxu;Lo5ATKD%r&3 zY^W|3#6c8gy%w1>VpV#sxNwRt3>Lx_rOfjrmn&W>;&bFN6c+-`xI$TH9B1al?t)fI z5sW5_E5NnFbm5unWfu;F!ia4yt9?DlFLa{~@Dc#$V&w755tu`0M~)Y+-eTO$K$Z~U z{}E&~z*io){+AVH053%xtfL7eA$GOG&BbSn<1*sB66YxRE>AG~MWRK}DO9ix`|}3z zD6z>hd+InJwZI@gQ}m-9+(9i*?|H07nZzpAP1_<)dgB5=XPFlLXa{xJ^~-_aT8#$T zGS$-{Ca)R+J4%Lggbe$rO3?^o1ntHll-#om^*Ns%ZNbM^KAl`}F{M)gJ>-0AHH&b| zbsz-QAJe+sy+z)?JEB|MwN6cp8wxXGUk_Zx6bQy7s<%{4z)O&vdNZ6c5MEzgY#dXB$R;*)P-c(JKsgdyg;eiMqsLo1kA}w!cj7Q6 zoT`k8qlNd1>`i`)kq#6MjbTnMyf9xRzrsXv_ix3?#8%3Rllks6T)?7u+InYsURv{m zQKc^~9cj-=P&7QV0?q!;l;lp(r=Mlx@8}k-9A&lMG@U3?v1U4gP>Z*yQ#chbTAqWF z4v335iz+R@&+YecI8<0k>{6hl9cUIWcW{ST2W_&lU9YeY&#Y5dmC zj#9@|=`!_*biR!HHB3{diAC4Kz$dN}TAMu|`-@79*2>RpL>39oJul3_ z!5;fm!lftBQX)x;{d9RO2>4x@NJP5eRC0GZO3I`nsi{j;!yvjXB&H|o6G{Y?L2?3& zPcwq3%5-E_S16T$Bsz`ePTX6W!^|a4z44Z9Tt1ux(fm=`Gwfy)i*J@}&~&27RC7~T z>0(+8?((hNAXJhuZc`M+8QX^3jx4esPZ z)bdVgvEM9i#AO!%TXa7wt%I+NNR=fy>nFGD`(l z9YtPoY*T5z`(munvxhFxYP|f+&gJs*b~rnq8hs%fzAiv7Y#4X( zz!@$W$G9mj!os~oWT~d*T-Yz#s3ppegVbuHnjFr2L=aF`J?YfA2nMB2Y$6Ov&?2C# ztNb%H(iManZi6APjb_!*iqganCZhYSpcJ)@6Qr4B1?k{E+c=@=i=>$RV(AI1jNXv= z1qU(!xV9ouBaP<78c$-?PHg|_Hv3P}H;?O5imy>J8Vv@XIY9#yrbltc&`Qfih+-V8pG{aH>J=+dI4I-R`RW{*&B8~`!VA}bOM(g~ zv?E8Y!Oli3jV1h-Vjz3&mt!G1&X;3h^&-)5f}(261#^=yX5uuR&}Jjr#&~ls{Sy4F z0{_~W#}A{Hw|udwsW@R=v2ILbv97MZ>NcvJ?Zf0nYU0r&i#4oZ77-mas3UvoT`2b* z>3JGB--TYMnTQLmd%TH!{%30@3EJe>ej8upN|cffBSY3z%9=^tHrEw9^y#C3J1 zM*KA=YPE*wGBXZ0bT>79p*ph1l&?99)DqC3j9DObALZ9komR>IU&|2N9lKdujqWv~ zvj4C1fP+`^G|~TYebzRO7nhp;UzZ0RuNp5Vtp9UK{yU@)=a3@CFlys5(*mNcX#r{= zHr~aGiTr&srLywz(X~&0=niWX*p$(O>dn=qju0Lfj8O^G5LQU?T`u8825#c|8TFAA zLldbI$9BG^+2>4t55$-*g)tbraAWynO-UO7Hl4%N2f@iAPNzC>QU!Y%Fc_(qy{zRQ zZk>c)`6Pyg+S|){XI|q3Vk=3uhf=_VsXFC~per9>1cd4s$4F4U8;GWxS`%Xa01(PWp&q zyKn)$FDu5#0$+$XQCO1H&9j64b-B)Q&`=lg`j_x4))@;Uijx?{G0rq@tPlrl)cgwB z$zk%VWGI?gbp1=+!rC1o&rWh$r8){6DT-8}cu{F0J?KK)X!d+aXZt%nyu#!aq=Tc_ zNKy{7at>=WmnD^m!X<9hK13y-~_#y3k3k4v8)y>G~UEb~=#Tf(UK)AhTFY|hvN~254>xIx)j- z@Qab5ZyJqPPI1ylm4}-Mp`4gup$y(hJm}_grY1x!h!2!SEF;I+lfw$}2+M;)`brtH z7W7rhSXRz-uEb$yE7km)!&bTEC& zReW3r<;l39HJ-$Dx@DFR?wBp#iD^};)nO`=$*TJzghEmM0)(i6MzP5Gg0x~Er{dfv zcX!Q-R^=hqGl7$k@XUZVAvMOf9OfcVUi>vt`PS1zLkdt{@p3?zV6Qo4t$tOBSk?TW zO;NUxDhs@6jIo_wS3jm$SKm~uYrqbDBX;P=))#4P#~Dm|^VEIoxUpkgCCmS8v7i|@ zji;RaXOktPO=FW78UM2h*Vc`dW}N?QvXtMkW5$~uSuRP?gK<~4rJcxLE<3YAA-%v{ z4mj|vzP7?dwkp8~3~5nY@*of0d}PUtRk0K}geFu={WdvUYlBY2iZHFmh=4)(kH9QL z8nU=OTCOq8d8KOVaKRV~4Y}T0 z=qbZ*S6rSaPY1f_sc8sfRuuhlHV;GeT!KkGN7`AYj9`U5D zZ#cA40E^wjC^ipDM!el;E;4LXSr)is1?6R3v(h~xC@M=3v@N-@E)RRS;`#7}9aYsj zjTd!sp8d)}%)cK%$;2iXdHAAdD7YL#N8q;(E%D@0ycT-xxrYyKIPQxPPVVydK)zqd zQGTe2=0S`B3vt$$vFtiX;VJE*0UV;IO0cB?3mw6x=YnE^n-k409=zlYkQ{vY0JoEz z<6Kno&UCd%wW!fiqfXYiaLrRS7LK;Uqx*trk!|6i+&hECq(ZZWhY^AzxwngJsGQ8W z?m~Drx52=uVM)Z5)Ydv>4%Y#k87(Zx%@q|!w9}GJpPQ#TC}i=YK}wn$t*C)aj=V=E z;T9e|xXLG6otdBM#I!}~wJkwZxK_%@q{C=Ls5VbB&QT1BnlIY}E)`f9#pcmpD$$vG z_?o*!ndZmZlyv4-o>}&fp6UY#5)V9X2*c)(Y33)vTuHa7NC#apaB1d^CjGe*LyERY zY@4$f1lMbH29uQZiiZvA6+9zjIgK%|pQP4;&aA_D; z_%1{qvn^a%(uS;>H9`02Jj2PS4b z$5(1n-t>&0q|O@e%oOOjGb~{8UQZ#9FJ(w15!Fkt5HHFX=G#%2GF)=nh!E5MsHC)G zAPoyCPn97e%F((1{2e?6FeZUGM0X_Q6&6;@UsGs&%$FjfZEO zw5rx4iD^WXOgbu(1&WAPVn#>%!bhNpEJehbO*EMlqZpRko?JPHEfTO&8S$O1l`tTl z8$~97y$mE~VQ>Q+NcAN1#bi--GI4|#Yj&>?#@8-_pn17C0#j*vW*&AP*t1|5FNk$# z=qg+jkEbTNes%JbOW0CpDxJwU_n?y$yS$$MTpq6Uc!AI&Ddnemi`it6bvz6p1;8jU zyK735>*WB6Ap0T4deI|z`Q}KDJS3=RM`NVLO$P91hx#oX{~cWD(J3+q2~|x#;x5}f zuiLF$X0W^5n`vGM{e|{@9V}5itTvOu1!+$#<9v5_K20|cSo{p53&}#xs}4-;-q%HZ zuOB-vmx@v?ck6sd#XrI0oTOSVi=s%i9Ch1hY6SKwS}W#q&4q@HKxD$7a* z73u5CCE+hc1wem}LI6L~@NmO#Pl={ui(45tQt)#kN@G$jAM4g4_Q*9v0RjLrZ0a+!IfvaCfE# zjA<8BA1un`S6~qqV5Ff7f-$nqqz5CZxk%x}E5c?~xRAr5AzKkUTovBPE!e`*tI~LN z(_eFul+vG}$;yZmH!PY(v!IMcOm9XyppXxSxNX!zE9J{Q{mS9P6J9E_+q&o@N@|C_ zW+j3v+eXQP&-4y`e}o(mi^8mn4|d^?QYMY>kLWFU9;`U?p(N3p>81!8rhI*Gq1QpT z1{cwnq@@oxhmkEYh7fB}K>%e9zDYO&WIg~Rx|^0#FKL}hM9o!)tuEAI=&_Da6RDa! zzGgHwaONq(>_sCp-b#Xw-zTrnkh>T9%}S>Hk(5=Z&4VC@H5zWXPX+pkz76Foax{17 z4|2eiSx^^U(Y%MN9BJi5I6^0zh=~MO^ru6{Qla06*q6m6IAD$?m)y&8zT+XTF!(~$ z;X&#H<|Z=6o4d^3>T$rgAK;je-EnS)*;GAxYK+I9^nFa zmNl(VJWuz-|>6nOgU1MqrbT!F35}1bQ&5RF#11 zcGC#X&PzjGxKS5}x^N>e4|O3IgeF(Hi1kZEU3~0|L|s_^ot^e&qHc6dYWlsNZltJ7 zMP1m+`HA-vXxMO}`GWG^N+ls8Zvb^Muj&#{e@t+3p#HI9H-WmiRK5+=MJ3X%cq6Eb zGL)ViApNbGsEROC3&?^Y(Uq3-vd>Co>LiL!hh_$DBg%)aQYy6VWRS$Cp}aU?sfxOh z)>Q;3I&2?C++|x`ipm@pcPVLwq+?jb%K!t0cKAPTW(!{w5YN?^Fg3NgrI0U@?>teirITrGpHt0c7<1AF8Shsd;0=$tId&~9|r#7=-_pwM&Sp=Wq-tIi5(%y|+ zV%bVfi?@5!z7%Q#YmV`Be3P2jm*f@hIbRoJx%B&5WUg%xk5q??qJ(|CLYp*PI!c|7 z%3^Jk8uHR`mT6{luPE9^x)(CcFPgwAzj!BX^0^JOF35wxZLLvjd5eOD(ZrUPRtu3? zD|;0tl~(NAV6Q3YUUa>d8_8Cy;T5CQd&JMu-)|hW>*Y zGIYRAyr}KS8JtSX@;GleGZ=tHR4{u4!mv-9bNF*40aonX=A>|@pt~emg4vc0O*YJ~ z(u*iU5fQMc}qWU{|SevmVU2iKJ|VaUFGdGlM88$RS~uq=HP^GD%hAaIVCHw>dB^ZeaTcQ znNk~+IN2yI-pEVAOZH-S81;+MJn6eKgoUplLv2q!o35ohO4=vw){-2VY@3znYM#|H zIXQE3*R=N5L=w8OT>0P!v`(^6WAoTA`X2w!sz3`BLv zfh{%+lmq1V7>g%f){MuXTdT$SiU7^di(k(E3s6;IvoABuG;kKJhJucGRME;*=ff5t z_O0NzrA7`%Q3Wik!R~C~&FZ{1W*A&mVKh%p;MAjdZ6vxoDrCA;0j_*>bV6EE0-^2V zrl#205?Wse=!P`hY{eZ1X3@Dhqft7s9gO*b`XF&PM+?nhr3xWrHi~1q!UVF!)LvA; z+7N`$U}=*3v;meoR}Mr6JL!m9iI<7xV8oUctChNi!%V0@q!*-ba1Kh6?&z&J!NU7G z4owzwg1vJqV`{#A0djRSvR$C%>*P7InXSGzQHt-NET&m zGFHZAHe9x~AQ?B2zm%wi7*cF&rna=;9g>$b*}1E;MX$4E$JG~BinjFiw)FM3^!2v% z^|ti5cg{?)-WIjq7Pa0MwcZvLhA)$SgDq-qk97{TvEr76ZhFa?ZjIKg8CW3{2 zyJg+DEQU2UO=;u}4PTDD9^~~}>hQMWZAzIs;BeYF5)a)Xo9xTxyHjqN8pkBPvE!1% zw)EGuA*BfXL{=kWo7_wxrB^pLxsZuxB}g(IH!N7~1aTp#Rouj;9vSx81b!ZI-0E<3 zgR}UF-59O>WNkGK3)Pn)8m>gGNlq2z2R&67>!9sB`BPCg!P<$8H=)qnMbp?sNDcLH z!78{=jpQ+WxUzy86I{CK(qb1It<}}lHTp>czp0z$pHDi6ww)LXPx;IbXaB8cq;8jY$@^2~!gUsVpdv2inL z&>O$XWl*J|ZlK9V-7vmQbDg6V#p4BSKh$Vt_eyxM3uf&eX7q?UC^&Ilf;twSMqD9L zP-6=l$Dr-^h*6x2rmmjKhJpGq3+kJC8X`t^t@_COvQpw)UcjrX$I#2;W8|12DqxI2 zoLLrnFUC{eK2ihptb`qo+q}PQC(;DhniU##wHlq$0zvW>X0$12 zDgM~oUBtEgl+0I{XS*{Xfrjxh`n+2DE{I$i1lpe%9I%e&iWX)>-?|-I+G*7w7L|2L z@TWyeg;iTUECjB}S*w-$@uK-DWlw4U;;3Yl40=0T;qlENUeWxIhZ-K%2P%wC;dWb( z!P{ToDdm6nx^esVR8e8n?yJ#Msd&G_)~>ZeIb_tYXrUP##*V8xCqZkauJzRoRjwY4 z4va)rICFL59HRm8s_I76YO6FTh_8B(89P2`(U8WkTQTQHPV$`RFEobe-QQ1c%j(7- zjkW>PavRUaCegd)a2ZyiVkMMs zq*)xp;|a}!ay)5@9Yyp}PiXrZAuMk(!w*+9%w%=rl0Cjs0B5-s_`A$Yn* z3qU)(nnMqH1xg>zND^U~QYWFe3tT!%d3e&rBwgV>%m(jpk}4Hdb8eR6F{FONHj1s39w+L==hP z)f`nU5$LW=N1&RVNp9@>&cumLTt}kjGIvLg!bNxEK~t2S%}$rk&BP^E*f-nc5stO# zEywLJ11s9*5bLh3jc=4A+p*gy6cZsVjm^L%4hq)g74A=ihD;IYhG0%CQ#vP7Tqm-$ zH4PbA!yyBI`ZUx!nY0?g#RNqK9CBfI6;22ty8RkxMqz|v%|Zx8nj)x4RE>)9Jt-Pn z6DSHvmn#ZqWYRB3qiZU`%nWe9RMC1OMpOi4CBJ*Sbw*HVMZhUL5gigb@wApFr%qxT zyG+n1{Jw=u%abuHLM@57rHipKHeJ8Ug!S22QPVb>tCnpnQ%o8^m2PSrz0euPpt(2(=~mzw ziRj|$IGkk4=s+B+=o-S|< znoCq@r|5u-hayj78Irp3O#$3kuJoxxJrorj=U;Fm-rTvyQH1`#Ehlu-xf1d zb_>BJl6kf*sx(bJqa?%8rX=B5ml*Ezb0!}*R@_`J6=iups&iu1OEkj1uJMQH!F(Ub zTS{)V5}4&&2mf3p5`h}sVj>BQs*1of%Q^y0D~w!XDu+7v}j zr7=g3HEE)7jbSW!XGqPsx=d~+Zn2!_oc%s$N#;bigmYlo@;Q)95mn)e1J>=_15vDkEz4mh|sUhy&$6eXv2cj>Ygg%~~a_ybB9-7FIqQ>#p(k-#pj za>X3Kc4aCCJvwW#L`DWbd?=s&V_f1p5zSN$B;jn+hRo4^Iu#mLn!Nv3 zo9xY|;NcRBGNAVAVzJWjBCEh?0bSZQBh~F;ys&tw4XavQiY4A7@^G;g-uZK&LjGW1 zsy3O;_u*=Dan8+wEOt?9lflik(Ks;8MMt9C_-3tWocti&l7)NytlY5_^il}Deqms! z{-`!{YJ1=XH9zT*akvsHic39^Q3*8-lV~!Fn|+fDQ`xdvTb2+5^e9WRG&EQdQ;JIu zm*VQMUawG~3%NpNU^Dm9nN+eUUe~OItF9kTTCKrit57SkO!X#<dxyGq{0yt|M0RH_i9kFFWd z^tcJ+9FImH++B?c0*_e~&@2t+PTYm^cE)N@dqgT-_IT%HoG)bhG7y4{1rF|*qcj__ zn54{h!9ChSOWB42pE~a;SNGYyp#qt8Am%~W3uBc~74A!lD9}cG4 z3ap{F@x#~h5Q78VH|W!lLzm22nb$D#>ZUxaNmD6lh-F+3ublVe81~|>*d8<+?-`-H(9UGJ&6S<-DT|nfz@PS?$tL;YLgh_#0T{tm?PH~O>Zij?Z(yS z5j4Tj+g&T~RWX?A2wC`jXYiaNrd}aO3@X-3czp#A@REWPhle+`OL^RMY?h^-F0{%b zUE-(dqwy?TJ(O%5ihSg$g>GZ+!OLuPcX8}&){Vl?<#R&=P+`ba6vvx|W#-L^<~U>w zK>TPgU*C$sk{=bXKsGy<$)Q7MvsIw8NVr#j4vS@v$)N(z6epq0^cCoaY`#Bca*nDX zwwj7~6SuV$7tY9Ab3+X}#GVjw`8y1GR!pT#5oHv-Efhz9myQdhKshucB^x%E#Gov1N9Ko{<8vP| zErd9#g>i7kCc2eCf6HeV3cZxnRp{1n?K7Frd4wi4e!0+z#UJbk#jNr`cWe_xol;rx zKsp0Ap_RoMh-k5?@#96a-pt~-D!@}nr29(c1^ zl;5~SRB7|$Kyj#K2vojN(RriCqU5894#h20(V7)KnjJ=zLWR;)Sx9*FxFoG;Vhc$c zCs8!&NNQZ3xy6WaBbI9pkFE7)V2Q)HOjD%1>pwbQ^ZAJl|HMu->Xb>)CAlhTFECRY zin4HuE?K3Xz{@GAj>VM$)^R1+aw_Ghxub0=G`>YCbGRZkGT5>u%a>zJGm$U?^0R7& zXeMGe=IE>!IjEWFav8^upGDgNb$K&*wxJ`7m$6;1j8%{h`Wxrj=K*^ zRBgW)W}Q;1R5qKV1CNY>P60#Q22zWg>C9HB1vtpO`u!6;XhJXSbUxyol$J zDxhypC(46^`9euP$Jpuh#-lGv;RfOKG<0>mZ{zBi0c*9IbG|+mn~F~@4!JQ6r|lQS3!PPS#Yr_lHXF6V}%YGZU}#OxpTP z4$?+MHqc9W(j*GSIz%c4Q!UeABD)c$Xf4l?XvCLvw-{XOaHO6b^#@H65Q{S2m37or z^yw9oXRy~~`h1$0JVI7Nlln&`tRUIgoCrS%-zUl8T4@T2YN^J*v05^%gQR+k>G{d# zM4*|>Oy!`-7Q|j+ZBGd*0poNj5h5{KrQU6kYBlVL>qrfe4O8@gS9BqtF87p*+_)`_ z=4R~`MlIHAKcdvtVH~X{%efr(NYcqvp^zGa(!!d&=*7X+2Em+15%n0lsoN)L8w}1w z_|#CwqiI8GEU1CI05Sz-+biH{x;ZeK<_op6vF)Qw0Iv8vY%Su^!J1?ro*eg&ZPx}r z%@~cONRI%expr#td=u59sy=emfV~Z0P+Y=tP@CotZAJB|3S=w@v3)E?Q<+{H8Mq*K zZ5XUchT&RG(BMrt{i|@L!2rb*fdbix$&NOdwZeRBl8eaH=@o0|%723o?Lldha$GBy z2I8j{CCn(T!hQnhgjxa0{U#$u%fS4Ec&^spW=Uer?$=zBB}5aDwm*yoUaff98mle> z!Z8{tD%~G}(Nt>7xJ9HgRleZq)wutI#ZNfu@r9y)zqq0h|>g(&T@RS{b;+6RM$V+ano*pZ3p`Ztr8 zbG+8rx#Gbw{5izbHN-21j=0dL5F_mCL-nN|mGpJzTK`v4Mk~%0kg0RHP~B5?ZNwBF zljaICijW72aV2pTo3 zWN@`j=8MUqwB6vnRI$n66>5EZ4s8WhLe}__hbVm4d=sG%Oul4GKWmas1Y(dZ<>!0w zAmC*YDQlQgi!(EQ@-@6#>q`u7dr(WE_o4Lyr0re*pJN{+G*Va%pd|$*8tl z;C5oc4TqYDSh6Q8t@G!}*T!<0gPparIij_E!4 z9w3F*l!BsuOh7?C>sUTx3EELtuOAttWW18xEDu~8=o@V7c*dTN5YSvHWoQcckQ}=e z^EoL8;j4O5?hJy7+Tnxaf=o#FIG``k9?0oNxe`gUHyh?9O`Ej6NFdRlFK5#ZuO?2- z@>4LKn(Q>&nn}%rD9}uz9hDftc1fZLUWY4tu5?i#v(|Vtb~22KS`)uA9e#=ok_=<;u|?{_GHERLvC)azR_;~6 zlgqUZ_y_7!qvVJt$SNFQJObWGV2q-zA|-BBiks_>HakVs}k zCL#-i5>@U~R7@SZV+nmo=c74I?C{l zfX)fxB%Kr^mt!hR3&GBK)z~8Y)TTn)I7pE;$S7M~T~rj!9pAlRlkykMR9NnuaI`rQdLEP5GCB=bkf-_P@RM8T}NPA^li}l z)VOiL68f!=22Ih87cyQ)A%PisTwvr5YrL9dd3fLIJ7kG+4;K5ys`015g)asf&4juZ ztk$Bdq2sL(GI7U7ek6@hwL>0TKs6O?`^j4SdD`k!Zj-b9l&}5Dt^KU7{i^Q&UZz&> zivRCrYE=^ddzo65#8><>H6|_CG#NmXkES8A#9=) zr6*)Ts<@9Z<*I{$&Cr!?+=--Nz@?OxvMPopMHc(-lsgMPGD_h$S3Ch_co z=T6`Hrn`4oe9`gGuGDn(ySp6m(BT8?>^)=Kr?ctL#~(Sd^_2Jic=K(4KX=C4+Yi6s zqTTvhA6)RuKQx?i#3lRIOxfp8n;!VY!YdEC;@Wxn``_xlbLD5Bd~*Kq_Icm<_d(Ym zbihwuxb2u}M{R%cmyMr%?B^$cbLsl4*B|qpcaKfZd*NHh?)lrDx>~n>b?~K?fAWLk zJ;z)(bFi!R!ZlBPFMHOcL&m;-bj#j*_incNzkj~@ORIOC_4{8Ow)aYV?05bJOH+$3 z+_Ze`gkQh7cKhF+S@-?54n6PRqd&fUO6zHT-`nl72ltz{cIz&+^%M8Gf63zg6Riu+ z`oSBe@BMa@^E$WOq;BWadpq8_c!y(uKK+PWFZjIeou;O1=RSUF!#aCBv+1Jz)h9gO zwe+S>2lngQ=cv+$KVN?Kz|!^SKlSQqQ*OGfsjKg_kGGw$bkx;U#;*WCsZJA#=v7q+sBYQU5>hzEH zI)2?*C#-Yc{g3w?dionP7qp-LuU9{sG=BY6wmERh#aBN&_n(aogN-+y)qLbP@7-Yf z?I-SdZ{3WY9^PrQmtM{PcI+{+&K|65a? zbAR#4i^)wsyMNw2Z$EU;G5e1$4Ey^(esjX9ne9H9z1dSce{laX+fDDgV(^U{?_6_! zVw0p--e|S+4;X&?y!Reh$;(sE{NvM= zi`U-#zyr(v(VVSaklG*`T=8tW9-bHr| z?RwqD^;?{~=EO@@UH#wx{CN59bMOD=%CGK!?JwKU`S|B^-rs${8)~Mn^qXf69`TQt zzn^Uyzu7@U%b&Vxy$zSm`gFmcUwbTbXK~u`+g(|E_V;(*|D-j3vfXF<_pH9{`RiWr z>UPrP>ir9bRGderaV9rQj(Z1ur0 z$Ip7^?T^=eD*dyA7XA9sq2qVo`L^Ra-a2^08Be@Y9)9~qne*QoecF?UKb89I+@n5t zb&|LDpPR3`;IppBTF;sH$q(=R_A7()2A=t3*?}Y1T9Da!-+R{I?DHG0KOwW~Pit2F zbfrJ9yQrx(@%LS>KH$;5CntQc&h)1n&;RiuC!DqK%fC75r>Fn($KSi+ky~yaeCtQ4 zbyj)$SJMxkx6^hnExl>Xp?6<3zjwRVZ67-7o>kYI@|!WYKKAyxlg>ZwQ z_08A4bN0?Ve}2r$XH5ImWqWURe0JMgwmbagk5|7hf6GbU(@W1S{_7`m?&x@W5d`^^9Q!JFNA&5cLi_rcQr_iw)Vkg4lU|MS5=zxdE+(|a6$ z)5ziNTg<{^ikf809PY&a^P zdh~;FqXz%F>ithFnta9hrCa@br?*Z$X35!g*DSkY_3oygQ{QX)$FN_%xBT%BcE09< zl@@yMPx*A>1H)H7@?LM%r_bN%`p<{nIc(gH&rN!K^Gi>7bG?`MJM*O7d#0?v&nr8v zan!9poA%V=d$;Ji_^8)Yw~u)JwpEw)cbszNA%C8G*TlEBoB5+rA51%c=;>W|y#9v= zobj*JseAvWKhb{7+vi;It^Lj)_V1@J{=u}3yoawlVd2&b=XWe0p1*$Bj@QrVXgz=Y zwV&*C$(0-2u>BdKP)V{Fpzpr`v`1AjD z%-(nGweL6n**b3L8{a&2_>W(?;g(5HEPr|SpD#XlkJWxW_SI)syW+Ng?ce+8FK5iy z`-NR^nZIP@*?(v_>c^YBHT<0^iMDV4?e~S#r|$p27Gp>6yY2~VoW9wiKRy2Ti+5T1 z#BVP-aigDqxaPzq+528R`p|D(-9K>Y`|E9S)S1iQd~MUspIPgXZTGwI^JAac_p;|U zc`bL)hhx9B?;D$~e8!gF%I|dJN$=b{GjrhQue_Pvde|9_AJ1F;v{d=;&t0|eU&r)6 ze8v_ZZJdAY+9e09GjrH6pMLA%6ONs8(}dffPn~$)U(TL?Li=xibIG$?Ty@dE_B-UH ziFKd9+qJ>Q+vaZEW0Om+`FQ4Mf6A=)t6AH9T0CfjLvJXqx99A;{{7PJ&rbO0@L&Gu z-sWk4?0;jzYI85zURx3@5E-kbA(x6bI@Zr6fl{+V5_=>%Nr^+I*)8J56|ahr()yPuy|ZsyF^( z=cSW7E?Vm^^Pk$~_=N}5&Ux(6<3Bll;q-&gTVti6|JhxazO~wCH;+5NyZQ1X z=Kt>fjsAH=^BNz$f6?`~6rTUd6Xp9ZJo=&SZ@l$ycl~U;m#%y3(XIdZr_{*VeZP9= z-%mXMmyO^5-KQ&U*Z%S&r;OZf()iCmTQu|e?b??7@GsA=*S_HqGk<^7gEwyb^M4-l zt;;XoX3abLk8ZrZ@fZ8fzGK#dyDt0v36tiZGGpn~Q||re8k;=z%mFGq- zZP@OdllT8)x&MaNQ|cc4;Ct^~*f3?U!!KUDJ@eL-=RfR8P5sXOg&XePa_@EDI`oa} z5BmJWCHdJme)!L^3oahIe*5#UcyZg0_S&}gtW}-dBLua zmR6sA&0ohHwbrSt?X^zb>c73?j?q1D-0=KAI+|Bs^Qa}`-#zrXzpnH6_tsyh>w=Nf zw|xGJE#~fc&Mp7gY}6GCR{rOl(-y2eckZ3%j~{*0yKA0v-iD_x-eG9(#k02f*@&(a zw!CeNw|;zJ-yf!}^vR{8FMnp-!u9@i)ZQO#`{`=S&;Q#q&uy{&V{LD5vdP9LT=Uu= zTJPTerBRa;4?ME-(r;Wk;@t}$dUeKD4^3RYyldh?mwbQ3UoSfR)xB;V{p6*m3|-dy z-5YQH?M5vpm4Ej5D&_5OxO>Wb`>cBPgAe|0{#^%sUjF`XKYi?mA3T0=M{e|Pe|i6> zcfWq>Mcc0S$XmN?J#^1Yr*D|=f9cfquHCEd`wvXL?eHTG|LsMuPrKljx}j~~*#FVv zR)1>f{hlj+yv>dE2ir3yg|Hp0bPhNcDd2gJu=W*pF`)s(uDZ796(4r$(|LL$_ z+*1GHhabN5!TG6m)<1sjrF%@CcjAq2w*R^N<)Pt! z|I^kxt-aBW$4+W~=>5kUPFelRm2bMXY28h(xoXF!O5V4(-FV#b@14K>);q4h&JEwa z@xcp*U3Tx!zOixg>fc>C?(FT(dhGP;T1KWm9y#~svzL9`aOE>KH|(|6BL_VBdCl2% z-<>)9gFoDQ`dXvkoY!;iITt*VA2DyO1Ah5H-4P#cpWO4>S*xD7)4fx_bL=_0Zu^6a ze|O-58}Ha>(-Z%+$(PmdD$y^#f44s_>Yj1nt*_sEb5p|&pD({I-SODdk6yR*vbS;@ z);>S?(Z^n>Nt|`{8sEG8nCp%k>pi^pyN4e;{*#K z{_>-Cn}67j1Y0R8QDzy!i4BxsjJ1`NHdaZn*Qw z=e_>RrK58*Ub?bo+*ZSH+3H&l9DLk6=We~t4?Z6E!?r7S>)+_oXaBus^33o4eb2!W zPhYU#VW&2HcgYDawqCgFQMJdX&RTcr;^%%bPy6nKbpHal>b>od5jx-Dljf{o1!p-f4q%Tkd)0@JIJ3 ze02YjceWnYko&o}?1fwR9Q<(V9q0e(^p4Vp!_Vx#`d3RTm2ai^EegwjvgVRGjh|e( z`;lwB`A+vUA9v2)Ci~Ar-(C8RU6(A~=E&QAd*({tyK~Qz8hc;tJLApMo8R7P{hc2D z$>PGOU7D7xz3oN&zkkf)iyztWw%wjQ@7eV`CSUZXp? z&90aKu-@|BU%%+k>kfNo{4Rh0|JZx;=%|XIZ}`qkb_fA7lLZnoNr21*Aqo2`6V@Oo zJ6sk?!XgPF@>>#Pe(hyJ~4%Z_0`M6dm*bVI?S!y`Ysec`<; zFP}f?zUYeU$A8_H#`t_b>Yb#=u4ngWzT0(Vct6YBiT(P=ytwb*meW3%)B20wy7&EH z+@nJGHtjdI>tExs{`Dz_mmaqF{`C9U8E0#h)jB-%^_*sB{IbWc*m%3s7gzR`{5bSy zuLt#lhWve|`v~Qq&ti9P8ro;PyzJAzx2>PneeT{rcJ$PQWVKw->-d$pgzvsy*1|12 zsL|zR!ymb?3A_+F%`Lb7FTGxwxvW{2A)Ei+UH#67zbzT{@`AqRU%QU#y~s3p$;bI~ zXAQ~g@#=@6(xrq+`p_jF2U;BW_-5l@ueTWAV6th{ubMrXyWi=M!o^_%XOco!ZD z$UNAr@yT^*<1cFtoLSd3uS?A1uEsatE8VvEQQXA)8-7q8E$Z9y<@Vlgt>W6QIS`u} z_R{67l3Dx5G;Y?T#@StS)8@7Pa)V~xxHhfBJPSi}LN{y1zV`Tu$C+Tad%YW8JN4Po zW-b4iK5tIe#hl#3u0EgE(KcmosquUzgzSfwCzMu@UO1#O&HMa=7)C! z7OvU*>hw&|iEcCJO5NRg>sk%1F@M8^ z+S@11i);Sb%}1-pjJxBR;uf{cx+vbbx#5?W1Fny^Y@7Xi?{TlZ8a%zS!(ZQ;bie4_SGUIH6}o=ABItz^r?;M~fAz?U zf@|}89PN?b`{St@SI_KDYi=HT=3v=?<*)Q!GBteSj4u|yT|A@kualj2ERKBc^oL0c z;tt;~`=e)v>)Ms$8vl8)SI2-4CNKEq(1KsKtPJ>OO`AbShee$7t+oG;ybdFC$L_s4 z{PFzK7dIH1ZJw~AZA@A4m)~t)_uIy(Mzj9h(yD95>?tjO+MIZIL2;_#;@l*2>pH)$ z`+Dq|u|u98wBY=@Mei>jeCf>3J5A=F(^k)Me{3APc1Ep?E{hMH4Ga5Fvu^*a6BGZs zFuW*eZiAFRS3PR+;vVCLyPrPrOE`SI*4V#Jw9T)+@BPg`*V+4Fo1Wjr&WIUudqm8J zPrsSp<{eG7{=c5Ll) zDtXi|4^H&oGH1(xYV)_n5Ay!~cH+x!>H46QxD&}A{XO}G&AQ30R{6boD>v?g+s$4* zwr2U!7kc~p4yhBBe{uVxm0eFxX`Qij(b|7b{y52hz_9tb$qV|m_WSfXx5IJY4D~*| zyU&poZ_V|()w^M}GjDmmdAQnutry?+Y1`!OKpeKvvCBF92+{$I9ykE$Q~U_$h93@O zB=i6N00q>%o{xal7)Fx3@Ci`5@Yz!dbsN~Lb@S$3%$!jT0IKU1xgc)A!%?H%w3NfYM?Y6Xsy23KZl0{nTjQ?HPK!>{ zYBVuE(cW&J2@B#hV{|TBjjLo&gj(4dH436LT>3_5=-OoKv>L6p=IgtYy&8Pf=HJ;H zy3ER-apF&6AlPcEfx*a_YSEr?_ z-M%IEZH>;*gxOmI=G0|qd?et#v>6(Wbm{)0vfLrn-u$9hR+GkqmY<&yye+zTd)!~u zIv;5~?{WQ?yVm{n){vI9hYuLNX~M|H`%kVp{Z;!17u~YTe%0;>8n=Jug|TPeFYf4G zt8m_@-Gg6wyUmuO{XK5C{jRWP!mPL7dFyoEmFjt!=dPD#UEKNBsr=MyA9VY6B(ajn& z#1y#CsKn?dBqqcqBDz6zcy?%Z$bw)|b<~szb~T9_@0?AD4kr2TCYk`C)VoD)yn4xL}01Mb~t*8-gxc3<<{(0-w-GyT#J#$-gc7n+=?2Cc*V@t};<{t-nY?Q>$r)@(ee~P#58V2iZ(pBZy?5eIP5qWkKiB2- z%TshQ-QN9RgQd=+dj;p8e-!oBE1TCGA28&v@8a&cuj`R8B=C!?E5FUlpD=eu=wH=u zwVSXmqi4T_)(6^TO#Gu?O#jb)vU>ICF?HFFzGvoje<^rc#H7zkzZ-sc?$HU=JX>BH zedA~=oj&lw&2cLg>yQ6FSnn}*$zP2QDgHe&cb`4;Y4O>ct6tr+zw4H-etlE%Iu_e@ z=I|?hnr~dy4wK3!m{hj%NkyZzw~_1rxmkpKsA-F)G0mf!wWL|3MRe2XHX{3fWG4Hc zri>d|R?m>EAM17RbIbMih?(;m-)gyKaIb-XED2onb7{{B_ubzMi`EteJYUks^ZeY{ z+_k0Oo_^)s`r~Vz+xp3kx{=31R&AP9eOvb>!@l=x)$Gi1pBKN;Cx828;FS9>*SIh@ ze#1WvbRQ2~_TtOlcSg4eH}o_N3EsEz;e&TKo$d2+zT9W*GLQYnhiBe@&X_X!U`I{# zTOV~k>$9=L-9|l3bx!^J&4I%;E{_Phc&5XFw!7~6)R0zG+Z*cFWa@?X-an4?dvEKj zE4ud|n7=zJc3;Wk>yy9!ZELTtb3%HJ@3T5~(ebGxtJTbmeY4r(^u5vYA46T5zLm6Z zS@6$eQp?AV81re5ORsHirXQ0tedU*p`IM2NnT1L8wWo%f4-GvwiMU4VFaqs{YL)ZH z|2V;9XlS(xHo9bJJRs2pKS?Zaqei=GqSOD0j#TFyt;Vk&O&qD1bf!^ID)2qJ5lu5>^Ny(|kQ58$y7~{y9#>7c8jr18Fq*7C-;miHT zMBMwD%w7*Rro4hWW9T=@NHXveF>cKo>E+?kiBm=!>8%u0m^9jm_n7#_-BhYHEp^Ou z4uU49pe_jmWrcj)0W(gXl88IPP>)`1<=@3@QfX+i>1%k)b-fzT_~`aq8-BVweZxPm zeK$S2cYetH%=vZKb?DyeAL|Co+s}Q!cX{ngpWjQ}@aK1kjjbTJd2?m$<(Z zT5mGk@6d3padES854|(a{(Ng|RB8Wl!$#+gYBv30TleP%-MZovTI0&cse!!@Ty8lx z|ILAycdk3!wA15D7hc^oC#T;>bw7KjQ~lbJU-$$ceDU28qfYfq^Y5c9zHsG6**Q=5 zR(qyR3yscjJ%uT3kBEr^KPYRz^|hH5D1Roy$bPoMtXdJXB?&)91~7l&XGqwT)~sKZNs-0rsW$g%XdPW*89 zmT6Ab{f}Z_K67vP-s?>>qIdrOgZ$3o%eAjxH(ady==96p@4k8H(%|;%2gL46@AlE@ z`#rw+@cx~)JHDJaap+60A8GT>?EVdVhqRyPdD@b=;7Ie(6Nk=R_IM+s^PO#zMo-!E z=G$KtbS-`(G5O))MjN{uW?^_ck9EmFG3b^yT-n zFKK!We7DbMKBp&bnzf?y@h;&bYE1I+UjEDS@@@?mcy!qPWBY;M9SnFQOL;x7xA#o9 z^^5j)*?6m1%!b<5(HYw2(bX$vKW(&Q@Kj}-GFhFA5Il{J9vR(O%|~k&gsKq`W`k6_ znQZ#>(No6aP4O{PqGKw^H47U2XRO65MK?!x)>CIw12VPnQ$ry>o0eCeA*=uYbB1iC z+6HSvqpH^g+dMl4U*V-o(NkweMf;I`8c^(5J=#lUqSM)}W34t7rp$=1b-4A1$?fh0 zUN{p}|G71e>!5pDw687X)L>Uv&Z16xWOWs(+TUA4n>99IZSuzM)<(A+ieS5hjw`0C-L3J`-@%r zyf!y_j?Bo9XUd zrH#9ODgSwJ{mXu}Z+c!>Ft6mZq?QAIX!F~m#amjwer$_r=ak4LX?{I}!k0ga%$6?C z{`ZYvTNGP54e9)9+R@!d@87n3HEh+<(S^^O3}Hj|e80cp=@Ucm{dlD1#HlsE?eL55 zq)*>ygBZC+q0bNdf4#l?SkZ{_&3;N9mh?&PF=c$uV<~P6T713j$6G(I7?*RbEbsb> z;59v73(~}7=$0ZBT?E5Lr!V@yw0G3jtZEIh+n8r(Xuii>t!}kFburZ{GVYq_po)yA zYm5&~^wBMwwu+99Y12GrXmpgV)Fmd&#kh9t*dE2b@)~q&z4ghg<`W9v9d+a3wo4sK z&%D$w;H$&Q>!RC>3Zq7QYGa}>RoKo5{ui|~G-g|U*jG~r@swZtjx#1sFp9UEJA}nF zi4HU3!=rdtdeYbqVFL$rYuq}lGg^QkXGJOh}G#7zk78ePX=$J9TC+Fl&qoO-4^09R@L+ zyMsEw(z{L1dwI6UR~w%nH5zYG;Ik<0qbLU?`@9Vjp6&5QMIt38b{~!JbxwG3dgnpi zd-v?qX3V&Lsm+JZ7}uiDs18IIB?#L`iMqfr3GJhp{O7&wqbrO^7)qMH+!KG zY8)7JbxF6w;m2y%|80nI=$XzQ2iEj{BP>{xG-K7Fab9a4Y})(wy3Dm3_PpKux%u&* z_Z{r=UfJ=VB1e>6{n5we`KEgtAB;`tk`QL@`^(X+Y4ctg^kTxSeDM6IwSI4U zxKEQe-wBwN`7rQ&ew)`OWh^`~q{$NJTc^V6mt2%nI%diCl3y(bOd z+IRn3_4ZC0^I%%ry&ERR4{rHYOP}qLFL;cb(a-<*nW(}49=`j0Oo8T@#;e+<9Roba zSQbBW?H;~y@6wNtrr*Ew^QegA6|*wl~hi`B?-%%G>jkp3*O6HVq=KMYlBkd%K z@*KnSmH&^AA3JJP{FoW^*IDDICXTG!-Y$K3?L5&S$~)*+iD7(vg?^I~CyseaKbMy| zzu{wfMK!Oosmwb*epKqzDfruJf}pZ~3CB6Vgn^tu%|DwT({I!S{9#&Burj~AK<;;E zh5M=b|A8O%$JCjVpKkB6dYn<;+MI)$e>Ok-(OdMZ`meHn1<{<}G(kZ5|L)&u|7pKL zF`S=hu0(k@XjKI&!T9)Tlcpz68XccJ>6H|eRn~8~;1?$bDCH~nsXfd1_%TWGuS_9V zVgD-g%YB|}Hb5vv`TuG!%_}n?Fh0IZ?10$#&b?pi&u15PKFQ;9q)K_>Nk4b|YT}1+ zkz(tGXY(rpE&B(4_IkMiIY|@|fFD=tS4aJdgg!=JUWxMd{Onk25z-?5e3>oI`a zEsrK0{Gp^LCXO9Lu3Wjj*_HI8{D1i|`JD%v#QE5Z z5)*r#igV19j`Xvw7ZVcWQ)f;bnKB`M^3*BMs^XVA4a;p+{90#ley2pkDF46Um;72HA4rw;lQKEKOR94quO@{E2O#W6 ze^8U*EAzWFpYxk6=13nL2gM#He1$Bc~)znHklMLWJolQ^u!8 zbxWBx39gx(GN}m*90(gVXv~yUU{a$x+m(YS@o(+G{|0gzDQa5kl&A^GBk4yT-z2ul z=$S~Pko}{2Wd91ibbBznJJuW3s8N#`QSE6tA?R>Ndfucao$Mu1J=so@Zu$$6@@cB43swpM?*R{9rFq$*HL1KPPg+@^(<@)2%$UP**MU2rmHy5h z(Y4e=BOM?*%i~CSC1?njJ;JrLK!?w1u%j=k$a^T;P!DI0dS33UWD9Ndm2X zdq*=KdSyHGD?cWEd#^YAWj6XA{-Cx^(~f*atGozWYTqb8ZUd>*xRSSTJZqm`>4P$p zl-4f^`aGH434MWnfDe%^i68YA=;j@poYP4s_Mr2H4^Q5#)RruKi)Z$`NYV~*Klym5GeyYwX2MPlP` z(Jdn%hY=XZTctL4eL0;bn)JY!7kd0kd}nt>ySiY!bjBQ@vFj&;a+T4+7J%6rY5$Yi zN32g!A3T_yEx(9)60Ze+NBiAl_TzjO78+#_jit26 zM}iGB%2Cu;edP$!)UUZ)ENwhIq~`ZLrTq)%aepXs=j~d3nd^}sL4K-NXsoF^CNi9# zvWawpe)|C*k{?#%bqjtFc5VpUbe6KNhf7)Y(SIuheJyX}3+fw=w`ny2% zcVT#>{3h^fep>xVxe#MA12~IT+D~}O&p}@8ySy2V*xVM2x-)=h`sn3heeV>-ZcdF=D-+#;Z zlm7PpS{NKD4+byQSEtqE`qNlTD=Xhmc+&qR ze^*}azwQXHPi?}z2sS4XKbnsTQX6Bzi`v+cL0_cx$voRJi zzqbMn`AW8nw4d4RbfjD^{6f7H36)E3_ zEaH=hzPW~WXTleJKx4#@`iaWY4Uw`J@~U6>B2DvfEe7=p(bHVw2bt7Y)fnCnYf~5K z-WhG^WG#uuyoh;(#)!&C13Iz?<;g}IZ%`gXC$dW^gTBf`2K|)QfDZO0s^hA9dHEW`{SBO2C)S6?kFRnKvc3bJWd6h;&7FKMe=zu1?hi-Q zKGQ4TquhSpJjdu^3&3aTmiLL6H#{QcL!cu)z5!Hq3zRtSOW;)9a=dK1y$3w$c7Q=g z-S*h&whQI*^$LAm)k`1bxBKEz|AY@M{9WK-W}e-tTC03FFCTU z2R$p>aMQoM-!ec`A%8EIuld(3j|QG(&H_|zr_pe|UKV`EGU#Zxk#=^AN4dS-hB11B z@@^IS%o6&H0FA0o-ut3|OU<$cc+zJOpsG)PnVGH6Z5Us@(wRX=eV(_|rya`e^=ZZE z4a$rv^igGG=W-nq@0;Zi(31`=07*x(Z7-pBG;nI2*b;Mv|JP83}y zy>2xby+P?)$;VU~1zWjZIe(kwQqYiIKB%MGF7Y1OMz8#XGV(vwKOTK<^N)wDOs}+l zhK#&yVgK7`kC5>IP?eE>hs(Ik_}F9=+R6BtmFblbK>M+xwj+C^u8 zkJ-Ree=7_+_TzTw!q*2lwhe1dGF+e~2b&=L`)t_pB-rk?QSbc-i6Z$_I`w7cM z+)aA58rnx~Y5`jjYzdz@ggCTR=O3A&wUll_d@lXYW3}t3NB&p}$YV=iwABymmcQ~7 za1?|62Dmaz%4*{--O>D8K7fx=$N1#Y*b})Qe#Yk=ic82oRQCtQ!&kY$pkDC<{NMIT z!ED|qIj79>Vbmi%&jRxC%=_e!h)uo(UhR{@uWfzu9`H1#4>0K1Cwrjpv--pediy@v z&gvVK-#)E+k4Jly2j~;tr#j_G8J}ymq8|2b=S;!aw*_lUY2UU2IO>;zsiJ-PW;q== zYTp__wS6B59z@Ui`YBh%9JUlVius67(RA$ZL>!w}7BU=HPiqq1`Uc%)j}*6FM}H@RAH~(<88j%#4Eic#0qyq)>b{Tnub&c+a+gn zMtK_NYP+s7{(9v{A?GrK{z@Id;_%NV+V49|K{+pZ24%lQZOI$X+n8=O%Xy%sez^!p zeNN??J!aV$Y<)=+ocq!t#?v;2i^GpiIP$6Ld%nu2tQ>LjCsoWbWVa#0o;%F)b|LE% zJ6VPAo8`>{e*o|U{M0!mcBfe;AJ$_H;69*NvXLj7Zeq~juB+4ZhDXTYNA^4+>7=t|aC%*Rd64o%)zm5HQ`wG!Mol9E32~-dE%m7sF zY3a*pG@B6r15Y;2*-mS!uabZ~pWC^tB-qwouI+5lS4m{Fh=r=KwQ9417rCsQ^=7#T z=t-A&Ky^GTVtyM6oLVOqw0vIDEA54hZVcM`o%WTn&`s@!=TUBN-?oh2pvN#`I2pX~>Fl-uiB zQ_%OVLQnO)ko3*&%=JxNZk8W{mh|;TUDb~DAM>@w131!?;*}7A(*dW>8-=TFw!IFT z8{kE>e=?|7{$SA2&cA;`XW|C2u4$C(ps}?vmJPb+@puL~!U$?wNZLxF^ z{Tkr zA5fJMx{S-%#`xG|yl*GN%F6W0&5s>rF#l;K_-C5scLaZ;SNSKtWtNvBuj;#6@KW2t z#xUzAUuBsnI|n(H= zg?cm=Xe}n%KY^z;K{F^Qns`$i(^!n*uiQl$pW|)MzDnYc=idHU9bf*;=c$dV|Nh46 z=#>aSI$O0rQ|0}kQFNj|eg_TfPXqeX!29zeaHK~z&Wi~qh1ud&%g&JDCM}Ow&5a!6 z)w}-u+`Vv$S?>HCFS~{_+JoSyo{y^MqE*?N>#tD`gP!zE!+Ey1@R84e+lQap#yv<^ z*moM)SFgMaoH~Bi02lU!>PLFm*b?m$@`PjE*F;_7ugZ;m)mC?ss5=8NVSL^1a*y_fM zy2*fBjycwqMP1^r*40e1)$Jqd4h1}V)Uj?4QJ46ubrUDp>c)z?Jpr%fJJxM0>Jopo zZvHr1-KL^$dq8cax{X9#;;+^XO}5ny7j+v0vi?gl%UcQ}+5U<4Lv;mS13d2=KgEyL z@l%Wp>Xmu|1~F(*>Ii86e3{1B&BK!39pj45>v4NuPw}%3KN@QkTk%*rK=DF-qM^JB z@#>B!_fxcjzr>(k`S&pSnO-Sl&{uiHpuf@%u&QxE&&}?kOr3)gB(a|LHp{;NPh*0O z*KHjC8t^o)Ttb;TM)C)eJ$#k(z|j~e2E2x!ItP7CdGN_;5!8ox+0Q}Wp{%Mo=quQV zk4JyyOVHTQK_^%poc{q+Fa5#h|2%xoQRQq<0dYFKx#8j!v_=4z)Mu1>Og=hkupnftZ&;NBv)e z{*});xSb733h3?IGoIDgEALm)9#wbaUtIUXc4oOh=t=ivK(0H^F-0GY22QP$-c{9A zuXGbK`Y`CIYftD(ZKb}6LpkZj^S(+KMsHB&LpS@lk8F{Kvt@#@t;}*0(2-6=ulhLI z*~IFTJRVa^P$RvNKGsBvq4?}@hZIRQ# zW(%E=>&>8}Ej+5|H`O*8(A(SQ3G^nJ&sU*8#gJ5w>|?~w_A z4z)NN#hz5vzd($gJD^c{6vDpbw$9MqjPAelG`FiBF)H?Fh%tUe{O}ui%tT${mC0a$lFp#NGM7Pv z@&q((5 zNUY6jOzY@d?a)TvXTC~nrk7rs3B9UX2kFd~^okLB(VWvn=u&`l74i|wDV#q6SIGKO zuTUCiE-i^R9BFk-SWfcx~!jZN+f7zdydB3A9eh9W%Uipf=V_TBm98qnIDA04??*gv<9xSPf0ju)&g(u zQ%#U3J0|4v_J-a!$-%&pzcd51_m^}H&i{b3_m_HhcCO3H^vdum?5x_yi1SvGS9r%H z>x7&@A&16Wv}h9>Bk)zC)%6Z}a$|YBRl30y=ve-edI)N((^y zv3Cb~YNI#!;jZZ(edzc$)V}J1|8K0G?fyySGibWsSU^0%qYRLE_=YwD54{3?n6B#B zIuHHqWq*fqlKm$jwR6C0{LJSztLLkHQK^1avhzVhvabR%*~v6l;675Ny89u!vhUMf z)xDr29Z3GbDSUpF+H;uxyGdRz_>)bN(Kj@ICVpFYGSQP9e(%oFx7SfSK}U5~3q5`~ zQ1v=QIxM%-q17ZVyFi>XPP=Ym_XKAMJxH$R5AF}Cz>%LW0?fdV=3m-7OhlTkmtWcR zED-ktr=X1cuj70^p+aXrB^fm2J8B!ousV8W2ij1T4HHnV+OUOqj#d!E+mU$HB=in6L~ShqrFKP3P(_BPbBI(lUw+E9K>^KDs*#`8DQd#Qt5d?TMVf7|KqQyysq*Ua6AUa^M9lZbU_NyQ>^nXV8~9Ny=AypX~BI3 zRre#nlU_tmdXYXK3*0%tQidbhmeTzKe;SZvlg!;nQ@)nx8X`s&9YZg!{jOrtmv%)Ah*530lvloc6THFA*@rL%Q=qttIQRmfrEuEMAY# z2HpwNEL@)%=E(a^@Vem6`>fSDwa@&Obl|DoYXGS&ivZuj^KEVye`Tg9Uk0e2Vy1Mh*<>n%0m>9WvO#NcW=Ln5iNKNk>42&~y<8y7d>C=hOyEWW2OtnPG^jvPS&y%dUrsR)$V{AgChP1J&ivelLjjIrlcPC zj`igG9OtVg*7A}3x6yqQU*!bJlB8BtmI%Fg89kdZD3A+149Y16eU+1dM)0j1 zD^`97g?PonpFRLR$v+OL>gO@aHh(3J43TwWE?bEhjLvCtKuh)G;%#(AiJXr7m}u65 zhVF|O;u!?tzTF2KqHid@5oO$Vw)a>jRbjuoup8N(WZgeV?ba$;sLTD4o-6QYbZ-Dh zZFmPzZA0$MHofz2QC&KN@l&QS*?!9F4Eib>oV)CVZkU5!z30EV4$)0xWz@H}Sdn6> zs@8JS?VY}6c|7W<U3(b&0Z#?Rl9!w8@FpuQ7^qc`G+6#5AtDZ z+i*Z0-}@;qB5e@&@{x)O+jy$V-V{5l{xEF^^{Gzr zM!m}ZPzv58%SXr}9TK{j<*!I4>9fov|BbZDE3OxBAC)Cup>gl06rr5@;2#EgyBkt{ z_{n|dCwk?UC@W_0>AMW&$J`LN7%=DhVea+E92|hTI1q759mFkeSq07bGrPDhA?!V! zTwR?K(jg6J)j1>!>Cnbzxg4>>mIh%g{yPf1bVEuh$kgpB$aLBDwMvII`Woi+>pERl zp-y9U(WdqL2xWOb(tcW_0x>5Pb++IgLA(zX#pQZ*;&O``iF|B`93aMeky;kP%S_1E z5oHTIihAKTK0%_)q?X~`sJa+i)CR*k6I;Jlp5^e%A`Ta>HpxX1I`-bAX)V%thN!LT~g4@!rq;k3moZ+T+3r7os)(gcjJN2%4AZhp_3WvWZ@)U{(; z(BYXwh^4eMY&rsX(qSr~I{pjmT1v@>1_MX5iGXAWOO#n|gmlSV$$HJbleKq6oj^rq zwB%=g%3IKZWKrFI0#D;*w!4%ySLc80`h)TTw!V&Kecc}A)Xxd`%JDj=q^JJA3%gO9 zVg-+mfVsM%%*U+JArDGh|fEcbLcSg=?4%6H_r>aZk{IavFDOV*biuYaRB_z%TT&l%{z}(Ah)L zBahGQu^2inhMxiCe`1ogL{|fJH8`CY@?_g=oKJrb{b-Jq;CGow6Fz4?%@Y_u<$V0m zymbd<3-Np#-}Ym&N|7f!J!FvPAlrGc`pjH%v6RxBBzXu}UBH?g+Q%8xeko1LqP67- zcqWYG=|`0AB=F+7%KZ-|edV>8*3InUJf@>(_{2wj_oXJ+uAnDVFPh%yz!6u7S`oYd&>FOe>N2ly|T}7ok@=RJ|*$U#k(5#THxLs%p;U9_`@vIJCxLxyg$rrPR)ai zGYa_qX0kyEbRmDL0XpvA2BjRhJjftk%@LdF=5gO->jwPlmMHI($L*lY=a9;8h_aCf zc%5*&va6yjL*P0ewbi>Q%C?wzy-{{$XGPgjfy)%*j^v#ZW!L<8o3`4O<)e)IlkH53 z`s0heRnH}swzm1felB?eKD3|7(@8C8PML!|*^1st&Teh1L-%UcIpuHAWJ^+WlAj>z z*T9@XHccz#>w4@`lMFtk+V6RrSAmZD;ypmsSNkH(ebu%HmPnUsq!;C9ARi*ty_M%G4KSdMRM&41*Uul2)6u&d1|=M8 zLfPj@1}sq{??Q#ouTzG;!(f{m}N zhExyFyXZRv9!B~O0nQOJB^Dc$>vZ4VYUDDpINWt&S&AEUbw?k1AeQh%OyPx?w;H~A zq0Ra=LOM+G0?jXRlI4l#^3nCy;GK`VFIY;~;Vis0-nAjUo6k1MUV+K=3h?Y&54k+H z!uzjCKZfn`9QcWLn>yYDSf4-M!~2kE*j@=diPyW}g=e9xpZ*av9-v`;2pV2iSGgt1 zG$^C9yaJq&5&fzAe2-K#3}=w3lC@JVAK!GoL%w!Z)VmAF&+z<|8%UGv#Od7Eu7UQv zpeqI}2%*>`K)FI`=vD?_`GKYDC>I#SeF4B0u*Z7X$1<3=CDCG%^MObE74-X_gm1XL zO3=^r%raM!T85#24uOXJneI*DZb85OB7Yi?Z23a$7}!=Sy>?KwA-{v6pq%&@)Fu7= zln;?!4INbZIqgky4sax&WZTQ!0KC1-H6p(YkZj$|uZPS6(SMpXh+85ohckh%O70uL+smCP^2-3pS3KHqxf#1vxpkP_6qGN(kK$(P z>*+{8KwoSSKFIvu-%>gT_^RZ_18*;Pn8?2hNd8ktGh-9A_vm}7+`3F|Uz8`|$M^F= z$`GV~{Ehcx5}vuydK>F44Zynmw})mzo62^M1--r84kF(lko%uh8kXxQvpLFo;z#3- z{H{IHacmvj56Zi5s>(G@|Uou3}R(B;HROYycHnXw^Jkga(^XI zlt%&5Jl(0It^6M5Te?qNQ_wU7Bs+BKZ=-nto70_ZcR>>jNd7ZZyjx8C`S`4(cp*(O zy$6H7iW`G<6&D5r6fJ{(io_u9|LrDvf2EAUK;;oZ?AJ;NVo&#g;e!yv_QbsP0_LwC zn8)HUpLNIF+s#@W-gV-wMqMUizRSwrE$It3@c1X^Vm%g14o7{w?|`Gzw0;ze8U^$) zTG~h&sW#!Xm^%rUrP$t;FF)q>E%isyv3mS0AhTYHM_=sOu@@kGc6T1D(cD{9S310y z=_?(kJ=HbL!PgOgrK61AkH^=Kztf?;Ujc}n>m8*4Zl26uVQaVaWizwqPe~-&d)R~?a*i8(i7ri-d|5H##}&Y zOIzUaU72EciTTXwQ`~oo8)>X}!?hTTQr0clxCs8}>y5o0cxp6h{gweoG1H5XMLIp1 z-5u@d1|RK;cwEcYVa6Zlx&+ggnBBk*OalYN-;EL>=kLj})Pc03b-pEsHF>{i5~%JT$x>IKhwfV;ty{72oFcw!H2 z^5pB=O{JcEQ`kw0sW<$zhTG`9Biu%0x0_KKtC!wVTHJ`+ip~o*!#3)^g!(t<-;ip|0xR(mvroUMBe) z(i{GB1CaU$YjY{a{1XpP&ddC($_u{HUu&iQKL=XUmHdRpMPuX%enAj(=LwegRgM8Z zncV|zjf0PL$K2IzVtJ;`Po(#_9 zale+y@l&jT2Zf&`NymkVJ4?hKDDmqE z%mGr?uP7%Tv`3c0DQ2moxIi~)6s7$Y4W&C%+E4ixw0fL_Q@nK@X*y&5nL&f{6NA3W z6$S&8O9I-zKd$ci)c44r_6M9ZVjd)23kxFTPr!r5@V9_!|2OwD$w#~J{-;>`LzL0@ zramY7gZM5Ut*1$7Pm&wvO27o1uZF#CWNQ=E!8oFQUrUN*=xmu{8}(d}-Y=!`Rh6I6 zysG+pVhxl04)~C+`4|hdHY^kQ^rI2-TS%+^tU)==w{HSR?b!&Z&Pgr6ho1YT0jEBD z&%aFckyM*f=cC^#G?Z=!iBjip#d~XpV%3A=c^Ib!vsV~&Cg_8Fj=Skun+tMW06m^MS<(+>r zLLS+W^Y#$s^#E1gK1kd1F06ugVl$Im`aaj2=vCf@$0FnmU(WlED0jEx4Lu!rpRR&; zdNlT-qAt;^yfyg|@|GQ(_Z3n8H=wFF^mO38uL|BdjZN|yQJ3gd-l3mI$VbIF$1zcU z8Bpa7Jso(z3*J@5<|@Cb!^Qe+Hp#nDSM{~RJnqwqkdX(d*2(`fLI#~RBiy!*WDB~3 zfT}J#k>>ql^DjD=oK8CZ#~iKdkpF3fyjbuh{;K>~;A!k+in4WpB$N4j883TXl&t_% z$4hz>J{G0{M{y(3Ck*55FGQPCM4kD7G^aDaKa9Bv^E!R!;|BZ~d#Qe71l?>vS{vem zxE&~tkThxQCjigS5CWA~kf!;5G$8RSsYg1{*-C)YA2=FM$$;t_)Aj+@=ep|rOn0^X zl^%>oAfs37b`f=l0+PMLM4jt)b=$Fe2Bj;5{z_*C@%=vr@%=vr@%=x*|5|4{;$18{ z@2?IzJ$^qJxPD(D9((mYx?f`azWkWuH%--V1Mch1?HlTElKn{z+S?dV?XScSB4paD z()>lNv+~4_~wc4 zgtX`?{NKvw#6Qs<($NKU6@J6Y)c3#rlwSqSV?fT=Px%9BZ*lIOhcmgN5bVo4N^Pjm zV^_k5aOOd0#ur6hqUUvem8(csHBNS+E$VZ|Lad#VQOdeaIPuJp;Shfo5l%dRWVi(Q zE8)bmNNr6XBU5ZZb33ESma?vZ#(thBdrQF6zWO|LQlC?vqqKNV`8B2SJtLw~=k!zH z^Izjxwfzp%RmX7BizYk^=HE!xWRmTrtQ9C{wBG!V--Xqf|J~I&hR*SEhaEK3Kkovn z{gc<6_hIaE#JaFCop-)2=!mDfmd9=(IsE%fQ-SBPpTF`3(uAK4xYkQ*zOEDRHw)Gd z>OT$Qi6oSf+&O>?5f`Q5Sv2i4Cm}yr=cpr%+2MkI3Lwb|6ExI@fud|YAhm(!2cjom zrgEy^OVEr2r16b2@#TKPXVb7YFuyvEwHM{;x~@T<+R*{HY&?@mgPw)|bYgc8S_5ax z8L!L75;^|r^3G` zbN_mzaQ`wsC+*)X`q)^X+p-XG%wH&{K6V8k`#!!8Jjs(YBIHMd_%kftR{`iNoE?jL z4*{v&KZ^anji#=0NznWWNPWKL9Jj4Xb54~121x$8<*sA-DN+72Ao)`Z#O3~YzC(RV zx+S9Tb>Hwhw2%4}bS*&>U`G>+nCJT6Dvh7A4>W51!mlU>_f z-VArQE-dA^7apl}9@Zj}wm#;#o8g|;xH6vh68>5o?q$st>EwS^x@uOBa-KddU~zbL zYtmi5uQ5w}4Brg*ww@B{#Tt$)4zFP~X+>JVo8dmzg>fy=Lrv)qy*ISdkIL=&6r88JhiS**?99JCfXEk|?w179m z{jCdYaNG+%DqVmT&->Xv&RUbho8f`hxLQ2zRa>R2W6c%mWM7r8uGK@&)29V24iB;> ziM815r_u#mPigrWSuAkH;q|O0f5BV8o8ckWg#jG*LZB$qX>iu1DZN=uQ<^Jq$#r;H zk&mXd*cas@ZxwM)kw5TtHKisIgB1%{6asv>rZg#-*EiP_d?J8v1pXqQ93t>hz&8W` ze%v3dD!vu)?ZDs2>52s`>Ii&i@DCOI%XqwB)E)Sq;4kpWVS;~e;QNEW$XiA1Tr?Q? zVc=h1@E5Qs9{5q<-$3whDEN#8emwY#e6qN!Qj`LGD)@`M)gF;9>z*)uhYH9u6xAM90C?Gv+p*bdf2+gB`Y|h&Td;#XZ4*=D5AssO^ ztqU7jS%9*WL4RdCgMP|Z2JyWB27Q&yfVr9C{#jXY#WMze|4gr7uE%qRr`HL3=1p(~wtV%Q;BX9IVDNeXNc#k;=1~WRhRA z%Ufsx2r!KX?2ZDzs{j@J5o6-+w!gwa)cqU%4 zuKpD)o<{|jEc}Ger#-|tF4`$si$vNg#xLC+iu;Vyd9LHIXeZW>%Hw+{)({KhXMZK-*ONCHCTWqCR>k%Dque>onOl zbY_HnN8sIo=YC;ON`NDKJpjzje7S^Z7yWMY(L(HpxZl{$)7e>iuB2~`Iz%7)afEyY zc`bCK*#8Wrbv%8F(s&L+_!E?N<>{l8cH`+Il*So2(R@m251u|uX-}R$NNF#g-bZPS zU83JZ>FPYai_+dajSB&K4~y;Dqy6}~3!6yU8Xo_n4G9@MeU8#2dHQQgcjD>Oln&$R zFDR|$>Eo2X#`g&Mls?MSpHq4ZPk%z`44ytj>5)8rfYM<+t&T}*OI7117ju>RJoIi6 z_lJ8IaCQhD)W6h!{gJ+oy(8<7_B2)v$~55k+<yoZXJGtyc__6xj zBX0+nmwuh=x(hN(A=BPR3ZAbMP4#L2_a4gW&Pmd0+$CDgWky1eb-*)S)L*4=$iBeQcr~lKZv_2DP9FeV0{Dg&a9yt9nXJxk&$(hJzhjnw`wD(&W975( zih27Imp2vjv>SMGzuA$tX z=W?n`{OC?D@uZ*ic(81E*HrP$H~WR);itqsOFD}(-x2;1fp4C%X9Rc_K(cW^Lw&B- zisdb(-wK`10@|;S>i)^YqZ6AW(;JXadnkuV-(xO#_rM$X7HZ)Bf)Aem)x>kaT6pGJ z8}A;tWZ8c+F)mM?)-t((FZ}WP>dC+qzO(4J5k3HmE(9>Cu$IMwJAsXLX zu;GBA?4Em_Tj}_IvdW+Ko3t+_8R;bBN%;Z7Ek-)+8*a-xJ8(7y*`z1+L4Hlr5AXAU zhVC^J{T!re9)BHBjYWDKvd#1Pc)#+=?0&FSU)Zb{7(nzmo#0&%3r`&hEqX@Kc5YevdJ?6S_akr{58>zV8$v z_XWMZPd|@5$sPcx`gAN}1(L=52QU_8eC@J5+iU+n_%zk6?9-kf1k2NKpI*JkAT@XN z=|xwb_UQ&B+s>ym&`x?r9VB$B1NdJ)9qPk<+6DSnwvXz=H1?|reT|=U9VS6e8ur7~ zN0u}m?`picKaihPwnxbhF~5As`!y#$LjE0eWZNfzYQKg8-{mszSGOx1s{J~qMq0ls zj5p4X0SnQum36)=o|~%kRg0Vm`6t1j=AW%dlg@?iq^lo`EN*n@c_=NDQ&D9JUq^o-{GM7-kNV48}xUh;!%gyXZP`>tg*3lnE!k+59%==8Za;VVGZ%ey(w3RHN^C`SVMGy zCDbPokVWmw&f$75CcUd+Zf0u=-d)pacahEsqfBxTXeq4;Cf}lW*tA$rB=%mD8_FcS z15W)}gm=3t-ZQHiJp5iYZr>jdavAD9?;rkbC=)GTYl8S%gEi&`bSR3jlm^V4#^U=S z@pP_9cX<7kKTt+KqJ=zl|GRJj`V-$f$KTI-axVqn9$3M!xX*2CmxZ~Qh%v-|8h6elL55bSx zc?yu^Q+fK(2zlFwd@g%spW~c1-;maCJJZEa*$ucHb6VLp+*cPdN6vNbGw*J9+($de z#k{*x$W;KzFQ_~}JVJh(@wV;9SA$Pg<4wJzXI#en`T=ynGadH#4vCj}X0V*r2WykK zFKH|f8lEJ+?O%X*T#8TedK8b-w^9ocW7j5~?9Ln1c#8NLarR3vv2TPtM(92pkmfwX z7xuyWF76ARR8*Vs`K&=eT0fb!%b<(|`~fzj_?_{)(opV8ZTw%1FSX57&y;E#U(%br zEeFU3UQdsyyf~9g{=?*H?Z#9lA5$?XOTd~yZJ}{emtr!=2ucZNZH~JiH2iyUm#x_m zE{nx+pm}iKer(m{V+(PeH+a(6@~1csbThip*z(8N@KX#ZBcE#oNY6dX@b~D7d@-iZ zYON1x9F3xJMB^|}$wZrIOzA;OabUd8a4WOSZv15O@gt#}^tU|5_nJS2vGHbd<*bvdEf64XC3NV+%+(*-w&)Uc=ijp z20qXPQ1yetY7z3;ZR7`4-=j56#X2m`cG9gh#-yy1s83@@Lf=ta^|K?^CXAa}a%v6N zA!%Im5~889L9?jrwUVNWvX&)BMA^cbRF+iY>B8$Jk294VLYWbJ;8>hpT*D80uYS@N z%-Q&Rnk0jGuFP%7)}$QJk`0JItx+41r*kUHu*ZD=ikRWSR<1{n*CN&?jY}>`7-z=1 z;Gt{+Eswn%?+CDSsLK26p?3T0f*{BJ^#t2^rudTdi;HpGUrWfV`|CxpwI$lNzy1gM zRo-6{kI>?Vax!#`#gFni8ym`FkjDOYxoJE0tJ`gR?eXBr_S#Fi9a$SX(^;Au=4IS1 zo{c-ESj+6kan8pW|KNu;jo&Xup6t`G*_I-GC>*8xBbEfy4dc%R$3E z#W;OIK={m);`dyv<>DRhKn=I%JOw>#FMZur}K+N{T0c|0P?V*Erz$a>IHJ0bxq#!o|x zpLt^Z%;!)YKfmG}%$@PaJ3oL2Fn*{%5(aXfIrSsta_B=m4R$<3f$x&RdASMRDo}3aX`bz#5+QD$_@=Tq1try<_#AV`{Hyc*I&yQzvU^a#Beg z?!ihqI0J)z_GdJAaaKY)7_r8D2|j5!b4&EYyYd*v>Y3V;EtTtF9zk2_UU@0TIlW`4 z(jK7pXI6bzn)Y1GClKR(VAuA-t=x~-lYHUZ=>oTkaKg8ZJ$e5XZfPhl1D^VCJD}*M%yVyo&h|K!`BGH$EUKqUYWw6L75ErUw5gqu@+E&6=J_SglN$&8ZT;$ zl?eR2iQF%{O;UYbeBTA#FZGe9AZBXCn5|tY|3L7Q9S=)NkacZ%`kgFI64}@c6Gg0j$5_ ze>K2^`jYgdpNA!4?P{!RlulgUP<{x$9@3l@zqsL^R-omP(Vf08&FOQNaew_2G}Ja1 z@KXCqBg%dkWf(gZcS>?QMyy>cWGqBFO{5QFjw89VmLfg^J-ru2G0m??^LrBsN1^6%RQD#uVp@2P#wV1ROlL45z4!9e8;25CO7 z`Wf00%mG!!8~1P~LHk*1KkeNPfe+c0m zE_5li+~LnQx3Mz4vIu2W#T1!nZ{;%swXM|7IjBeN#Nqb-{o<@B^at)2>Y2_fprJOs z4#@ou=LM`DzHf*5!v3tKL!~*EWQ-9qs82PBpZXymQeC>U72n*@c}VP?uh?H3%G-ML z@k>0(HgTXMxg!8cE}dVle91=B3wZl6QxCF9#>mKswG_KOC-Pd6H;McyGsb#SQVFef zmFEMhf69b%$zutf_rFBC0#_7)cu~u7Jp|5VhwCD69(K5nDqTZcU3Gl7hA#9?zsle7 zqw^^GJ1#Uv$##C=q57dO(qsqHXJK93M-}f_<@7;+VeT)7FHpS%od0Iyc@phAV3U>E zc#cIeDy0vKyECWUZE5$MTlaKZNhyWYAYB zV$kt>YxIpZ786zx<5RmlFfU4pnyk~PtF|rYvxah~mi$h_7r>JbTm|Gd(JS8|t$q(d zbD7St49aJ~6<}PXJNkca0t;T#w_TB(m+6Pb{wGneD z?detlFB$k;acD5wC%ywnzE1aIm!h27xs~Yj(*6RRk4?k#hU{zno!FJ{@_k39pj!us zb2f#_?_*Cv{rkEoTLGw^-^6ZcDBlx*3x(`Kcem)-_^Y6yvzplqavdl}94~mJ3m)1Q z+@7T4Xi+u`kk9RP7`@sCsy|H75P#A^+uT-vfG8UWSkR8{64qh#_Vs%TnnbmJGh6*G zqHHMD@6PKJy?y<5f~GGZli$=^xh5S;zoFa%Lpgmwb(6lTTa( z4e43{sPbFcmisf!^WO+wHvq|IOkS^sGQEdh20r&YTF_SRyT?GI`rcQR#@_shR=RTy z@3K8Y`}5fQ_=p+0ONaj-&b~W7%3^!}-CYP96cn<_rXXaq2?TpVidZ&5CD>4kyed}` zumtP{g^ML2sKFiuMQj`JYBFB0sG#Dt5U|901rh7j1S|u|~lTl=Yz*h1j`7=nM~HF5tiG>gMF{xr;0m_JApY(ICy zKi9;&3p&aB3YvkZn{>8p=NLY9pB3PIEb#dE!^TT^Uz@fIuA%+VDgCh zlZbS4Jiz?fhCFAw>OPk?_!!W#OsL`!H!F{~V zz%^ix2Jd9E`5QLjcjEpvo46f(>WUD4lt2mj>FamUASGfzGOq%u>aj-kAoOV`+OMI= zn`olQvh*?N2HUhF(H=X_vdAo?3vTPb4E}m9bfoBY=pyP)nwkR{qFvCYSbVnNZvuXW zUwCi9UD;?KV-XYAZ}{ih%GIFZcxLv^5&f=WO>uuW+$j2TIs9m+o zfX>7k&}iIKaR$zNchzH14`kJ2X~=pU!$Q{KhSv?q^GuxS@kb-W8hp72`f*Q1BkXUv zIkoBiJf2H3SCprBoG*yYDc6b29O#b>OY}R#{BxWcA>5M}0pG%e6~~n%lpI$w8@4Fe z3>a78?3KqB_l?BL`=U*mJ^NTYAJAjuvOhb+%X7vuC+Gz}c23X}Zt7(f#->%KZ!en8 zdWrpfNE6$=X#dD=jE#3kcgnba8gyd(`Z;)379-7=;P@`W(ZIa~+>0kimXn{qt8-Sr z9%wuEb;ea=^@jR@JBar`XlB*Rr+D_cBjV||ZjrHtc!o1hyyuBH*Lj_N&IO-ndStgh z6a7bbXIwNz+$C_6Pib?Gn>ADPkA38a2*>)n0g!r1nwMutI}*aUf_DeK3BQP+eJa;f zQq>CllRx^uah12{U*`CW`Z}qT`#LKw=v#xgG@RU`zA4U(zDH9Q2XOeoB zJe=R}>*x4?Dnx(RFW_vNg8gAt-n?NAsB4Zh<+1ZL&5XY5y#52Tz>Bgy5QF?)nWN}_ zAMMj4pko@IH}PbRZtFkK_$xrRvE=j6(UQiLk<33?D`H)r3mV7o;N2MF($p>Z7u!Ut zx*Kld?*!CxcF@<9OFmy&o?dlw$?|@l)Jrg+829qY&hqF_Qr3??D!ig-N7(*k{vCRP z_J{J++p=u6yQ0ZJRi`u(?uuucUQeFWl5TI;m7v+0zjlQ zR@Wf$et^5WmqDh!$iqbFT0itfM|Um%G9CXb49zOg%!gmH$>;I8%onbU$vtHwz%vs% zoqw#&Tlyud662td|R=4t)V{%$h<9gL;6PLTVR576<)_gV05YPJFX zE_uWH^>VJNLx0_|y@4IE&{OdX%8&EkeZiv;dflB6^L^SYY_rxEBTsj$?1))&iF_L~uIZUveO4vRVl|^Z0W> z+t+(^Unu*&Ujd%!c~e87C%@Kqs@ERvm_If@wl*>zuX@SwXIPGTpTIxkC4Wns_eBos z3*N9belGy(aRP9pXV^s=#><*}lCDAgo!u9(5_iH{-pjrhIp!n0)P2faNkq=>zm#qtif_dHMj|hlK8uH@Vh40{LN+Zymninm#S} zc!b{1aYsUqskr+sw;Jn?)$w)5)7!;cdrI4Q9sF~T?`fc`8zu1;-7fJi?IhmvE8_7M zy_4e(wDCTNc%O^Mdl>jNuWEblm;1-+!cN7{;9KaO@>u;od545PFS?2SQ66Dxk$%^y zepALox~(39j~%YbY)JovI&Wy*1E14+y zk=M1q`zr8^PwSOwn@XWWlxLaodmqrsQsiY{7lb`5Nj(ER`-_(}#QPr_N;;l|n|#Ti zY1jGxo}}Y(LszX~ih4>zwl(p!eb$poVLXbU{5!z&984 zJ1_n>#RX(AQKI3wN&)MYlJhYIw(5f8wV)(OcIXAr$?ittvkYv^gs>b!v zcj9|a&5yBk7A@2XyFjbwPA@w|dzjf23Jj@y1 zs_Kb6{{eaWJ#6rdGkUg^Rpp)>7wZXYST-Ldj zO{NRwLs;YQ@9qoPsApM#EKAsbKVI~Td3O$Tw0L@!FyW&?0#0Zz0BLH6QoY? zt$?NAPuXdkr(ekkQ*J89eGGm~2Wf0NN=_1g&(0k80ptHqKs#p6tELXiJ>_>B|0e)# zJDP_vRyqDfuY;-rZr0;_0N;28YiAfwWj-P4+`hT_!5OG4ppBIn+$P{C=ZX`I98c!B z*CH%&^;=oboZVT5mic%Y{FsI^K--tp&nKO{+j=4JRf{D)-18PIFk$Ukq*6nBp5b#9 zpl)NZj?rMlVIL{u5B(r~&os0b0W#f|Ki8VD-&E5sfIcux-Yy9<0<^X-EZRUE>c8PL z4v_6e9qe|niQilDiP(r{{vCN;#xojR6H8MUKqrqdVMYSdPFEW>Y4df_`vLMWzhl}5 z7`o#CwcQyuaPnOr#va`b!tX@zJHXH#1t{%ohRTMUw!kb6Q&pyhLDg5o6x9ciX)Ah& zanTkn_b_+Y{@DMgVY2G2A>IboFiG_UY=C{2Vdoy$r{xT32b28jMwVLvnfGsEa(5uR?(Wsn)}I#W*0L8hGU%W=On_5F81TOS-# zj-~ZE?i%CY0BGBT(uy2+X<4v|b>cnaPyP(ga##&F<1M{6$F2Xwk9Em_T4Ctc0hVOQ z8y}=;#5jkr_?{fM;i+!AJWqw2xUXgjq?=!D322^8&@}x2q4m4MVE^3TNFrXKb}+6Bst|3iRwtt1+NKkQ}npJn_j0BHl} z8)xh1iY(U}zuN&NU$H&_I~?=;GT@k}*K62E!lAvn*o3*!gdxAlw+O#N<98jPv{PJf zkoMvn;5eR~qG3Q4X&C2w7XI1ZkUwQ1-$kXu_Y~tt{w;iAKVQ0cRlRH-kU_W9)>0isM|2K z8(S?PjbSHn`i@)36zSRDUHqeGb^Si# zw*`JI=iM6iQGaNdu3{RdsU3jzWd+rZfJ`g-i>?IK?{M!x*m)b9modF{zW(mZz|rlQ zp5rc>A!*?_rnT9&HY4hQ31P4^t=Hh5N(=3~$>jvoM-FWMh3J+I`P+J@NLjNWbyIv3cib+Zw~CUB>fmcRqx7 ziot_>@H@MMpL;a&&Hm%k^VxQL)uW(iT3!IG#z$GBh9=rY(q8mTj(fkMBaKe8lk`)j z84C_EZPbhCtJ&sRo7=6R#Tago;4q)Ze~GzAIQUsx+F9^h(S>$Hh7YRi@h@Y2tQW#f z{7ry^yEx1C!riz`}B8?DU;O2 z@av2R`yTR`WO)1ykaG#=Y3av4U4nKU{--iL^05fej+H`~>vC>!B5*Pn!TVoy!!Ct< zj@6kxkxL;1`H{~s!)LVN(`@>wyuuuJ!xY>X4St8ikM-s_K$Zn{ZV25t!^(9)rjI%q z%4Z(q4o~<|wqpQUClGhFWA+cv*XhTdpYZb|U&~E+E#C!_w=ZF={5W`$*8!kg%CU1h zTLR;2;8@4(dtZA5m58sfcO4cporK3jkhws~i$<^C_?GR3~R5pM2F?tEU{cJI_X;BV!76K*S0 z?&h49J0oiPOa3l_KXqUQ>a5*6^&jAv-ufKU!2XASrtcL%tDCi7XSBR?T0b<$eb~@E z2WZFg3_lw1Q%IrqO*WNxohW8t>_ zM8S9HCrllwOqDV`0sbr($Jmgf-%5TKt;}(ch9C3mR6tuUMUfnB_dFCh=6MMJv>kBH zI?&)E{}mpkCs2=RD@ws~O39j#;Wq@Z7Pj~my(O=)b8y}Y*y7oD=hKZcVf{Q7Zu0J@ zA?m+|Nh(9bln(X?TNdrx2j&H3%^ME;AHp(CDS%eDYhKN9cRncP-355kHhh`mZn5WR z&X&B|3Yzw9LGy^Nm>2H{Tgd*fJN1IysW;GP3^H!!7M?hWZ9>rl|^Jf;Scq)#LE!sEmox zvb0^x@fKjz=UvUSg>Qgv`!(Ky+s)pC64)7aJ{*pqu=G_=OFP^_ye( zMq%?I|N8xSpYBAkC;3Gu%eghZY{2F%kO{chB8l!fafdq3!yOPkXByurF>W>;rl% zfOx1Mu@O#;<%>Qo)_{F~4d{QwgcQB7)U73J?tv{G&vArCN ze?68tjQ`1MH2$?7VJ}?+_LMY)y~7%k00($=zg={=^z~aXE~Y%(zi<@7Fpow7Hjc(! z&&iQkW-|Ht)llFXfOCNB$MRd0;|^$rV_2=j$UB}Hx%2_#C-x8=2z(vpC%J@&MPmI4 z55jzb5c7sCLZq{q^q4dB)&Ci)kA_Jq9gupy1O8Fu6M2s(E%Z1^)8PD%hAC=44TGwO zhN)^F4Y@8e4s~@b>g*WQ-Lp`K&%_>x(Kw6Lwc_&!%)SRB_wnFO+p4syY3d97bB~eT zA3<5xwvy#YElZL*3NRCUBsx1U)QC8mS9L@Ck%qX_Awvda=>wS#K>N`b_ic28-CFKS zXBjhptDeY^dzDbnaleN83jFQ9CCDsg4SoF-ZkDqjdFt=ls(i-gxNpFZIyN2SVZTq# zax_LW+(2R^R$Z3d#CYoZXH0}%Y8{RGQg$`ICi+_S)ZpsZ5k3mL!z-AlP^Vtuzc00^ zaxrx?po03}ZF&yy18O} zhjryZL7MdGiRl8X1`N}6G4g=a?V9hh-9?K%s~4~Gtjpg*f9$tdXD$K_ z+n_4}Ew9p%YBE*0kqv#VK2@*dBYO#5dAJf zIq{4)Y~90}=S!LnNBEPWSANizcg3DqU+<^D*ih)3gWS z886Nm$Lr6nQhypRmbSlc-;9a11El`cU4nZY-k18*@KlfLUlG3UdggDs`ibsYbO%)f z-8W-DT-c|_q$lbBNbFlp6N&v7aO?Gv*nO1Q)Z2k&w%+#E^)@pxV`4$r*4w0AQ$Muz z_NeNQ5k6WLK%EV$59#(LH&ssY={kF${vY4;CgAe2aZOv!!@E7mhZ_*rv3_T18oqwe zwagn}j{}Y9SRbupPvf6DQUmxBKGuy)GmkI4Rq9#jupGD2(2+*>wRmR_`y|GZ?=JMq zgxBOs-z#>UK58ClWggFcseRPF_{VyVmgQ@=E$v+RMS5_~FSNJdU)siix*Kld?=@eLMTMOX(ho@}7ddsgU8_dHj#Wrf8Z-tO#%`Y?vvKk^5;G zSLV+2iRI}gt_)}Q)YolXJ{{Kth8-YrjiVdmfcnLb=Kmb|qdz#6d{JLm#*B9)>7a{R z-yqir{g3@W8sh#B4Y6NH!xS}K!#-*lpnVs(@rsNVo4O}~Hudw-kNpk(*+lef=b?W) z7k%qFxC^P9oNk=Q<@!5Ab_heKNdX!ZS7*cZltj`QXA zYsl-dAI$ZZr2VlkalN$vc3r2W2==;k(Utlj##7+O`Vj-9Jh)dv^agen^7A~K z?XDjoYc1@zJ~Q;c0NOco-6cXx`jt0jxKEgKmX)7oyJg=>{L~-D^DQ7{E!Jaid8=N| z4<_p|IQ#7PK*PScR>OdL8?a$Nk$G-WyewjE+`|81KCz`OkLvi z!+xy%YHw;JX8kO_{hp1aGo@|zUl>o@q8S-(SA=CcOZR2{_N&F%Q_8VA=kWI;UZ(L$ zz>aC;JsR;e+PNC{W!#MuLX_9nN-oMwdG{t)#FS6Xd)e;QCf@S@W4u=)-nMi6_?hcV z!ONbxUXOBLbU*%AV&5xthyRc9e?9)OUyc6@@n4t~iJgydh5fM?nBnt16-5WineF>X zk9~$khsyum_%E96sVKo`_qgSDkOy=B5>G`Ac_JLg(PfMWJn1f>8*v>^f5d$(A>=uR z5ONMBgf0#y#GKy7b0kk>A%AK6Xhxs9^WsFb1KrUc?1Oe;UyN^i;Jla*<6C*_r4Hj< z$fnDbW&h%yY?M9j4hN27U)sug!OgNC0LXf@S)`E+XDCCcQS4Z0V^ z`CRP(GrUTdiwxwq9yrF^1jw-iWoa~Y{*yA?81A-a{F(2kPi*u{``&$~v~f81g?VMS z>K*7Swk`HmqkZ39ZD=WVv?omj0o^FDQo35z)=?@=XhcN68oS^(l@-J#6y zx5yJzwQw^ZIoD)cMmsmhOLIPu@#*@-ykm)d7477yeB)xx$)M?mPa!PR_Z46r)^naG zJSq}fLWn-?UxbMJpBknq(sLYArD2MCQbX7a0e8heyEp~fABG0PA`AHtY|_WkuJYnBV!!t1XVxkiJBu21L>M!-$^OTd#hPRij0Ep2+V z1+ff=fQE4&3ZBeY=OC#oHLqvmJem`m{hY`c0v*#$dh##8{k7kI(`{2C?zBAx?opn( z3%^~1f5I~o1m-7f^5LI+SHNyX$ZyffV(TsXD%)k>@IB=C0ea~-ar6ajEjQE0{qS+Q zQ&l2pD1SE%lT}v@@n$vP-qvH<_Z4inxR;SKjT<2H&0mo1ZoAKxrR;~}+DScdO#co* zt0(n6slRw{3U%lU!NCo1U>+*bwL+NXy( zOUGhARG~Q=y!79kC*%At=$QWd0I4tZC;mEvzY~z{HS_D?S1>;wAZ4&2DtXR%&?TS& z@81i(dAg0M`5@c9$b=_DV7EP8iEqXWG9cjXoKjSVld)V0C+qjQ6;R{UoLKD8eD%%}m!k=!!lYh|*+3pbr zPyU=&t$L-sTzyn7{5aM=Qp12c9FXDb0wQ1N`E0izaLn_g0VyB-UoD1yzh~RXJ}Sk~ z91O^|Vv1Qaji&+jJovHx1~tU{KY--rbd$Jh7G}Gcv&UwCDP`q>KjS4m<6U*X;MsQB zd}*qXGVy{&>&r&51J%ESwha5SIF9}eG>oUbo6G~S&Ue+y-sKBNthV_f{Jsa>;)-^0 zz?S)~2_He-C!f4k+3uIXQMTU!ZJyMu%y!or{6;|L!!h@^ z3yr@5jyk8ycUQK1G5+bUzZ~U){UR)vxxm@HtDng>4Db0Fx*aQ^U;9XY`1ZB=!nQf6 zW`Sl(JKTEc@O0n{P5FmLlV2+C(~xz8%i+g-B7c?(W${d9TTA<2P+bH((|08x{i0n= z{k%Baon*q2zYW{4H644L9G!p8tn`TmJ!A}6onppu2XP#SH(_B<;5mBoOu8o9Jr6wC z{_!ql#wT`@fI8X4F%i)AHF@7>yAk}?!9I5iA==LZ4TGAVvY)8``>1>kGnA%BSsbtb z)6}sVrmABIVG|ij2)!6g2;Cl}{ZrJD8nQ1q4ek7?Xzx!!yFUu;e*x?OBVl9rRW#o# zQ^MciNr@coh2bXZ!o(cM)|}^TEUB`F(J=v&@1WwBm>TKbjZIyW{zSOq98Os}6Csyj9oMra~Kr?3*|YyzCnh2h)wc1e9YS z-N z3#`PwvRtoY8NBco^RSEB0(vQX^qX)?-A__4!L9Y=7?y+Bt-b(GbQX79z|Fc)r(xSM z^>c{(&+a+1<7ns;dGI_-5FhzvzKpgSVL0yKf6?LOpQdgHjyfI%lyO9ws(_m`rM*bQ zH!?G{UFT*Ko;KogLlb>l+Sbsam`@gn3~!mUZ(QS|ZRZE%#g(9EJhuYcH9*f1(hg1q zj(O%c;osdL;|z`uGkcXUyaxWVzbHdZgPSrjEgXMdq+w89pdse}8sfbm4U^RQ8m6I+ zbbd#h%(1+fWBJg>c0pg;6@6~o`$X&7?L*<6S?6I+bp0Qq-wXOk@w*06cY?}@Qj`I*k@t&fH&DqTa_ule;%p$`EkG6q#|?T`1r4P8$Sx#l0gbF^vF zNyw`cF&-I#@rbwLtGmU{)Be2<&OfO~_y0?DWZv*>clX_r7LJF1g4_1Rp>pb4lKKHS z=Ep8TTc=4|hkwdQeg*%)m=AU~x(g3V*Z0&G`()fVwKiS1NBSKY@T<3c%sNm}TDCdE zlx*xV7`tVbjHv}3>*pFmj1@oD|7<_vdc*yxQKS`ji?`gd80wSlE@%2j{J9R%*14*_jA}?zu2kp z!S4Kkq5UTy^N+M1)J?V}_W;NL8q{mHom*hX;(5fmCd}i2GJXlDdkyWi=+hYHr9;R= z-UPW3eqQXiBffG!;sa`i;c+*h?Q3s=+m_kihth74t}X}8#=$wnH2h1uldNXK&GeD( z0=Q)jGDTejH}iz}^Wm1dC9<50f6-Iy$V8&EHKSLFAY$NYf!enkEh+=a28Icr`8J2&};<}lq(EITiFCI8<# zDR?;Hk6F?Na{UEkv@s*_oeUe@;fRxM@fO$y)6h1r#~eWONsxTag+Kr6?h^i$U0FuB zw-I=j{ZK%wKS}VD`AV`%2cBiifAXgNDOuxER6h*^>HrO~|4+kYm8K!@GTD2b{^2g@ zw6Eh`*&Lr!&M4|DVP$jJjUj(1<9^^vTqFR9RUxTgnki{8lI((h1La)3)%KWEI3kZs1unQps&%f0y=E7PwSezrVG&oub2iT5L! zv9yU*rVn}dLFq&Ijsg3Tt)`v*q>*w2)M*IM{N}rO(k3RUp}?`<$R`9%L__rX8YV01 zcI!N0UU2N;U_Hi*xoZULsl20e7v6*2c`@F;nB>Daqzh~SU194@z@9eRDfGDG-fP|$ z+uCPK!|p)vmG)Hn^c2Q}^d1aobt3P(Fz%0$JnL!vvjMG6C&OI`o@|d3jDH_MtIM9{ zVb?Ku@)vziR^8yX;hLa3jF#rZznX8D?>wUuP~QM&ZQb%K0mB(iNxRcnpkMnLu#Ujwpl_!96H zjM*)Z_Y7SfAbBwCTLwq|%vs$K)0W6yUqOw;t1--{;f2d%>9!3MU(;NJ$6 zx{ve!aFciG8PW&P{`DkqpE_b|sHwJb236G1#?X$ge8B2I%REgz1V84(vw)NrW7B)5 zW8U#O=4nNf@?wP*Y&# zOjkDm&vE#zfcf*<$}`=By#tVWin~~h9BJxu;QH)n52p{)!~ZEm-xQ}`XXt+>eVF`{nhGra(?*^har*ZReI4ns-W4rNYO398 z_&?i`{&hpYmh>6qA80DD^e-5Bw#NBCZ|G}DkA8&v2y3?({x1pr%2xDG8v0jBk9CtM z_8Jyg`hOex-{brj8u}%q$9O)9eaN+@UN^j9=zopV-)-oh0Hp3leJM=^mVTAcdw+}5 z&o=Z60I8GFvXrLUO-BBAgg*b5IQ?~o{!T!)b5UQgsld{|Z}_*OpJwPw0NGY>e{}8d zhW~$z{2Sx^&o}hf0|abHJPdcO5n``NGN67ZtgOp3b!9&NPFOwXb=dRB{=@@+wo9aE+VcL5 zegbXihE;estgNekU#sbM*t+byVI#2T(*yp-_ViF$SdS&otqi*j@bkm3pC|BBA^Rf4 z|0TjUoDhj6&Ah&eYb?p(m$Hq` zb>`jdb2dGZ9@z=o{W#g%nyx+qE!XU}0J1G!r(uR#3%CRChc)B`o{ws!!&20ExXJVE%foKdYSAB= zQ*+Fjs`B8^{G0$-g}tHC?zFf0)kyrerW<1DP6xF8cm3S3oBy%!JPdfh8-!4GLMcO=!jgXdVZ>=pG)PF;_8IbAVoNEKzEcf<0_5$Q^FvrsK zt$hu|yo>*PTMzjOyzClC1Kn5yp+4Dl5X2Q|Ue)$)Hp*I@gm%;DW!^~9%cVxfLUSfB zvP;^-ywzb>!H?-(0m$%k)3e*W-}NtpZ%E5ta5LTwBTY#c>09!i2)heS_$7w!-PE?> zA2WD{EAO4XU=-&2e1A;xNy-Z8&~s6?L9O50_U}w-jCnuNA9JzlnMCujQzJ*fZX;R%G@iR+fj|3nBAyM()sYVYdkGQ5b{f zzJ>eo-iqIkcd;%5+IBjhFK>sP*0vp!z{9p3dFO@Q)9}xHpA2aAtn?g~SF$<@xWewv zVCEUWT7UL}D!e;WZq9Nn?7@G$yZ3Hn6YS9ANK>~%%Cz#quzR%OeJUW^m>VyWxJKfi z^@{a;DBKJenksSTnlQ(kF!akin|?_uWc-Ez+WBY{wg}P`-H0}8EbeWag!=Kk)Q@CC ze-I$YRGRL?uuI!hPv9s!?i{|OYT7YcpBfUf7evjwI+gis!_!n3&~eU1dd|7_)i9{K zYnY<^8U|E?hOBcP=USX+?J1YN3YoA=X*n=|_yuLpy!Rn2^N0BQny}kNiTrOHX!qWC z#Xj~rgkipI1Y8Kci9Ri~vVPNf|3SX|YIlYg`0)md-*fZx{Suu`^%xJdUo*A)^R13t zzlUM2Z>rtXyp%lF?G7)v7Vq!T{po)tEv2usd;)4YWGbF^z4oiW5;)ZVMNiqbDp@^e z()$h|^^rV^hDcbpuhqa)?_L0;-@Gpke^<)C(u9Ahb$AsI|B&&27SOiOQMe}?c}s7? z{PRiM58w?i_%WWmONGZ=6aH~PD_{LMiF>x8EnF)yg+gKXMniu;pv|w!v0^*84mj#; ziH6uOpdtH(wrkYP@9Uu(?fbFTZ})jn_a`Gf?x4_hv1(ITzoSUmL+CTkgCE^~;Mq2| z?t7>g^eg;UfMEaHk~2hPkcbiD&b*)vaXz@{?VgkOg?B?Hm3o83%%=X z-wNZY`@qC=HR`{K=TtzOKi2~9eMtDPGLZf2fuO;;$$M9rJ&;9n!fuWUKOB&9jyS}Y z9qm2RC-;FL30pSb>To>XJ-11` ze$dP|{v!fy%?cKKSIIoF}H5lig4}O&KT0q-x z=dKPfm~8s5di3q%;m5S)4NsfMdvTL-e=FPR^MJ4V=Ob%sUwwA7|NYN4`^PkHuDYq< z;l$nJ?jOFp;12)CkB+HLh+aMOGylU4^>?rF*Sx;D;EZ*f8(wYLeC*8y56^8r<9^PS zB+ME2=ORqvX^)Nxewz4jL+r6N#nWEhTy^ayo6A$b+uQ`cOYuFhXQX}uq3}gXL(!RG z_YjkY5r9l%L%-X{RGk>T`VFuDr=P7|bRhcc`{L!83EFjg#@&(LEc~uL19NH2yZY>& zcn9Xjv8)@~mPG*c4LjzH$@N69KEW5~TiGA><9p(KyMxYuBlgg*^FKVk*}VgE>exzq zeg^G0+Zzvg)z2Bz+*-bD$Y<_WW_#astJay=`s>@uu^IRi?(uB;8S`M4$+9fOZ|?bF zIM%~P(hP7meSoyDH+x5{-+K6A3=_+`t}WlMfhSF8;|^=%U3P27vn`aN_>J%a`{vpv z@FC6*oPBf6j`24ld}s6W_}LY&dKclXp4Pq)cDI_bf6<-GDa{4;IOYS?kkEMp$N7uw~r&i1Rw7{IF*Av|R(!JL(8 z%nOFyyMe=5U)`T3KN)tdUwsPdKm2t42W0zX{ql|lo$-4B(2hY%(FU^*lDleB)%Awv zEzsH`}ut04YN#AZg~^3TWG#dgR-M20sgsa&VnJ^9m{db^qmBKu{IK zkNh$pG40pzusgwoyUc{6e^Dgto`rwjo5yhHnsB-I$LBVYG&8p`XTwGd`!fe9Ns13o&~$Nn&--R))VK- z)&#(Z@fM@(r7qzeC4KHFpwe_4Nh%1~eh)xn_{7V&r^o8pPX~GMcAXdZckX?ERQr9q zUBH)m$8>s(9MqFNke%h6WcJLJAU{^w^n8=0ZAaV_`#o^B+zZWqHrJH z;IR7zaLnu9OgQFM<>6Sv$G_Z-i2fh$_wYst{qh{q!S{i)^P~D^)>oY81&+K(PZ_qN zy&r@zNy$f2hwArG&Y*e~{?sXpFEaQSP52K0Sx@+0SOeY*OOM_BN#?L=`fm2pgtUo? z=$9x<=FMnFK}-AQ*Vx}noM#PXNmh#uujPO&%WTgD`X2JUKj_c1FnzFA7rGZJvJk%f8AFoO;KX@Is490xaLb1)Ah^c0Dm^dLi<2T0kN#v|b- zuhw%JAM%Md()Q=-?cSAK6W)J<PDC^f(2tEY7(xJ4e>uT_tKmLX|aPK+<~U6%V5{-s?{QQyH$d>zK`|1$2p4b*kH z=a{yu1C99jqr@m^Cj~F^G^I1Lxw^#9u%l+zoggXxrOyuR>mSHpb(AP01s#IuqfTf6k$z zC(FK){H z$i&m0f6`ybiyrOy4-o!WlK)EK-)ArU|0w(4dA+Tyo%}h%-zEP=!oSO2_;2_N{QujY ze^~fO$bY@?{~0vW2Di=s_x}R_x7za$3IAO3_j+{xuiXp(7ybhOXWH}cC;ay(|Jfq{ zt9#-9@L%9Rzdip0gn!eQ;GZS(Kd~47Wq*PHjqUko2>&|r&lmo8?uGv)e}Vsn?fIt( z|61~&Ec~zC3;(fyf&c04`3Hsn67rud{3q^(|8Vf{*lx=`2yE+;V{AiwY7oN9cqB<3 z0e8I5#{M7tvt1<(>p8>a&1OHv_oz}-3h?ZcGBr%n^zFwJX`RX;ytbNgR}#WY`zJO4 z2mg$h{B2+3!Tgo|Yiu^-#QUEnPTL;y9Q&TxouyggnzxDR^{OU>Zyne7_-9;y0NS`h zv$9;@A2KgvoL`$bf6$P2fOwx$k2tyB*U(AacD!;F#)-_kt&6kV&%vX0{BPl(@qYzq z<{wv`&T9lzZVIhxBHtgU%)cZ=+sk7h{xMbBor8}@Ok zvl2v)o+R&C+$$@6S@Vbl>0`fk-MRuI_I(0Q!9S^*Nc}@e~Ty@Nu(NFqHUPty3=y9{$L7-z?rvSFp z)AB6$P=h}a(2iw2_mX$28esg61LWM3Y>DrR(L)rvwf>U0?&oSFm^K{Q{rC&2WB%>*q<9eMH!+ zR14k>D6`a=vzoZSN#<~=YBlgo%a4HEGqet6%KYM9qRCsO{Fz^jKNEJ9$3RyP{aXdd zG9q2pW}$l>xPCro)0~XRPK-atmHdFU1mx|@z{}YNz7G*pOYvWaz4R>C+r1M1JHWBN zaId++drf3o`Mbomm^?5ZL>Vplr*@|*1<3t3ppTUpx?W$1eHFwFaMKsm?4`t$D?f=hkdzY8w32jd@hi%r{bev@arkA~gL zLNET4@z1h96m;ZI`lVh6xFj`Dm{IC0C*2A{Rwua-5 z6!JwqJ&OB%-;*;2FCM`;VTy9#$NV7;`x53$X;GFt`Ex1DCgeH&d&1xLiOs-~55xa% z{1f1B`>YzwAvYR4`AZ+1s&JWUOStvMpZsGc-kQ&{+^-FOGoaKd+#?3Jjc={-Cx7ZY z<;|Oz<$h%F-vN>z_3l%+ZMe6MKl$7CId4vuyTaht0g@l}_8qv%mtQ9KC|P&;e4L5G z+01Q=ac>9g#jLA-ym`$0A%EKXkjEbvCgjD+438JzmVD+}+kXJZcIxlFoTcON4a3(5 zANfa-XN2{aXSol9jxw%4Frv$BCF)}l`m|NMq)aH|eV|#7`MveqplqL?qVAv{Y<HUbew@1W`^|BADqj;>dz-MifKt!p%oJ_d`v6DzDN}r% zAbtxX4Eh$_$65LU+Vy#OYlh>(%x-e0ROK?68-2|9QD#2?GR=;; z8>DD1^C?-?8vkzqGx4T_9e-6W75^2+e;pv(8`4u3-Uej+FGDvQ^jZtgVoDw!fp(mF z6Zt61oom9;woY8-k}UUW;3!iKpw*+ICmEld4POjA>vx|2)H686J$Y6muQnouckEVG6LHm+9bH4p|?2@}-V4x>bFH>} zdH9~?oSVfq$#S%BsVpSU?7P%B*x}|A*KQA{6EJ%+amOgbJADkyG%(x1Tmug_@NfeM z3Dj{!Jry?~jt(|J;5``QOh+0DF;AzP`Bn&<0Nq#6oiFZ7>CO`ORJy(5zKCwvh)6$$ z?v>&$q$0ai2@~WN}ZRJ73)6=*|+iwe60E%CPyIOp(2mjTyJWe^_}60?gsVRU_U)*&cl!aa_272u0mm=_)!p#O1f;GJ-wSTG zMWkn3Jv8Kbs`woHo0~YN-TS#(z8kw8chc>^+7#CZV;GxAzv)%GZnAY4wgb3XpD0(s zD_QPNyMF#l2r@bq-@~8bGGWh*glXSGTLXC}oad>Ita2*GVcx;|)(kqW+ZraRIt|ky zbNu{%>vO2ov(EN%*?cT~O!7T+VwPJ2Ud-pu0GY3oO&$JpM3y_{0m)m+@Dltd!*0LI z;FyQRKLR@iy4gk?Kj2|w1+rvWVwhJDzC zC4YwX&9nVlJnVfY>?1ZT+6{)i(}Z0F$Z`+g-#%=LD$`+8)Lnp+F&6Me?ASs0&mtcE z`H1`4hMlg%aeNxLpK{O7SrOL?ZV#L0;$VR#axCl?SjUwa4O~yXW9sjtHYcJ zxDIt5c-GY!kjK_l%4X~8)pWP3hnIm*`+BJFqk#_Fv+v^{&T>yhSg9|#9{_IKC!GYh z9slkNH_O`7n|%=Ps!7uK+#UkF)Z-L27;e_FK^g|sks8wWAFpdZ$nZVO_5&Le?ZbzEw*$) z)nstFzXRG-Nx8{VbP5!`%c!!IFBxwA^F_v)8+@C!+n3` zTl`2C_Q>Y$qC2md<(i}_z<-5#%cv50P8{clVN)J?dxY*b&_#T54_f_h!OaFPig%#N zuhigf1P=3DjjR7d=&~U5^}v%ZcL8N6ZmL7s^K3iqFjk+DmI|JA*Yf4H2~39 z68>#|)o&FX%j5*$3#UokASH4G}hhB*JDAY8g?2yx4m`3BzaG3Ho?oH*ko%B{V<_*(v^`Bn2}$h`=>m|wNi+vZm#{3e7C7Jlz=T|1$GU^$_g+30siHMKm3-0r4e=m#G>!J@sZZpyc+v%Vb zK!){C&00`2t$3GzsO)8{0S)tKo5_cL5WmfbXukCMmAgVN_u~9)XuP1YZC?%Q;tvMD z3y}Ga@YRug>E|YVBKG1&__03!2)M85!|LCaxYwERpuT{gmVW~K z2ajG;2qC}fMmQDkGJLCko%_}7T`fAF3z`4LP0T-zJ&DUD&hg*z%`6$;telj!AdEbI z%KZCVg&}=8{Jq7wng{>A=L`MAhQ91?SqoNLUT|Z7=a_lse+2$fmphDg$)|Xt$iXr1 zzfBr*&qH5~@e*+_8eHwUaolq@FIwU3*h3+n_G95K7-!lw)WGquYaqPsBhECuYF=l* zChxFb4IFidPKsRJPmRDuX6x$4wyW=>N3NR=`9$Q)w17u+botp=ZDG41&uEI z?#@z<8y6-xu?Nzf*btnvsryyz+ShfJ`PV6+Wj|X8SdO_-NpB~{F)h{n?FhyU3J#^dlCoaNo6&n_@J9V_R-Fm9A&q}uyW1kMW z?;||*9&3JP-#6|i1&({UYY36=)Q8q>iET&rW_R!-ADmtyQzgdLixIvUI+>WJ-*8*q z&q@3#5pP6Un$jm^jQ0@Zfet?lNc}5B7^Y?IV(LUdRT%%L04ehn z8+Q64hQ)nlChP)0JGQK;lyI|jxS+ZPkaAkNJn-k(^BV1+qHZ+)T(_iL^B)hnTE557 z7a+aXo>Fr;`hU<;2F5)FZl-G{Amz4nc?dTVILaKS52y)-{xU$;f4*HZqD1yv)ISn( zN9!;Fbq=6SXA$tD@DKaaAdB+=*WPv!`MVQnkE5=&J~Pcd(@fW>{ZsXud2|;(5S-ZP z5nVc^P;`m+iZwp%!JXuyb2ST)pJD2eU-gG9jE85YHUBccle<6GID292*&AcfB&=)V zjoewu*h|tCd;erEP}L)~W&ek*Pk9f7+}_{^-PSsR`y&R~b=86U#@AKrlVqLKGe6{V zKD2w*c*HRdag9ZsV-WXQSYJI8ds4bq?3w8V0kTZKJaWsbh%;~n_X?m<0o zzFQxa`wu{!z8<*$QS(Vv^MIq9 z_rvJ-|L~9dJt`je27g+``%PNX9?@wphdnRlA&uU(77OVFBLkN20c&5`h7wL z>p#n(czaOmIo(Oyf^HS==h-q+>XCm|aANs>Qr8+zb#|{k(X`#4Bv#i=KtCJyR!pVL z(2Xre;Z4gSXy-$Qer&huZ6iQa=BX$o4bFWqj=Eo^eCt<*+!KIjnT-cznYGrhZTmQ} zD8>dS!Oymnsk5z);hr4i8~0xv3jYY!muSfT9CwKaJRJbpZQwz|+c?02;~`{R8*h zn7Eh^MOTR~>_K@ko`8vmel^!gf3Ow0#=5=@`=hvixdpU(yr*G``a?t5{51@y9e`E7 zbM#!f`p3B5aG%HSS?8ks&w(De(1!`oi?h)NjjwJDkGl-|qT9y72+wm7TSsFb^sFw} z59iVCq3%Z$rEMs>GUToX9cBIzko^K>&fO4fx!WQ#6@5PMdNl2H;!#F#aQ=(+if>5P zqkTRM;W^%Um;B5c7|%pVKfrdnC*<4@^6n40dqMu*kPB~`$4Y9b&qL4ctxJax1y!3A&_smw|YVc2c-l@RZcB}f6xc*7IH5TPJ2IY7b%JWQ= z>uBiT8R(b0>hgZ@`v0war4vK$k%)tNSO92sui!s%-76g5R`&+>>sZ4>^vXGZG+#*0=5Ik)-}epdfJgPVE%3n2B?>fdVoQ&+#zFhhL-X!X#y ztD_#i1%KVX?-V`!5dW?9Fz<|z`zml&=kiV!eR>Hvt4{-K{%`u^L)gyN3__=c+)DUG zq0h|2%8?v1C8DR$zHW~V{tiv^2HH*RBUl~K zbJktgfiLX#b}m);Z|R%(zvH9kAnf;OZ{z#w*setk&2Jx>b1@%;TI}vc=)*WKzXtN! zc|UmQI@B_sb37FnYX6$50?0(WiUZtTt>kkuJrxrT%?XwUxH)h;b&+9Aqqok{(EnXz znB#GJYutB&YoE8|H<)>dwf#Yai)5|vGP-Ardm7!7#eFf|`Qo=!iEXNQmE6#&L(C9d@R^s>JPBOp(w25Af{Tlj} zj4Agz!^po7b6vus;jsT9PTf93CO^Vcz61@q7S?vHcinY(f5Mk?Aj6hahun9KyhVdK zRuJ3JPlli07d)_dcQ?IeQ+YJ?1?TzTmkW6)$9K4Qh5dYI=LwmIJX0w7hE|54vsI=ppSFYfB&EiR$D;A;t+_=T0FTXj{5_)qm&I)Al4 zN!;&#V(AjAi`R;K;2MkTUS0dRxaXREb`4MMQ+;$l!^ik-TfA>|c~s~|RobvUsvC^E zx+NVwwaumQQKN^bTbwJe@|BD^59PsnaTOr@*6q;86?aGUc#?WVJsV?aiUCR4&1#CbIQIIlec zaD{o>t?2lW>$_jl$#(i+O%qUq0jtU;YMJNW6Yn$Rj;i<=M9;s?*ki_Y^w*e!>w0-; z$W23Cv;UPtLvC`b|N28hZm(AVA+*OmTKyLdL;sKe&e|xRD`dVV8@ooz0j!%owJ&70 z?GwVb*mr3wm2*fzwG}d!Adg$)eglr}Q%pnJf!nqjTc-2e@T*vZXnVeqXM9ww-DWzj^68#Q9g!{-Tc4r#=K9NxR)g z$#Yjh^)m47)BA#slkG*@bT0pkaX!#X@_R{3oJr~#xTSq-8~=h%;=kX-|EPu?^ZUWS zDo3u!aX0vMmiC#Q#C@%ayM5aK{y*ZRPLH1^67Q9r#5)l<*8QsinIG16zO9?s zEv+7ofxnas?MzZurvpbloS+i(~b;$L{CsBE~&lYKdD3hcv3&-l|d?6@~;l^>K;h%BZ@gCQ;cY#00W39(wOy?HN*KEF)`q6$)lQ!}@@UVGTlPGy-$6f#3i>#JU zUP8!SS}c6nwyy@SA4MZw2aA3|5E=)rkh_Vao-FcUgRV5C3Bqcsa%u^TX{{@jQ^2_%2=iwI6t0- zOWUR4MO|;>`F}wtX_#cv5W&2WGSocQF%4%!4x9gZ4)XsziSx|Xc=Y9qCJO!(;9HlW z4O_V-)1AFg#w>Y=mvwLgLhjBhV@i~zlrxq@bA2TiPx?1>!ofD z22a+l&(0CqINxX8W}RXm(+~c(U$eM$El1majeArwTcx)YWu0}l@a*{)@@f$zBHE#n~WWvAXH|DNf-I9ljgK0J5*GU935&$Mm-mVhtAhJMa; zSDq|kpEkIf-!k2Bf#9A5&elQF*ME!pcZ&EujyRlMKAa<#bcQs)f?VB ziDzP$?rmDFSbML7QLOuYsPTiu#MLw6mZ^gl8; z=2-e1<97w1T_>n~Gt&iK_2iQz9@eGNhVDW@%3Jqd*BIB_#^ayk^|2bJsIxR=-R?Ng zI|cdBx_lb;!M+yUd0c7k?Tg}{?!6Z)_Rg{9ZGLF(qrd8XAl5!LsjQ_mMhLe7x`&Xn0M+n~k}6vk_~K zv6A89H}$>d2k*bz8D_@=*8bCxr|j|AihSbu1$LuY;jzNQ1rN&o3;d`jiIB1Im`Lo} zW1QIcz|pT;i`=qzn(=&dHDvd7yfa1kd({_)pU(doneN;8Xa0Q+DE1WW9~vey4AC+q zt9NyL0regr`TPL51#?RBsCZC{e$^EVW1fDwgqJ{zWxq;7X*mg|H zwP4T(m~QIvhlXb3Ram!nGS@b*;@U$m*ruh+fUZ*oR}zn}N4!$%G$qe`gq+ag?<%pI&Qa`pXQD zdh~_Z2UCHwsTFlNTUw8GGOk@*D!gLX9VU4j-4ExdaJD!db7^}Pd}39mZU@F0_^yEq zE)%>T{|y6VPe$=maARGMZ>=WJd3+(|Pr{gjJY}sTUCxQ)tlRO3y8&mm({N5a&71|! z+>hz$qfUmOjH}bo_Xbox{;{8U&<^Z-^Wz@4=I+i_g?b5bpkVMq!?bwK(3H zJp{BY^V0!!8-?{?u~nz2!^sEz#4&*D4wN+aG-H0JFXNWI;3H5+zZ(`flk(>rAGnh6 z;k^tWlK9sle7x)-Bi52x_P>z!ci7fZ7Te)w z8bb>+-L3j88tMnq!#;I`@$)>$Iu%gg;-B$v1GIfbxKjU-&rJmA;+3{UB+ZMeDx@Gtn9y+GmlT6HIm_POZ%5)!xAJb17 zmR~=dQAZm&j{eK;l{zs5bwcL>#*3V<+y`1a*W_5`Zv02g8TAF9x28>1x52N_>kO9g zsj3YBGT+B}A-IXZ9q==cvyACxdEaXAa{!$bDfeG$n;*`c!qg!Q(@}Z5$aDc{=I3M2TD}vz5^k-p2s@2oK^NU2>8-pa(>(_`=F1g;wtcEB zXSzN$NPj_Iu=bH-7v1a1!<^F^{uAZ`9>kf?ZLtt_fIztnEw7RWQHzXJ!rw0e63YoY!a0%=0|co|$>3 zoH^)ySM;BM4^HdO9(HtAsHZz3tEZPA>S+@;v8}&*ih}k2zCqD+*3*lpIl7IvchtQM z(*jRNJ^hOJP)~!!9ci=87lf6?+V%7k-a|cIiCg(^0$1=~@la1c_x_)P4Jl6NO3^vd zeuUrVX-AURBgpeG@;;Qdt}|FEwvJS{Z+ZSVK&yYuk%Yxli-Lvtg=-bf7rM00$FE^i z_k%?fy~z1JfuG7lZQwD+muVg%O#1u+80vF5@ud9b_J;qCe-rjx zrGM|`+fJ2@JJU#C?(i}U7?#bwxHo7XNt%lO?bCljQ83ffKHzB;UVDB~Q0@Ki0k`ZU z;jc1V$vJ>&_$SFv6YgtqYfWuBm>T)%cHKE$srLPg-_L%%ZO)t{;>o*?;EWCBDPGs6 zv&_ZfrCn*fEyEqQ&D7=XZL?^iYnw~_xy-$yTer=uEp3zU^N|s@%|+aCsrV);4$?Qs z$2GvdXPD!`YZ#|G&V|Bu7$+=jhvlcS9zeMsZu!_Ru$X2fC#0!5wJ12)hl^L`v@aO8 z!^TsJf_=Py*bbpjPq{lXsObM(Iov;7Gf7lr-TTkT~O8SDEm zUq&;NnRecx{;P@m0tT}_b$yBP`Bl~ z4M{{wV*KZ--S*BUZyn2ZE$5+&;N3*LWt^1?%b@kV&UDO0Iph1I=s4>U(yf86E!G8F zcL&;MPul5@wAY#5E?Lr^r=EJG17u3`ZvinB;d&(VsU%K@H@>CZMheqZ{x}@8( z(H!?!{B`EItebQ*)x58Gd5`|=$}c>}eKh`uh?aB1Wji?9*LW|V9#5?N(b4Y9`!!E7 zZ`mWBobk0QpNc&q$rtf2J2#$OKgH?o#pgzn&&rQ6?qbHc`EnnDoA&Wf-1X>M#f6dN zHFre@UBleznme~>=e>1ckNjE3-YFKPG@<#N5G1! zN&D396%Pjf!#`jd2{ykv0R{u$OIYE4N}?fOe_5TY^X3xtuWRL)|2x;!xoF%tlw*?k>E4}HTzGRuN z2wUazAGLm(H|LmtdwJ`?3PWCu(;?B9@gC~uhyLA`*Wph8-o;Pvm3|)C_?M#K4g92& zO<<^FCHVi#`+o|CV_(THg~7@HK6rJBoGY=E4w6xrx8BF^io@hyPZKi4W%!&Q>aA#6EAHI37cfvkAmRP^1@|tEI zgV)}r(3dl;)sb1*jf|bhRs2^Irn9}$RhoJg72>V6zIN z`xgaAcv%xW$g1AYg;#+pi)%;RFy_JU>My(wdxa5ZOAPI*4f&i7CK$l>cRg!$&)Ir@}3o`?72`*-9^mhQMq z&51A67<}z>j_0~%4!_+F?`!bx3UB??PX;cL-H410#QWegj_0BG9d_RiZ@2v`$3$)Z zvdwqosfl~>dgvW}`$q5Rc$78fp>or1Q!FiKB81HMf0IA!2b*lT*0n}6ULV7_eKh0u zQH>;<99_*9B&JK9D92ie*!h1-rl|e3z+Y%_2pf8y{or7(%t%% zWJ>4121C1gLyog&!~MY5Y#bTpJus9LVUDS>@fFYi5hy)XTXcNs<~hr^?Y`>E=WM&5 z@FKJ?@F=e}e*LM*r?qz9qTnIIlupsu_R!%jx=VVwJgx5+rrYfg-3@K~{3+Ai!F$Bd z^N&AaYucL$D?<;$^v~p7`&$3&F1j0`6OZWU`@86_w|>fZ`+XIf*S0N|owgJ8yEFB? z3-!G#_1+6RjWf~J?dPFeF3sHX-HO^^(d90G<>Ye;vWrNkJ$w0g*MBwdS`?gwe+Bkq zYFEyP=0p~1tgpGmg-gbe8#8Tt{%{vpZ^uI4F+7EE)#oVur!I1H?qRsYzNcj8qConr zI=C2ApLdi+?(OPG*H9Q7;_1%vbVEGd{vGI|I~E1|dAf2>HxN`>YnU4fi?LJp^fZ3~ zl@_Bj5FXdjUgHKdxBhO%g`a&4=uDeyMD_4K|cNUrEBOb@Jpo+ zE{yv1PxA8H+1LfFPi0?zWvlA58!|M8$sW?YE(UKG{Ote#!24Kld?1#&rcU1s`1sxU z;?j^rp5iat#F`%Rqws`lYO5?^h^gGE+f3>$JO|Z)E9^+Is zSO?y0Wo*62pgrT+oysot+W4Rf&Z%HCf6yEIPBJ48a(@r&f0A7}sVEqWEZLM(urcLV z+*%l1j9{fJMJkpUGMxpT+E)* z_1o?#{a(E(ZR4IO#I{T^6G?}3YWm;8aW=yYSK6q&&fZA*(}J-IlOS^D|+#yhgh6YW&uf%NqQf(63NlYzq(ezrrZH zA1r2?|5)7ievxm^LXS$dX4!@Qq$~YOH~JUWE2pJ$u03VTn&p@9OMhoDhg#A-a*)y! zUE#`cDPcwYyIf_Za$Ui@!W&l>28(d33~c&`yY!df|04b>;}1ZUp~63=zLQtFGHJ<- z50rhTxm>t6^8~aDxPrsZ# zl)H1?TIaTBA87ORy-G{f4TZtgl0%)c$w^9o2Nvr7wP`*BZ&;SfQ0dcn zDBj{eML|~|mIsEqe|eYUAf#!`E($iC>G*p?qxo^afxZr|Nl7HRQ)4~%Ae#*Zb!W=d6oY66vz99WV0`AZOGGH8Qk@}>-QIX8J~dR8bER(eZmyS ztM#YnJcd2@@0GMBBKnZG&WA4q#hcQB z_dXvcdf9H`6}{@PlKK&ryj&RE?&<15$q37-_NBt$MjuuShWR@b|HYGB8YRSFmbg~15#FZqgZ@r2HDvrL>Y zjYlIbW}4w(Se8}u8UJ~g>|;R5t~;@_j7+ny=N$xg4qv~g_OSV%ucgT_`+?P+WUQn8 z>O5;7!mvYcYkJ3>H~#QR=_~Dt{yvj1rQ=Va+VzwZI;SJU>_nLQ$}Di3@Ek|qMKs7) z-K6~8tvik@Q#_2pXSg`hpiy2+gU)eensv~qE&m2?6TUBZli*+7iLcduubgi-(XPJQ zPPkqF!#@Wbyl9l~uM&m9C;0Wtb!k|g?U4EG1-o$$Y0CJm)AkOuY8yp6xHeM$NMW!P zKb6^+pz^c$_^o-=Pc;yx{Ja5%_1^eUVeq`(`9HPFN@b(DNdr zcXDx8{a6?nPb>MNT{X6I+!>~pFxA(iU>Ns7^ITob_54qQO8Y#azHhN@l>L7nUJqLN zW44t)lQ7Aj4Tkc|A1Dl}dDr|~*D9rJ6URK|rk0D&`R`g-sqW2UAM|u9qU^s?W-7ULR_jG2Mp_Y$-a#`g6 z-xhPtNQ?PqxW#O9gb;nU^t9n2)?YTpD8}lMjM*a?yN5G|AIUuT2-dk`vj&~9?V6As zqbY;6|5s@H?u)K33=Tk+%1$<^+IJ!ED$|2NjcF>g^4Wz!j`!aeln%(hd8qP|VS4+p zexUNH@)o_yDa&HI$pD|WYx!x`E!jHHa>p&srcwMmdfJY*(-#%8y<^OIr$UKm4!ed>>Xs8@KsGx1R{^>WFYf?tI zdV=RIInVKq@Vt{e@8Sctj!Wef_q-!LZ}}yT_YmGA^pU%L?e=w7_1l{F08ih{*r~GH zhj*oOC>ZuzCw$@RR{8mbJpxedXqU(Z?7%`K0_66-$elGteN?JUy*e>ive8n@Ez&S?>!;-G*2T*x@}sgQF0 z*kYzxZjpa-TTC+_fWP;jg4KPG;J>voyHAmtIwX;L75ABO*O<~;dz$i>YMwd0^ZKJZ z^Y99Cwf^{$kh`?Qb+Coo&@L;h!u&vi*bXK`a zY20RQPr8(1u7bza74tW5Yc{{^`@Kn$?aslT;^S*R+4*T)t|L7s+c?|j@WeCgRN~v- zx`pyHf1>zP%p~~2GSOJ7Jdg5mlvogsW} zFSo{VqSbub{p&UZTJ<%Bpw6boJ^kOHSNV4QCR6nVeY)aoJg(5*pVigsSPE+oDU9jA ze-=KT<`ku zufeb{Eie%Eh4hrjyZHl0By59On< zzotZHJ>~h9fQmzVp)cZg^Zh*Y3~u$Y^DXMkd6szyxAf)(P-8^Xibz6fiF9#k$q3ua z5sF{+o@MTa*2X(5^y9lE^!Ik}U;I^prM-oB_2r_MU3{0t9CL@oY$JM=*KHO#FKm(a z4{q;_XvstVA?r_fUoz0RCWYp-ssSI-l^2)et&GiKt=2YIpI$2)g>R<)v zY>iA)Mz}3M>RY_Z_vzpX-698T{aAUgic{vB+&Fw3VJgEjLB$c$)DC9-#?y=E2@n21PRR6mYCVtT? zfAupNmk)Ki-LMO5pMxWtD|T{Y^N45M*xa&bYGUnJ?ph;{G5EqZAAz@dadg%s;%yoo zPbP)*6Jz{*xN(JaGtGR9f2G!c*SfNJiF28XJB}?c)U(_D8P?rgR2X~)z5F7~4TOz* z7Y57mQ@#JkhqY8^1Q)T#*5v;k*wiCqV#5EIiT@IAHqW}WuYQz&GjTtkz9DH!BX1cl zZ+kuO^Y%yz|88>mU$$Ri@FwzAt}V3jmhO>cKiV4W{e$Yfya#`Dd05$3=W=uwhkqlo z=6?iqd-6Qy)A)!Gb22k*9i^E^EKj<52>fq) z)A^jasYYEx$Y4PLd6a4o+14~4;XUT$b}+dg2=@(2 z&MXYhR~o68>p{gI;oPZcYtJYQ&hTN^fGX24tm;(Sj}N;HlzxX{wONJ11Rr(*sJV%wmQqwU}l~K;^Bf(e=6e^RBo=Z|jo2yygp6m-Ak9V{(7XE4ya<=g?EA z1MPwT8C1FU134F9_Ep_*)?#(v9hrmw{&@>`PfpbSBSdNIcXoz9cahU7`zUKm+R{xr zZsl2Y<%^UD?$N+c87X;ILy7h;(YLm1dt+)T%)2;(mmZJUaw*tnAJhK8nH?DI2 zANK=&V?T4I_qYefcKf-UZ?#fCa&bS`cc48R+<;z+zi}6A0Q9?*cKMo@|9J=bjW4<~ zkWKtD{z}UdaKTLY{Gt6$G1W1Q^f1^Dcd}VyA}Gqs1v?LeD6}N0rH_OS`YW!aL$uc+M*AV6IypV29K|uK>7rp25Q%$(^_8!p1lVxtey^(m74#{pR zYj5*IE^>WyW7on!>u*y%|4dMA@FMP0yPGk83G;{UadL`Nv~HDSP9aQo zmdg4Z+*k0g-H`9Z4t&Mm76d2oe*F}e)^l-NJ7G#BQTe9J$I=(n#&XOA!X!`hiZgXA zV;XyCau^@9Zp?Me%<-WCR2OZ1A3MDVV+NVU5tA;x{@7@ys7l> zrLbt^r?N|29Vq>iPjzKq{!2lSLHJZ3)`X3y@Y)~IJJP>1VUoW)81~x=ubbldYg?ro z?)#1yG|KZ%;3nd$obBS9`;*#RuKCsHu@~XW<09s_lGR9D>j;xgC0Uzs%fI2B^ofxk zWd*5`%kE!FnHI698;MT7Ut!bM76d5`t}K-2ui%;P-(6pkW4`q9tp}C%i2omC)fY;0 zwpoEc->(f&eWf8==~X)4_k7=i(hbF@@_3W?$&ZEQul^;^yoR6Z?>*4!8*)TnOrBF- zaL0l+BDGKZsJ|_Bv~(hQ{eOh z)ITR@5N6vA^)(Ck2_4$o)gAb1-z*5O;@wPkdAvR3V|^*|piA5L&%5?^4PmN((JRgw z188sloO8`fv^UN-x9sTctW(1F7IW>bui6`The`(fUgB>!n6_3One{etH?h{P{S>vE z8+=;MgVwe+(o$37((;B)OPZNTSo72p+ZV_8VK0L+9)+Lksoe9$p6Fb*X=Vsv%EM7$ z$GR-0E~@Ww^qO}M>=a)9WkGNter1n4ntGd#JadSZmu>0Q2On(TGfaPr{Qt{hzS$29 z@5WuaPsWxrbS3s~-0h#CTiy34?#6ZJ=+2`|wmwJKZu9Mc?2a~H)yD-vs*gXk`F5Ss zc^#{r{};(dk3yTVBW>MaYixpc%lAurpcB~7 zs^7@t=mhuhruwrkODBc4cQnz@>(<)3l!W%{*C0dkn)|wQ6~h%j`=2X?eEZuZq~87w zhG#3n`}dWu)qSJqv`$K4uY$G2PH9wH%J%o;(HjLpBQlC=T|FL5J^m-Y^`3PJHqvfB z{29fEPQ3+M8_J)nT~gQke91k-W51}qBOy`d^|T1NoUdBI-rY|P9s2c^{e8boyL$kc z9mA&ku&U<@g1ZTO_R~w3g?n5FVQXoxV@s+Gs<5t2+koq5}9(p z=F8`#M2?Glx-Uh?d7ZCPrah&9l2_jC_&@Rfsk`%Sd`hZ0mGx7bj(-&dF>Im}kk<$L z$XrMNHuM$HphxpX*O2G(Dfdd+lCYfexz4xWQuYgVF0-5FXUJ0hO$3!+t<~yYe|;yW zcJBU>%6UP;D=4E#I6l0>_~6rf5Mg|~+FxauIzK*$d!_Apv&IOv%^a6TrF-vAGD=>e zf4|d(tAFZCxNB2e|7UJ>-xB*znms3XZlh6q&x7U(;?;U{F{tyg<>X@}GQ;*cuH3Ep zmA^o`NlPlSR4&cW7X)3syAij_CFfJP%>}pjeeha;r>V31xu1l%rE|(dTe)iw zYLlCAtL@q|aFw@>Y5ry2g}2}*+y6Pg574h0{Q|bA(iFdmeu1-A;agXQizAB3O%{$EIc@u842Ssw_I^`6Ca^Nz&~^A^~7 zZWewYti6C(dZ`^-il0>5NVR9PpQfy~?t|Ow=LO`ceijO;n`gnwmDE$g*7dZetg{Tt zjelR(d%lOgoCk&ITUfs}ww_{~i`@R%v9K?`2R_?RQO+vsiywDwrS?C{N1B;VxZ1s*J{eHKzI5^HqY?;NP8U^ zjwxLdYnOFRG_mF*o@X8^2#$we`H=pM#jSE#wMyfQY(vf!&=wBIzlrZ}h6@jjCyx-4 z#-SFuFT`SoiG$la1EBqXyN^)%`)5{FH(H+w&pa-_Rb?49`yf+kT5*XhLuVJOALjmF z!gR-7$37|gciDEjpDN4jO8CZT)}P`rcbQs_^|CSY%h}+J>3VO>O|>Sj9c*>f4hrE z<@S`PTLOk{q-s_{@R;{s1gc%w^zBy=Jna1?Kb)(S+@`upHxKx*1)ysqIY#uF`#fkd z%gnRr^mR6Fl|=#!+ivkK1;NeUzYbKI;*>!-Zl$4lf5pY!|CD7leqq|mK6mql=Bu%F z2-6vvuZZ^wXcYgo7Ww|)Vy3CIm|?EAm~O7LnC9rQ(=Oxvznw$Y8W%L_()&xmwrcH1 zbzwiMD`!l)VYhXs-{*|?v>w=&Df}PA{hwF#%16JC((U?|`hhay3U%Qm++ls4h+E}2 zyv)_B?9kb)Z{?Cd-6gF1eS~cd@s~DGV2t=ckw)b09CK~T_Xog;JJb|ciC-e_=~S< zg7lZ~fINK;=*Ds8WP!`)MbEl@f^LL~wu{9KlVUO5L@aXO&LnI>>RWPWE=k`qkBMUU zZJsuQIvh@29!Z@ZLER4Hj1*_ltHXOYa?B6#=l$A7`ZzCu`_o_A4qCy!zyRFazaJrH zz9MYP{9-X*676do>uz3nYZ^E$J9@xb`>|Rj% zIRlxYom)PU`M(dBeCF_5cuUSM2rltqlCOMSewfSW4Bo@_h0Af<{48|&YCN+bsPKGO zgNzSOkFhsJ7d@sRDD&ZxAC_0u(FN?Uxi#Xzho1|E>xPqXuV*c^CdGY!+jx3GaEzxr z1(cjH-&c;;e2M$N@Gpx*4$hEGOuGwti{}*tgFWv!Q2mB@#WRR^l~L+-tP}dVY`-Vb zyFFb#;s>L5>@^Md`(-nKa(7R(Ji_-Xt4b5CpLI)Y{I+|7vQBQq7X9VR)WjyOubnj{ z@yn0ePm2v&yJCk#C1dWNiK}UnlY87)wbKmKPkw%l{10-|2WjnOH@PWG?JpO~Ovw;-C?+0*|C0xTXnB~VOQL4ykRX6x5~}#Yw-=C&Qc^#M&2aO!VuOp zfw_`!d_37E|FPJlLiYWB6>^r-(jUo~ulG{!#1IaSC)WxOjVFH=Vq^U%WS#kYVb6GS zjW7+HLP)#(R!Dh$EhN9IEOKVuVwU;RBIgAyrkT&c&C}ZNRPXp-m(_ibW{=g~>!tru z{kMNn=^vOI8E0IXq?jeh4fh>h#jP?dL~n=RR}j=!XSCL%8~Wc5-_p&0r8M)o@Emab z5wG8Wg-&UsKX@6efwmw0bv?B8)Ome%j^mBB^Oj++Dvn~>#yy_*3GqT}d7-VxuG0Up zT)Y`u;;pQ6yd_5!1UGoz8XK?YEzNkYo_R=pb+(VUowuge@s^J)2&Q@7SvKBmA1}PS zDPGUJIDJdJ4G%cps^JB}*`9a0jo0%+Tfc|m&2sTpxAQh(%PPOMM-&7ndETiu-Ygd{ zwDo^fyq>qToi{=~h_`Vl?cejBV&nC^&_2CSJULbM6Km&-&vks!(t;rF`Hlyr|E`SF zpPPRGcTkFNaoU!AR^ILSN=gcX13cewP~(8*gZ9Ph%+@Q#SKZFnaF^q&!v5af^Bn?8 zw=5sDzhbkNz3cXMK3Ua=K1=6Mu>U>%KA_s|Tx4gXLmO!O(l?>Xpk}s?aX*p|$ z#A?n14-fBAo0^(v$#*n~cfAb$ySAD;#`@)X|JeA}mOZ;B>T}%t8SgndQ;q-LT@v-N zpmlZMSfc(-=bxw!pifEk%X0LqGaMTJE7r1iG*MrD0`#m0SC4C*7dx@_os(QU`wDd9 zQJ(n-_hr@w$~7P0Rv-BuSYJK%Iob}kN4|MW?~B9tbhCu_`PIj_*2j+XG-+nBXiD9C z4f%M*%JA=`{{<@}3=dkL)q8B5<*y+hPg{QfPWqp);m7;%6Ivg&;r^YxJi`0DgWY&v zUdUS52d+%Ce{lz4HHR=Jv38}pbn8|*W-k8f)9<#Z_1f+KXHEZDyY-~bYY*+~7dOJM z^^2K8`kB88=`*eq(*CQ3wB;%x?eZESZR{!`ZDyK~v|kQZE{e`7C#@aVryif!Id0ZH z2F8 z@mkW@wm1d*uM75HSM1kr*s56gpE9g4sEfIFq(mv#Wpi!I~!hGaATjm?y)yGA&ej0OjTU8!mUZ&`k zpSsAlGFK2LnayCx+niGnyzhCx^}LJQwk?Atp7(rnE;b%>8QX}rlcSNSl>*SJyYZSYW6bdLNY!en<| zZ867O3C`oLvsJBIr{PTe!#qcS?Gv2FyL3nNig$|HnqFrEP9jWw-08wFzdZ|r@t*e_ z&s)7=Ti#NKPbSnHSFY6ajvZQxk zdcXCc+C%mCoy#ZNEGJBTK$AuG|3KxV8QoGo-r-$kAo*dxn6^TCon~IgPx)HBrnB4} z(?FQY{SAxRW(g>{#osx(Da;q2#jj>=JV{?TU-F*jU1=}&e$v`N9#>t|5^UWf}qON&GB@Lw|o~Cjv;C0GQw1E(?R9o>7QJ@Du)X^|KC8B z`Q_lp{v4~q&+y^b_;6dUZ}bVK@UHq$eV&bb@Gg;`i~N1Zmto6?dU=B9KhM)!{yi1W z{aBNF{Z;Q>-|c1hU%&OXt7NK8m-0MZT{&hrysFU)l;h@TB-uYXH7y0mmLD~0p zSB2qWTCz+QVX|F|!FlI};ZFXpo_`Ned8xZH3=jFaKi~3mcQCkZc(!Rf(cN>%yu$ty zyYVeo$4UI9N4t30;kUWb=03sy`LI;N)aNyQ=gxO-nyM@UmJ!mD?)M7xqbOSs&3kyCsCj zyo@kRxxMfwX+GMkq>nfLK7nNNX|*{{*9DHU?wAQG*dTZg}7t4;nLci&}O*Y`%& zh!oEagbndwu@ASVsU}QuMv9%y+St%1xEepjdk3g^6<+dcpWrgy!*$Cl&li6n&7Swl zX1$WOaa$4l45DB5NFS}qZl3!poI>tKUAXy)LrMB*IiCXMmDLJ4sINAY;6j zaSo`oRX?CRr$I-;!^ySSJ6n`D4`wiT==0r{8&(J zHdfI&zHD;PlWdbqnB?yc+VsEH zEozsj;3d`e5*iJjx({693J{~1(XO3*i37rfVCiz&V^uG&}n1fSureY`M^ z6}&5s??J^;y?EO=-XTo%AA_OoRP|DyU^h?unwRl8sC5^{-ub25$jLV^60UEn%6!;< z|7@GHa!fq=3AW=(?%k{F#Pg(&uXw8bPJEi8Y&5i?&U3E#XSD=v%nI zh&fmPd7f@cr+DsyCd^l(VGONy@-)`n>cfn%El|;XY=+EwVGsA8@-kv2Sp@wB(sW+|HI_{U3KYHss(| zp4^^SuDOJ=()Y5v;;-*zcNTKiaz`QGsq7%6K2n9$Pd6d;)kR4Cq*&yfltu3UkUZM| zCW|@d7mHb@)nc020B-M`M0i(%Ju6Wi;h$IhbGkG#%bvB_wKUN+duXEj?!)Yvo5lzF z1gjYfbna%kl~=+ZV#J=a_`UNtpFyW}pihLX3#|~cPV|wGb)#iM){))^D~GT?^~bnf zpX#pn$-J}Xw34CQ^F4GQvX2i z>b?tEUy7pZDd_yR{|{-a?*4u&x|{U6yWXF}QXNZorDye@r)~AU$Gybk_AJuP-MB+t zx)XQPH7d(Yb31OQOF8CN+@URglW3-iCfCfwEgd`XDyORtq(pu$OSxliwP-Gl*tnOh zNVEGON=M5{X%p*XnVVWl{kh))$5;Qz!R&Kon~UL-omj&jKuulB`&aRlzq3a*DoClz52M*#fPj4+n)2#d3UBqYoqH~ zs8jwcGZ*q}lUH z%FF%aL;Mk+cDYx6>tr=w)+bnehm+OQ%i@ofzgsT1B5TtWSC7%_T={Pv&${)$-QM{b zUpU0>yr78tcDf>~X{w`dtakJ%w3DCUvEx7CDjTIKO89r)KZ3vXXbp2PjiE)$j!d>( zgYHHnKUbvq|6^Q1JNM;a?sj=teNAd&{S!MTzT3BZqQ@NXH=$c1ai?>id4c!iUnZ-o zDlL1>a`+v06SvUU&hvBJid#J`dkNghmw4Hy_d_sT(~X|1 zeCl3&{^y0i`u+xs*+%q|Upv8-#XopgIs6M0e}%7$`q2Xu%Cl%oQkfsFioRbLOL>2H z%C6S)JPWD~il+Q>$;&X4XS($1PK7yyyZ%1M)ZkY5{a|7D$j@hS-a>q3&p7=mp45kP zKHUF7xE=q&E%`aGPf&N8lPmpHzAC*u(Myh=;pcEp%kM=OKZ<>Dp85p-=iz1E2r50I zEyosV9`C}>@!{2An4hVfi4tA&L(q+NbW=Rt<)G4*`l>&#!P!CnC6Q=7J(6ge6i@#1 zEq8YCJm}o`oMFmvYd(Ln#cVTCGOkCTl#KWjs@Ti*LudS&X7!+c&jaa) z^37QBk++&j{q5P((R!c2dn}{X=4U*0R2_R?Wju&5`RS?PY)8vzm;UDS;>iODQ~3@T z|0wT2KA!xO_a6efI%7`3Uilv0|1fY%JK3CX?chQmb`Yq1+H{O|dX??N_5s6sZ1@Lt z{110`S9wLBU>CyFPM0*ea-8{!L;JtJwwP@nEmJwepl@AQU~^Cot!pEkMHs;oNsjmB zoPnGsTh|$;o7~u@T`cC96pPs=Vlm(Rc0A!DnV04Td^db)?FcH7(kpJMWfbUM5_6C3>azHE`|KE?qa&qy^tS z5J^_-=5%W5hfb$j>U3vGdZP7-NblG1FXaG0$8H*02Y9h2Ag4{g5cfbI!Tewt^Mj$-N~PFLLzo|wFh6+xY}t~Dahw}ltUElqK*x6} z)A+wtwZ2VpcMt3Q;Bmwu9Z`Oc#T~Y_8MCm}{rR4nth9+0{!FpHSvg~QSdYPG{y$md|6gFoJcj=f zV?D**(^|B!2Z<|v?d8u8GKeSJ< zs=)cXdkwhT0zTbEX2TEZ6Nq;4d#>MdG->7&XcprCDRx8L?#u+Q0LtZGW@edj+GtDbr)<>Z1$m&mBI>Z~^!|;ri z#eIQb%?(2m5Bj_nABH{3zYlc>z~h!C-8^ei_pxmKeaA1SYyJ|Q^#o7g8G0KZ`!jK6 zm!bF7ky)P}CqLT1rDOgNcB8&)&`Ec8LHC>R4@K-+%`eXs9q$!j$L}$=e2dX#NFt?& z`l3`5NB=v||2pdQ9mFl&4|V={%C|GU%B~~N-{9HaS%9kJbQVD0mBr5K+_&`0uRSL0 zLn_X9^RUEGuB=;F_g+n(vYc~@4gNmQJNjy^CEfH@9;t&tptXNO9&8`cibnU)<#@V% zL8Ui5KN&yWkCO{%3sc-V;Gwknojkqdt8P_~&Df_YN4D3${=XR`T=PKDtL%GP?8d|C16x)MPp+v+;;@uG;C`_P$|k+@()& zyO%5ZVYxJR?-Sg_yV6j+viHQ))N<~!NjI~--|!RL*QCmtdT({lb)r6O-<+AI4?ur6 zOHK=WUaHTi&s!1iVZUbefd1@S(pz(&t6Qx%eLt3RqF$AU-y2s{XZEg=nNHuDH{=J4 z`a3r{4oEO=(^He(xp!@(#sINt@lX! zn#wMb;|5G}XHTB7ws*KkmSqlyuEw4TlV6rOg!hQ=7qj+pdf>j7$ub8L7Vpj7u#~N6 z_vKyfO*X(l-10vdyo)h0EUOLUIS)LEbH9EJ(D*I-KY98;f=YXt&qMiNIRAs6`U%Nb z9+v#cl~1@ARD^%1v$>wXxhX%G?&*|{RQxObdP;n(FCXTiDfmlvHn^o-pg)_aJNfs< z-{pxre{d_UQE(mohSJ$I(#dN6B0u=i^K|t*3NOchwfAq6KG^cfG(X{1crA6L^l1+I zrKejD$_7?=bBy(u)lMf@_;Bf!OH-ElH|}EUQvKMwxC^r*KkwyrwCZEctN6Bw{$q*f z6}{{Y`G0^rjHl@EJ^^Ee)%C{r^Mj4_+3YWGp4``!^>d#89k8PwzRY_C4jQimuvm~$O z&~}?OvWT{ftvVz8{^3U7mLK8&kc>m3ugG%kxY7U5zKm~3bYGnAiMs>&yxYE6HtXgw zu3z4I%yf3BWR+~p59Xyi`twP9nYV?iuFnt7=3V+T9n|@;eqZyy`>$Qw4aej2Y<~Xx zJ#-tr-5%aAyY?gchl@k|kUOS)JQbjHtMdMMa#5zMv$fQr_8v!gnn_?d_iKJ#x}iH* za!d*SZjPQ|ZvGm3)wcf}a|3S9<}K9Rv<(#fFdq-&`A^zo)&FrD=DEJBkv6xFk83EX zbUbI>JDljA#Iw;R9JWQ zId0#-H}7uT%Qbnp<)0%z<_THo{XnbhxhCC*iC(sG8mM(w`oi|~ldj*WbJd&ZUHbFZ z)c7+QvtM-S&;L;A*ZQi~j@ZwG$E9C>Y36(0Sqqr2JWsXlyPftM!k8oUcl_K#!n^u0 z{d-0K7#u*FL+r}C^6)EpQXR;xHR)z}#Q&wm98*L+MYzvGdH(`GrTe1}`HGU>CHN~} z{|4=Pb0l}mzqOZPKPjyf-&VeKC%((q3(&fJ$uG@3%R6%io3E$sxY17gq-brv9PMMg zD_@()S1M`Ow_ZATqwlz6{|c2S`71A?SKM5h2IiPYLFsC|qkfUTyYN>&MDOY+XG=b2 zKjHPu>bB-T(l7q!1#PI)%ExuQhxwRF8+LOgM|-skL%+n&_k6sE`c;iv{#D@9TmBKA zYp(MC(=29~7r$zoqdY1uFt7|$yvL>_YLg7DeohpQF)btp)FkU zSbi{+_bk4r)i`i8Zp9zj*^On5we|?8_hj~A` zbo_FxJ8P&jlSeaewr44oxi z5qT9}{8WCBy6e>imr%z|$d$Y=ygbp%u92LNaf`nApY;FVxwP3a9DkL~=U`c=C&+w@ z_ejZU1>yI68^#a8?$SEZt9G5Jt-2d?xit3O(y_%d2+O2QvRE_9X3Z#vy~u8qNmurZ zyKv`%z6X+BmttO3d;??~q?<*!-MEovUXlNS5vRxKkH+^$@l&}pf?>Hde~)hMEB-7~ z=ff9*;kb0gEb;0-(_C{e{;ut1nn!Re4H4|z_1|`3?Kazdq;KE+*s}qhmR)*_m-!%Q z*GVH;Tl$9y54&`^ej(RXL*x1dop;GK*YIBH`?nWaFHjo8G3qkHinxo@`Q@97cy~4@ z=Y?_0e;U|I|Bz%~`HrrU1-j!yYbO_X@E6?$yw~`BrBCbKIk6i0Q`N7YMZ5Zav4`@5 zQ$1Z@{xz$+D)b%rIQUhrXMrl8^#`)A%XnA613HARM4?gJcWVl1M)Ye3u=bwf(sL~D zO2=q0OfUam{&@yAQIlWu=|bAo2b6v0bnQvf*}^(TYV^w6_06&R!682Wfq1#D}AM)t#|(K7-tOCx<**`yA$ThUVgczi1#AOzMUrDwHs`i+qipd0ey3F z3FWBse~e2X%=WY+D2v8Vhb2>%hwU!gtoy6W;||EwIE0NeUv*dXovX)YbWP{$zVmbu z=)(Pu#>1ssoCPFI^(Vga8TmnMnUk-+{d2r*bjy@hk8Eu7QPzUj*D59CU2)f|-(d-z_C=xy64?1fwNgVK5z zSEzf}5nkv0+}ftbe%e3&tCoi8(wb+Ukqxc3bQxir(2dUFvR^My7`Cu2ui36{&&E%A znhvVWto~f;WS{E8rh%H5sEkA}{!1=!c~Lu>;OQh^b+7Q|JMx2ZyodF0GH&UrbT^gu z!}+%X&UWEGPtRZ8fxq?^)n~3*mBt!A{?bYH?TMtds3eSQ_`zh4KEGciaBKP`{gRVEwhx9Fe()|~;n|B?-ZhTCfnOY*D0ngp5gcPwI}BX ziw}2nD&u+3sNNp4m}!i~98+&G%RCH9H>&or<3oStZ;O6hl^@(rxY8_t(eB`nTZ6lVcJ~l1v9q3zCxl`l4C#oIgZXUXf?`$_oe{wbtTUN2N z+shoWqgzj?e`G*nek^C;3u!q67xc{;xRLxlTbnutJ!_O^&h@-}4?pWt+^XkR_VhO$iY)G<9)6fhM~_~itkgtu zRmz}WzD*glj_**{uSps7>yIgexJx;yvAShKBq`fKHook@jSe@x-C45gyjJZur6MP6 z2Q?4+_B}E`SbL1qy&i|2{mbbPz88fg{lW`$HYox~V%?(*$kH zy!fE{NaUcFhwXo94{9;-L8-du+^;J|PsBP{9p=Yd*jF6cI|Do z&LUZRBHbh;(~pr4%gy*N-eUR@`T}${%gnO=@#MXhHlDl()Y?gfwTERpvX5l<*EsVh z8rs8c7Sqiw7P^G__rkM6#eh=^&i2eQ{JPjFKWGb ztfxN%40X5I_xqZ6kHTN&GY+g|AJCTDLFnJjuI|(~4k4^+I{$iMKi!oP|Npgo+KVYA z{X@t{3GMA)^`*zS{g}>sF=``&;Zgn+$M9QwZ#nZ@meG4+zwjIZb-dTtu8vzc^Q-mJ z{S_B=&DwKvAKbdvu!%b`*V#Eny4efAu&f$x?#;LznROlItFr`!;-!D-V`apXc|!7( z1BPqJ+GkchX%FW2?!t`R?aH-r6zhM;Rvn}xL-|n}m8aUF%v*ifPK1T+xpo!x_qjXc z`J)f-O1Pc(h;J|KPk--`?C5WlcG~1m7BkEb7SqjtK*dvWU3=M8_Ut`ziC@cJ{fR3# z`%hNN?xJ}^Y#Y%T+a}4Njm$vbRX*y^ZCz3}%Lxn1LVGX&t2|VfZ^5Iy>%X*0)6&Y` zK}Og1cH7X6I`wy$Dm^{kY_HRol$NpFVM-dF$E~_^Y2ts33L{Pb6sE4sf<)! z=i*kLSQDEMCiy>B0l0Q70`j?Ukm$w)WH!WW()8PG4^o*}7w+3BQc^j`Jecdue-amEX~1$X}vZM*6&s_ zh&6-$gS$umsr{5p`dqoOOOLDHqht_vcmEfNFN~|IxB9Id^9LW#p`gaF($`&D-I}=K zVLi{rlVkP(gKm-j{myi0(YY1f`BLxSbq|Z=D-W8F?CfRl?q%0tm)ZP&;O50w%+K3$ z_EbE(!xQy9(of}Ecg&PQKd+86s*9uVhjbg!1(nZE&}nX4eR^0v;rW%dM%XG;6 z_k!WknR6pi+CQ?@-_-a%zL7EDE&P<$m7vCkFihjat3K>AFq|h(<@`=a(}+F)qNn)) zR2}s@-__CTKf64)w54#KlCx6pM(n*#>eIUOpJK%+`EKr?W1hh+dvdp3%%{{!U?KQK;tFf>wW$<#{#dMqK4(0rx5F7a>A!F(d7BkHZ zi|OWiA!E(8U_Ez|D6Jz-XtxiFt$lDT?fNvGeD+&g>8E{~eCiObn=vJd%&k9U>pd7%0S(UwQmmNLy4{8aW6EvB0j!Am|E zk|2Ckf-b*)`glmlHc&?<^f9d~s zg1!uSJ;9Fm3YSoa+Z#&`9TiEBT+nm zx@r6*kNRi*9~xIS*bBH7R@+^=p}b|-^Ew~mFMaK3qiGNOQ{w;M-_xYNuQh$U4~Xm~ zL&7mB$Bs#FAzOWh(y|n{(ylZ#9Omq#s+D=ceEg-8Z-C*tX5<(be)sztQ?kvYgoW!7 z#rUcHJ&Ye`RqVe7=HBZ3)W6nvdC!1O_p^+_t^TQu`SrK_*O4{epS14Z$~~F!EY>t> zx6Sy=uOZWYUsA-{>g3t(yQyefUa*R=nO^n-pj&UrHn-tco(}p=X;A;2VXpCXcY-RL zH;`S)9TZ{sr9S*-Q0Y34zFGg3ZJz_=Tf0kgiw3*0kbB73-p+3Siu4S0b$*JMbp@#W zmNB20h`WI`ozPZ@la~YWlZ@t#dG;P_om(4+UpV(G$6w>7#>~<9hy8AVTl#T4`02pN zfQ#$gf5}Qcjbwhpyir*71#><42NSjqS<1V{up@cT^ZUvN;dcFKwvl`CNLT+OajPu& zb|4Y)cMm@_k8=Z*=>Wo%2GJ{?8T-%=J?;9Tn)$sZrVj9Pzh{{jObGjX_MjF=lIqj` z2%pu3*Bwv8pRxa|yUx0fxSL)N|Bt{vgip(!(A#!HT59IF@oKtFONL1&>{`C{X?@4V zqcYnCKeuMd_k6ge&zW9^(p$1RFPQSSqt{ycMjy{k(6}EZZ zng1w_l&N%kwdZRCUAt!d+S}2e=+o!u^UQaaFWa<$t=tt#{*!S}I~rQuff~wP=H*Jh z~U!HkH@94K=zVPeTv^9ibH?r5`Xz%0Q z>J|F)5N`R`$&Y;+*+hDOfcGiZonb^Tzqud>yT?rQ{&#u*J3z%-d%lbJTHaOPq7UmN zQtawveXaC2!~Bgfx7NMG<4v(1Jn2Td7xtS`L%U&&uUi~@znOLBE}VZpm+*M^$b9Vw zY-C>BaxZsHMp;+K=3dIvTHxZ~4&DzkhLt7{J7Z|FuuJ6UtZN^bE80|O3!`ak%Cr|p znTyDB%gxw%V)w|bwv^m8(amkg zh3U1n_AY$aN}5Zc3)2_>wQYgQPkU+7y|P@F-X|%O{`hZX-nNOgJncD&PICSNzjRgQ zJ9U@d!P;rAz0SB3n=Z$-@s?{Mo0py!w((sPzup*0{z977UiO3E?giY6{w9~b-ESTr|vR$E5UKMXEIw~xFR(%=Y^AqOEhW~%#R$cJkU-g>e z`7}l)S>si?MewujAGG?7tdhUy1;31F*TWcL(t#+rGx=}-Hj(dvSYKL;oj7*KZO4O? zpw*tD;!+wbv7>|~kCRs9E8bR6dD+N%<@&2R$8kEka~A8zvt9X}G02zQBU(SsF{_~0 z_or*eLN^||+a29rr-fzQGtoMQ@V&8-@A7rP|DO_D!n-BbVMo6&IbU{1X1;kx?jzN| z});R(?Ebgsc(P3y+K^9~NS-KPbdr7k$$d>^W=+6-*DV{$p7Z5DMU#=Ox}NOkYgG&Lf-)O#`~PJsM*M%+ zak13*RsPbY`gOfJeE%FZ6Od=ePCo~zrCl6}pUV0qAHVpDesJxkd3Ihf*oTh;!!}Sp zM0K5M2KumLKz-w&wcSW#%B+2PSG^wwY7bp9qqpY;buHmI#2G_$x}W%HI|qT*7Vb;m z;>VfD2A77$`}2YV!j;DUpyU>Eb^u%XILVz`>F9FqR+_Y~>;6sK3)+rn33lQ=?#G!c zSl{SK+l{ayJI=Us2PwR}ej?lS#4Xw$;63C;Ysk{`uHHWe>b%;C-oK4H7X4;W>1+Ip zi|c#dl?TzgF^vA}XICC4*ErkgCur>0Qq9;>t+6G|{D7a$GqQ>=rEgg5#}>wA_0ucF z!`QNsvr8MW16u0h$@C~~1-m%GllvbRM`q-w+c_)vL7v8!3*7jUq45QJH@>9%@g>_l zjm(w@G`?KgDw|K^^h@~JHVN9gqW;1&fzROQ%8N5UxCh5F*EG{6Hg=25dL<=mP4gzk z7@uxCUeSLj?e)-x=`3Q5Q8{W1ISgF?*^q?VtUt%Vn38Qo&-d!LRgQFhX7N1r>zU>* z{FS!HK&8#<+f0?a`=8(~_^T}M2F2TUP47e-blJOnlbyEDP3ksFIUm_ ztGvuPpsg>)+Z!cE_Rwth!f{)>n!e;Z+!~keV{L1#Z@&$G>?zqN&;C2$9B7orYA~D| z75^zOh^-9UgywPiW(wizdqn^7F3v7m%X+fXswYQ#(Z2l_zn&M2_i{zQj=HjG^5NyL zZC*uuE=uYoRaD`SjXeKl@r{j+`C(s!oo zj&ybW2gxnPCgNS=(=WnF@noxTLOi)aIF)}|3d!&Pf!dQ?*EgPg0R0d9(J%0i&>yPa z*7`b)zmpd{jel6zD$l03oqiPGp!UH1Uxce(TfnehtFCu>SH0@2#ZtngE8=gyF0Auh zvlxF@*RF2gn?E1m zWT$x9vQgKv^&XSllB*Yk?r$1in>V4G(#cQz!mr|Aw~c?gc?JJf+xX|0h4^!};kI~qU-5CQ|KVrb zKPbKLyB)qq36uUW0HwF_TGw|)$K?eNdj97_exHXh?drSk_52TkVcfN2@`5`(ujDK4 z()nBGTf8@U-n%SjnL8}9|8J4~e~aw@Th#jS_Ww&g@d$LRRR0-EMaO!eV>_T@J<+ip zIX51grFGPf-zHy$JlChDn=5cjf5LB*BTu??e)0FVIkTB3)_8r2ma6|rGn1gVdqmjP zC*anZTGjuvp`F2ebYJ{K8?lo2d0s~C35@@QsZLG>RW2&?;^WoV>WqmS3y$c(UqwAg zFEw9|(C1?)*|%PGo>h8-3^jo>uaoLB6p3P-ma*LzuI9v&;aw(^|ZIYQuA?$v==G%Xro7-GFTePR zaNRh|ypCUJ2hm!d`kq^3aDR;3qxW>wJNyQJS-dx->WLtvb&(|0K-X zqR4w5_w(%6hIRf3@1edn?wS`o%=@yTuFhY;ZR6!1c|}#OoHA{FbN-Jor98G{8&ViE`7XCUyhkqK$4tJ-SG?L&R2k2e4CbohX_`izS4U=TAZ~q+uf1yN)6+gJ zcSEbX-J*YAyZ-tA?rWQ)wH~FV-qYR;tz9!D-DO|-vv|;HoVY@968B{mGtDIy)6GQ| z`ClNodD>C*A*1L^M$)H@V83v9fb*OE z)ejo=Rg2g!5p6T^tFPY;f34^4=IK{;;>#smbRGBaHV&mvUaapX|NB1)R9=c}$ysh~ zqy=5zY^6y@rppg^0ppeq7R_|&y@YxcPZ>6$u()Slko5Jw3$$V0%g*!RyW|Bw`|$3B zPY?U!oyi|->E971InCd5<2c`;%N;LQo4m}rYuj>zX3tN)w)BserfLr@%Y5p?egd@* zE1ea6rElw(EPx-s_dMM<;Fk4i+UMlzupV;E>z?KdFl>{x&*uh1y1RLn`h%A}&4*yv zreDSF)&{c7Gd}z+Fzhp4!mWHoA5s6AVIKE1i$OQ0WSIG$rv9W}K?-XYqHkO%`YcoH z>7NB%y=2+8CYstObA$D)txN74Pbc}|San&k>r2!&!?||D8F|42vB=NA(qBxD-8WZq z%8$wm{^t4r4k{j%+jQ@DHyDmh(I1sAjhUI|3jA4H8o+(-iO3bMEWf|k>By(Quo4$WN7inaK#mUm-zy}syZr^mJT z=F*qD^PV~rbC{Ps1`PG7akI+BofYbjzvc{wgJGJY*>0@)v;4RN((T8)e+pM}*JLGa zzlt=--<>t&zFjLP)BMR|hWVq#eA7?JKEobD_9=F^{(N&_G20XgSu-jSQs((W)_8Mm zc$&!ubp~2>zjRdl9L1g2*!~@>;hD~$l)iSWwcGap!gNJ$8Er2nq%NXD^3(=TWlD5b zIr&~m`5mP9-FPS8dJp^PeM`6Pqa(Y=lmCIf4BqdAswW}xzY!AOS3>%hP!8)H|8?#o z{Z`&vN`2o)Ule}d7^NQPpW$>wXC)euEj?NRhW%UfeYwG1TWB)PbDriMP`W1B|BtaR zkB_oQ-hXG3Kps^scL{8N! z8kgUXxns&84BLT_-{iBz=8QqsDF$~+!h7LEL5Fo?93acRQtzv>XAEHnW8LcrV?Vn? zOu6qM4|vbV#LWj}U!mo{FVlVNRIw36$6_rDI`SLTgPsPTZHH;GKROC-#*3UNv@7;d zPX$zl@vqn*`K2HCBXxm4>r_xfpYm&%q4C9z7y;X>0JfK$hdprR+m)T!mTEnC^ZU@d zXPfU$OH%DX%gXtsolG}fdEh6!a^2dmengp4UdiycZE5TA!h6lvj1y4b7@S`LZJnz; z683G9v2UO3rthSgnj&MG4vVaPi~Z!7`=>nC{z6)q7XS_N^mUT#%i`RF)Z2i1&!j^f zsVf1s8E(dp{Ve?J_76Xn7x7sp8#Tn5A0c$=+xj2x{{kl7f5iLe?EOc0TM+ixAHNZ5 zaqx`;qWVlAM<}~lAJrFo3!S@KgZKs=osE| z-^p}qM+k4d5chiEya1gQ*(Uo-UxH1;dT=%T$>Tgg+9eF9{}smnRzQq%7Cq?8n&$v)`V8 zf3ES{^us3Z`G9!KGftc{=!U#c*D#<8G!)qkfcrJ9IlYX$$6;4ToZf?QM@T%G_vxl# ze~Yn$U%=Ry_bBuRKIL&5pyl6#uwKT0Fkn5>BH!7ghR0VAm3-OrL9+f7RDR%*ryLCf zss|v`Vj5lHW*SEV+B%cFHPh{&ann`0!KLgfKF)NL41NfZJbBH1Trt%7-|~f4cZ6+2 zSY(#eqrqF4AKHdk8#g$bKG%wLS>ZiT<4^jQkJt;CKS2LRJ@pO3sXKlGv~sGz+ym<8 z=Km)6d7cr!TGX>o;ZMHH9gYk9Y773E*Y5$zd!D&VojOxwh4!C7EB1b-`wsq5W*=hx zb3nxOu@x@L0Q9R3y{&-cd3ArQqj?5i?gLqeF!EgkNM52T7+)M`>K|nCtfBEXAj`21 zb#00Xr{1$=_!z=%zGDw&x)mlK>05bKY|L~Y!oQ3$($%AI&rZR7M1r31Jc9cF7fF8! z!gV>BeC4jpbnk*6WkmX`v1(0P^Zq~W0f6vtYZZXD5mm!S25l7qC3HKCSxIpkeDrftr+_+wd{XD=e*LU;K zFQg{mKWx^yhv>PhX529d%h6}&1-B6YlmXlIIdGHiSit+5*10kNZ~R9At~Toiyd$6G z#=1F3hX+-@!5gL_&i@g%$NpbH?hT5=?uK4i1HHJ$>eAi_3%AP|Xv;l!VWyi0KgwVT z;IGJ|Eqjg&v*AbCv22cndsebDD6(C2sL#YZ29UNU}tjt8G54ch+GIO2?fd zwn1eLYzf>$7dz28_bbu_PyYe*qkI-YpRYsvuDeNe6?t2Apqs99H$6+e7`|O)yR8JE^~(Md-&@ zdp6}kzf>Che*iMw)ftDTxe{S4?sgvK3)#zTfi!C{B;a;u>+zZH$iKM9SQhQ>leBd?pK!L?%HW4fVnV=Ef#|0iYQ zfvrBdRoJQ@BrJAqrh75Mbltu~%Cop4(>))4EWfJ(Wn2(Ym%zOXZIo?}vby-AZZ7Xy zN{m|peRzh6OMJ#<9F6mIINmEw_}_=VkMmBa7~JuIv|lXVwwpxW#OZHvMgg)8#8GxE zzgsuUJcI{zYf1+r7w8e{u%m#>I(CLP za~^Ej?glRN`a2+HUjI%v*YQAhn5+07{21TLtl%0ev!E^`wy&>E{2vLy^Ks0pzCVlh zUO4_G{8`Sw7+RD;(p%CeZv*}o6aT*&;x58g@&9GwZ%d5tm3&aIy=CIRuVJ?8iumYD zn&k94{HtO6TASu&{F5KzGjHUld_iaCtba&q3Fja;f^MSTiVaFp`Uk3ywwON z%~t@my#W1e(|g#2Jr8KhB7agQ?uW8z2GxBCV;THi!=QQy(DpB}2>O5glYRvtY5aPe z=+NqLx2E-?s-8xF^yeMs?W!tq<`HM@o&5hORgb;ypD%X#Jos_^ zv3&~97I7|*a|Rje8sg%A7UAe{{6@kvQ0EB?!tv{Lc!rvxVZh*LtLgkl*-q2`esv`w z>hk4;Xb)2e(LRcFct}msFsLp8v}cp1t?kydSFsr9@c!sMc>5MS?SZp29h?^iOvM@b z=;AEBmK~eoEqnbm=!%ljRhPs6Ubx#j*G$<$_k8FW8=38)*FQy%t)0VuCqwlHZI;Dp zfYdz^Gd_569NL$;+g;@6SBGnU{OV}HM4H~WsC%)W*U&m9fmU8j>V>7z$*U}F4UZ%X`a zCjNdv)+NsM)gGS6M~3=L)8O9Fmglj*I!)#+{^;GDy;$qmgL77Pj9j|9o8BW@kMSVK z-kU*}Wyg7h58&n){Ug}6QByX>f2CebSFa#!IrzE&>(TY6OM9uuScc_Xw?cGiMFDaB z>KWit9&Z8aHjS~M#)F+tSX3W!w-w0z8|Rr<8T^+4Y3tYP`6aPgxxY!~i9_m9gtHwI z|9Cy9ohu-6F=Tcri6?Nec=ASPI&BU|L4*{3+#FOC9d1E_2d@<@q z>oq*iCvyFZbz%bWrR+1*IJj*cDT3Z)9!`NDq%MEwrqCBQ*x4nN1dwzjOeVDk0cYGWC@jUbmj>v1~#7wuZNqgSjZn_*r$D;ki zpE4~zN_b^CbTfVx{l%}7PLt>3n(vcNN1AQvFQ$w4R`i_8fC-r{<1)`Sy*Ok{S#*WJ zZ7};oz(Ah)0}hd+j_Z2WV)}Jc$)xO=8U&*EaL^#TKMVqjrQ^e+)eQi{$?yvghyC!HrNg}sSpP#f^$PK+=NAGp?E^^;bb+Kb8-7gd z9zZE)mTN%WVEh*VGM`DWCeqGO)8WrLaifMA8lU{NoVTW;pUa%qgQTAE|jsSH!n% z1L^6#2aN@s13z>vLiRYZetXsFCSBIm;c!zP)eEJ~1`b0X@Vu2lKpn$0Ah&!#-JZr` zFR}@Lc&V(RRwPM#C2u`}SB^KFtIa&zeZV2@;V(4P^c$MT0+1i9`CfE>x@!xk>n!IR=~;g8Kqk{#;OkzIRHy;Qd=l;G;2y@$E{kY2JO~#D>HQ}qDO!UuCpC-gBPS13= z;9u(!KxtP2^@aBHsn1N~oUk%tzf7BC`tQ>1l&g3&?U`6OuS@;$L{pP;203+jvI&;yF)9e*GxJh^bHc z2Se_Z$Hbp)bvbZtSW#N0dmsLJ4?FmX=R7WW?GT@GNwk%CF8V6uvvq&S_G9yy`zy-Y zq;(tUGLJ$ZHW}{3%Q0a;-Y4}ohV>^BFuk&o@V{}LTnk%xMZ{%{Q9G7pnAT?unwqp)pwM$lHn zeqMufAs~5oF#ckA{(+Fr8||+G&>Dj9G_>t? z$LzhJwz5BX|82&r*zeT#8#|5qJd;=1eH^K0i@jQ@?@CEhN13z=$8>Y+uXMCs71`W% zVja%OO||C>UJ_fO9_QpTfe$^dcuuY^FR82-{yEn=s3UA#oaGq*e&cf7={i84!%0fP z8Jy&&>E8)>EIa0F|L3q*le}fCOOkL8NKo-C%bt^AAJP`a*e(Nhqz`j%Ji{5{85{Ve z!mp>tp0V+(&w*c$@t8kf6vF_zYcz^mrGC=%I}u6`l3DXp3b}BN8IwEv=4BfpP_5% zRpP%K>(Q7KUSjVe_54oR`c(zO!rieZVeT$1UMl`cpqq^EL4-3e&jPZZG7s0lt@C{! zaeexJ(tF@X{#gGWfcpyYwD%{x?}qg=DdQxRvG?f%di;~A?gdU$fAAjZVE;>PQdtap z23XE>5MJH^<=oEM#CL4!F*aX-H7}Mq&N3~*MY~I$#1{aMLq9t`o|T^;pLlwHd}{9L zao&;JR3{LxWt|AB^FW*XQ_}UhE8aiAeKqOoQus5kGXZTKbdIM?v(yFfV_Atz@rED% zDG&Zng!_Iyf748BH2g@b$l|pxsM?14J+70FFku$~TA3051+Ub@Lb!RRYgkfXhvxw6 zp~!~)TMTm|luv))P#%f0DBs6=8B~K2#(Kf=0RIQz|JUjHReRfW+=ctU@z1%3euS7e zI9C5>s=k1BE~7)g<}p*gxjz^>0%tD|eIMet8UL)@IaKOk6m?M7+a8(j?dNwMNB8B& zchO^r?`BKA^+K;vw_TA{Jl=ye$?NAh<8t9p-qrHwYuS_+X{Po`)K4DuJL0lWv~wHz zuZ7(2;YWO3|4JO3_4DX+C~)4-Q$?Jz*82(xSF#465(OobtQ`@3emq0H209#rWNAwg zhY>Yr#&DbM`>v5lsy`w>>I*TK?N1>9@{JUd9) zP=`JUKc=x9(AK4@tc1D*`ZcvT5#v#jfqa6iLTsZ-yT z!FE}Jx4u?57>CQaleYDZpw(E?{Khl$UEW>tRP=brEgWI&)FTBpVE_B7D}?4nNQYy3 z#1|Vq>5tF52tQsm5pirCjZG1G7s9VR)fvRJx1#?hOpe$`b&+E;Dw(Q1!!Yiqt>m!3mm*?W}-G(_%L3qXC5`jMf2g;@~Ja2wb+6mi>Zc}Kl%=f3jl{(M4^`P2bMWR5+@$*<;BwgRa>m)O{$>2%1tcGlZo+SDSIE8WSka+Jrgb@< zVegEWy2*JL>d^T)#pBl?-V0{@R1I62c%BcXy;dQN`F#_R`5lBfKHV>1z7T%o=P5wO zsf$b8-1iw5_j#DOq+f}>l;uaUo}{XB{J#Jj2z~GP^UKBNE1!(M8)du}VY9S;zLmh*I8bsKP4?hgXq zH;->!WN0_x4e*Pau}$nz*#8eoTc8~6yxpbXr!lEL=6C$ClLOcr7{p$+5Yo%Ud_We? zwY4jYoBBt2)$i_V&i!*gl~-MYG}vw;nPSW5z?LW8UeqhfW+cK{783z!3o|Ugfb}P+ zhMBPQ0B!ruF=ZL6fqgkb%H7&!{SE#oK=u)&Ra8P+0d*|=zOnSH=|}q}pwFYyraQvK z9SSIYV>0^2l&3X6=*zYhc+nrCJWG_8a_U?@bnLYT&Z#6F0wt2^s>_`3B;OzjkG{1y^l|V1c6E6kgSg?#Fort@_gkCuJPXFyFTs!JK2H z&i(TqnV-n{(&*8$kUI)EEQ3jalow@Qu_WXc82<|a?N}p*_FLUYXtBQ>YH-E@irjJj z7jDXA7$9lg|Cyw<;e)Pv4P4VdI^-UMa7(vhIp*7LkaA^Q(*7EHEX64vp9?(lHwaM5 z)318NO*xZR{<4r8G&ubLEzQ7IlkR({OR$@XTX#;^iG^n0?8d<+y)>@v;(kLf?u^7Z zE(0{CVy`{s1a$q+$K1u&d7NiuUn}<-vi^{#?!aZaYd(+%u|v|;Zq_fAUW}Ywi?{0W2A%AD0tsp;z=KjV$$J@4o zy}>2kD&C*0$DWWy`uvdl8R$@6+jahEJIEb^Z;?On`#vGc;$MJ?^U`)LsxA9R>VZeC zM;ywgX}$0+>F=M0e<{nZgR`>+YtWS4NpFQ*uF3iDmNJcnLhih&(*IG8cL>OI?mImQe+uJ^z%8JW^LL(P6aZTCR~U8`QFY=Q>Xg+R%N#=UQtSA$Yxq zFk$`du2%8xM7VDM2EPPQ#}l+;Iq_{D`C5c!Ev&$w+A@=U+;BvJS{u)B@l(+mrz{4FA@q zT(`I-?qCTs_p=4m0Q|FFv3yR2n{-bGe5q+ap-&Am{wD!O`a);+b>in5eR{kJ>jy|V zl%roJtU%v?IQ*EG{(!cv*O_r{#cd&XeTwKOYlj?W@Q*gM3ZF!K!FYo7A}64|;Ew94 z9c8awpDfc}aEEqx;A?$@`5v}`E+)M?=m^I3+{*e)y^x{y50rLt`bNwdVjhd(`Ov?! zyuypRCBZSQBG{pR$hFEJQ9_rxd`XB2Bfc4lr!t^(;ZtjC(m>2jX zeUynfoUh?n+Jn#5?*>D&9bk@=v!(Ssy445&Ksf8`{bv7wr+>&*@UwQH=Q`V-<;`K* zfvXViVDI2kv_-P-kv`K~q+xU0y%aPsc5kr`M;hd@@Ih&_3w{y(#lFYBX^^v0$~t$1)E$=f zG|*;V=9+X#qoRR%p)Sr)MJDa(fc2O|VR)Zq&1F`h%dB}mfos6eo+Rxi_q(8b4tQ-{ zCOo%7Is;Y-KXvyTzVbru>4u++0V&(U%R_o@Y(Z~5<#O*z{67Opddz=LD%Wx@ay<$E z75G1RQp@^7y{!5CFzD`u+*y{LkS_C*zd`mo)?X|8OZtG<4*HEl*v3^{iz08*AM65M z`$o7k0Bs)oSayP5D)LDB;k!j1#TSI!FHJhX5aQkNR}q)%v%AOQEs2CT3&~p@aAq32 zdTL3t?u&LXy3f2J&|ytiUCw-ap$_j-Y(_lhA!c;karmc>*+>Y!-vP91hFmMudk@;+ zfi@}muQ@E_K7%-43=kRB!YyTw^|{Zbt@OBC*5}qBtO$2A@D79b;AZ^N+nVj1@+7fy zN)7MR{%v@t9S2=OJC1RtUWj=L^Uiu}UZbv*Nes46N2IYI^Sg=T^>oAcmYJp=o-MlP zHsEsHNBR|gr60T*ek}LJfXtK5?-;>n8)jcL17U10w!CMt%-XQ=YyDZ@$e&GQxoDB7lzz1#(y%P#K#(lS%-dO z5zD}@#v+Vu=qy0eEWHl$H~Y29_jQ>#)xPo275DQ#V(X5#YPUXzj<-V?pX(fmTX$_& z+^OM|J%Y05p2fik8-TXJz9a*X^{Ky3kMe2W`(*9R#B!lb^j(Rl8v(?jyzH2#C_m)- zn&?QoI-GJYNx^%TUGbh}H;kzc!`P}j##reXYh|Fl`0y@6N|}{!;dDD^BKKW)13ji$ zzR=X;(?afV$VX0pxu?1s{gy88qeAXpQ@1-Ij$y@df<_q2g9`~vKi;(sx z#?Kq+Hf^o?O2be4kh>QCr2Q@+`O5Du|Nq3l)bD^=2RC`j_pqJ#)DtGo8-R5mdGy%p zH3#F+kmSM6pRheWY~t2I7m`NN3qft?FEccr0%W>V-e?^+pzbDpju!xzVSTFFD{tM` zK#ucGeA3tPUq3YdZ6^MmfHrQd6Kp*bm-IQ8vi!ByakDX3g#Elaezqb$c`w#F1b2Ah zfA^~r=K<`OU18!^ zO5Squ&$I^tGVR)5%${t09)c*DxX?FG0LvWw!)k8N0MC!Ly~f^IiM<0wO8^`nQ< zXm4m72FUnYKHH^UVHber!EfU~+q!K1YF~fm!>>HRVch)XBHNwtC;z0c`G4lnxb-IP zFMvATMv1%4#N7{QU6x$qhcR|PR!u;O>?8lmH@Tx(FdDsfbd12~n&N<%IL;OF4zvd5VJEni~ zbfDeF^V`{&%gM%E&b;x@7&>nOvOZ`zrJD9{!rlO6{bktxGlZ|oQ_=V2NncW3+hro| z?KxO##%v3ovwcrW)t-ynaew~7_{oAhvmf?@HAnyB99vpA zezSJt{cl3F>zRZY$6c@eed=03+I^Axq?|roXxu^-LE!Whly`!Bt`7RR+yUDnHn!)8f zas3l1RZDweE^iQUv6ln)LLIC(cvVvj%_ne2uDRpn{LjT!@|(QXPjU1e)%L#65ig0Z z;M<4W^H^u(zP)cy2Y65Q(a>}I&7FLG$Rp;79nEVv{yY5HR(@mnoUC7$EI{vR?K@2=^+9?27`J!!v3B1gPy4Grq3zhuqC3tR9f< zt=xoFbVvVh!eW4SEwwlH)K$TLZos{Rb$OnuUAV)FZ6=8Kkahb9uH~r)H0=2AWkc(I zK&dM}^(Ne`qi<-4`#&_qc>zG?qxf3N9dG#IpR|cj{xM%2FJB<_JX6=)8;TiS;9 zet|hBwj7TM4UbxdIOGNUEeOAQ&z7Jz#Er0YU+$X;f zv?x#%#KF}|C4?^9}!d&;7?wr0a{&4dL_pQ-3x1o%Y9?q z(}DXufycP#05UD6WB01$ej9X$!Jp|^`X}R`^ogHHzqWVR7IaTQIO7oC(yRC;=pKWA z&M$`NNLjC3AUe+C6mO!e(El@@ng6N4c%AdP*_x(L9i<`bMcaFRdZ2vUn)|SN{l%D+ zWdL;8C$K)s`5eqa!B5M-jyRm>@T=c($0lW#IG>QxMjFxvu>KDktUp+9UmIO4Wm_{T z=>7mYOfQNtKI!elf73WWN$Oetr^vs#({n$d?Y|n}CSMF^-Q%8@PvKXMdoAc+Jh9n- zv%!rSTjYKGmx7PzVwq3eiht7BqG8KUm4U;Q2aRu+%L&9Zp{ zP`7n6_Z>+Vnz>I0-7*nATjI_}80T{(eo)ENXRcW<>Aj~*)0$Rz4(uVU`PjE0JDhI&IOuOX53&jJz&waY z?`>*Zk4`{&=X@x0e4G<``*_G1b0Uo;N!V|Y3cH~L`mK)WztYf;;eOLOun!87%Gma8 ze-!%){Xh7oyhj7-a3E_m7*}*V z*8dpa(mf^U22EVzFfQwKFSwb0)YOUUT~gK$qt5cqf;1B+7m(xMo{q0+pUu#}3GU1H zOTD8$<-6#=Lncx$XanG0Z2X5!y~xtKm;S`X+wcgh!+8biAF|X>_!qqpQu`SO9`^#C zi#3rGQU0`3e=+`lG5`2ZLrbMITFE_O20J5x`>N&>ymzuDdfHrSiU~`jR=@#e& z%=yq=ei3v+Pv>B7vuC1VjJ2hc<=*gPsQ>-yLeRloxNzewFuMEGovtR(jlC7W4HJ5U zz$?q+Eci1Y+?#tQ+?37NwT@l`qweH84YVb;qdxRUIAt;l(3Vf`Bc#Lni2J|bPkEoD zVNm1qzTFe}kMY!TgoDEIzYz8h$2I6alc>Lv zk}ms>RM;iIgDxMbj4n&Bt7THaZLcY>a02H12(cIH9YU1f+kgk> zjD=j!hJ4RLTONb4&FE_&_dgxmSR3Npe@p#kz1@SkcH5T}ufbdrX@j?y0jbv`M(4+# zMf*2l&jGRzip*Po%2dd_o@1Bx(Nlqsv5QYN;C)=ucmjAf&Dc{SH`-1M44svLlp$rb z1a8`_i#7DCMS$cl)=}c!iht6)7f|{n%%AraUGTs8)P3n{u8!MwUwig(ZP}$v8}EN3 z9{HGT^7`?uK{v0r&}P|Pf^g1vml!{m0sSw4KY6T~16|i`au52CZ{nf(oa=E&o9hmL zc1DzE!xP`&91A*<&kQvNZjqB;je?uy!gQ-4Q^Ml$L3aTBDW5X|?bzVLw4i(7T&efM zv+O1BV{nH7T3x$;9OW$I81|*x(O>mMIQ0(kSLKR4ES;dC(GQS1b9Ga=r4dqHb^MSD z0s75e)ClYj@|=4zbUMbJ+lr;VBpZ5}hF;z{%Xc%qU;B|Cy!!#1y}X~lr|{GdefNFn zpUX}8)f5EXpMgtxv@`UyoM2Y;kWN)iNLN0yk{JhN0dv?P?>Fe3ZeIO-6s9EZziexfzEQ zO_y=lt2)hqdP_sUTCZV-s@9O>iRQH&+P;ZrS=aSzJ#Lr1H)|1>%K-of9H*Z!J6x`#hCyZmh4!!PwVNj(G_%xio_7ng4)(%m7q%f!kq zqH7z_cWw+=9i3dY8~x>C#L;a4{pH@(o*|gCJy?gnZz=p~XZq7*?JaD|F8}?m=1CWlA~GMww!8W&^T~vERH3ZkG8}K=NFU{*(c+Its9@`_dco&bY?jng0KO@3x(OCylz-2YR-T*s=(`nl@Z?YS3-` ziH)8YSQ~MAu^$Yh>kUtZ5YaVTMzxv6p;tM#dSfq z7JjU|p8>M`Y*_J!0rzziwiz(dMve6fx-Xir_W;R%en{xNgMaLUQCOd8I%jxeSJb!d zcsm1UJQ^^s%Y8EI_lwS9pSH@-dKnP=5LE07?D+-X*93*;^YG_=l=aXT+0!H*-ag+M zO)6c%xOD{xgIw+1p}C`j?%jswYCtRB*x@K6)b05u>|sD%XEFASV!h=a{PTSX*4G7e zgNHi-6KPXl-UL6&Y!RTQZQ{>m9L#ew-t1QKYR(S2Q%$_TwTgEgmt<)0OF zFEa72Z53|{t@1_0@P;_Ou78r zLFnheU)OQ;wTHpYe!VLo=3AHCf_c!ya<0h_y1yOUJm>mZC+YycjTcgT;m>?@LR_m; zYdq-x;V*rBhKj>IslBsv2j*gU&!#<7_nnD*5Rh?W(1qKK-+n+DcV(ysxN)xX!@jW@ zLs+hpQk?5*um`LVI%E&VXd7aZXO?p%%Dm9L8PylIKKBlG1gtcE#P1tBZpc2gkp_%= z8jOA)I=PE`V6K#ZVSVR`^(ENjVct;b_@#_P8lLP{)qwo~`<^(gssU@Q4Xe9X?ZBRZ zdW_+AtWK}uom4d@FZCGD)veCJnhfrL+=aE7UB0T)zsg?AJ>U7O_O1?8?Zr5JFV^Aq zZV$pvK)aoeb(%}6twa!Cb zUI4e$n`||oIBavsV+q{4ypZoG-0XWfw!IB*-A6!9x4_Ld#5=%d!OiznxxZp2-De>G zQ@kz4a>;LtytZxUyK_lp>?=8slQ@<;A8}d#?j(&V;rOM5bHee7gtNl&iwNHf$6dmA z!g1o))rRBe626Hu?}V>~lrRhXfAoJ)4b;%D251;kClcm`Mjb+0OWn zNegfHHrX3r!%e$zn})b&5s-N(x<3Hjg!6p(C(UmGwGEr(#G|#MC-O^Vy!w%j%kgT< z_h)EFtvaS{TYV$q&{ltk5Vrc;gs|0X31O?(5W-e}lMs7r-yrN4j=x5DVmST^;lOZw z9pTV${6)gk!toafhlk_O5snPUpCvpq9DkY+^0T&o)ggRgE_zHD@23m?BPRaCgrK*A z5cD4)M0(2zk^WLb@N+LA_*+5#@BH8d4`R)Om1g{RF#VJlxcOmB?3ML0H=YxpxQL^;<>9GTouTVZ9m$ zsQYd3m;Y|S9e{tkCRv=yx*Jf(!H@m-5WttP?!_^4WR29pQRtWY<1Pi8)>^;NC4Eb` zxSi19*dg1{Its9<9c~D?e*BZ4V-wH}`CXCxh-@9m5*t&c&6_)Ifs@)v^UNQ|>$?$7o8Wg1LyGt|o!d;_k`id< zIyP=dePiPM1jzOGu&DqJ6 z1#3pSzx58=%D(AM!`mBxiF}bC&hJ~@>S;jvz$SSDJpR#p7v$6Fgnp&F^J4WXDa&-o zgZzebrOay92Ha+4Y5pw*rE>jUl*#0LhOpOZX{n&oWI{*O|DaZ_|$bOuZ~;m!_F;oPQB}05q?K zo3tW1L3gN$hc~C!n8C@w+`c- zBTO99B&{>>PuX1p$ovzp2r^|J!Y1r|K-&)TcQB0go#_Oyp9*ysa{Lx)4*;InMIm)6 z+-(0R1CnMqGw7xmcM-~-?YTGpZJN-b^{>W57W=pJaR8Xx_S@(EZdJY z6nx5P6XPZ55!+rFzYb#^P3Oyi`x^0(PvYCQR`Er^eXCS>nZH1w>~~35mtRpl{u!MX z*8c$4=(S~@aco;BJr5kpkNqms%!ht|1b$3&EuhWQhTl3jt%cXk>)f<2edCyx^4e|2 zHoi|-PPjY3(BEeC7W>}$@S{wY5JHD7*8dr55nx*~u{taU9YY;?C#jcz z!+%@%r`aPG>-61 zud}nar*y?GzK=OqWdCkdY`esBkG${9C115%*YAL_R!6Ma9J=Sv-eW=9mA`bBdjv}4 z9)ZzFU-V$QDm1*3uhWe`*W4fGJP*bOjDMh<`YKcPLpbv{0#MiYgmZ|?=LK}#3a*gy zk#+Qd$^~xoUW|Y`9RGIBeKu?jrYpE1;COi!=j&m{0PwxiQIWun@p3!+?p}Aj-Ypx5fl6qHvbaK@m zjxjMutmC5W%Adj8A-z$KX*lx&8Id>2h_d+({*=u@K)qJ%;GQ16hM#5f7f}C2n8<>D zc>fRolm*9Dl))~HRoS+;z`r_`a-e^@`Vjw=H`j1KgPZ=J0J4k*raHK?hk4Cbn@t$; z88$Ub>Jj%+>Ut3C?D{=YrVkCF?74p|OT7&I{atY%HfWIda@_S_YV;M~SG9Q00FQi> z#jAk3kk5T6OZGcV>+kTZgdEGCkv8@i{y8p> zYdoB{)&G9AQbY2C`GT(4JBR=7CZ7-Juq?FDX1Ja&g`yu@p>I?1jOcPG}wh!{mu=YZR z>JER}S=kx}H9qTNH^{-#Dn1IjJ6ZD4&d?*irB{44>2VD*L;ZfV&`Z_yLW=mT2gw>{ zC@)}T$wj(uci7mu)!hy)_x~Qa@=WY^8HG2pWWURB&^~m`=+$SPGM<)vpOnio!ufyV zLLQ>$WDnpc@MF3C5771<6<5&Ch;F7m@B#dp_s=wJxz}&Y(T9##MZbI1hlXBGJWcmE zYw^!?J_58dij5~<>FOo;u^-I>ti#;nJlJq0^M!ZM!-DfP!+^6+!j{^U=2Y~$`$04cMOYPhtJmxMBxOcQE3)u%8sqd`MNd5vE4$i6CJ&qNa zXGt7`&jbzf7^yYw;og8d1No)gK)*?Dx$qw`%+$TGKx;3(eO>YR$wpRJ1Aaq$so;3lbr3s=LYaey)xIEu_KK6=JJJ-&!Q!)(;4ba(A|Y`cus+&{g1z4?x~G? zU@0f&r|xyhPwt|CdotoOKj#2i+r8p0*nfkC*8CwhKfG7Vryje$czi$L(oP=?_yzK# z&jnXIWn&>PCp#QxI@+(!DFbgAPELZK<0(6xes~X4j~|as2#a{iPGi{d34T#e*%0_? zdgY$7feasP;+|q)*uW7678-bac!*A8jQndF5pUU%q)}?Z78y7$0VnD$%LY#BlJF4J zkM5-5UE*k3sY?_5mWp4~dEauJv(xpmrt+PmEYIGuPN3C%U-A7(geTqSBl?q1@)jc%{FZ=rizvc{i9_j+;9qWwe6&5a(eGldylf-FHSKN~Q-D|Qlg1j{(mLdU zw)Z!5Po^99wb4C~?vVP5Zlv`#;9K};tCyR7*G{SQ88ycT+-DHRK7%-78)Kic*^B>h zcfrf*OFNR$ZI_%BmE1ULO3G;le? zU^B~@AXD9E{L2iy2T<x&pQCK)J(YR*N2BJc%-AYu@*kkQQH~V%Wz$xXTb{ISL37!-H(yh zs??TgxF(IiCZv&lCdb^_>Kyo`=0tjUmR#1u$u8Jpz zy_bqLLc&hr_)x%xyf?1do$$tiwP$lj2i(I!oBO%69Fa%bok9BLMtT%s9Xtnp4a>BH z!EtUd^$+!{3-DMLM*v!y`GJ6&%J_q)V$Wo{It*?ncUq6SPgZ7Ho30_R_G)bpbQAk2 zHZtJ;dIb1Q_}_>BroK8Oe2_BFh0SGgicb%?KOP}vLEiKK*J&clgZFokHu33S{6nXS zIb$L{Y`pvt$RpFr4jzKh7*m`L9PWF9jn%Z~M%g5$or-nY#I(aho72u2Drr_6VbcDs zQRgYGjXV@$?KhE56m)GKA}34yn4z~VAbE)A9V&}dtl=io2@hx1@lH+8?rFLYLYFLdU#L1#lNIu8D=eCjM61HI-<`!qwR zbsMPrLiT{*><#RYmUX|ew(a|q`|sTj5&o3aOXmA-Uvt= zqSD|@GwJaRRu1Qu(GQ(8hjYr!YtBel>+;sTMhy+zo4&j?udQ)&4DJX22i)qTW#4%#+_vxOJqG=VvB7F?6B}$Q z!bzLs_L-m?fnCOad_MfA;yg&CMC>opk8GzqsOd*m)9u&vBeitntuf%RPn)P=NL{31 zK)D)X{|{k%?ElgKS?I3|k^eIwhmnxS>5$6^%uyBKJjZbCr)}=Dbw7kYTf8kjAxb(uRDu+gp3iy`-xhy@VG}Q(Ecj7x+orlJn_rfquB7=$M)+ znbVmBoFCB7Cd!j^!?3TPMHt;h)BWy8aC5J1>Ew~|=;U^Bu9JRl!gGv_io5}Lc&)Uj zcMwL|{0ES{M-fl+>k)q6gg@o55zvOk9K>HQ@vSZKVjD79n;dliVdy5xq&!Jv68qh+ zW%4+1$iwS^BL8&tG~9_YnG5#Qcp9cW7Oc0MavHimDE%2vIZU>B-uzZBs_*N#@wjqxU%WzO@^P-nr1hLK`LF8{ zaE|~Dx;+>9U94X%#ho5YDz6_IFTY;oG8TR>;9uh(EN#8I zn$I-_+K}-iSEJTCeA8e!z;0HCgSh^OWI zjqv*={3+*e0i!0Y_-lkcX5}LKV>5VeEZ}=3U7^dnL8l)E-QFEKJ{^4=?mkOO(R1mQ zNwU7%@Px###5!+jrMSv+ib9LRYb`pmIakh`{v{smszx+j@; z4YRI2XVPRk&%o_ZcFL-~zPkp(P5XhoagWVO_^*S%+|i7CviOg@Ca&!_y#a}Jg1r~u zF1{A`LGt{QtPij(Qg?T1dhc}!Xxa6oyWz%N0(UtnPMOd6)0Vg$Zt^l0P~5odJ{q!N_0x=Br{Z1}$FqBgwYjS|NgK|;LE7+L zh`Xg^dYWG}+0V|HuEwJ>S7Kj*Y<+tf7(Perg5zc93S0$QFb-uAm68~+`EmZzdh zzw0$`Ap9HtViRSkt#Gs6ZPBph{jId+TK64tCe)+e13uG?m^r@4e+*xPML)5O`4+_xwO9@3-CrvtM5u`gf%!#*my4Ed9Gl&WT;^XW0}*<_RhQ|w#EIE@D5Rdr!0WH*|uo+ITbzU z*Y6JYLp<9KTh}e7RkzvHBcz!}T;yX2U{gJQ*6$u}{QCo1evW`!$A8Dfe@5zIcZ1s- zkTkFcx|Vnq=(m^;u8nsvI6VPbM|l^EycLD<0{ocIP8zmsAOGpezLk5Z+C%5#4BMm* z=mR=J=cb`=#r-HrNxE;{utD@J`_uzvBKuc%2%Ixp%KgAk$yKShh&#SIrRr9!f%82s z^17uf@-jv49;5!{y^3G<6xsX&XxqMnIeg+5PxQN6O!)VJte@KdF~9r1@&6i7bbw!d zEbh27OVU4emN^IfuF%V$>vyY7ysdziUjCiZUSBa`9{{qyVp_3P43m50pMyWw9N1UA z3OD^<1`OhDMdF5Em2_&#S!QVe2xGaw2FSDu&ASlx-GZ8x&}AsMhYVg5{XCp$fXwt; zblW-p%~0G!QfBa;0F?1~P(1+mfv>z(8ow6y$m(YNI}ASQv(B*m7r{;b7i#ENhoO$J zjnBvbc{6MoI#uycJVJ8{Xyyq`me;kwW1fg_Y0lEL@cu8LwJoNtYwqjvo9^mqc^>1y zm4&b`&OlpBDmw*ra4qg&WS#ZkW0?+1cCO3En3MbsGU-kQY$~^9es_%VpA2a0!34Mm z;Cml^A^lE(n>3byeh%(+ccw``sju4F)5v##+1^JW9_!?dsKe#v&Blru(jNOEEQ0&- z>ECGfZFt)G_4^te6Y~y~BY{I%oeZdX!~Dc?aFc(>tou~#_38SR34iK$@|g!W>sBrx z+i!c*j#HiJy`{jBw+8(xr18>KKts0a<~Jd@C*->xB1_7V_Qto!Kl*J=;|I7KAfM4z zCMa7i57=9YwpL}4$ZFbTfs>qBzi@A6gZb|`JUV`o)A4)yjhZ4j9WS%EGk+O{HJ^^- zn{oPFYQwUwXPYUnFnaDJzsq;h23#)TyYKT<)!*Y(p^nAp8M>RmE9HrNiN3^sk8;D` z@SE)ZP?;rQi%_C29#_qU}#CZJCmkG|;~^iku`SB-`KI2&tlDP_l^tRFpG z-W2+y^=I3Mm)>i}3)n}^`hONa+xJw!wwQ-99|%8|Ddm0tT_W$TdF%@~#`3Fv2;XkP zi~q|uOuHjP^@cy|=xHWCar597-Gq09jX&vnP=49?-#-CwmgA%Cat!jou$=oO&5CQ# zN2FjK5O}0Z`lJ;yb>gOD{qFL2WPe!d^x11(=xA=OX8mY{gbe6UE(R5guH$No}xoV=TiUw*&U*d zwe2=->*~Bh-lyIy`L7xxart(2p`p|9WbtcQ-LWe&4U|R+W0HxZgFfVfA5E zQ%@7WKEo_t_o@xXy)Z0(4LFP4JKwks{2phqONWc!nFSWlS54s&+1&2{ zzZQCZyGOTa>bzbEk768%xrBHobUMcJOE7j`G8481=Ysru3gUxCVQviXYiIL)ZQ!K> zucs%|==F5v1r6Sv9>m;G6xx$*pcDL9cSxV>GTh_LGe+(3FSaVq|HFN=*ExxEMk|xD zcI0x-$nYon%%|s!Ft}W5`HK8X-Hi8k5Eu38m3r*m=KBU57t;R#aQW^5-TUCSdb{e% z=DL@Qebv-As5gK3mNDxbWmXP7M;L=W#5zg0=M2Al8r)1bR^XJ~26r9q4PjW_B=mjQ zD^7RuE}u)iH{8^}cYvqcKcMYvD@OWV8~!HzIft>k{mM-072?xYWPWlCjeav5mv4k$ zSA-?nq~wMFq`MOD$B+i^4{VJ?o2x>fdGM)H&>%mr09tDav}TzAqoC;E{;yTi+_TkgiXFVfjrI|uD3@|}z^V_*B+GZ1Fy zVk+>@G>5~_=_GaMQ$O10Pa;#vcTf#Qc*yzr-k!K`vI6}>>+lm1&M?~1>l|kg?eYzM zrOeJk`7__)OGK{uVbDjKMj6l8VC7QuxzEL26ji;B5}toI_c`)@ zNU`fORhpq!t;ZoD)gJ$>gXQ`^OC{l-bw$Q0euev{P@b6z?|%UX)gBE4Y8PM!ttW!& zXXE!HAZ6A&PtxZ&hO)=mBVCvO?0&5mv;J>({DuPQlh_x1lPUS9Ol$t`b0_CWy46UJ zvSS-*vNw+MyRRDm4*{h;WT+arn{_8~@^_b63R2{lCV)MvtpGHpo=-vV^DECM<^f&$rKqVSS;Zg$+-; zOKkYR0yh)&Ee@NW`K*I2Pdzx)_)#A+oO)mea0#!`Fr=mf+Ww-?z~=rUU)!CT&<}rX z=Tl!Olx<^eGIT~~i~+h}EYKBpS~rXh4#Rv^cii)z3|mm%vg+O6)CtU4jYGOtr`7#M z+G_4*pL;U=Strf`WS!7up2YG--%j0;5bwnrlz9^8M4J2dV-U`DAGQ_tNge0<@k!7(HajopbCmKDOhWXxSJL$FF&k@eN{|so` zWpPL9Nm+y441d<4F9B!4W~%#9`u?>Y{MZ|sq24v|>i~88ML7N6GXA7bzAAG&x%H#P zzN>yBZ6fYEJ=ohPd$~G1CA`!h-LdLz;Oo6G7t4662LHOh!(BY2Q}helzE_Vqox|w)`o+TYm+3J#{O{@ddAtl{Me4)^k(ju@;k@kl8)@>m9%aJ z4%5jwNP91&ZpVL1oyYM8bUW%Q#~jxpoOzfJ$gP$eZgF19?*$x^D+W)D&x)Ark9co*7bb0QA zZNYL~`=-wwfHV?qt6cn3c7p(QTfjZt)&@Naeyr<9XxMUZ4s~AJ>#kmXMvCX?LWpPE zO*QHsd06(a4{gJbrS4{XXb}9^j#yp?kq@jp4@|`vl>5UOC(@1W$*=Yzj5d_T{RRI# z2bYSui1MqZ?kBG2N9scC|6v$tCeA-{{dQ;Q&)=kItZl!^>goEFW_|H3=utjs=S%8- z6uWM~R^|ow{~(MqB#yLm-aCf&Z~W^3SuYt+w}0dRIUsE?@?GkI4!A(tarvFl0T<(b zF0;RM+TBJ6JduXAcAu(6Jl*cEq#nTCq4?K&VLJc)>NWgpK4uub@GWGrTJ*wW2-9-9 zP;AiMI4ey(uoC{#$0VbFfzCiWRfZ1nmn{a35~~yZS|{9#aOwc8WlP&S8G8iKwzAQt z80VGqeY(sK#4r{@nCORq>2G}M2E^x`W!~AhLO-xghtzHGqb%YAz_(^~AgKpXf|T{8psL$=lS6Yn(61bwy_w!r}0Ru4qcN3m|?Kjd@0@TW|I zfNUQf0l&goO2_Q!%fUE_xO;CAov|0`+A-8}_*p&hGyHLeWgzuHXXuPX-4TU8V7Y#0 z;@UXd@vn79yJp={ajNK!FBt~Dztxaq!{#*%>X5o1Z2uC@;s5b_ha4B~G2=q!p>%ti z-0^^Mz(=5KW%D82);@`y$UOPf>+qvoHUqL9Yk55;yuAoNE6d0aK6fGh8D9Jj!+q*$ z{9Bz;hx$3sgx4JDb03G>_VLBA8CgFn;K#Jq0kU3^R?*uG<6W~s^&tE?j#>>kv!gR0 zj`?Z4OIO7^`lU}sdn%z#inl`&Xn3vxKeed8wXjKX_aN);e9~%XYzWLH(I&O?iWi?G zW&I`iA`j=DfVR~%-(+o6yvYR`oNr2>J!?PloNs*YDELXA#_=fMtV>tZ;m3Rx18Uu? zbpziROUD|4Urm9(l!0Ge4Y%C)CwI3@m^+A7t0 z-5{tg#6S6}dCiCY0O2@g9EUF8TWuo|ws&lP73~({N->H{+hJ zp-&ZP=vVm~rmJCqP3`x?=JqS&74~~=ze~n9$=ad*{w=`yWH08E+rhSO4;veMvgdTb zy;bZdys9tg??!$b&0YB6bI~W|;l6ychrYqU`X`dBdIFcSWS$D&OLO_=0p7yXc?_SE zHgSWw*PrLc7r3@B^HlN97|<-sVp@oQGy9VJL^l5Cr5;p|OPk2{yAS-P0FQOMv?Jvz z_5#nWNZAL}0pQs9;jt1AcW!FgHUhR4SL#MU?LhdOm^&-we8piaS9I{qef}%_pM>>4 zrnMd6b&!Y0gZVhRVb}hb5cT9s4Y@Wk3UVxjJkP*bWhCaaWluNPj&)r#@w=ILhXHa< ztT*;_r)D_uVfbiQVOMheoj~(G53ITCdkRuha3;qm@~L^$=RS}4JyV^Xbw~3om7H^O za6Ty)d&RxrbC+MvP?2Z4?YAhfNJZFLI3B4YE)Kk}L zn4$ivp-)|{VY<2sFj3drI}932oJ|Mkc+fUv{iuA6$=?X-TqoXZxy;+0t>a^#PKl%U zCN|bGo)=?(i8u8H(+8CF++S+i!Kh^txBdx7pB0ThCA2-iX1IDB0~v9j#URp#9M1x* zESaQrU&ET_c3-Ub?qLn3)+y_PGMtZcX{)?!|5>ekt}TmLvQO_3;QoNaO*;Jnb)7|7 z91V8_<0s0O<2_wppx<;kJmPcVA0N?M_95PJtemmDbBW{&dr8I@;A?joKG0!%k^1jb z;1mBDsuN(w*;3cof4|V!xR$gd=<_xsA9Q;h>HkVVYd8GJ3uzsMn>1RN+rLrY^>|8<52=`#;G zX1`q&V<(Nb5A_9o9OXkAPa6ChKx+@=9>{Rl&ljFnoA6fvtqxRh+dX!vCY=mYrvKhKtUK(_d`|{J4G+(04J>*653{-LO@TK-rh}7uus{Nj`Ny4_>2p8vV4D z`bqZ9Q9pG>T;{hc;#Qs@ai`sEq*;D3)V`cX5 zNBG>g zO}sA>;^iQ`+#f#Z43RU+6^F4tI0q+RBl3IM#Cadk+UTG3^0`xPk#%_1CC;7DUVj=m zv`^OoZZZ2Yi#BKI`t`V>^SYrk%mU( z%%(l(Ig^aN(n0d`BW@_6y^?6}c#0s?J7iD#s>?*KNqEDf2z=0ns)r55HG|&81Dfcz z)@77SHS`c+&E-CKJmRtrOa)|piP-&fL!>V_(}YI=S%=C^dBiT0aMnr2cL6ESJy??* z1vhmt`dPiMP00FR0DqQ8zJ@LL%CfKGJr{qp$B4X<=czM9x7AZWz@|I_w8$6f(oLN6 z&f$33r`YFY!cTN;hUx=1>DaLJrnr91KXoAaJP-a~!~IR3Qx*mdtJ8SDS2vUk(S+QcVb85Rga$ zt`<#}>_Q?TiFx5gu?D3!`cNAb6%}nz)MTY?s!?f6HE13iTU1o4)TSB)H7aV9s6m1K zea_6>**hW9=YL&)uM6j!bDueL=FFKhXXbucdmQF9MeQ$n$8Wgax6b|0wCxkacZ0vd z4$BTlo{=_PBgl^~v-`t)FI<=Lzen+DU%Cw}wq31C@p=6mrTtx5d7d%{`-$zG-?I?; zcjsvPS=Z`v+aaHSp=o0!r5)2V+=>2t{+2o$+Xm0KyaD~4h!3TI{C>wYTgQa(JX61z zQtT2jnb=+8Xckz{ z(Zujnu%3@6h9`p$C>>4+vv1Vjw4@KM#FqW$o##>a(g();Os>lr1?Or_>9@)=eVjEy zOMg`GNR0~wCxxd7eT?AY;S9li*L5B3X?osOvc^~WR1Z$mq3tPr0D~o&xUlpAH z+Ti(FvHCvQ^tK^t&x+j+b)3d;vvTGH-`a$2*4mB8kuiD=IWlHk(>5gzik#i&seK%C zoagz3hk5+5;!Oy*P>LQes=vw6D4ov*$n$wJ_w*Pggtr*}XAOT6rR*!jANu?LknXcf z=~l>k={sKcb5O<*|0kxO$$uL>U-~sYM)&o)w{%}WIg@Yijd3?fKNELbYnQ%gt=&p{ z_MDU0xR$^3`L4Orhi|IxhF5HmAo_83{W~e?_Z?Dlrq!VS9v*&zvhNtu2OVeV%hA56 zBz>~Kud=Gv=dVFlwd|8vXW8rL%JXE~lC9iA^cpmRd-ciIGuAP>-x=gcE2V8>!CjR0 zJhi4J`e*ZZgmZWqvy3sE9~8*>fiGMJU9CTykxN~fBO=>k?8SF~1MO|I_PXwndCmDB zG-+c6rM4II?KC~tcU~vYGz||g1*Y$?af2z4YiBjT0&;FlS{LvWEN%kM|`{_yM zd*dgBN5CuhD`al}1gzr^zZVFWGvbp}nG`;e@7^?f9!TK!ie8=C?pCr?tbaHLguh)J4POeEC z1CS;C7W%5UeEv_33_0JBSo#rvi!9-nwvzBU8LM_v|65A&1*xAgRM(OH(Jobw{F*ZA zSNzrxf6F(@UUk%yb1AXmKcLAz%C?2;xJ3WU&_vHR$|CwQ?j(Lo(PMbH0h;vvX;lsn|B=$J8yKAE z-^kyhlgRI@)8o*jzr)c}Y!c`eU3_6a^sDNGDed+$$kSxb$R1=3bZPTmQ{S@ddqt;V z;nnK;u<)I#*GCo z-6%BQkox2zy>6)W(c^A7hk7EzUK8#_Pg(m!2U#yqrL=P{$+grvH~V?kYkd|fb=CJ> zH(G1s;FUPIfIh4Fhp!A)a^!4Izjr&7KG=IQ`5r0v-&lEqKIz!qcz>`%lEX|cYi4Mkp46gJEVMOt;`p9_#Nu&xG85miQyK}o4&qFY3I|f zN99apSop8z+FO)5r_lT&Px84J-`9IsiPcY;`hx!gPBhOUZ~R=^O$hTMooc7q@a6M8 zK4tHH`ntraja-xX@}w$#;mw9u=K161nw{Iqv$4zQ_a|evF8TIK?%(jecKe&b_A?W2 z5mTg%owxh^_xH%sXF0d=xAc1hrEM$M5=Y^)vO?WmLEcy$-byEH1&U403#Be~&dXw5u7BRXfa37>wRdL(qA<+I0@GH|2MKOCCq|5HlaX9G8j z{&GLn7d{TU*lL6-6T`wU`a5km^eDa~V=ryJMcj~b=Q45!)0W7Qv%qiTwGMI6?f$J= z=ktq?h!1_ib?HO5Dy8k{`Ly`W*YQWrS)O(2dDpwEOSk<^1-Sz-R^)vP|4X~6?D0k3`DH%;cIxYP`4$jZ`YCpmxbZB1%NPictwRR7 z+B*Cmy2OGls^oj&s_d=HAN$osKbN|nxFC9TE%y2Oh$YlPRJSbXGA?se=?e>g z-?=dZ9s7Hx#*S+V?Ycc*p3k32eP?V*;cwAz8l~O-w$t?3oNlgNLaBWzF)aKtHfK>@ zDbKCGsh?+SLblAak%E;@~( zRQ99|ksZt5B3tYsKJDUfEtB5@0gFs|PFwEH36JngdmdHFxJKu+Jd5+zasAC{?avk5 zqY!_toa^)R{8lfU?cs0H?*OGerW?=EHfw_>apWUa_Ksn@X|Hb{ByHUNyl$(Rvv&D= z+Z8_l-%T6sl=iq};A4-xtk0=mgl^k;RY=?Uuci+DGULVb!eH$$I*+;+9s2VX#&Spd zund)dy){e5G9lbxo6+c=fCGgt%JTj~@LK4i+k=$S@APL)|6?>y-|_k-x;yiBsq=J`uG8MC%iWjy{5P6*MZT?f;A--p zziPcJpxd_Fh|h@*C8o}5O6}{ua242TyG#EMw%ebnZFjYiS4L^;kTK8af96k7+g-sm z+jhe5wB2QwlhE!*cG{fyT4ROr$VY4dFGEsV3YS68oPjQTEtXF#-%o%nyS)6;3%PVuH)TfWG2 z;eSmoauTv^JEU-fUNea9Z@W0vtt z*ZDsGUgXK#|DLj^J$&wi&vkCpX0CrtY1?ZLn0M>G+CN<0&*Pm1{&xCRe=#BdDXnLK zxbin6^FNe!n;RMD$-mP!dcj=(C#Buy%V52R>M>bQzkV$5P56Uu%XgN~{}<{x*N1u| z`*}*c?N#Vh&=4J;->SBF=2w-yW8S8I>{-p8O~zo=89sllk^i_u{N)$CW@Kkm z+I`!GPLDnm?b|u3t;Fy}s_fmj3;O9>^FzA5Z6k>bM*ak+{EJwh9@O$rfNu9`jFK5QE_1+`meY3=YD=4xr5NT@At{2p0!@fbq)9VyN=QG zSLFBDw*LKN^nLFPeC!b;=UqeF zNX+mU+CQP$XBZ-5+fT4#t#0=J&-y$I z_JDU&TFLr+VK4Z{ey8&r?ia~(#jvEnb{32Uq zE;V)6P|8}O?7zt8FEjMpDDAfV&feZ~e&s5590Qa%^9?2yFYpeb?!J`BfgD7*6GyjPox;cAxBf-SRs^3F^CYw5$4m zE~Rbf=0czU%Q$VTz|#r-1g?p#?LMxWFJma@zdX;!HRVUm3I5E2Xgji(iZ$1o$%BPw z)gKf57BsQF4M5b1#XCU+TUAkLdKeDu;((RpqeoKUC=pzoJTsPmhBVIf^{rU3_lGPAGn%%n{MXqyvOvseTZvfN8z#O(#GE<`0wLyZMWg! zI`9_uf%)_F_;`bn`<9!1pxCLKdmtiL=Irf8-fx}qX0kpT`u&t*Kb!w1L%*BSwtHZP z&%eyje@&_GM@9G^823lTmaVJwGrzZSP3M>=hJ|0=1Fur$h;W4}hlj7H6djw{pGmoD zn#4MNhP9Xd%!lYaA09RTDQz1h6=?o#Q+@tibNxC>+t)In+rBo_Twg$G`&tfI+8Ytj zax7DB%k=rv4gWk!yU!WWZC{&Uu3t`R``RU7k>`SM&qw;%Tg{&o9&h+3Q`+)elezzA z>g>+YvPbi`*hu)L?is4&_kvY9JS_Y&x5lb6F|7G{|5yDjKKkSL_=n@GV|f2K^3svd zW>hd|MfZ&lNnG^s+tX(LQ`&LMHA!^jx#Bjjy08Ds-QET6hBeI6-e9ImFg8KGc`3!99Q9~U1hHu;|eg8-Fwbs7F zb*U%MQ`AkCd(6C>2u*mJ+4o54x={Rz`3zlr>3zz2ep`d*g%8O6zSsF%^nF#8{9dps zWgUo~Z}dEW?veXG(X)1uUyXgF%-E6OANMnDlMf!X8d@*XSe}tskgjn(vPFmIDW#99 zK6>8B--36u7mzvdFn{Y9kq~|YtnI1w5nYyJ&%S&2j1=;Jct!r>l(zhBca#55)a}=p z>rVN<>5;GV$pErnwAag@5+5$qbyt`%>@Oz_jQ9DkH?n`_XnXf>$j>j(^^45)n`3s>qQ2OofYSD%06C@S zT&<7n8O1L$xvuT2`#<9-{TxM(d7+Uj^6hpv*06s}(Q?l=*QZk2{k#CI^x`Z=+B%iL z?S2Y>fBo#Yf9S8|>`w3}QcwDKCS_0m*t>Yf_wL^it~>jeK>zH#*;|vY=2PGinNQxZ zWn>PMI+ngil}?}E8f?a?G{OHJSn}$32KRsVrRTFnuImo}0I%3c+V2L7p3Tg?Z@@Bd zkEb2!Pv8Wx3%}tdvgy;ely?5H>ZSz$yZkNjU*h^6u+-W0oak)lOnTke!L{Z)(;Ms@ zbG!Uad&0ks{Yoo;OPx1WnHcUeg=MF_A?Un*gwJF(#OA2+BscdX@Y+vf9n`HEF3mq#vu8qd~5TEpDKcXRh*x>X>{T zf8RXWnt1c$)C=m!k>Kqp!wFI z{F7bQ@`o+X#ovW4&op%Lj3B9(9Fc>axN+vM5Wd*QWzcSJo8pJ|@q>gQPk z-aF$R0_#xS33@Ky6^Ps?_BoyY49c)33buIuhB?~w1aj@ad5`P>&;F>tJv`4PI#C?D6Jr;Vq)>IO_6V^#Pgl#~FSfH0hJ@icFqGQ1jMZw`R^Ge|ogsL-{BrAMa7} zMfU05!G6)h{%zXiI|t1lWS()5cMLzhQrlC0n^vB6-i;krIrOap+xfNqT!Y1P8zOrZ zXL4~{J0$mFcj;Hn;X!Ou3lCvj-pK;t|2*#75ksNa9hgpM(;iQ@ka z$ZE%DWqv;n7Mbmj>UTL@uM-b4^)q9&T&p(iWUwZ!k$SwNE50Ys7|Pg*jJs5s5Eg#t zyOQ>MlA`C^U&#E`@50;wU;5#J7fQRW>it?xuN3-$ffw3sj{0YUzf{TQ{mEGEyL<8@ z_if`HfDWE>ceSTabjM9@h~YPL1`NV~8NZ+4)6Lc?Z~xdg74<&C9WF$!*fw&r&H-J2 zr{6d8UNb(m*JG{y(AZ$Mw9hkg^C@+#OFwWGSjJ*6&-Mk~dR^Q0vGi|PIFoC2F6)A~ zv76ZXYW}wO8iDDWN6srILYK8e_~rXmB5U`}=@adDWb8BYSo&k{H7BS#zVHRAObDk^ z_V=wtiD~`aNBWL)ru}9g`3>u-y)^+bd(;ZJuoaw@yx<*m@|En)RJI(}yNw-S^v>GPaU4eBsrx zHtR#?$v{0%@)r-9pJih7^k3+{N_^=czP6iZhj;!f!T&yW)i~o5GL~|m^A^T~b>Oa7 zxF*k3y(J}c;0;RWSjf9BVi$=oZr+ti7oU7dzAbP(-#Qw~drS$u&*bA-n?#-hQ~+FFhvhv-bT(_;{AK zJ<~ccu3g)x-ZQLQ>Im;>^nbwcHc}oCJ6*~+o9B<}Z;kR!hW9sySLDl{vwenjpwQ;^ z4DXS<0N&MxSLCa`{A}xh*XF%7$}2WpVR%Kp%2RTz1NHCO`X=?reFWYT!z=RD9K6yx zkY)4U8s&Wv-U7ob@|6$#oae>=W6K@UBliP%{f1ZM%Uq~8eC>R9ss7dx-4eH&UrSK= z#r%_q)3>_c*yC}tFB}<;At%T(^{=JW`Q)(hY_RysELHl#GgO%vp03Ih!Syk*Yq_dZrWif>-ejkT_jHFXC$ zi1f`~U+?E{8T(1d5c`PUt*_$mCNF8vVO=0EVZWy4WkZp@E|8ZHcRI*RzFBPj=^Ol6 ze0h}UbT&SOznm=iJaUegqH|yw?MW>6scY#6hARH_11ZEY+c&o@A)XR9c@|memI#mN zEV^wRD=|RM6#1T~xqb}SMfaLF^;pR|YVjW0VXiCxkepw&n-Kn%GHZ$H1K&6hnbq59 zZx8PtzT{HlBkwNqY`tn*_;oxW-v&!Rqvv^icT~NLn835p(y!s+_f(k}Zlkon#W1~P zP_J*P9J+BHb9XLtIG4Gc!V-*LR>8SRH}UnjPcSft-6eS&t<&2Iv19H*~IKEDyV_{4LRw%woM zeAligK7;I3(WP)}G&WXG##e}iizxb_ap3_ zh;NPIAFh7C`)t3nDq~aAsQsivVmdib8trIb_JuD5i=E}XN_aPZHxyg@!lR+@f$sHM zZ=8~7eHAk<{rdoC9FH(=bweks`Lc~YdJ=r{9mP8AuHWah=YlVM64#_(CsNwqdOm$~ zv|oXN@(sVK%z-J)flTIr{?49dT}P-NOUQAUjThyH$e zm$^Qe>k^O0J=HrF{J?d6?m8^|4Or&te#&RizjdbZ(>*$$vo`9sSA99uFZrzGbuy;^ zHf?-GsbYT5xxW1_Yf|_e!3_s_f4-3GMd~{5(=Q&_(E6N~|LK?kT#s$YvUME8yIy&ohPRDQ@1o=PKX*4| z8NE(NF7IYHv>N?xY1DF-!Pk*zakerdywvEphEja{p;&Tgatral8=;8}n>ly<;jKXp zt?1OT-`kL7^tl~5pX?vl@WZ168cxTCpX`Zk_(XX4e$99LJq_MxbbB59c{ltmVwllu zvhl6%&$O-nrMMjq!&_(4k=;DX=4BvT@HF7a@+4D*Ml*F1Wznk&&tygxh z+|4^igEf7EX-o89M{Jg|ZIbxA{!Mnt@h?Osdvg_sD{io_>9fQXt}%|}vBIz4nV0!9 z8M?Gv&Ahi|HF>V=7I|a1me2b-ny%%X+>ac|38Pf74UhJ0z~FO-tIiJj_iVqIr^1UGw- z#k+=u=3T?-cj-NvdS@iZt=5DNxfjOozwPGTX89JEm6(3uVdSax<|WSW$a&w15&7u{ z?vZvF1N&Z)yhFGUdo>4qD#zr!XRRBaFX(4~-$D8%ypdbwcc8r3d=R!D%oq$|Ecgwm z8;{|eJf5|(=8Eox%k5l=-&gz}J(kn&H}m?5*oF>+8_aKbc04hl;XKAB|ABPX_vNEm ze+ncoOj6%bxf;F1R%Mj(tl=bhQkAC&!GxsjjHm|-}m;Yw{ zlJ{<>8d)MEP^8zibW?vGrM=hQR+!*VGjx$}?;A3}QrE?GS=Y`nJeN|cJsPwLhG(~5 z#|fG5ry0JVQA!&!SI#ng`J4lb%-v@s_)ju?=TX{gZ(z2p%frIMpxJFO{_Cz9VqK7R zm$vVqyLI_@Q+7PzX((K$X`enC(;znfV2|7@)3)`Pc1Dr)-e3%wssqJVtUYZ@3LwJv1-0R_=MqJymS1WC`7Z zF819xQ|x$RxCMTh`ywZqYtpvN|9Z)%fb~ zHZpG48NO;t>Hi>XJC6P*({CBK66o?yd$B6{{ukv8{%s`|iB4IHeq#6u^p$%qkz3{a z-pA6fiH*m zNyn3M4QEJB#rItolb3BLr~2%P!402Lo-O$4K@Fe0;BC14xav7yJUOso7Ii*vx#*hmx(qml2^)qkQnBQY>XkDW5EjQ`%)3Z4vzmQy*zKYGy zr<8a)jXuksL2{U}(8R{0y2ZviS4e=yI;`@Ms-K(qk*U{Pi8n)xyit^POdF-H%R5GV z|JPg}L8Gb{m349*FQ1*8MLQ4 z8y7761MoAx^@U4WzVj%>_i`xp+H?iuna#MG-)`bt?Xo}V?;e}d@8SgiTgX)78e{#D z{3^HF?OOW}X!cs1?qoxgRg<@q15ym$H{rPx);A;%M2$a7aOK$kt)E2@C`G@T$Mw0aw3k0o^Nqs)-1Pks!+SNhuzh$mzRbDh zoGuF=9%QB7jSq{yR;l(Ea+&GtWVA_pe9sq}^z(K~TbB#o z9qNDSKRRELakbAd3gMADlbrfY$N=l|8z>x zOK_&5C5C;J&U0}484+oB)SL8wfgUHRBQj4nvM%V6cRTDlV)GD46k$k%k$07-*>Kw(>d@)&P$}tnjyZVQ(TFQi&_8v&RLGg=sSmn zuW+#N`4+zlkF?j9X9nLD627cK!k4hP{W-Zu*gF=~d3EkQ+NJY-xp$h1%~ZXCT95I3 z7yCWNSlW>9RrHM?`#ERP=SQxd`#Xgvn=_<=mYO5=vAU0|=#$c&zq8m&He4K^bNk6j z=M|l7o%ii&*6EVNOFJ^3PoOP)SmpLFnth1q7ia6|@%g=c1L*w${QjenJI<}!*=B4x z&ZYaX9UILs--52UwB3G39cfFxH6%K{lH|xesNdh*xXz5ne(a(8aX6vJwzBU?KAfQR zedODSDn;LR)^Oo%Jt(}4>%mCwf8cF|ZqfcKvFS@LzPaTl$MLXsM89RT-!l-~4&d3c zSk|u??5n@;)6Kb@opX8s#IKM)SKqS>H&1 zlNJ|a%O}lvv~~$?_~Px<8DeNziZ)F7r;m0oLFVpQ?I-p7waiua-(PDR%6Ja3$6V2T zic=ZK#SijM6nazp2Lce?X3$t&gCSNi^$*s%UfX-ChQFBz-+FO4le zj@sfnV+-#Wx}W12*O%e_59?j~=bC@PM^XN34S&r(-G|NJM{-|>|19VckL*hapvORb zz>5zIB9GvEk~a>~`(%$9Aut0}=sKd|kkfyz&%P671%1glB%Rrq`8*FcxtcvQ>4 z6k9$IWUQ-!)^WUEzcU=yt`PaqWiPeLL7yS=)Muj5*~eL2+vw;s`|ox6{9cx zkK7wqW%qMZSN?uN{mpM_Q>OEM)b{sX4Wr)7|Lq+Uljb!tZXbo+J65g^YCeiduJhUYzG@p@~mO4j|u>lX!Zb^aK88J^EgooA2j&k|l53Sl+=s5~-KZc~i&R+MfrHvexo0{aX9H*Y#)ZbM4fJ z4_hYov?uz@-pOuX?D{X68|d^JrTm_Y_`smgy?yR;&A|6BV-8GbE@Uw$E@jWhH?Tc= z&$ocOk|(r#PT^T8y`Pf5)9bY^fd*Z^)S$S17|yMiUY?xaOVdO`3~IZz_kus=D^twoZ`Uo4&1rhA>V-;9k|wk z%N#h{fm0kf-hn&Y9r7Kx(Sd6nxXgjG9XQ2-;~lv3eTRGpZgk*U2QG8qYzIzp;CKh_ ze9s}@fg2sT)`80$INO0!95~*AJOAU5@4$@?TN-E>%e6WoNe&&ejV#OFMUDf9@#Bk6*IFfE9n6F%IlV83H}z`VX)-G-x%Bp zPUbL9cs>Vn)~)cT;JF5W48GoAdEV+ck~ZPr4Q5ZNu9ufl?F?$R$}l=;NKYB46Zj=?!|61_|M>X41Ny$ zjloUe!ED&2-9LhVV({<5JRhUzPlA7La6P!p;K#r`W2AT<0Y7T6{O0Ma25$g&8+t66V2Hy>yXK*d}7Y6?te4oL0fPZiBufQ)Gyc+x;gI9qWMkW6jV7|ev@QvV; z3|SR+~5r>ZwCJb zyvN`zU^Wm+{xjg?j2}J)egc_sBEm_|ZYCtNsvv zEblb>0KH}Gp~%juZtFvI8T*q%k@TO@2k1@UN#IwZ&pcJrzXG>|bJN_`mtR`e!P5>! zlHqB9K4ILUNY@m%wbA9W_JM7?C0)!ei9T#Tlm39mz`LG9C_nglWUK?HqRUg@T5uNh z$H8mBdndZB9Y0_ru*eg=>*@1tTyKOX{l5X6{nJB{R&WWp65Ik_VDNfm%mcST@4DP= zU1o6dbhmXec>Y=Rlm4G;u(X2d;9m*Lu!enfQZQ?JYzu2!FdfO!IfV^Ky`{09&NA35Pwb#(A4Nnt1 zm0;ni1z!M;`5AtL{CxN=u(U7ztYLf)aJ?H|ABS%5px;ccZ{fi2ZP67Bo9d@5Hf8wi z^U$*|J`@R3H;%gFFF6!RN_Sg-hQ1ZN0iG8>hc`p}`?KI?a1%BSgX1S3imV4e49*9S zWvuQ3H-bCp>uq3*ANZ?8ej~f_8t`)byaf8psk+^%w7VUgj-Kr#-7N02pj~9y?tD-L&oi<{SDxoz%5yaBD)xy^T2E1-F$)D zIt@H7TaUw1+D`^=hvz!5|B6GAYIv?SxEMUgU_W@8!BfC#2B(0}GI%6-w838RFoV0! zcUyxEZU-O!Ot-Zi{I$Vbz#kdB3H+|X6VS~vb>ooP{hh8GN54r|to%#d*6-ov&B1T5!M)Hsz%lqx12P2Hi0#0Q^A1JUFh?qgE6e?dBKi2}a&RYj6Z9JJ=Bo}x zIy2nXYGkHg6CDqUCylf_7dbJx#5MS*gX_WLkpDAqGxDcEKL;GV@=!$PaVj!*Aaf>o z1oSOeGmnrz7Ww0lFZ3j^b!~JWRTI}<`xIILKjHdG%-yUa{1bdX{o4%Ys+vbbD3h_l z!|=D{5g(D=`YrvV?k?v2ZP3fWsT}U#VDNh6{~9^tgZM4BUIngOcqrmU{#_Ce77-85 zBmTj^m9{#-7lWI@``|wp+yX8`=6u>}b?77OUmbQj2+#QIus3sXAu`u5W_*~ZA@JCx z_%m~ABs^PIFh0=Z!SOd7ii||27nweA978O2Po_@=T%QDOFLCM~aQ2P(Gx&CJ3wRTH zJ@5$?Rw564CwL!t1Nd3m^xp)XeoNgA;1>Kt>W=?~Zb#y77X6<`z2MFCQ?66520Tve z&iw4GCcZ;Yrk;0Iv|c`KoJ_qWXglf4Ib5&5g?LSS1E6pC<)O$rbj?QImOFGkS)U8B z>qi~P`ZYBAcr&~!!5!e&pvTFW#7w`@8TsfXvM$Z3BJer)$M>h1#9Kp#%N;QKxN;6d;l`~&>N zzxO`YcqF=cX}24?^pAAQl67(z^~ND zigcsJ&AZ@ka3}aQc)Gwb z@V^MX6Kr9#eXNW71oNM5pKRjZ!|=4XM(JLzd*Q#$$ZW$G?nh?XD~BS@j8zHr`TsyZ z>*9K33eKXfHQ=~ci5K9@;AsRWgD(bm?!f<3+*TnxS#Rm_5&KEKIAkCE7x@kNZ;bcK zcgb(SpHNS*t?wX!#HBZ&PeH~M;y?=d%?_{^{y#xqv+Gb~Jopae_^F$Iw%h7rJpKQM z4u0xG;t9Bswc&B_I&chrwgaBrHsT&UE#UQFyIt{@3GfGz@7oilj}?8Gn;FoBKaMfH z9z5Yc=mQRkK44kTt^&7%E$FkrsqYadv9Z*x0k?zC2e*OOAoFx^%KL{R@!0Gn@M^Hk zpX0&1z&pUP;PLI)75fy=L`Ze=yyxXc{ z?xlch!0W){!IfZH@5h1j!Pmk+7QBhN*VAS)I34;l=z@!(Uj=<6I2rm`&;_rAo&h}x zoKHVyqN89@&z_%!^l2b^W;y7*Ct|fSC%+`tv_Rj=Jp2Y+*hPMdoEYTPgZIJHO`cf$ z4KnHPBh0f&-=ZhX zPG6e9W2x(gXA5`-2SbU}-3p!rJsuvxjnKzaw;4PV+j?nNaGZ(%b@;9iUf;o}T@$fi zJTeZFyW~R;BIAMGjQL^w9(*S_1uW}f6L>t>53UFM!DHd6k^CFHgMQqEj%DC3;!X`? z)oLA%WWm1@Y{eXo#DUAe2L~UHSb7i=MOA9fI#Xr=rMPAi|f4`0iFfj58etM4ZQ{24n80H4sg?HZfg?sNlDlZJRHBz0!tqDD($WVuZQ174zvL* z`tW{;wFw*#{)C*O89bl5FTO`y180H%iA=$%;4t)7a5DI>&;_@RBmc+FE#Nr1D*llU ztqEE?v>5!aoO*2|^!4YsUIT5}2k@PMe&EI6MsPYfgxqfMB=A+>+!GH+k{G94bR9SH zaAZ964CpPVFn-|k!ShF>H+T$kT7Ggk;s*~0w}Mltd%W<23(@N%9-7#GD!QCjECgW>DQnqI2-yD@D|4PLFx*gPv56N&jQy{cY?vGwDlD{ zd#^nlX@)L)tt}xv-_8f8l%XeeQ^7lKJ{;MAKaB&gyaj!rUj$C7g-+c&+K2;di51X) z0j|93aAX~8YB_lMz4$S8N5DVnKJkM@=yE(JP>-v+t{DB_F;$ME*?lDCz}Az_|KS!tTUI0e}lWglfnD; z9gdWNZ$!6d4v;0TZV~;zq`&C%{J-fJhs-U=d=N9_-6-L^1N%2nQ|C?#xVck z*&G{*q`)(ax_iMApGQN_=72pO`b^g68n6$1Iy@r>M^NryxtJHW3)j{$E7w?X%U+p+CmsT&8D{O>O4esD7~ zACtDgk{2w3o^nhiBI~J)*P3G^k#(aPFL+j-5Q)^lUj^O?Uc*>alP}b917a8XYbpGb z#zi7yk$*07x-X1G^5K~ePjOl#G6gx=;7!~#@v~<96gl6fLS`g# za1{G!_?y5J(BB7c2FEdWo#5mtkw`r;{cZ4Oa0~qZLQWYsZfY2p-~UVFCUT{1(2JoL zLcbTf;9Tep&IQunZl3#$Ah!L>+#_)b`b}_2k`+H^3%c1$>cup z2=>8q5S~fkGUD6w;0fS;@V^01D!2pt?}9G44f@mgo8U6!G(%4TZ-@RMbirQoho#WR zgJYoIjvSFW0sd=^{Q0!I8Z5dcL0=9QeS+9F4J`W9Qg@cAJ0JRJQ@0xW`9`-5_{?DF zqL1t!Qoy3a)>GWp5cClp8sYiq9o7+W3*-JScr3UOd!7b=GPoF--;)1~1XrWmv+yK= zSAt)G#|M`9@Evr)xyXMR{&?^%eBd_dao|+w_rvc6cR(+JE?Dfm%Fw;=%!3{Sz3XJ+ zKXk#uUk2R*ZzqP#z=sdwldbTa3cVZL1fB?g7q||5EOfzZz@wmdg4ffpZ{OBUMy$sQWT>!KvUsgZF}y!LP#84vwSmJE04feb*oGr8aQaNyI(q zyTI+>P1s~7c)MWeg13NghJOcm61uH{z8$^?wpze){%`?2f`ibfLvIFW zgR`Lvo&-LVx?92HzyqLf0sFus;BNw3;7g$k-Zzq*ncS!moQ%K4ktfJ}$J#2tJ%+Ll zA1fjsT|SNZg%3aVPv-J;>`%OU92^8ozWo3=A6y5$89X1nle+21?*Q)t%id)lxCJ~8 z+zD<4PXs4lhTW(e4^9PVq1z~M3V0LrVq}g7FUL=U<{fkY@J`|tcs#ffdNEk?{Ewg)f+a717aRo3`uiFSWPP2htku>Xf=J2)PFjs>rtPuyd^xWU0Z`bA&j z;1?W69yk(uJ~#a(@Ap8T4<3pB&p=NO;Ge9a4d9pp;s*F3krQNH0Ivn7hR`4RkG#d) z=b?gD@OH*aa4Io#8T6e+tefcb0`#)$7#DapL9gNAgbwU89XV@Ch@bfO3UD_MFzf;^ z0gtSNpSllGHI zCU$~mkDC`D=TvL)g`_)}2jFq-_}Bjscd_f|$jH5me$)Po)Q#go4>_ON$NHZFo;}s@z|Y_* zyodf^-~GsL2Uo&BjGS)`51n*^lfc$}v_n5%ho=}U`-dUmePG!?xZ#<)*liAH*-g&x7MO&?oRy;A(I( ze)Bju~7AM`oU zQ|j=4YlYW64!6R5Ry20a- z84um!p&vQVb3q>op29qQcLy;AoDTk+wgks9_qrLcv4ZKghpPEpuVgMuy-IAkQt&47 zF7PJmB|jeZGx5Lm@CTqDY>3i_Ku<@nTN-D$N}ibn%_YuR*VH_@t_oHs5q8H z>4*OI>+}!$R_yv1GIxNz$mxWBu#q^4ZXMXn#{*Yh=2e&Y@>7f({`+7%@%Cx*Qrc>R zp4)_Xf=0cAHOTW&>uf5<6#Ja)IW5Db2my-;CQzB<2uj#tWkrNAjBs>RcD-M3a z9pI1gyCiTNb-P(leS+!gKk%;SjYaBio)9vE$h(V6u>$0*4Q`uvoR3r7*|h^R4t$ zRezWTcks(f055G_KGiIfgil{7av6amw+W0a0 z(b|qv`g^mj^s!3DfBXCYPg#B28fIbCDRG-!RyG|A#%*ws-547Ux8~z_UfyyF;tOT* zTg1+}+I~l?H`)p!%Dag`OTFdZb?iW0G}Gept!AU+$~W>;^w@9r^o;#h4`Yu}+Fg@& zdaMoZWb#k z%h0DP{-fFQXtGYxW7h1VaW;Ztlw1r}7>~i0Vaaq-Di7T**pBzaTTAawPiI zip@m^oEU3d44)<$k8!iTJ7YP5-5YBp#kIr|47`L>mk^s|mbbd%nq!%yP}>x>Q>d%m zaa&`pS~t}7ZsFbRhT80o+Y)PS7wS$$?GWlgcU)7fRpWtL>k-~f9;jP9agDK7i%_>K zYP(RoJaL<2c|;CsO^onvh=JM|6IUN=ZH=Kn+hfK;?To=f|A+o2su z(Rx|Fvn-mK6yME3Rx;sxQiq$FHGx07BvP(+dw02+U-4~j#<0-H zh$q4`0|H4z!wMVb~s<#D~!K z#v*>rfUyW`9I%Fbj{hPLp6(jSqNkSi%^uHs(R{PZ2W)oLDjwHO@a^P0lkxni#SfzL zZ)A6Zwf=bj!33-GcxiQL9B|!G%+okD9@spzt;e_WEL@p?Nj$`}gT}0V_@@_7qNN&l z9B`c*p_>$JbmKTX-DOZ)WNz>B2*X|v5zN{d>+8gzvExy8Kup^}YyAMFA$le0xzK8d zw>Z#xSC-QGCMziG$?Ad36Y{3jqC%ZZ46@mskKNXIu+Vx>Jh0xwwH8kyaI+Y8ON>xk z#jx!$alm~-?N-zpvGIo3q&0lOKwxX^*cuoFRu6~+t{K2YP&SUZ@Z^@kh#u^1KhD}d zm{vLlCjoi2oFN$^)OACWNwtT>16zc;Ls54PLEgS0!n-;SYHghGu8)IvOPuhw#))!q zF~GfX$gMs`c-J4pP&Xg5#Rcv@R)&}Vuv3w>b2x?^9>>dz?ZXk>rC@cEsF9QebyE^! z(Uc?%%}FrqRIptb_9=$dBVbrJLKx~sz|f>%^9UHWj}QraN3_P;?WJ3Vta34g{bI(o z)-@B9eHMTYH`Hd2S_?ec#QqI2;x>^7t6i>2#!_ZkOl_=ZgSZWO zC(tZ4V}bjGTJ81%Yh?LgssZa|KJ9ROYhpdSBpK*-d)LHzs>QF?d3-=K-U4@d+G%4; zY|Jhejo1|FfH;2JUeV!n*GX0?F~Gam6`LL3?(*c*8zL@fjccXm<;PDIFZwQJQsWSA z-_`-1^`4Q<13XRQWAqNVU3{#=leA@kr&{t2YjteQ`T?HW*qC(#JnLfP>IZnX#KvzJ z;As_CYGXbR@N~p7$aodk)(pU+T?68`;K>6KT02l+-N5l$i}9jE#C0wnE?yqLk7Fi@ z{##vfz*dRgyIk>v^A3UCt~lUox2PfgOmqz%A6M=6OgN|r7@&f9Llb$ zD7?J1vS?vZL7=jzv?R?cs+f9xRiHS{Dku(AR3N5!p;ZH?di%L1EawTI}T2(oBdT)Ko=x*f^BGY=v6=^c6Iibo*%u{brOPslODjUbUXAMtS;|xAgv5$z4BfnsRlTI3U~zFaJ`*aboLXKk{_8Y2b7M|uQBeiTOe-y)6IxPQ8FEgE3Ng%-(9)uU zP;TjBROnlKTA-*nxAecu__4MNLPbkMN4DFmot&z&veNR(ikwhERXNNRcy|CJFr#ID zJNu(2w)ACsNhMwGeN}8RwWOdlcyu8cWlHG3a*43aQrxbjDm0h)lTlDvw6v≶*?i zMOh!kn8`1XoOXyPpF?YqxQi`G*La-89i$Rq_7{>eyGAc86Q{@ zQp0+L^dG$@74gubMJ4@L{LyPlJvC;1d#^{b7gd=154ZF@lS!~Blv7Y13YBCB$^%P6 z%!ngJcH|oiMS1f|%ZnDV zJ{0Fw1eS(^c?(wL&0dP{G9Y=5DNNNPhC5gkoXT`&WuF`g9Ec$av z23E*ozW_c~ab~(zQYA~OIQ7g@ajjqx6ScG?P_AaGUbrjLSZ49jinIb*DATMeryy%? z?z9Pd>C^dx2+J&8QdS)5HFZ%Svx*tLBvdZ*Zu%6ZQ${dYq#7(1Luyi4S;e&C6->a; zQZtB4sH9*;CS6cbBW|7MASgQ^ol96 zdMm7FVrFTvfee1LY14%%!}h#S;R zvx-X>OHvPvwsNLf}}d+zipmIO5sJ9$MV zVu(hIDhnm2(raLk?y6$Wlo|7wIS3RJWtCP`s^wk)E9$}`-Q`(DCAmdQLX$(4%b0LE zp$e%$C)AMSRF;;N$--V#VW4y_v%IuIGC)~vr!OgE8IU?@1%V}H0U}3QnRC`Iz;acU zEOwH5N$m_WMzR6qm52JRBe{aUO7}}bEHEKG;&aQ3)jVJXF4Y&v2l_XquFy*pIwamP zl|dr6StfI!d_`HMUhBA+T}XO)xteXN_p+FvGU=1fE;2|&NWoD^GHbQg^jz+@g3T=s zp_dWXIg^XV`tCFAS&$tN-@_C(A-ZRQs3U-xy)y~vRe?o%2CF$>A{O<@f~qP=-SyPM z)24(L5?9#^OVH#;j72$E42g^Gg}DzEH2`_-mX@usO4S~Z?${w)7FzOr zHH34t&CBft05_A7&9tYq{9*I-gkqa8eF;NLOjK3G8H$;qJ>D@Hhqj4|V=~?x)WK3h z*OJnuA+wBWl{Hu*{N3tLcyG>1$r*AYb_6zk@)G_OrRp!3LE1Y$xJe}KK9UI zCd*5+@)i~c7Fl^qm^*aB%99ys}_vV|Of`S^L7vClSA=yp|gi6IQh z{!%U|QTj#8DGbX0gB)vmag%6*WilC$Vf< zaiAc?D3=pDm^IT&^p$0}nrThqdeM?9)|=9DHS?B+ic8Cuuux5|Dk=^_QakTZIdirs zXwhbYFo)9kPh4Vpuj^Q|Plepc*r5-NC14R}1bWAw*WX`Pi1o$rm+Ni29>YnqbMk^k z6=i|Sfk{z#hKidl&&Ln`)U?h3G5JOEeQpS0y(8D&>^OQ zPIRWrjL^^uEF>VEqlQ-Fl4`*ZS($ z_qsBh*0=8^Ew;D*eR-5+?f&$=*kj)xyC5C!drf!roFAc|`y=%8euSR-BXkUjr>gkY zGnBTAn$;yxzNkuqDbt@2HA}BCX|m#^6;)(Ztl+qyytJgWitD(mmB+G|SzJT~BB@>& z?LVE%WOQ-sB~hA43pj)p4HGo}S?nucj`SLmMJ*fKzQrnTUO|3fn8`_0iSWEMn73 z?5>s;n5;NdF?*q@z09$o4-I_syJlH4o)&E$8JL1CLpwPqvOct+4pGIe5PseDtdteVp}W*X-qTtY17`}-mDk1i+ zK8H$jTq{v)_Ch7a>}w{kko}z`q|(V~wq(aVSz7}Y1)&nXd#S+JLcxsk^1zC@a@=EY zeM{vmPlvPVq_svF(>GjG28_5RYrFR3A5BpdOP;Jwawfwhl`)YzZ2RodK0J z*7R9Zg#eU+RFlt3YA!g zNyqt&zSpS}x1gGpGA1RVWwzn^(GO!!wi{IIuH2uj2%QtqonRlwH>$DEPacQ({UHEl7ojn$@dA^X^#{Y<64$5l>_SO;EYs{FM!%S!FvbpEW z8Bs8;B2dhX6*rXuviZ!>gF3vBCC8@Qd?Hnyz!NYu*1=TfvY9S~Gn4C!;LIb>Ol=33 z&?9Zw**Yhsc#-U29rdBn8Fe_I>WR$k(jqwkV*{wcJe7cR1ZN+R+K2w4AxXP1leJiR zW(R5I5w4m2YWDTqAyCX}^tIh3%E)HOuGDj+;Ha$FrJ~K;t7RSYSvP~~UZ#3hpscEV zQHV6FLhc}9M0Pe>T$^94PnGqVf zbiBaens5_C&f`^SPfUGRBRcnG-0TnywZACHK?{?K`wX(cN7oB=EZ{hY zWnRg#qS|KKYAT72#YddMQAK&aggkC~7M5~uC*x#mbCkGOq+>f><8Ul9K>ko{EfnvN zqzd^mp$xPgLuseh7S(8fSGDdW^dgCop{qYKdC8en_GFHlZJ#u2SRZPhl4tYep_(Kj z6|x-3{frDwY?kSiRh@O^u$x*CJ!b6jK1Vpn&Fy!bv`+RBLuF-gnnRB5rqRQZ{)U=+ zHnSY31$YjLriv`eYL081Md&kF5+ZfxT`u={Y#cp{?IFq0YtJ9{v8%O!6IKk-bDAOf znIcXxXR%hEqZ4x289mF$vo&C+VvaI;jv7RnoZWQZ6~!P#P(6 zk4nAbqdrw~>ebI>Thsn7*}C_0%{Hg><|vmP{W}Vm>hV#o_t>Bx9@{GYT$0qZ$4>oR zm#V!j7v0y`iAU5a`|GCD0nE{Y<6zicJ4*Cz9~1X16Zh~qosdY}Gx2Mlz73a_&XxT>^JkWZ!8r@6d7{43f=*$+`$`dd1bt41ek;3gkX4 ze@xZv>JCwbj@vvq#+l31p$9+Nj&Xs7ay}PHSik>Vrm($izWf~8?s>7JHQu9o!Q!jOAaY{(i zWtGt3{Jjijv8Unrl-VVds}`~#>ph?jm!uflF5Ii`rxV0T64nZHCv$4gVGHUhiCUR} zJrG!>s<@c(AfqiUus80;#uaL|hHR7bxPc_^Vm;^Zain9<47;96@)tN%?{Q4s6X`bt zVY448fK8M1Tgl0b4s>3>J!W-RkJ}n=Quq4$Wt1tAF^!u;+N$=mz)X%S)xO9+Gm#0Y z8C6Grl)F!>Y_2RF;pIeLHd;~5i2)_SKzUG}f#8%rz=9O@81^6XFjkp;frlsbqgOoy zYe~@}LbiPz#K8#<`0@0YB>c)*OH0iWn#56aRlA8?7B+iQsgRj5CntxA#^afC_s>43 zVPyNgkaomEF8#b*_Ithb7S}kUFIL~q2-mbDIw;Ss^%j;cm*pEH=T%hq%fi2ba`Hjfez@o6 zGLwB_MQ}0ER_-wrEnFcCI?a=Tu^VJlOisgNbCXxt(-w9aK3RoBCXVzxT1T7bq*+UX z=d0$=J^um~c=eb^A8P6KtdS*WW2EH&kG;2n&+4l3h4(p0fTonvN-M3@9#Wuzl21Yi z6iPw@g_e&%0;K}Y*OQP)NJ2jNXsgl@9jw(-Z9Aw{Q9H`(a1}eP(|S>H>{J|UMWYh@H2+NqYY?|-em_BrP{c@~dzfA{^}`+IMqbU$bR_ugmkwbx#I?X}n5hqiR7 z4jJ}8hS+torheJYc;${3+PP_>Y1cYW+I5sfL9HTRw1!*B%nsS$EIEz6BIGgc(8n8mG&Km(RdSQbJ8g7El_71ZW-c=J1)O-YckBSz56P z#10VHnziDQiof7|4R0$uMUZbwFZpG$#ikv8i`eg@sn*bB0hNzL0PK`7!;qXogp)XE z7!!jCL`oBF+{Ct0u%aDYB@U@*k~Mepel!dsDQjN^zt|Z9I|SRvg3a|NFT_l%R-s2N zVDuvv=j7QQ7QNP+!0ygK#C%AF^<7%pZvltG^O%ZsJ1k_kBcYZi0n_Am zH~Yocg6VCA>`-mxaUD4U6GyWo?W9IHw_V6-!OA$at_O;8IE1V;4mW%- zK#3z5URFnAEQ6)GD@|%asKCxdazHFvL>!!<8nj0Uc-;fB+0NEMYCgGW@?Ia2h8cv; z-bm&;SCw#r;JToiB4n80H9aXinJnu;hql{Y6^vr`-L)$Sd5Frh?g3pYFH*lZZ0YK& zt6Pp)3Az3Lz)YxxUib6gIQ(Xm9Pq zTmy-OvtTs5u@;~cTJx;wF<#&fbVf~2PcPVV;x=^X-3x~IY9)@|9`Ii*C4I!+d<58-0S4ysW1z_bgI z+K+u?nu()X5K95t%_QCvze=}bO*0}UJG_F%NcaMpFAM!?bkV!SOe} zfk=&iG9c!~EYFdEz)a88#Dr_K-d47(e6f}vNj*yK69J?1>` zcB)8?v_}}Ak7e{?A4Zn8v@L%}q-YT+-PmOJP^bzS#xlE@aMhTvd30rT>1V22+2x4a zL#sa8uZ#)4Na1j<7oo&+n?OQrGIxs*#qKTd`ar-tHII6Nwu}uEt3LDwT-FoKB|OuB zYk3q#1a#A1%rC=vUGPzYC0+eaII(cXqLz+G@Nc^%1!V-{OjH<98Ee~cx*$3VC*#!^ za@OA|tYOG%BmxscEmk8LB+&ZlxaP3aA%>=5WBqQ3XXNKPF;s5F4hmcVt-mbl3`bWI z!1b^ZqI0&|93l-NjXQAs2>$R};BQJR3-B!{4R;7qj{2gL0yGDaxTeieFgCekkYu)U z+zgXQve38ZVkj>&4-ICk=3?IjejBJ`c&L|2ObKl>tO(~>K&(Kq7-vSP<4r>6b1zdM z^0Zh^;p4{k7=&3@zcQLEMZ>^6%h7NSr}I;>j&vfU$=PE6zdF1?GdomycUXsN%&rC* z&g~Etc`%0T1nwfc>=NL(J~C4 zu7O){kf61ncH!wAG&SPD6Rk~C7HMxGS5vWKLoBl{78}YSFfVL7XuR1W;}$ATr41)4 zxaSOapdt3DrEN9Lcg#9#Y1@PTBYjWR9=7%l7kF5wG|>7kN_7i1#^cL#tW{|BIehKG zYB6IZZHD?-CmZY?YU^~zFWUJu?%HLI6iM0~lOj6L5YfXr(qX{ie4jl7qj>vaMk#Ng zA?;WfA~za;G%)AI1PC>gR5hBKwztDsWPnZ%r|jV|cwvH49T@GH9Jjy%geetRpLH%m zxl1xbvel`gIHZ7cRg17z>%`e1oXQ8kMyeT&N?J{4JQwE{7{p7|mb6XZrY6|ENph{C zV=j)y=ypo&Rsu9vXJS-$;6yYvw_i^d2T|Fa5(m3hKP|3_XWQ8kNX7+e%CX^KpmSnj zAnf6CQ+ES#ZQZye& z*ntPZtV6#Uz*?B*ftV*a&5|fp^AWRpsAkNQ^#Icc zY|K7XWWbTNmYtMosTD@?sXJboVu@$znqjzHc)O02a<_j%3XJpu`9HGbV=W{u89C|h z0<5SpmS9NgqCrb9CfoO*HCoKGhAJ}s*@aE=;2r$(+zOm29Jhh2g;|DGd?#1IKWwg( zK{vpmWd=J8u?ECho_>%X{YRhNaC*X%F}$vTdTm{DF+14e97D2!5F(ZAgyDXX zebu5}p%jl#FLrxp2Q#Iu2QPL+O0Vizap5_=!Z0OCx?hidc}C^T$|^e3msVsX z!l)sx1oy%S<$;m*YL|vyE~v|XfeH*SCu+hxOm>(Nade&Z1LwkqF>Q}=#^RDjE|LJ* z6Jd2i(*jJ#nBoV?YaFZ``HYFlIx3606%KF>?jD!$B}o8kbhr!VNPdw;11pm@xBM@ zsr!kE=1yt^60r#g96+UjcTwA}8rVc}Lb`1W-T}*dbj~@!N{tst6XU51B(o&%Lf>OQ zmiD4)XPasg@gExkwssB915M=`2dh=VQx>*x-d<(1f!lfK>KLIm^X;C5HZ6V)I2BcS(8iN7nAW8 zm{@+OF~gR@G{uoowFW{3s?QML*%B8*7f@|k4YZmI?-J9=CFdMY+B8Te&Qw-V;GQa3 zI$=347IeA4DiM##gzyZSJjrcdyvRjYEo^#;D%{xX6kb#Y6|^kD(_3Fmw90OOT2FB$ z?X?0_d&-G&>6QU#9mveTpcSz^T8mW`rf1&OZ|&-aMKqe*z`@vIr{Y{)SRLc}gBEmg z$#0eQsQxh%0n`U3E1CH1B?_X)VR0nWUUa7hYcF(5Svc+0VfNq%h?;OG!Fj$?-7*>J zxoxi2GI4U;($EHvkyj&Ij?~0u?g7c{mLJ7Bkrvjbp`DDGq^q-1?p_g#h8i8aLCq;q z(N<(Xb#*@#4vEYga<|#2d1lEX&>OOzOx> z)%?6NzB&N)+{P!pXqkK9)qvwLLLBQc!$rH%1VvBtOmW-Jo$&sEqBjIP3+%NJiKe@& z6}{U>`WrhG*dvVL`T{3j(LbOjT(*RfVs*9$V&T{Uw=KoI*Ob0@;|hs!Bl%gWW+DQI zail9Gv1x?5MkZ6yww#5bDP61L#|s#FOjD*VqvnEjXeS!faPq3D6RylefVi;{u5K9@ znN5kEEqNv(f`g=q{W-p&$X?Gwr%W-W4kqs4flHm-Hewy-P(pI}qoOjnxyr=%;c$;@ zxjZ0f;ol?+#q^baQ`~$iZ%teiVwe)p(r`%)+?6xi_Ti_J*;W(QPDBYx3*`t7Lxkp8 z)<&BmxdNlVJ+c@U5EB&WmgIg_*gh7dXl_PP(zGRAaG0h{0s@Eiqgz)(mswfc)5-pD zlr}{JG4hup6NFvZ#GI?FQ+2HE?4Lu5y|_81QvxVEX@vx_slrF+Ty=r5fg-H`mPq1Z zm2nj2n%E^At1&o$o<2d@s)oy5NtCb(C6ys~e$iMW{)_h-@|$bSy6{F}$6bnFQ%9;oK}UjB-gX8eTHwn_O;`p#fG{kZ_QNvv|s- z3p1=ZhG|Q-+izA>rpD`LS~knb)UlUbNJL7qjDiyFWUh=24`GJ15#y5C5#v&%o5q6>s>e&?gHCRvS z!4ntn)XMZy?BTP_QeSA2VM5OEmb4inq^4CDC%Xjt|iF;b>iR6{KK;;+7vs0vJIRKA(Y?w-H>m=up^SB5z|J~ zu+*%4ugH*tfiO9?a>=F|Kj_zpxM3oLc-{7RR1}$btj85>yWrh$$6rn~phc{H+C!pr(9E6^HBIiQ zCI1S~iHh4cxMhHMC~PH2D!Nm!TpsFYYa->MS9wlYQ|q=WT=MXR-0@CE+RR}UGGnny z(G4i<3F3-nD>yk{u(cF>L&FXm4zOL^9jUK}jT*FBELXYFqCS}kJ0fuW$9=K{!oq`J zkxK~kijCx-pa}U8ZDpTleiK=0DAwL9MfX(kOIlmWY%1PPU{UIIdx;eY*&g2yu%4l0 z@1W(e>_k%;wJq>?fMo&oW3S~^9ejkF4ePE!yg5Uh=$2a`O?Uttb|<+#0o>ARIeC`PPVDHlQoi<^3g(lhJ;hThe6FcEI%w8YiwnYP6pO_VmJe6OO3t;SZ%D&W(nA3W(WR3%BkXR>0UT&>`61(bF*O zumb?xGnSw>mib)!A}%H@x|UBi#L&i;1d}-qfdXQW*-(MB`NtfAJv6qKV;F}H#<0p+ zrV99z@nh|D#@+6U(k*+jO#2{jhdNta3lyB6=cJfhVu*P3a>~8+pGgu z;eH!zW@CKO8u#Yt4qQ3@9Cyedxyv#V4dqhZ)p*QK;mVpX2eUihJHTf)Wpw`ry@w_~ z%H-sNJ2@fFa&i6wRl}|1GLG;cIU~qX}SM2d+-1H4$$hQTutWqfzE= zGN86(*f7P^fP0O^*MZWKaKoxXJXY8*Vr^{OiyC5m?c&p|>(7Sp&IR+B*q=>eVq z>@&%}aL%L=N!K-y!ki`)N$L;KnHLs~p$3M+A{p7$vt6#mrmn-##~l}8N*;7kTF_KZ zfnqk@4mUjV7qSk>w#!V@-~~1T)yDIjCga@DwAN4iZdk{|sxjP@>fE+WO-erfU>R;r zdxxo^YnkCP)IvnVMbgdyow1+@&EROjs2?& zs6srty+VXN(24j;cU`__&57|~YaGeuFe+KM3{AG1#ZX{)1Jw>BbUFWk$RL2VQ1B1` z-rPGFpr7oCVe9<^E({g~Q}LN6oF4Brk|KWks1S3|beo1y66A6|p^khY25`qs4IM{l zkJ8{B;v8Y;p}1d;O$Acgna6e#K5l?3=nV#l^UE^Z%PXoEmeR^2W-_XZRw8AUu_Ta% z;wD|dN$^~N1hJdX(&h(XTy|KCbhOHBmjo*tsHFIFyfU#0ur7diASuP< z8FnkVTvt9Up8P2?UQ3=aQoJwB+LgDiTy@(@vt-rUm33zEnl-D|n3bysOLuo!1zP3Ml{t?Z>=WJ-%?m(rh^JGXdlP{@l@+F~Z%A&a#gBnL+yG$aa-=n+5L{W&+J%MC)arTe|AtrXIHF5xlAUmhw;J>W zcD<(FnJU7tY-?*Pn_DrvtZY_Ud3#lBORA%^G*#I?XI5)jW!vo1N=i_E;RIU-wl-}q zGpW`&v&!eTw|7*`nLVq$w7jFdqq3}}eRf4z6@FKi&Z?ZmF?o z8e8N(U2EO7*E3^5hzo1^q8oSRt(>K38pOOpcl7q*GhYaBQ8X8VxVJ#it@!1tPOX`n~W z2@?a(a?wEy9CxN~LQyInmH5O8zW~ozuVI?SHFGuw8QnEusiwAWZgmH4P?pBJf{<+c zU{huQvG~LSPS*_55;82#m4?r}kcbBwE3CI0)#sMMN0Nzxm~N&?Yj+E7Zx+;U6;ZL> zeN6-XZS)HPT7@rOL36+(l#m|Vn>+dk-Ajky2;R|z4PnX&hsyYBfo?g5!LuyBcS~_N zhMtUqX3^i(Yo!^0DLBx*g?SQdBEGthP`XTcYrAxb ztEmjW*n84ra1DqxT7na|f(xbh$Sea}%OE<{&RRARwm13*nJv?L1CtRLLv+FR{)qNz zQCo+k$GTD-+rw6F=l0w4RDBqiJdSD87O&Z5qT$NARS* zZ2%OpvA8A@i-uSM((L zeg}h{?E!L;D_HNAZjR zE7QT2oo2(-yZUepwX5wN)tiFox0ykIW&>@lZVHxTRo9*h(iX7uFr^LU;~*8xhgd{H z=fP1017qtzIsQT7(G3*EfWzNu05XLDvWCA=QuG@m!4*UWW76E&mv+;E`?wJZ2*p19 zG)-)Y>Y9)}Wxh*FcV`52RWeM~Xk~Q>tn3Yl9*px;9wM~v8wjvEC=P5bNwx3DH=zqF z%~3F6$VyYlni&nIc7^5gx;aSowhs`CS$UHR2780%%z2xkV|3wo7$yn&-dr)+E-(ai-N9db}9 zDFqt@h9l(TIhY{_%F7UoIZ`}qhnIvqPq7RbXoqq_$~dT5{Ptt}-Q(RmemP}a)kVO-qLR&T|-za==Xu2txT3pdlZ1v`1T>V^ASJPNS zpDE$S;)f1GE(;Uoc1E}*r2VF+TgeFBuww?Kc zOXV$FBIhC{K&Y4?YQBhuA zSuq<+v#N^Hin_{Kv&$+gXIE6#%$`%Zcy`U4vRM^#DrU`@GpD?4PEGmjidp3~21*~! zY?GyqMzh&I+gd3?x0v|wayp=q+e zWOHu`wCxgHYlM$H@~YR0C2yLo3I-= zSc1tX^eRyva4~jSc@=+Ct{1&=Lp0;ZkpK#3^2k7YxiAux@00oO6rijSg2uF<~FmDl5clsVFCur}F znnsnh`iSiq>Lv0erVbmx*vD1k^pi{plHis_b=;BZy_o8j4%}WwJ>NTEdmoYRK6)yK zR$5(~({m1NX>lyXqmA;j#=j6#181VKo?1ZMG|kzMG8TbVLd5-4Of(paK#ZaGOeMlq zgzoaA7s;+7>{f6Xuu)wt_`GrWDDVCgZp|VPv@a zr%9P&T}|v7n_@6uh+JVjovd~)0Z=3U$Uuk4YuKW&zCs*s7&~l!8b*Kq}}Ne8nE_g6GdynEZ8ig+wXydDjL%!gVlQ zo_FpFt-@H2uK?G;IG9|s%VuVZ7VbDt%^zftRr}QH!l~8MgAG$@oeOQf#?9IR7rx1C zs9&>c{q36qx=IczHaXCc)i%I%wH4Z{=-79rO!#qy|H9kxHe6K5#!DEr?X@zFH*h;B zqyrrjryEtm2UH)kCWetPf|=S4Hv#;IBJJp>(F@%Ldo-a$X-oA$T-Y1%BMrwTbn_*p zBHcw#Nz%ZSY%eP@B`y(E^d&cM3a|>cV3EP_J_b#-dzb=9`^GEnDv_ zLMvN}S~`kw4{Il_rrh>=%w2-k26WjI+AmZ7yqKzt&U4nUTDiat{u9)vE}C36T!vUQ zyCq3{EZSYmPFWD`Y)oMZHrlyNxN<2(YIKG8azyD7?UtFeqwN4h$M=_F(XLnQoB?s` z8q!31cKq4eC#@AR9^XTE8pR`Uf9K|QXF-K=o~C+;V$?xAL$Kyt4lRr6M(?+SE4Gbi zJv!_jA}>s67jdDPhN4J7-3lGAd1`fYfIUz6`lX5kTu?RC*T-LWl969*CeOIOaQcn& zs;4cuVam*sg;THFu*tL$LmO})3=_Bv2eg985q&oR5soY5G1Vj%=e#q7jX&IzfJJ=~ zmReifYATEkAlh*aCRYgzX*Xo*>dawfKo5)eW)^5H}oU{>puZFA6ZMffa zGwcBN9Gv}3Y1823;nn2^+tUj9I1S6&^PqRMw6iyY;!9o-D}0^~Hccna*l`X74kK9p z4~ty`+SrL@7(}iZvW4uf`-@7;co}i{uC&ATYx(>((LTzamH9$BQX!r1cuK>hqZEv;i;e=1P>FZ)i6^NGE%@)7FQORnPM}wn)JKvRoGNFGlH;G z5^0d5)@%YTIiQ&yj7g^Cgxz_Fn6#@WfZpOhxQm5hcsuOmUHF^iPCC)%NGfQ7k(~^3=nUEg;A@&f z(H3vKFv!+SGYWE12InVZ`GgB8 zd#au9e-1GDV#Gj;BKlph3Nr%wUqq6K+ac?5yEc)qrLQk=Hd@%qdnh>?D(jX1+F0oA z=bMrzC6p6Z-e{m%tv{g6QvSF+@pZyxERx(QQ>;maO~4OKiG3!F$an%R zMDc?KF*})ru~vrjjrle8^$kmw-@bTFQ{A$LnnlYOH!WXvb3;^ojr$yIF?1-}h{v46 zhEecRc;R1?tx0#nW|0&9%p{^MqP=!b1RwJXHz4)b%&DZA8y$-dVZ|04Cbvsda)?cc zhE$@+Fo~TJi-XXH+1UxN2HMT2gE)!~sS@Yn{a`#AHzLSL>6cp;uw_IxE$mTSGlHQD zAFzY#KImt#doHF%{33M$f!x@IwKyp*_AXN+PwVXB!96y>rj1!=YH2xGJUmd;3^B^D zEe@8E(n8|_7rY11xUCfgqm>krke+qCWM(($XnAB4VH!`-mJI2qn<2>43be(nY2OT^ zI0jExK1to6kkkcR2t7}aUbm)wnXQMLk!zP&=Rnsw_grT;U76Qh943Q)cM+sj-3;gs zn}8u5(vAjOukIGw8glDpgLC&?ZP3Ee``w^A{D)(^)yq<5_-%eEC~JwDf?3053g#~m z&P`q711el8Ppqy&;PemLMX*D6fYYU}v~0jd=;YRnO3pQPNZ^^kG5@+o61QF#lPO+{wK}{0!YiW} zlXMfJV8?73}njwQqeD@bVIdxu$s zT?^rN5;RBG95*v=HOpq_m_qew2F-%r4wkwFQ>zPz%^+=I;tw!w^w`a%fVTRA>!(&< z4?iroc*A}ZEDS}9OUpK4pTwT(rvcrJ?V4uVuc7S~o`I|dgtxlV=i4w_FTUjB3>nm; z;^sClCbXgi;JubKH8+ANFK&f0`Y)?H^26FCjI!6P8k4ZmR#Q5R1E zOsPDI znvq+M!LJ;JX`01=-RZI|w3&G43A~0KC$7IvPTKyQw~1-#_JhMw01Hw&?V;8~3Y)G0 z-iC}spC1}Rm=~auc)d+o2R(u1^c8@SdfbcdFun-ym>DSfA zP6aq##xgLZRcK9gGg!DW5>7YpB67|E^{W~h`8bwYwsOg;$P@`}lMjjnbQgBmsmxI~ za$M|m21&=rLwWdl{VKAGgxy0AG$m3iL{!+p5oa+w2M)9~xi6~H?9s}`VqY-CA3*{ zHcfim04P#hq8@@nbm)zbiGsfOHaJ8JH&SsheE4E&?D-HOXt?nuD||YHcIetu%$vk( z!Y(vHgf=LmnKNg}^c~SZsgUAG1@l^XW@$h~J@2yyx7Dm!xoqXl^8&XcU^ld7=>eas zS<#wffOLDBngYx{w4iDUXfEoeg%vj1EnBV(%u>lL?Gh(=@-LThM zs~w7JvFZaaGjTcU_O@6b@^w_{SDF&(yTEOz8@9r0uxjtJcb6a;2{NV(`-k%eDyb*X zhiUVab!InKncWBJ8{j+ODj6Lnu%eIEqcpLYS!K2|1j|F~>;@Hrj(F42T6TSBD^tC= z;J|uIUsgcx^37sFGuEmpTn7~~4l5GPEUrjvp)U(!UCJ&Y)Co}iGM7uYyHf?gXjren z@CfJ zEv4ntH+_S)M=(nJTi`1U*EGBZoJTvr6-aVn?*Sr^Y%Ce_rJGTb#WI2DWn!=YbImLHxPBJj zWdP0i!ty3)d}gMZT3%}ziKUUjy=ImtkPNS&?@so>(oUu$%>TTf#9WFkytHSo6nB3z zWnc%rO)h(SEJ3Jv;aYSmk1sH0M=RfgLcLDoA1*r_2Y)>`JuaNTy?P;OJQ0r-+*E}v zsqpe~ES>1`zad(eW0MAg700R}Sn-yaIBhXY$jcw925-T_n1o+&?ZOzgJA9-IuXSGe zv{Wx4Z!4-5$*XV`LGl6X6V`ZxHq1T)PPdB`^_srERiGs8RLU#lgo`McpaoWlSc#$9 z{kz;LiVZ7j8sVU~28uYk!_8gIvQ|&ABB4}}y*fF88R^9t5a z+*3Wo25s(!u)X+$a_PH0?-nJdf0IZrW5iIB(?{$vhI%0YEjp>bQEE`!mQ}M6IR%klG#|d6?WCr*FJ6x zYU|eq_BR~3gR=6bvZgXPF>PrNR!KR?at&%NAX{#@ zCMphH6rC@iJI7$xpBhC2X8FSzqL<5N&7>7y>ADVRL*+ggSO z+TAid%IH-1@V(dsOYOq95FtcZy%{h#l0&X7G>gNp#jTiQKf}Ca?!zAPaRYjVXleJ#6a4Fb-^fias{ z=AMBT`$J#;T9vP?avK)BZrPN+y^0f_0BQBiCph6`=++*QS54G$%du#1gI@09fbIvW zh|QBo_&9BxIA|uDT!m^pug<&dwLrkA{Ti_TRSjfu)n@fmQNUA{Pa%@SOV$R zlfW9Qlw91%Sib~?cH4kV)alke47$OkIE`e#+=d^}=CGNBm0mN=UzljE_K)>kINLY# zUPd$Yl#Qtw3o(t7`vqfV^NaQp#E$ulSjb>!{ z`L*u^S!FApEgooBhx1@6GIwm)nA*6bY13V0Gb?7lV@k|YBpp_@x~%e!MHn8?+RO&H zJ4J>-q7ZgFIF4?WCW*txyIJy)TCkjy9One>k|KT3(hZATYF9uKnK$R`G}DgV6Tn4@ z7ljV&NQDh@d*EaEo94kc!PcgMY)k=4$~VqlhU2-0*L>)Il1x2#HHIZ*F$+&?j|rbh zZN#cpisRKgD?IsBdD7h>s?hx6*&PGzZTW^BN$jgJlg8;1isEMEBvDP)k$kL_VfQ47 zN!vs$6^BXjd7<9l66)wA0PqxF9^}LAtfsCARj~dnn3<*EuqMz_sLGhUVXaHM^qrTM z=x9Uo*yR(`Y7nXmbfCcQYN5JJcIfWgx1tmV6L?jV4}wIMdNauoTLS4tPqz0 zleC;Ym>JXRdF~=z$L{{oL1md6c+G%C0+Adq2A{I0*D`E7@-ZA50nOGGkyJ}u-~*Nn z1tp0E9EOJ7a{yv5_Boj_h25(kex43C`eA4AnltU*Hj8r~-j3USpla9(;syB5aEd1n z2tz>9ZPuh6lX9@#!Y~339>_P=MFP^qdL}l@H+L4=2Y) z_=z|LC~z{@PFLc@$6G+nz1=AY5ikI4D8cEGj+kNUjmPndJ6t@IwJq#Na%n&tsrt@& z!ZcVvWU~Ug&DNobRxP@vwyAb` zO+!P|l%|@7$f)E#gO;A4(X~G_TqmAyX_;vJ$q^ir0P0(Ik=NI1J_?$|teFenI^hAD zp0%bXwvLVNe=#L?@l=Ar(2wuumW0>m48VgNhwsEZ%K% z5xER4ZV-jOBQOm@S2;2u4DV~9oAa^Z0anAZgz6-o=+2HvXEMm7h|?M5X9~0M+J+|B z?U$`LyYN@EVntCZ)wFc!)~y2rZ;M3*OP9{ux^*7b^lKYyWAWEFUhk0Nh6cDlWazyb z*CX!QV5^$THTqzbI=~yT#-R z+rF~|JE_pyTI?1FUH(RFYX|h2UNT7Vb{<7y+_B1rn=j_#AK8B}nZXXh3aHyRi_Q#2 z2L+j&VzH4q3G*zQe~O?@;&^-djdVy8ZK>L`a>aDI9s9}i-+9A3vE*u4ys|F9P$UP( zAV`a~%5!Fn={76}dVE+M=IUW_tKhl;ziqq^vmt1WfA)X;KsC$$KP0&+pV|UPc$gkB ziJB5{qBBYil+^A@b+u66B;s*tLfe-9ma?7<*pikl?X~bsgFQ9_x~y$irdZfLps?X? z9qe>vz*p>S9BOUP0IY#8Cu*DlX;{<{bF)s=A73s5b1mv^=}+0LZgAW6e8W&HSP2V= z5*g7J#@Box1)yn=2dSLl48=m$oa@juG#=E&l_@1KXm6(%;0$;PWCYGcWr%De@~5Yj zV{op%Q7cOt$)^TB;qj6OutnFI9yPeNuY}8`v-ZP;n_GoJ9q1XrQID;~u#)U5Zf)%y zbTv87GpiMPgt@Di-mFm5qd#e{Jb30o&w_DSl(){+XEBd8hcQFj&EVocY3ttm_D(1z%a zs*(s}dm^@laTWkQ$BSPl*wSr@aLIRfP4HQx?d6yp7TP0Pu)lXh@j*s8kk=fhZH6y# zL+z^i#dS?hIO*DF28Vh~7kr}IOdm!d7Cm;^pKc?j%cbmgdbl)l&$!}=mr9GUl`i*F zq2jP0kcw*>Yu3Oap=nhE{=feJq{EmrlMJwrXxtcHX!STaD^3qYlZLeK*^G!y;tv6X zTd4N(f|`^dniDt`O-Pt5O6YbZ1I{jT_f=CL71fhzH1S2zVm8Xs?d4>*chem$BHd)y zoFNkHYqFMeAKO`vFKmX|+8+BVDNc%Pjwz{_WD>6YYkRiz^zMKo5M3M!_vNzUS&;O+ zvYU#H9Z|^G=>`ja+iUjH|{_`lDFSx&?EK8jf>TB%OHGAXuFyG z)a;UIV2F*d)~As57HM>n6dBtR5y!yKWeIEq(fX3PRrWtyqTO9~wI()U9QW6=KXwy7 zSl}3VRsTBhLrc$~i&$s39BT%b!{u=hR?o<>i@e;5+l)(D9xPZ8)Gx1TT(WA-il!Ac zwb+-NHZ3TKt>OA)U$X!gK5xfjy2XA-FTF^!rFKaTE(nEVMQ=Y{v2JRY(9pN%Z>jct zDgMgd+TOlhz#y6-c?Wkb$MheiVPTO8TmnhHe#LUZtx^(YtF;kf;n8M3ybaiphd1IU z?eJpRTf4-j&ln?RA<-I)Y}}kPObdqmYA5+ahtowv7J7@m-EYu3^6ZglGc{Gr|Bqxe zq%kBo*#>c`E!N+7cI!XqCXCosyzn+rHn>ycSPo|7*ft>+C1I9O$UD3Ha0EMKe9%F@ z$`>9cUSZD;n>X1QxSf#i4>*)P^2ou)0=2|IxIsG1xG21u(p+XEd5MkcQ&&SunHZ(DD-t%;-l68LxZ z;_L6+peS)#^qN|*F1eA>MhMz!48 zapSwxtTjZXlFlu=f~dkJE)}^xpjIu$n`NWmjbcxsnu5!1j6LFGCK%M5$U)X09KB6z z9-735g9J-U7!qw^yf(NXjtaAdhe;A7jIjhGaT|MjAE5$Hmx){d{=7sHi0z3duu zc8#svnp$T7F}W@#rpuelCPXdbB^L~hvQ&bl(te&#^100ck`g8tl(q4sL5MY;9O{X# zQIRnv6^n#)UdWh{2pWB`&b$0FBUENvn`2k|X7?15o)*WY^LR`AI;;Tj(_r;$LkrEL zOO~-v285s0SQ=F0{7Lu($j~~Oa!O$+$o-_u>u6m>Fm@n0yn`+^qA#>8zy(L~jMW9M zURaIrK>APcFR0g?To3U>6A=;O|0E0Bg)|@ zkg;I*da6n^%@(B7X;@As8)8?$8MHvH5S7WI8pSb{hLsbgK+7&jCK3a9(}fe+mt{*8 zYbKHkH*;5{bz618vX!L4_Y7uzFCFdfr&M4ry`j8RkXv<$XrZs7?Sq?Q{FRYVVUI>s zqbwJqZQ_*|N?dy@PdaWg;5J7+i-kn!enBj~2%OJNU4(}_7Rr#6(Lm4P$UswK1WyNS ze<6-q6iXGomn=H*JmI|Q^bR|lQySNiWtA9-5KBBT??|yskZ~^~9ij)g69HB%tcF++ zI87pfWGrqV1W+u7nAu+G8os)`w0}l|pLs(F-qpM(`09TV1EGlU4 zDWG~tzJm6h1*w8m7yi?}odL^@1zQISY76MV1_JnYwS`V#bR}j1isO4qk!=~SbK@%_ zmf!?W!5s_VVN$l*OlDkZXPZWCLE}IYTw3Rtwybgn^;N;JZY^M1S^fx9qt=mrhAxlB zL5$d$5+N6@(J_?eLk6{-*j>aW!R_HV+(v~V9Tp+%2#+@MfQ)(|?bW7wjumOd`U_pt zwpCOunq9dF46+b6#8+3kxgp;6>V>l-UX_pcL<(c1?c5{{jQ9nsdaP{WgUwcgn`nee zrA1|>kG~YSdd(NCpnBm=R7ZXue$>u-OAn8~32lnF1RaNm7!OvI#@d>}=Q@#`9&Kmd z1j4x9x8Ja14W1es%EQ=uqKw;6qbMi$l~5>@iwSZNEtw?J54MAmiMk`%HYo(`nP@2P zxNz;0G*O*yLRZqIjd7KLID8>k+Q8f8|g4z*lF#orD=vyJ=O>3MNw$c_zef|~(S)b4Pl2-!x& z!Zxw}WE-4ww;*a^tXAj?vyD@Qs}6QLusMYI{24HDoV0vr7bsD}pY@OeC8vS<)lvDaO{Bl3>Od{)TXNOe0(Z9sozWm(0NHi7RYBIK2e_q;ajH!OhhSm7~@6b(EZ5 zi?ZA}2^&UqkfLaEZeK8kh8#8q`_FW1}7~;C*z;+ zvf~Bt%N^YPmX*QqZU&237izKOf`G#qt-1s97}FU_Pa6QN9?Pg>14~4~OeP;DW5z)m zH8@<$4Ab`UY6zRym>_a7lY_KzIu*ENcYvWu!l3r$cVJ3%eBMRs1ZI3Nx=62hO75x* z8l1fngW7-;mQAu)uVQSYr3_72NQ-Lmz<2To%?jl;u@CDB=u-`s#OWzG6AF$B10E}l z`#Az34Dff9{^Q}_IQoIV-Fu2_Ops$A=)V(Rsm6c*o_^vFu2}YO_cIMO{Hyx@YIF4} zi8Yv&`R~BoH(nsTxhMYwr)&T2cWcaL7hh~lTR4vUuWA$&yOR%u0F>+9iaUP4^KAcFv2MXAP~Z12u~u+onp*cgv+NHGi7y-NnLNu za)hSPm`;R`Al!qnZn`o15k8ObFv8RfV~!y-HyCr8o)Mlycno3gnjAB8Cg_0h7{XF| zE;6PX;XZ`*2+tvGM!3G%m_CFPOV9>{XAmAlcnCy)8sX_OW6mHvISU=tkYnmAP#(gW zvr$ikM-Vn6T#v558=;wldLn!t;Sq#YRmMDv@DYS35$4WCc?gdq9N&m^^NguNSUn#d zfN=dnG<_|~uLk`PK8>&$;e$0OA7SYtl#lQ}ga;8WuSGo(POL+@2#+sDdFyga^Acm0 zB0P69@*#Y5sWJNyj#*~R0fgNM4O%a{id9^K%X*AO1q=$Q$(qn?{RvmfE4$2=3fEyrwJ z=9_&8CwAAQ{7L!a@XO?)dq!1*nd>|=suV>%>YGtZbIhpaxh8i{uE~FPl*vCm z+Kk#g#*CVDks0&!MP^iEz8Q5I|8`$&#+=5#rDM&QLt~Ne5`_3Sew-OIh<_)>nNj;M zHIuu?n^7|_Gow8Fd2xcE1_rPBdel#J@>bnK65= zGNbCRM%-IWe&HnJ9i3$IPh4yA4+Uma-DERrLV+1|xWJ4Vdz~5eEdK4EV)E;!nNg>v znf$>*GiJ(kGiERTotbV%9hzarG~QrFoxQ<$FU>TgI*UyH%wohBoBX~KbM2v7#+z7S z{KqSdw|=(qgE_|QoMZgLDwB79p7GD!h_Nx>crzEEPZt>PL4*eunA}tNU3U}4$4zL< zO(r*3X#7X2jkmGJb(mpe?Mf{{l!*^lx+W-dB?z~n6bjPZ_r#`qf_#rS>H|GI@vo7HxbS-2a5}cRvC7fbg{^jCc0SsMD9t=(?wjX@1IhN1ie{Pycsd zM=-{Zn7rq|X>#iR!HllL*j@fD^uf1G?(uIKfB7+!_vm*(%V$B$XHDMD?-{@PxEX!? z`^G={17lwL0qFZ9I~goJPA&qwfF1 z`1k$7#(6#_tkI8;_q;=wdpQqI@cgqAyqu@6@ciIPFX!Bqo?riF&!pb$jomvD^6Dzj zyZb87KXsLtcl0fuIsO*U8#BqvEuG|@3flP~rKHRCwNLgx#~f+=H_{zqHab&6S>a5aH2EFQ;mb zXX@v8ImZy5Lb$%lGksMk1L4^!FL&Zx&#a&8d3)!2Is4{$xnpkhyz2ShrNIJk+_7pe z=j0;KTVLy$?pkkjYKiBaS^~L^aO_fV+{Ah>=V-m>Kfc<_JKNxSsYcHXHhMYTYdvq~ zIxi+-xQZ}%|%kZ+5ZcW|qBdEGY8 z+q2CZJ!Sy&z<_sA)m@%ff46tZq<5hn@AAyPcX>Gnc6;W?ZqKW_#~Xd_Jy0~>>*Y<{ z3%c#~F6z6_%e(sl{Qi)4_0ms!dFD|scmAW$RQ}q#sQwF{Kjn*_ss5tp?L@fui{9w- zhdnd)OP)Uy^UnOoK)1)dvB&-vba>qJCq3a^eCi2r^vtKc+yhT}-ub7zyzZ}imkb{D zF6#b{H~RVSdO3%lL%YA{`4hhnUi!Z09sa(Tclw83&gma{{@@Fqck~7D#|z+}6W&E9 ze&%@-|JA$b+{>O<@oT*A*WT!{zxTZRe(#wFfA9Gf|L)~I_#bH3Yu@NRuY>>2dwGZQ z{haw@{m~P~`QG|*zTbVRpHn*C&l`Wa@9n+Z&)Ge}_s?AE=RIJfAk~Q zB7U;(jW0mDX@1UY*Zck>g?>)+bl*EU-5-B=rtdcv`Ce7AZ|aJD{|Lh42pdZtf6?;W{G7e(eecQJeZS&u{^+F}egDKp-<;X#kM3?ly;^*8 zw8i(=xB7W!Hv9hBPE5vKer|J@k2BJ~Klbf@&dIm?=HwPX_uLlWm~KCJVz+P3Z}q)X zy?9r@Z_f4m7vDGFn?nPB?n?-RLEq~f^mAWBICIF)J--9A+vQ)h?@r$wyVLh3-R1iS z?()6rcl!R!cOl&E=RJLopHuM{zF+umKezMUzW3U@QP20_J@4^z9)GW&d*Z#Q>tFig z_TCE`-Roca$oqZs==*(d@IF5;^+A91@%#Op{SP4S0e@WIL%u)pVL$KLPx$`)Px?9M zKI!LGea6qJdeqN5|5<9N`&+GyfmopYnM>_vGjOOUEDb&7?zqPW^vF zzy3G>l1IMe=T3Ue_m4g1kKX&ZpZo0Ne$LZRpgmvq^LGB7e`)8FsP|KT-jT2RUfb^K%Bj z?R)3G?dKf+N6_ax=*#c;-r;9KkMH{4ecuHiJO`RS=liD+KKMQV;@7_Cn~LLp?#APw z$8mr3;phFljW2))U-11$Paw}f`{v+3`xh7f*!TAR*uQxEi@w+WqM!Tti~jg0Px_bc z{t5c#rzq#AzBlHSZzi7dz0@f`ckd~@<7epSfAw?D{M`5Vo<{kn{k%Odq1=~2mot9e zqi0e6??CI{`Qv83>R&eLHQzt~NA&yaer^@?zdD2)5$=55_l_f+bl$(}6!gKD&ifN9 z{^XnafAZfv-{f4`os)CL-8nfBqnMYB$-xwogQ+YBQ)v#S^c<{nph*~mbxaCtpVWB6 z>l|A5&|0XGFvRhncPA8;op1HVkG+=HRud6hc=}Io(4R|V>c)-#g!ggZJ;(DHcc;{xKi9=%e`+03X4>@uzJ1Qc|+% zZ{xV5UZxBmyZDi@fG6SK^Y}OM=QbbJkN<=|?(zSo5X)8m8~YEIh_7Cio7VivS@1yc z63L&I**?@$KXr8gj2iR4EalU>l>YW6$`3f!n2%)1PwP_pJEr76 zoFzZ4XX$UuqV)D5ire43iD9#Iac2A&)(7-H|gi9stlyI+v2PHfv;Y$*Z>CW8lXTN0M>*^=f zp@8dO_gFe!DCI1buv5al5+0QBn1nA$m@N0cze_LI;Z^eE2=prYOTj)se~uoZY~ol0 z_dENy^M^JZ^CKJXy4<#R@+e6lf$PWDp0nld`;ZM6oE0HvAHz&qdRM+t((jdWUHRjF z^j|AK9B+y89erNy3Z(mSL?_=EYP{%!XCNxpIP zI?-zJ(-OM!63sELe)FZDU3*-5*WVMDWai)fy_xIb=+uYx1pOVB(3N{xq9R&7YR_b* zlPkY;uPvxqLRY?#Y>sMFJ$<01gf+B@ORwxB)X>%)#}nG>K{n?cR5_1V*ywB3~WO5SHB|tg$qyEZ<3$G_9gh!rBAjm zeE*->K3AXQ_;vib5jHjYbNm_BC&8ZwI2G1cJ8k*{61w{QZc=)M9Q~5~8S;OEe%S8h zza+iinU}eL9KDnCUs(SHKf3fu`TSo^e_)i%TO;-)t=Zm+Qa$Yc_xL>hyH3f0O-npDWL13yX8( zJIVi#xbzABcl}ilTP6K9OL$1qj}J=@e{g*dNxCGxU44`MviP#}{tQc#{@eKd%=D|4 zg!6x5@jVhc`Qs(pUr4lHOYi9A)=Qnwq_^YPX#1k(r)`06i4lN)I{a?I^A!9q z1iwbX4+wspfp=UHiHOzf8gR2%Z?GVgC0DuF?N~!7o?J|Fqy*{SIX*{|Ui0 z`uz7S`Jc}6{^tbO+J8Jt{vQjj@$df-T;q@536A}wv_IE>qmEhr(b_*&aBcj)N$?=8 z^oTzyvfyh4*T(NA!QHyfy~fr5py0L@4vpS_NN_igxD+n`4+YoS|Dxa;eSazVC9Yrz zUHPvFuGQ}kf@|_+)VFO;4S$p1TK`-vxYoWvaE<mBHe>d&V@z;xj!^bu4 z&*8rnoV^TVDIESM!LN*A^wZ&2{G;VR?fp{)*V;EnaE<;;1=sYGI|QGo)NhC2TKnEB zxK{s%1=r-`-w3Yt?-PP+HyCuvT!bea(Vv{L?46R=;-%uE~!*f@}QsLBTct z`Kv7DKa!>V&t@tAi-K$I`5L}zzKPI>~e>^6* zM&BcXYxR3B%ll6Xu8r^C3a*X6bAoIA_n(4m^&kCR%Ng4HuNGXRU!maI`^yB^Y#R*8a_c&r>6I|o}e-vEn-xspv|9KYtw^{Jlv*4qT+m>ndf0N+a`s?Z}`KJk9pzy~s z!DlG=px~PR^8vv%`TIG+->Q`VjNqF5{E6Tif4?EPv)jAZIQc*K`96fS z1cFa-9Vemdzr})It>DdqlaF-#&*guI;9CEFP;gB?d`xhSKOYl(TKwhs?cV>-f|o1! z*nhJ0xk16J1lRhnPH;{CTPe7GOY{;~zcpF#b%Ja9=?1~I`Kd*4jXrw?*YwK=1lQ>E zRlzm=;CF&+{C)BBmNM5xq~TwVJ|%){^x+VG^nX%tt$p7Yyhx$n8-i>4@1;Mq^w-KS6kHp>a|PGr&nm$+`7$WDHa>O=uJzx$ z1lQ!peOb!imnHwl1=q&krv=yK>(>OY*7`?qt^GOTf34|{qXgIHxBM4u$(sCLBlvYn z{XQr7bOryu;M({(CAe0)#uBD-_|^Yx>t7Wj>G>N3uTk)a1iwYWPYJHoKlrhIzowto z3a;gUx8U0R{87O*{{6V%g-ZRO5nR)Mek%CgO8yNm+V*Ms=|h4qQu3b=d|G0I*7e^T zCvEwfesJ+mEUwA-34&|#?Ja`aQld(__g^cx_Wm0L*T&ae!L|OY7hKbSTLstT<7UCN z@wY7tewX0d{Cbbz+W5aO3;tJvYxMn?;F|pUjNlr5o)BEqUruIu|EVnRe<=%oR&Z^8 z9`#e(at)s(ctyl|{LAs*YQZ)6-z>OBpMJr$@&7TwHU08?f@}Qo!z}oVf@}KC8NoIE z;tzsr<7@Q4So&(?^G$+l<7cAa8h=g_T&sVP;F|m`6@04Fzv~3o=KtM-YxRFm7W`hp zHTm$M;F|nDB)Dc@|GMCs{q~;(*ZBWef@}VFqfcFU{9GfrCSNPE;J0SMTeIN1vf%r& z;GfHae=Q6C!z}n2!L{-8N5QrAOTL^3)cB)7aBY0d5?t&5WrAz+WtHF>|K2XR#-H7S zYxCE`f+y6EQ2*SY1^=kvTKx|Qu8sd^1lPvTkF%72N^p%nFK5YrR&Y&!`h(z_eEd(r zHT&hY|7vq;<9mVNGZp#xcEJM$f4|@w{XUr`|53rU`Qur^uT|cEMsUqOH{s{D{o4Aq zRB&zl)CjJPpW6i2)^GiSYxTQda9rP&_UH7E=LFZ*FTcxzPdIJcUz}EYWIwDGT1#1A=Sz_rro~d$Q~KwIU)uL;`dhK! zbCmoYg5Rv*Ul9Br1uuQczW+J}?-E?2-wwew`LS1UP5ypXa814(5nPk6#|78)uU`tT z=?`yY$$!JIEPZZJ=yRLkTK~OGaE-q26kL-(e8II0E)`tMf0f`G|6MP*wmz-QlD|%HP5vztTpPc439i}y_hrfd_kv%q z@Yl zlK*RhYy9^E!8QHjb-^|J+a>>IYo@IqiUil>*CN3+{#`Bj42Ax83*M&Srv%sJ&+CF~ z_SJ&l*!F4kxm9p&e%&d!wtw)L;F^5?vEZ6~uK2C3pZ#w{1jnCMf@|_?vEbVHS}nLX ze{K+5oB!Jc*Tz?m;M(|jr{LQ9@}q)l`peUTYxR3p@E{@`|8n&Ew=DTz5nPjxW6s*1 z(b_jra815!6I_!IcM7h}U%Lg@_~)a7YwiDg!L|Lx*9F(sf7krZw*NYXzBPht{I^2z zSxWwU1lQ>Qpx~N*en@bQKFDY#}I%X`J<)XKk1a7}-nDY#buIa$iD6*T(-h1lPv*(}HX3-xGps^XJQg-=g&I?EkR+ugza|f@}Kc zM!~iAr3BaXuPuUW^7AgiJ*EEd5PXV)e_C*DeEyB#ntpjS%lrRcaBciPBY1&Qzh4PH zQ^Bu%&6ce3-(;M)8$>JPSMn*6y+aIJqz1lQU>PjIb&77DJ>w^nd%e0FAe z|3H@VcVsF5oq}uif4AV8{P~#R+W7jK;IkF}J|}pof=~UUrJUA3Hwu28lD|ptK*4us zDgR-?wf_64;F|sND_QU#3$DrEmj&1Q=eL4u{PSv-{I3hH*}tZ~ZdrVK^~+kp zHTl$<1@9GHo8NW_uF>x=1=sYGhXmK^|5?E``~O!3zhB|673VGeH2ryt;8T_S4+yUH z?|#AGr{pjAPy2pNeiaFRosxgG;F|upLGTtO|5pXq`tKhEx3!E4ar*VQ1=sYmX9d^l z_aniz{y#0aHvhaPxK_XOf@}4ALvT&MnE5ALa!J&5{^i=gQE+X3+ab92{yPQN z-&&RB{p$tS`oBYPO+IZCT&v%9!KW$o|9F=CpB7x>?=K0i&9Bc1uJP9o1ix9S-_^Oc zWg2}0!8Q8aAh^c=Hwv!Je@g||`e&Ws+Wc~d;9CE*39jki_Xw`ZpU(@f*$=)dxF#P@ z2(FEfp9!wf|CfSm^gAcGHopEN3;xF}_`^-$iHU6s#75V?2Ecs6euJPYl!8Q7g9c$^Y z&3`il*T!$P;F^8DS#WLq?GjuYUmq4+)6WkJuGRlJ!L|8$%q6z{l?weA3a-t6je=|A zXN%xPO8FlVT$AsI1lQ)jZwX$el>Z08=PP*SINN?rzSIe>_1`AJHT|tya817T3O-M% z-{%FNs^G^3*XsXM!EaLXUnAdb(&$?yxW<2L1=sY0X2CW2pUQ%F3a-hQo-FylD!A?C zhzQR9{r7@v^!wm=oAdf8EB|u&zbv>m|9@R@P5*mYaBcqjz2KVs9wpzY()eSh;F|ne zB)G<(ErM(G=@ne-pCQ4M`pa=?@VYWfUr(X$-I8DHzk39qqU8Uq;1vq~n&6uJxmdne zt-XJI7W@jqHThm5xTgQzD7ZF0*9l&rwC~GrvNhM{*Pjcn_1~`q*XCDmf-PUG-z34c z_05ffYxCFbf@|ZeRd8*7+99|$em^O=Cf}bFT$6u46kMDCU&(@BafPK{p!8p57W_8B zHTl~rxHkVkBDf}B4hyc$Prnv?j#B?M@?ASkel%yndj!|?_jd`dt?wTYT(h4(DYzzo zzLEt$k_G>o;8hBJ{v%8NKV-pQ&w~GF7W|DYxc6qupW6I2Q*e!b#aZyuEO@!#$@#<0 zzjFoGJE0Y<#DLPf9rE z12%rWga;*jO~R!gwD^7rUy`uuej9&S!V?k}?z8bbB|IkK#0PAAr-Y{@9P=R?zh1(F z5(XcZ`1Lldm*>M0E`89(ACz#+L-x5-!ebH^K5XMB{*?`PN_axTs{J;8zl5(zXg+G= zX=GJL!)xT%2n9wcFhYS53XD)-gaRWJ7@@!j1x6?^LV*zqj8I^N0wWX{p}+_QMkp{s zfe{LfP+)`tBNP~+zz79KC@?~S5eke@V1xoA6d0kv2n9wcFhYS53XD)-gaRWJ7@@!j z1x6?^LV*zqj8I^N0wWX{p}+_QMkp{sfe{LfP~iUx3RKUqCtR0HxL(4Pgnbg;E#agh zo4!!OyCrNcwDH{%?v!wkg!?3XM8bm-R!IJ8371Q_Uc!`weG=}KdORrM0SOOD_@snS zOL$zulM=op;W-H(mwFtP(A;3#F;>Ef5>An@RKocZE|suR!e$A(CEO|D9trnJ_=toD zC45}MqY^$V;Ry*(OL$ho^Ae7kY3n;d!a%~A5>`oACtHaJPi_Nw{CaM`lfSlWL?!ebIXFX1T(&q(;1gt@}E<0Yi~DCkax z)tfAR?tg3g3G%l|{6`b<%@Y6VM0~r%e?AevUE-fe#D7TQznO@CO5&eS#D7ELPbT7z zEAc;*_+-0Yk@#OG%DLzcONV5;#!LL~6X_=^>8D8i>xuNG5}$KzI-O@L>E}s&lKzV& zK3PxdPdekiTEXdl3wpDAU#p~Z@7XNRuKaF!cICNeM^9HTR}a_kuAg1Mx_)&1=E5t4 z4z3?uIgZZm+0oI_%{{yK&yaFl=+61ObK+<+{}FwP@b4YcuK9_6_=v>coQVIT#IH@n z|AUhLq>}zsiFfp~wKC?arp)87QsR^EU8}@*OMF|Ro}W_6|AEBsNTkncw)J^WB7UO8 z?@Pp2N_>)TgG&5kO8iNQPts>pi>*)cy;CGU`QBTV_-zuOq~|9k{u7CIJumTx6Y-a{ z+WI8lTdKsTBtH4xJrbX6?^h)L8;SS+Sc(6G5<35oyT9Xk2#?)PwV@*eys zlz%Rc!lPH&_PMw*W25^zTwFX1@WAhQw@vqw^!HQJeo9OD|El?NH_D>Bf0FmtxO(pu zeazLnGg1G2@;suirT6oQzGmg!|DW|Wx>Kt3?V08JG9{kI3FT-~@F6AsLlU3VdtMZ| za8APH^O)-_Upl#!N$(`=i1OY-$?xvZO5SILto(Nm{+mhu{fEfE6Cy{0ysOjSd+PEF_v>zyMSYR% z4_D55>5pvXyayG{#AgkO`ruU;{0o3m3vy+i-P3L9`Kcn?E_&kn3VyHPH3@vI;2#$J zXaXNE_(zodj^8gHwD13GNjF}e|5l!_`LM;Gljn(opO)u6pbOQPXhVN(LJvomqmJJ# zY>vMvy}#B^u+Lh5xBtKFy$^U@Q`W$JZj#n5p=lKv4bm!;p$Ll1OnH+gB^~_}O{zgh zk~X(ZNRunM)s&dI2!bH3ASi;;3^jrxD1snHhoELMqef7~C}I>DExxtS`t3G3&29R= z^M23sJ@41sp0o1XYwflFo_+S&=bU@-7k8BA12+*xSTt_^c`U3SPjEzxl%Mm+Pvw7@ zAL}P#20V&L`S~6BY1qm9B#K{YGG`S1+%!|s@ylvlzlX{Tr4+1Rg#UqSyFTzIR--z})}aKiV6ZF?t6+UD~Z^=s?7 z*;CK?p8EFxOzS^Vdp&`_j-xewO(pU^QB>wTeJ4;~Uy@I6d!?Y?jNW^EPei}ld77@b zJyX%|7eSwaeryDNCi>$e=%=DjkD$*&{{s2<<}U~Rj0o{_(a(;cpMyRxf<7Ppf(ZIT z^kotBroWnYT1@^IV|NLB6I=&B4&MU539o{`g>8N8U9Rocf_^-_7S4ps4?%0p@7wNeDEBR^PNk56=(Bv#gzxf06 zC~v>6M8772z6gD11bqqm4YTYyO@#xM)cnx8CjX|Csj}6ee;56F&vkAs`j60$@XTB7c=n&(-?itxBFU5aj2^A+ zV(YDDg0_pTw+8C(AnZ~P*7}Teej9^bCw?@Q$osIU20Fi4Kapeh*F?(CF*e`FX}S8x z+MdD^G*Eu5pY3A|91D=a zJ8!r1qBA+p$6#mspV6C70qNU(G<)i${gD30Zx0-)JoEks8Zbv(GI_ zkoy^Op{DPBe&zlfH2g{YSo^CRHN1v(I~(4#Y~XU#hc*0Nj~|}9A zXU}`V@jISRt)c!q@uR6k-iJjs(EP>vi5#=PCer-n4f50TALhsU>7Qz3ij<#j^5Z{2 z>p8Lq)r3V1R6o|wVDYU!QhxqTep3F!{8&FWy}@Lp{0wJ4QS=|?$NCv8A66e}es&o7 zv37&WL@_W&{wj|5<|=Jx?|icv{gddu>rt!GzkuF*{nmp1b@bCbb2&dzu3`0!tp-_}Eer(IH#`;V`!aHRU2guh;opGfs;>eJ+`jq;vOKE3x{ z*Pt&zpTK=^6W1I+t>_n^_tvK=x2ZE*Zac5F`Hf4_`VkZNQ*(6xa@+7o<<6ztl^#Df zo>wMHfH?=YlkdYhuX@ibYtjD_{l%VsVB6C>U$^;b^5iFc%zv+30m_y5%l`G_Esy0y z`NOQwcaZOMF4lP7{=W|W;t2Xq^wkmc>(O5mLEnY`rU?2C=vPG0ccX8Kpx=o8r3m^S z^qmp(o6w*0z`*s>i~jux@wcG=GJ@Wz)^@h{9dkYFJLXt0?PTwR{D7ZmWWptyFMD6) z1b7eh+34oof95WnT7s4^uLAoyHxe|KIIAU*&G*V!1j0u zO4-b(ivDZ+af+uO=N{`h9*$Fvbe#VVf9iekeWI9{`>Qdu$3Gv}a(IsiKl+a;$57As z7K{Gd2>LkmKSj`wLceGA!0E@MPl%vTK!0Qez3ES;oEcB6|Fc?DE+apw#JdyDh5rB- z!;itghuh#r_-(iiw(XrNX`9crw2y74o?mG`RO>iJ$M=rJ_F@y|+InqCW@y2cGy7&RwjG;2?bzUH&(>dR`$if+?#5r|#QyzKiZb9QQ9{jcA!kq@saI+| zZ+&K>KOMc_Gk#1(KR1Ft3;lWMz4NOa^cP3a=c2zJy*Gbz(BF>U+h6n1{~?0D5dDLk zFOT$;uL%9K#6QKOx8qYwjn?05*ggLTiJAnkAaL64^&H2q5Z&qLVt{8~BE_0%KS^`5BtCYgvLESiC?H?5zD5j_esULGu4 zq~~Hktk?X^=D4-d8<%Rh_x{_;n>F0~yzB+6TX~|GDM7yC}0^R?yr zg!;7WZ#H~>qvq2azBxkpk_h2T8wU3CJ?n#B{|VGjt7n~a1b*^8^_g(D`nT_G+Wdb@ zxYvIO|K9p(i(r3x1p9wPu)jTm{l7S#z4`QCt@(ed&-*;43=8hnaBn?aO}MxJ*z=h! z_gMVea#^%binPy-kD*_sBhNxsAnkEr^L;bn){nJ& zh;Z9aUxIg5+WNBn#MZZc-`4scjBPyIF4nKjznSZqkNtgSB`4zZpD#1cT03Wwj>}uw z^GBkvxxO#qyi`qlEIq3Kx^WQwjS=+ryp@8!33)cM1Npz*Z|r%?yRKmCA^s%o-?kp| zJ@wH9oA|q)Gm=W+v+F*f_M899_W{ij{tV-M7vrC8|4#`2+7rIpO05^~d|({mQJ(YZ zaQHanX-I2ljysc&w{BCv-t*|n`5Nv$k3PqI$ZOw8xYyo{PiCC6=}aKM){o^9@^=x^ z%XU1D^gdgL_3L?0eJTD1i@%Wg4`VM`c0ZN}i*L`X_B>+aTefF|%A54BPGm}has#p# zY2!z_PW+nlO?;}hQ&y%;!N%+_69rRb3voVq`F@S(y^mRm{x$T`o^`=0^zWe`>(PhN ze~#XJ9aoLMH-f$fee5dDpErIj`h6nk>(Cz=L0^yl#0dHZ^jQ(~%h4~4pl?KfNd)~0 z^fyP)H=%ztf_@eHwg~!W^dCjguSUN)g1!a)P_Cm>Jng#%eI?gp-gTc=^a~>B+t9~F zSl4bxzc2b}p7htEKbPxrZ~7hRFF@~I*ItMIkO=-e(VrM0f9ugtL+|z9h5n2P@i(B4 zw65Qc{`?5>H=@5Lg1!g+tr7H_(A#yAB2WGHqJM(;mw5DB(7%e_+dj@^Iu3P3(8r+v zHbVaV=%fFr$G^9IW6|#)K_7?yQ1o|t@;?gwN$9=(J0AV)2=Nop7ooq~<3AC72)*|{ zO!2pM?H8^xo%g$D?mR@2&r2^ber-*53s5t?0e|HwFFc5#moo{}K9cJ^4>X z|1Em&bHN$tV;|J^-P`lra3=bnq5ru@KNWovdhdPpEcC~r_qM;8k4%*9Hr6N7u-l9E zoFII}eVV^(;g#qggeRka1GeMQ_plv*MmMXUGq6vCXE$m10{DH_KN{c`)}fz{0sUI|HuRst73BBlt2Lcw^uL0i@Z`s?BcF!;RqQW>54%PEJPfZ#|2Ayr z&pq&W%-i>URO7Xf-xJ~KLHlGJ*AKOly znQE_E`TmZa{?|kCvv%Cx5B?9^J4k)~iF|tRYlYCiiQfC1RwepQ^xpQWLf?gcmS=r1 zj6TwH1J&p^5#Ku>s6oG@_XJG8w(ki3?PT?v2+dJ{}{_X9bt$eZM-8|D}pX;*y<3;@Sdi+?uSB52Ep!;IhkJmmD zuk-Y?hEw~OBT~Fn6p_ZOPdt7j`LW@N@`q{HTG~I-^J8`Bzo5PL^7OxY^jpw-$D;=H zBRC&>*Bh3jx7Q;Fdi*z{Kalt*dh{#MAA#O`e3prK}!>;?BS`U%dMR(oj)cI}9W745a> za~jWkU%DB6r0W<{zb2;lI>39K@K&q(A5A*;yll>^=3}43x8+Fol%qGlfBU2sC`YP~ z(>&jUuBk-cCyL5EZ@HTCKK8uk_kGViqy_yN^xo^LHR!w0`}kfyoVoAorm2B z-%oivY`*W(^6k~8()Nc;@ohf&w4ZIqR!@KM&(-!X#4dTBvguD|zPsyt9ZfB6`^@(o z4=sgSU)wDD{}mP-XuPt1x@Ty+4d%zTyX`M^^n=Ze2kC3n&sbzE^4q60{7cps?qeO% zt|wjx+x5mpuw9Ql1D=9RM#duTy60Q0f7*4?`(V57YS&{I5^mRbr@?l8_ypLlCm#s! zj_hHb&#w2`bwRtHXxAm}dZ=Ajw(HF~#6J~zBytF{hjr#Bkafr<$b6(-kKP~N%>D4c zBOgNEf-JjQ+u>~F6r_C)$v*dHpFcbDO0~Do!|o67j`Uxy`k#2-dIR!pD=$^Oecs=` z2Vmb1uZbk%u6UL!OB&LRKKJL*9ja6!{9W6Zt7}cb;R}7kLcw6yzDmGURng z`~1tZa3^xl1)A@Jk;fvZAm<>@L0*Eq4QbcWAB8s{zebKNQvbQgQsmXhTaiy9*CIbf z{)qf-vHH0NxdQnj^6$t^NV~pgzyHHNf3?p!v=g!e`7zReuIdj$9*3NboQo_)Rv~MU zcOX|GpGLlk{1CYb8B?O^?T@tUhDX8ndzJ0?F5B~cCi*$Z5HgD6;6UVWkY^(=MP7%r z-^)6yRP!+xc@?q&X}=HiVfZ zk%liu+TVSug;yZ$?>IdJe~a9V-0yt#a}e@4WF~SBGKhR0Idrkc+Xs0(au#wS^7qK$ ztao1pHzDo!mc9hPi~JrrvQpEz7P$iX6w-db!)AEc61D#s@@DdTE%I3MaU$|i?0${R zM4pDsM=n9y@BgsxegB;A1Ia~}Bkx2$iu^P3UF1KJ-yox_G~dIKqmgMyd;fGgd^U0k z@@ixQ^0154-?7M(kiTlu@J#qT6&h0!lVu0-1BT%z{6@Z9|_1~kS8PUbFlN_5b{#w^~jY-`<~aI;g68^xm^2RSJai7?!2p1 zRwD04K8$<~*?YCx?Nh7rC}bKk3t50X4|zHADy03rJNr9xj}rbAvK85m{5$efWDoKi zEr%( zJkq{@HU&NtnU7q6wD*lJh3)%q55o37`JZ6>KG#>Uy|2C(&wCtzOh%?6?eie^IUD=@ z%EjpI^HBDCon9sUGo*c=%RVP%f1hCN^;%E%eYn%$JCXLespsK!$j!(R^&0;d$m5Y| z$n%i3$or8`A?@$6*xymK@6*}$3%|n7zW4XD8#KM6k*6Z<@3$1f=OFF-h4#LdeJ{_x zZ)d+ZYwsJ?uYGQ2E_^fcaio3E@N2jix!X+|e=O2|zxwg;3}i0ydgMyvlgO8loydP6 zw;=6%c84@*diFV|8E_6V54jL|0n)zjw;Z<5{n+P^+6cGLv)SjYoSQYhQOI8)?Q==? zc{TeSn|SWk{f1~}r)+-6`K>BXgeC&@r6nPvn8)?6vz8DT6 zZ$Yj`b|61M{)im0T+^9^%tp>fo{zN8QQZ%}jQj}sEz*CR`a2Q11i2Ks=p5DG3;!8u zpBwuGw$F{l-mdnek;fvZBhNzSBkk`OEr9Ls6IH_v$Y!K{Udz50V&9`3c88{W4AMR~ zXy3cHzZ;N;-hQ7)7`_JCh_ug1z68I6w9orFjhfy_^&sSNpwpP3T`j zzKMJn`7fk>Z#L#mO)nmKBJy-(3G#Qy`;f07|B4*SI(RJdSY$df4_St^>+H9{_W48m z9Nq@P?e9MAeYfV*zF&I;oPo?j+UG_~;fs+sAno@h+xJlI`=|E4oxKlk-;1{I+uHYZ z?fbM(uF(9vj@*Pyy+^~(K;DIX2>BT@`d+oO-*;ud=jxY)pNh2iqwW3Ys~^*N_CA%p zKedMNzaSraTPUQcPd`yt05k45GnOOV$g??A3bwj=+F{QVmB zTaSDS`5N*Ir0;398;P{{3lE0vb7=N?GW(p_H1zg4wEJQEoZ3gN>es$E_A>gvA=m$2 z_4a=BMb9WdiF_StpF{o_w$B~!_N>~EK^}*kkGvdtE3ygsIPxu|eJiHS0Qgh-iLe{dDwH5A9)(G7Us4)40#AL19=*9 z4ssr{0%_mJOS)X|MBL>7@oSLQ zzm*N7Z@G^2EPG{&$4{q+t$h;tYpT)obCKPiddsCemDFo5*PMU?N7FS{GM{!a@+Q`^=#|Q){pIHHlMcLZ9Ulh+Wuzi&$hGeSN8a^ z^=SL4tw&qWw*T0Byym{Xxp$r@Ti-DAcVAr+dT&^=gr~@sDqE&(S+eEImM>e8Y>Bd& zxF(*lHEH=_^S8A%VK&@KqfhJ;ZrMuX)7n~TbxEQ#>7~e)DqE&(S+eEImM>e8Y&(i$ z^O`7jBV;pa8DA#ONZFG3+k_94<}W2YRklpoY&uq2`!S*$E8D@cjg##V*$$QM=dv09 zzmV-P*$$U&ylh9vX7Xk7kt&<Y)!H?%hn=W zt8DGEb;#B!TbFFzvh~Q;E1P+!%P(7;Z1J)s%9bQsvTP}`rOK8mTb69OvgOO>muPXa z#mkl`Tas+avZcuOpXh8{EBpF4b!5{>mA{=q#`(@z9gmFZjy{RlWewu5dBjfo+ey3L zk?OB>BwU$Q_l{=xRK_9~sHM8-MYGjGxK->|DK6VplYXzgFzJ2C=L2 z{4Qdoa`>@JjxfК^jTsb=N7aqi4nBT3l{v*lwculus5Px<2E>|Q!HoTp56Fuj9 ztG6=6^LtS?+$(!XH;6xb{`1JW_p!Nw;;7{M8)1bM28ecIWIm@Yg*^y7A-G zUw(x7jxApkc9tW_eC(PB@t1PQ&XuFbrt6s(deiqGx^w=*q?0&N9~-y z4*Vrwvt#?Fo%ENFU3d_Gy?lSTt*1z`2Y(&-i!{FU9Nj=K#(M@qN-nEw7E z*`;6?9K>JeaXaTPj_)CE9mHSz2|MR6@p!e1yKcw!@qFK8q;lHutQ7T=KZw7gi91fu z`pe(Rber*4Gf29TdnDOOx~WTdoPHed$wl&G!`n%>ZV-Q6yk}?QMUo9WnXbe88!dyR+lgH=>kpCA zE%Lm75XmkPyYL|XDtUh)k{=u1jK7XS{MGRMyNwq~w(exQ9fjKdy@RA19~iiweEu_i z@5$yP7~S74bx42Chx3WhgvHJW-;TSaTK5)FI9L;z8e^c6Y_uzLP zdxxw4xVZl5WO~@f%jb`V2zqOmi2v3IcAXKzt^eK#dh36c=XWYQck;SttN+35?e7MS z(R%4Y+Vmqy>py9b`TTYEcWw^rU+>m$R)lctzcGT|#$SPd%PoW0TRZDNE5dxWse*oo z>_+-S8lHsAL>3`ykWI*TWH-{ki1^4%WD&9k*@SFI+I+9~eBWv6i38WGwXaK6y)ADy zZ1vko-ZM-+S>xp*x3lvE#q66Iq0`e$1Mu`Q+cC^{BLKzpDmz)xfSA*i{3&YG79l z?5crXHL$A&cGbYH8rW3>yJ}!p4eY9cT{W<)26olJt{T`?1G{QqR}Ji{fn7DQs|I$} zz^)qDRRglIbq+q<=o4=H@C*@4ao|K(- zhUm?fo!57Bb)pq(t?RWe=sq7Qf_)qTF}2!N%hIs zB#ki3&80-o$j-=3&z|IUG+UEN&OSMqoSo+Wo0KbUD@n)CJSCXwZj-Yo%}k%^hPhUz z{S8T`+$?4gGc9}4*^?y2_?eTphN#bN`$_rx+sNrN(@i3MjBV2Y?b1peQ(ZPCaWy-A zYYC(zl5?pZEt!_$beoZ#X`wzYwb^Q6WA5<)P_r=Z=@7Cqu^6v{}Yh z#*v_mnZdZ6w4BVG^k7{6&yqWbNKm32(}`wprTyD*-^~m~(ujSm`)Y0YK(V*Q94Ll2 z%(B;$o13_Bj2Y+TycUd`Ewvz0$&@WA7@s}4AIIg7)Im@p85Nb_{%u&cxcq&LNm4K_ zchYGxeHf9NH$D60;*!9$vclr|#q$b6#bu=#1)+d*+IewxMme=?UO`Fm1%bkhK*hZB z;-E1&HL%2Sm9t6<1LY-4ic1$vE-x=D-xgjGC{LRgDn7qBv?OOqFfggSY;lEH%?`{p z5ob*LO?qDX)U@pEym695S}<4=n0$VqG&HTCv|vG?+$j%V5*5KN+s%X%P8>jAA<3Hj zWfqhcmWZ2h<@QFC78#urZus#h{rI-GNiQlWFPIk!lxGJ*PPiSzp9ZirRdsS%`ND#b zSUcgm0dnouj1z9%5;;A$0VsO7V*nqSIXPLgW=@?Ms0fyoR!Hufe~9dDO6mF1W~Lry z1Ow&nA5J)H`%?ZUd&czaKzXrgUaY!zP$|;5fx@)%c}2zNo1!)jP#dnvtkME&w0)Y> z7KIAtmIS6qzo~R9cc9W@lpQLUE+b{#L8dTu>*l;gfeLA^9hpxr3vKP?>C)d!L7E0A z$n-@E=NetZ4yw6N<#rsneMz^fPg@jNBrVqULF5+8Di0KzV^7R_259}P^0Ik>ii#e4vrUTsPwXh(ut+=E5u#&_7x{4Qf1{!ri20uov;~%Ji~<;WZOI^?MR(o zRyx0U!6FWU0W4=t$#B9gJE+jp3rbAeb!^uSrcKUC+cto0ZEI=f1L{U@m*W|8&k4+v zuG#vz?E_Cdv-+7QR=37vHa7U4G15@9q1GtEhGdE&D)SkeZ%>lA?D)vKtZS)zr0!|i zT4dj1|2^RbTI{EMLT&n6s1sxVNS&mdmsd9ToOyXNj#QMD%0LlXl6QWxbDkMZR1;Vj zl(2aP^NIpadH2;(t+NvA_BQbrR90>mEwgTvsHSI2!^|rWgaW6Ol+7(DnN;HT)?VLJ ztx+khQSnboEj;pMV@q^n*w@(WYi#m8-q;=0SlQS;w6T3?YfSv(67+-^nM`bRmK`dX zcP_r_{=T(VOkOICDsNuVxp@l~6_gh`;dm3Zu(%>v5Smw%x3HkNH19lfV%io~QMRaj zULY?dC$GFv@j@94>QW1rloX1uMRW7!7Ml~F6AsqxW6qK01ZK~j#f6#0g@L{Ujptm` z&wO@qNl8wid|`2^9R2+w)$O-kH%conFIeJ~HxG1flq!`{mWI?O+4YPPqCFa%{3%h_CdK=~3mVE$-5G`39NKACN&9~rEMY_E4G6p~CBF9V%c8P+LG z!wv==EVXQz+oxvreez#7c*5?fX@D8V^hG5lG8_yrQ07P`b(bIQ#amsA%of!Tq1 zX`ztJ-OLH6SkBbusMtOMGZH^_UlV_NAS88jZhBd8N%oQoInT-r zqjHIK`jAYxDoi?=?uCI{yC;{IE#%ZLiY!+#wQPa0%5@<-U?zN71)(CD31<|S%c-uc zyf`59m5eeow7L%SF)eYm{e2dx&YkWV4UOuQ2R(}HfJQfISGu|!IscTE%dlkAmCh$u z55AwJ=4Gd6EGaEmSUfLVvJ)_6H8T&Xwesl&3#GxG@*1CXdFkl0+6 zxShnzLPgimN0%Wvk?ER*Huedf6)ZH9I0_DXY_Dw8?CXj@(FtkT7D`pJ`vfkj%5b~o5~k;|XF@{sGPLjwcmy3EAw zRIUihq&hU;oD5B97ol5Ekn;Wlan>&>ggLSjsoQ}D=_xGMj=;< zG8z~RN69Q`o*A3+=E*Efu8=Bn%A}Wt%I1~1_BGoK76d}m0->U^!YK>oI&h)%WW5>@ zH+50sb?bS$z>GS^dqe-=iY29PqK*B6#ckdKcY={8R|Yb~NyMh@EGmM5dFGP9Xq)?M z%gYu8rBZR;GJtYhy|fOXU0h%W8>hUzpH8MeZdN+B3(cEvtULRKyE*Su|6K!UO+iZv z<_5Ig1~8})gTCeL>1QMJfBI2xzi?(i^9m%xuIq4g-^Q@&tzDyLAhk(4V6N=*inu11 zBGyH+WTGVvJdlMPKcQ{8Y3y%8D>d~CHU8X&?H9UOda2d4xSEoJ!a}!WwJMec1MV@@ zu2`{Tq4CmTC{P(Z#%(48^XHXtWOlh|<8`|vHRFycJ&>D~UKc6?0r&6=#~3f6fXpf+ zff_^7n!#cniww#cq$sa|@!p+@8q0>QDpQcT1r>q3VsmvUszz1W1F^})z`}V!cVuji zk>k>x(r-OfTlxoyBki`W+rk%_5mcrMItsN9q?qZRBlUX8)YVp-xq$^TyOxXFc}0#W zI=3q3$)GqpP@u!m*3d#}kJcxI|+CaI1j)4SC`>QlxY zxqu1jsbPq%099-okhUsJ1=x($Z4E6cD=0LfQcyXk1>6>D*s5Jvu^?M=Xp(O924*jk z)ZI?gv{h9W4C(M_Vl?*)F0MFLhW8osx1I%CwyOIyLTjHulOf}$-4mA9zuh__t39pP z8QHSXW7_30)eA7mO!roWi~+U<@(My_az-|p?b(4|&KcTWdj~Wsl?xHq&sMweP}`~% zrmM#dZgp>pKP zR721A2Fe5GoNdb8Vvw`2;Z~O`WMFfL|8^Hc<KqigUx>tmPDx7t7kf z$eh<%G0ce$IS)k1%I=F%i{_d&?YU+NHzN=TPAx7y*J&Q+L=}{WBwtQzR9Vo-2mR4b z`((%2BYlzcMs%9*-4 zT}y>kIByM=%MFuI`XcG83+)uSb7*FntX|&ZpH^II$}vf%=z%~f3tbh?eg3Q>xx8d1 zzs~POnb?7HQxUR?^=Y)Z1aO{B+(qPaM$tE3T3>LIeEz05;G;O(79@;Bzw9z*>Jj;lr1VLq|(%j zI~V`s5a~pv3uGDG9EX25wLM#6tjcwq7&+LNER_2Xrl8JcL+3m14wVbk;<+-BmtG<( zZ>7?Gq^CXOFD&$SFkA8F+Qhj}ve|xyaeJmzf-IE=8$Pz4Ch}%-NWnNy(FCi zQ)}iLblGkTisdq^e5+^YM!yqn7DC+f)pNV0mzPyk$RN3}EEJGguw9aU!mmx@v`f0{ z7l=FQYP-obu^b|9!@CXU_SzT3q13;&?UX`isb4xSmw!&9Ult8y)!tkSx*eiH>Y}5_ z)WtcnTXU`{Oo{BmrLtRBCcBoP?3SM=yXtb;byUc%X|WUItP1;N-*&Ot*Iz1M8y+PG zkMoh=xm=E$w33o6Id&w6vYs()>z}p5Vw`6AsrVSD_A;|yd%4*+)R_II>&$+|QnRmF zX7(H1{i=HN_qrP-h3JaK1wrSvVQJ3odt{<oD`Ntbfj=ESI5r)O|9{9HyU3G8?Xx zFAUm!mh-{xSRg`q_i&ZZHkq{|ZUNCpS@R*fE! z&f_E92JIX4^vJX{vpQlrpVVYu)pdJ2(eA~cdyFsJW9C$;6}c6; z-x(R>tob}zO1PmnT6%f*ltMWP$%ROuoO@t;`u}E+oE*6ob*>y8{lYizk&#|fEK$_# z;@G|!)3A4>nz~o+E=jEVgW0dSZ+EG(tplMN-5#6etPsPs_Zwxw5_9$C-mp;h>#^l! zg^T8eWQ9qtL@G$_ZPNg&jL#JhnEgiCJ5d2yFD(sCmNQvUE_9de$*{fc24jKd`|JodGITdW%&+dXP#hV#ar*~JT-zwR01tZp%Bw?App z4mm&UDN8F`?_~9j{K`lt%8V{KWzzKnPUBwEL22))5>PsCiSy(LsiddH(NOp5IIl1u z!-_P>JXytXuCyn_>xR!=R4gmNa%z#Q$s2~tsWVS5kSlcHFxR>6%&^?Kb$D?_UO_M@ z7YpLwy}5Gd@N?uO>8uu zrKLL^!_9GP=`Z4@rfCl`TV{Dpp&sg{D>%20yIIR%dO=J6yBLsgxcBU*K9-NUe zm4Ii)$zj?yPRjItoMf`;gE%S86q#1%lsUJJkYlf0{<0_J))6v(njmNO2ytP9Uy?Ry zxO{{}Z*=!f?!H;}PL!wlz8JxoU;3J~%=Z$r#kFpA_w6Q5v?tE}BV{6MR;iqaM)vJ3 zFGyGGaHDm)`^GCw7Mk3Bv%7C`_pR=}-Q9P{UdkZ1Ko%A_{~kF>CM#4#%{V9OXy?+s zk8!TtTZX_pjjtAWA8s<4nj(+p$U1MD^UU7%Zc>_a>!`lBdeWTMeViyevda)JO(4@- znRk>QSy)^+*-UlGfpj;+qGP>_8Jw+yA#ig^$rC&?Pcl%~IPmeaY zr8NcTqXV+#rn%hMHB*SpK#4K>@}Q~3&O?c_Lgv)@;+Q@sIT<~%`E-m)e_NTHC-<40 zee^LY?n-Kz^Wi};PUqGAGWq5{lF3ivO(t9S?UTvRw#(#KlF1EyGx^y7nf%6N@>MeV z>cE-&(woWm_U)U=PbHJ#T2r4*?!Lp__qzMWYfR?lR-k;oIf%sO{rGL2%lT%1=W6-7$#z@P@8h?X^j%8&;Qo~Kjcq0UQc8M< zl(hPQz9s#`b|w94fRg@jz)a`cJ|+Fmmh{pw-jd!rU`gNYQ_?FuCB3FkNnhQ+Pf0iL z?>s0a?U9nov2(52x4QdocVBm%32AZnUGBc7&V)3}-ib1+V9wIf?t1K_^7W0Kb^H3# z-TS7`9f0;h)jlQK@KURNS+w@r_P~d!&m~C&BJTPGA`bG-VO=4Fc)Gx8W_Dk&DgZd|SaiS)6*S5qy+m_fP117dv z605t}l&{6zce(qTTTDo^yYF=O;ag2ele_P5_r14n?LAM3lg8y+@mU%0O3!s~rO8T5 zx$|P;T<1uxt8E$+U{-PhbF&e#n2;uS z-{J0i-F@S|CcNeWv#*oATsF@%i`9$l>HCGT_Ppz~94w`CZ8)`mA(I}@B_x`M#kA3N z+T`w=-DsxAxfd%~tvYz%*ex<`YH{PWnt0LK&Ibp}!#aBXs8hB}#%;Ssv}wvjLoR75 zz%2*M%1Fq)FuYd$wY&a0+89&gMugyIh-Yci-dgd)Rab)^|eIxMu(bw6O5`!LJA9u)=IQ>z6M{zP_yq4#hg~(T3<_aov%K+ zSu9$`a=9;cV(P@Ougzz+HU5(2z7@VkUsF`3_#M*g^UG)ADqnK!oY>UD*g2ssQ4%XE zE46NSzdzQ$#@FJjiOwIjIyyc!AtokaoIf_dS{!tX-`40k=2P$Mh_01n#oGLnSea{M zR>kJzH2GrMqGJ1fntb)X(1e(nlm=gHaJf(1x_e)>uiaNEx7}o&K69Nft~WZaHY$`F z6Wbge=dbo9Oc=i|x+tSFs>c_sii?Y@+UTqGEgzLQr*5~n!nlczQDKRmnv$B5wcNKh zDtS}XxN#eO&A#x^rrkHhge6ITY;0FlVr*>kil~w%f1JNz_=>3b_^>ZNzs^_WUmKG! zrzU1~R7~fdJyDyYWBnPaRrQkfjlNOqhP3qlHS7YjIVuvr3 z+8Z6aMk;#k&6l? zTBE5gQ~%}@yIQi`>f02hWVD&}zUJtuo1_WqrJd*Ke}C+XsJKy53vsb=u|FFz); z#wY(L$}Qjc%=k+8U+$<;NfIsApIj4_no^Zh)a7g1tv;qI*55m%$}~o5Qc`VPlSE$= zlR6=;*H@CWDSB1gW0vohS}pnWH^ik%{j41_(d4-< zDj_3fd357YzrQ}F+P7}E+TE*y6ILD656H4YlLEy}ow(W`j;ixbjSKr~_D)?tBGtbkW}`nf)!*pr^3Ta^i>`@o zjp`m<7u^}1(dY}c`MRPjd!xIhv#jy07*-pTnb{MyA$np?*xwz!LJp3UjCDg+_{21} z(jQyxGu4$lv054>*c6qzVlO!|q9%4l7k2upV_JuWqZ^{CYKCMkkExAY6D0?sPdZJV zZ&Y|lj~qdx;u?JQdsIoy=8iIlCdY;dbA*_Wd!(3PX(kt~Vw;9wW2Au^&yDH#Z;0M9 zL;@NlpA!@1kIc->39|7SANGxxPm6XZzdxtiSGnB%ztQZgql24#sdaMTtv82gi*H<; zZ{v{InkavVuP1tA)Oz1WU+mi5ntUr_>SB7MYK8_|d~HL+QEfwNY7n|DaO9{*2 z5W89it#C|pbZY7<84)si<#21119h#hW>{uQYO-{gSq86$Uxix}UA2=aKV)d^+u+mT<}s?Tg~yFm?ts^tA48N+Hykrg zIZA#M(fFGx;pQ_QUY?|!3CAC$9Dp|*t$YdGJ3;wIc-^m*pN3N>Dt`p${+IG_Nynt$ zFdjx<)v^l`~NNJ}<&O zaF5l?%DegOf0+7jfHUC{Z{R(;Y4^PoDZ*u z+u$v52b>^3&S~0j{MqX7S8yYI4xEs$`YYg=xytv#Iq({|9)1U2u|Vy6;Z<D`da}{ELMIQZaYVL3q0;zhFVd%9Yo^&G0%nwnFt^!$t5O$7uR(@K`u8r1r znV{)sU93D7UIAyqQ!i2dVrviI0M}ot`p4i#_%HA(_}_2~9Df|`1^*Y^0q4W(;V|3{ z-wtnrpM;%i&Cg%pSomLXJiOQOn*KQWFgO|h4LlKE2v=UF{%hck@T0;9`od1)<*I)T z9tZyu`y|+Rf~KDj9|rfr>2S;y>hDZA1fK`T)u{d!cpUsN+>_T&3I8=r~0Ge1~?t=f@i_2 zm#X~|xDBp_*Icjqhv2pF>u_hi>c4}h-az^?Z!!6)g|px~xD;Lv-waQ^N#j2X&wO;!zu7ha3=f=+y;LNH{YTD4n0ZzPi$1qhI8*zo-b_bqY}Oe z{W|zkIA`Es}oeh{vGNcFG6YvF&xF%PSLWU8i@ z0iOt0!G-Wz`1f$pBaZvI8D70w`C)hi{2iS8nCg#A)AXv~S#Tq~7_NO>?eB*twkZF} z@>9zHgbQ1hM@&-x?awP80cXCTdS6MeSb~HvKmU_rR6#xGAb{>s0%5;4XMIJn?U;{}Il3 zM>*v;8ozQq@!=}C4bJ&c^~tA_-Uj75xaDKzN39-y2VM(1Q#F3vCu)BfoCTi;uZ8~( zcYUh%2TjxX<33ZK2FGnwzQ*d|C*j^NRR0Ow`lWLGboH0@m2wF@=U>Wi!bR{Fxbqv; zC(qFM`9CPnf$M)%z8IePlkz=q8~h@?7Vd`E!Fy(@|Ml>(aJ(a(LOwI#Zg>$q$EW%S z;N@@!Tpz9ajc_A8>@-bp&Jfif2FDIno(kseyXp6SHUac*m%|d1ulVqfY-tY&r<*6f2Q_R;aYexyb-<&p1ME& z;dSs&aO!B)k2_ucuZE|=Yv2%^k)ZZ}fUDpR8-I-I--DaRDjzgk{jY)N!9_n;{S$D~ zFNhB(!^3hl{zUjFI0HTd&Vnz5bK%?Je7FrRg1>@;aQqpXUL~9khv5KR178K#!4JU= za3|ad{{T0^hn`9O!_(oS!?Zr;!tsYIuYo(^zr$0HQ2n=X4jg}$`kwFQS6XDcjmFK{tCMaJ32jQFHjN?@Q7~BZ|1r8mr`b}^LywBO1pHBE#cmq5Q_NQq4 zbK!XS8hAW>A3PC$8J-Gv!*k%D;1YQMJk3uf{A;)d&WG#aFuVnR1kV4Z=63^}`fKIr zeD$9RkAbt`6W|*7G`JZKz%6jt#-FJEAAl21Qhpw;f9D9}OzlS%#hnK6rP4FBz=^C~F9o$x@{4gA|RJmK& z>W_ju;4)#8{_@*ZzZ88Z zyb|t)--0*6y>QGO8vn#anqC}yKAhO7`sajAdK2M~;V`_{`5M0kJ`v8jOXL3z4&8%4 zxC)M0tnsViQ{aY`YQGFlXj1+X?zvxidZp%XOSAG-aOFeFufW}Kx3FoSgojlhyF|JD zIpquC@C(X62%GY+fsedEIjK$cbA^q+F#HzW@n_Y~zEJfmUQ>Qo*!XLOe}a4A(N${i ze_ieGhO0W155GwD)$pTmE&S`>seaWPYX6+Dn}4_q-U$DMebSq1f5`7Oe&$=sX>bi( z1}|Ty`s?8Qw@D9P)v4SKC;m-&Oj!L_!PDT4|4{t}@TT{apSSvdDkog5@pC>`u7t;b zq5Kzk1AP1?YQO1A)h~k^dX&EqHucj4?|rHACipnvy~H&6E49BKF8oH>+{ZHd!f%yl zRTCe+K-lP0zf=8_a2EVexC1`^GPTe3MLFhE4>!P@;Lz@>&$(RfSHr8}HSnk_RG+w~ z+AoG{M<}m{*TQKvY9BjN^(){}@USaM4=xcl^*3riwZ91t!Y^Xq0)GNm{Y>pox=Q`U zj8?u7&PY)H6FmMf<`YMJ0C&UD*Wm9s)gKO*9Iu=Y$NgG)C7f`gatB-pe*v$8M_;S{6aGu> z(_tq~`M2;y_(Hf2e%SJ4wciX^o}zs6b@%fRmQ0|13BYUI#CMH^BG8o8Y(Mm>KHdS*HF* z!H2>n@HDsyE{DfwY5YIH8{rS&Ij5<9x9in^^-SfH;5PUoxcdy%zXlhcr97rywM+)aB7kAJ~yhr++yX^;C1jd!lu8> zDN%h3`W0~eO&Y(oRP|TEYtL8yQP{-yS1M0$P;P|p6gJ~&$`aMb->keEUJAEgsCxe` zmp9p3mm)jtQ%2`hgKCtR$2#I5Qt8J-EJ!dJtca2s55g~lJgT;q4c=02|} zPq0Syv)~%I7Vd)IhBv{(ZqxX+S8Du|;W<|+FNBNW8aN2Agsb3oxElT(u7jg)*Yq0T zF>oWC0k47!;ni>r+zLMeuZ7=)*TJ8|>)}1`(DXOJN$^H^I=l%!58eV_3&&io_46Pc z2fqx*!(YOQ@W@6@KM6hoo&e8+Q{lyMCVVrT13wGTfji+4{0$t2_q~()hbO^}@O-!l zz6x%JABNY!e}&s%=Pvc%0Vlwn@FchkE`jA6D;@J$2KT@Zz`gJ~Siaf9wf_nB!#}@U z)0c<&U41s309U}{;G5v_@WZgYCE><@15Sl|;HmK5D>S_v_y{;3J{2y4&xeEXJ#Z!b zG#rNi2G_zr!1eGU_h|Z!@F{Q;ybxXuUk$H;AAsB8H{lNWUvMY9@4cGd26zIz5k4K> z1YZbmfmgu(YqWmX!EvyErTUMDkAM^5)8Qoee0Ty}4^M<2gEQd{I1By)&V_ex()9D; z!{8ElG8}>n;VSqN8~-{j-}~^KWy&#sQ2&MSShxf}84kgfaP0LO|4ujoehnTEe+w7E zWAD@SYT!w59XuayfG>p`;T3Rly{6v^SHhj}COGPTO|SX}wU38K-KcylJmDtgEVv3j z7jA+thm#uA{y{hgZiB<{Kj2mH_i!hC+A7Uo+%4*_6pn|lgcIR=;UxG)I2qmmr@*^C zp#D?ggW*j06u9A5O@9HrYPs^2aO-W#tKe~WD8B}G-=+K`oO_S*p?}o$3*qT-5WX0$ zf>**5?$!A1a4y^fC#+Qc$OqNG|32m8;Zg7cIN^TPUkQ(cABQ)=@537&Q2T$wSr01j z-K^=2Z&p4Gj(tqaV@q zOW;ZHD)>Tp#VeZLUGRFi1D^9I)o+IDUR6G1wfbKUpAC1cRsD5v$)A;9vHZI7K96er zgg2Cb1J8k%!pq?o;Lf+ze(Yl!zxOZ7XTjZnRlXNq-KqSwu&J+!?<&VXu3QbL!fW8U z@D}(AVKcuT{|}A-65I^$*P{9!I2BHOPwh+LWcV656K;lc;C1jC_(ynkm-YZ+iD?^AvY4#PuU()i&h)gK9$ zL@S>K`{hgH%;y$(6#NPtBVSBrKD)oH{>JUDJPq#HLwT{)$0^(MPwWU~d;Up)Z?g9A zEAXm))V>#9zMt};?V5g4yz*&q)&9!Ga1DGJTnDd)8{kjiMmXvf_1^-If!pAd;Pr4G z+zr>lJ@C_TFZ?c?HCprg6I=uz@+VC{2v376;q%~X_*S?UUIW*|9}6ES{c$@O#@H)5^{?XbWrS@a~to|$E$#4UF4%`kegPmlJ|12Da--nywp|7d`j-%E7 zD7Xhc3+_Hf^%uhV$12|rx5KZ(z3^tZW`f!u`nsmq2~USpk5hdRu7q!bo8cGXUidp3 z|9FjmNC*Dm)8HQX_ptv2wOw&Gmai^(&>u)M-{T0Fc62BTwf*asp z!OiegxE($l-T zqu@4p61)+f1t(@}ev9B__(FIpd@Y<0-w9X2tKkOtWq1wzcX%!QIlLZrI<-6-;l1Iw z9L?XMa0>iOI0v2zC(Tm(JU9a`hx6gf;3~KQZh-HHo8V{QHuw#ABfJ4lIbGBL4$g#k z|C^St3O)d?gOlM#I2~?=PlwmS#c&r~1#f|`gJWlFe(r*k;78#UxE;=cZGWDStMTpe zl@HtFu^zU^S1)XjuTf`ceA_=8;CDzb@l4f!0oTE{zpjIA|I9s0?QQ?5hHZWO=cqpF z?^@rfupN(bVS9X+!1nmAhi(6Ff%g%A2M!NA-KjFkkWUWmPgA}gPJ%m3`okS36YfS| z1fTeh`m2G9g^hg^T#ddRejI%_{1$ruBuzhNy~a<1x2EsmA~+HI8u(aYQ@%QneXGa5 z3(m#9+hd=fuKBqX|6$nXrxU)N_`UF-;G_(VpYpEeCl{`RYv2#z7Wmiypnc#nIDWGF zdlAlr_jph3D`A_z26#OB7B~m)hJPn;6G@K0u!c@BWd- z&w`JE!*B)M46lZ};D5n!r>g%$K30FJ@Ip8UKMps-o8b<4<|i88nX3N&2q(jPbgMoe zPJ`>0Gs3@2u(|G&Ul@W?O7 zFKmzhR(O`^O?`F2LD)G>{apeZ|K`Krp%24*f2sOLcnaJBUjjQbHND4# zO@5N$H_>OoBYQZ0;3I|I;|I=%JK&YDldb-3`4i!Pp-+WR`AYo-;Y;8~_;t7g{?YK> zVJE3w{U7u%RdbkdL2JVDy{uB39e>VR;<|0l$Hve(Mm2LiW;ZN|_3-A4% z<}WTz?N5a>;Va+<_$jy*-UxTXNA#+{UU)w2j8OmA!-??Ia1p!#ZiaXNH~!#sxM`&N ztAxAY`>Z|uH#l`~wU7B;{nfyS!5#4FaPBCzUjjG6x5C}<({S=WYX1&g3I7PU!Ut^D z^!@v)eHxqvp9@#QwQwE03hsp8h7{Jp4~M zA0F`o<@uS~9|ecusc<_Sg5&mA`@7(l(aJBwbqUI!!JY7)KWchC@OU`o0JT2_4#O32 zJA4luJW%algIi#Gd^rcH-X32aiOTl)>VfU?l`=;4-{P+mPWp-b!t>#zv1;E4r@()L zv*54b2KYe7=Z;^g2W$LEa19)QJK$P4ew^Ar2{sNS|u7Hr$60lpr8 zDTk^3vv3x?8E%A+iq`zKz~{hOhim*h;V}Ff+z9u=-EdNj`U{TN_%q;6coCdlklid>`Z44U+yhjMp$e@GUH#aR=j;MoB-!_mHjmowgDvXoylU53wMyp?f3R+d{ z$Z*xa)-!&U>01~d{8p(?594`^*D*ee@upc)-j$4}wn}^l;}wjbV7#93Ym8qxPSPK+ ztBh~>c!`f=yn(UDcpKwO8P9&7q`#N(+SwBSn(>Q_5893Mca98S%y=r}F~%zx-@qid_CjMjGtt@h4Eh4JR^NxWc+@{lNZSNKFfFtw`&BaC|(U&(k4G@q8Bb&U4CA92*X$$Z*E2qZaWmt^j9VCw zF+QI0e=wfS_)*3kj3-T%@)t0!XWYg3{fv7UU%@uiFpV|)kWX^fv{d^F>o50Ucg86U~G znekG_EsW1$d_3dNF`mu%dyG36zsh(4;{y+s@pUnt$GC@ao^c=J&oExj_?wJRWBfD5 zD;V#2n3SJp+{}2G@o9{+jMp+AWqcpw662pU9%DS^JyQO;j9VC=&-ir47c#z-@fybe z$@ntH&oN%hc-O#T$1uK)G2JUh?P~+$ zb&T&|{0+t%89&GP9>%*&ll+?)H!!}B@kxv~Gd`Q~!;C-Acnjn2Gk%=$KNxRieB_Zb zzNZ;?Gk%uw*^HlOO!tUU`d(!GDC3tHzsmR(#z(wY(*Ke1BF5VouV(x=#y2yr`G{=) zPcWXu`0tD-Gp;*I%HN%FALA*EFJinmr zAIF zkMR=5%Neg`d>Z4M8LwdcW5#L5?>tt@A7=bM##zS0j7J%-Wn5zXHO6C%f6Dk=#*^!% z{PP(%GQN=U3dU;~U(EP2#$RE)mhm%;uVTD+gOtCHaU0`n8Lwn~1LMyyzKQW8jMp>X zxlziyjd2U(4UDsl?_hj68D&J>Cb08mGP$;*E0Sp<7tc^V_eVp zw~SjD?>=4XGn?^yfk~eQj89^`p7D8%Cx24v^J&Jzj2~dUneoevr(G@S_n9H(PyLj{ zCompkoMyb0@mj_$>m>a>jMp*#1LJLskDe*hv;5PNzK8KB;{xL~j4x$;1LOZ-ypiz( zjJGg;k@1U+cWII7srihIuMYU_2h`N8U_6iTK{YiS4ZMkQlEXJME->E0_#(zz8Q;wK zS;qG>ev$Drj9+2Ajqx_dd(4vh)LbL=J)ZGo#>0%KFus`aRK_edof`16c6F#a#b8yWwA@g~N>Y_ZeiTWcq`*R#?LZ7 zm+^~?Z)W@o;|CaTWBhl`X!jDNwnp7Boa zlk!^_znAfB#`763V7!WP596yDFK7G^;}wj5!FZVQ-Y3ZTMj5v;9%Gzkd_Lnl8Lwgd zH^yrjA8?|Sw~q1gjBj8(#CSd9wTw3~{ubknj9+5BiScf;rToo|4`;lE@qETx8K)UP z%lIP3FEYM~@hgn)XS|K^&luNSC(D12HW~k9#;uH}Fn&Mdsf^EMT+4Vp<7tc^W?aws z=Zsqz{|PuPcE08R9XltCJAnslcB;Ad&l~%RVkdl<0{QP@9o@cD4VExIrtrh?HRGdy zgqPs|bWHr}{j5dIudw3Zo&LZ-`VaBznD{r45bxiyl4wm72bjb88O!Sogk_`6s*D>)Qc8DaH%lrx}{+kSbg)ag9 z;ixLg-~1ZJ%HRA;jFrFnw-_sb^GAVeSvLLW_Xe(=3;D38kG@IP$1cXR-z@RDj8`yT z$9O&CO^lU)$IFU-7s>zLc~ZXe??^IM{vB5^R{kCLFjoE@zh$iaJKjBC%2WOwbAa{q zonzn|4E&&hpEvOC3m{*cFHrfU>Hqkj*?!&w`m_qfe~$;I_H&KVel~OY@82owkHRFH z>dz#OgZ@MHPsdb$9zGNS_;&>JD@^pn-$H@-r}%YD{F8_X|4w9ng%$sTon^S<*D>*{ z_vlVxeuWkPRQdz|6u*v%KYfG@zkvA_R{Yn>V4q*d#9uQ_5`2pJ6|RCjQ&%CI4QFWc^cE@ne}K{?UJk zU&q9+-p4$c`4uL5>KeDvANWWAA$}bb|I%&)NGuhjlqctCxU`4z5~ z|61mMj`;QCRVBGWc~&{9Wym-~i@VSn=!i zbqRjdG4W6Bko?Cnzru=tBmIGY^dI8aG4XGiD}rlIWqyT;p89XSzaxGf6Tf=@cn$L_ ztoW~@Kk$$KL;N}>{y)wa!8IG1UtyxB_&3O4pI^tsf71d<@G$c$toSSSUz0l}|KFKk z;cEG_%>ND~?l3SZtoSz>`s7s>bs znO|YWKU)U-`LE+T5N%-ok21f)ivM_nU&q9+-ow6~`4v|DdVC_p_g5euWjk z9v|`RnE2Iu+cn*?{1jIF=NtO#nE2KE-1W?_u;RbZ;MXzntM|N5XMTkhzaAgyuVdm@ z?|*-k`4v|DdVIvMW8zoug@2Rz6;}MmPm&2BO#BM}67*z$QRnsl%2=J(e_M|XSLgK) zVyw>VH!xP`_1hV%^ZH8}tMmFpjMaJlamMPr{-uo7dHw4dtMmF_VXV&U-^W;;*ME|+ zI(5}U&g*wFR_FCkW30~W=NYT>`X6Sj&g*}Y zu{y86p0PTwe>Y=wUjGrs>b(AQjMaI4dZ&iUPo39)ORvQ0y#Bt7)p`A67_0O8vl*-N z`U%GBy#63#bzXm*u{y7R8Dn)`|FewMdHvfNtMmHzGgjyIw=!1e^?%J+o!5Vju{y86 zXF{e=o!38%u{y6mld(FlzmTyyuYWpYbzXmzu{y7R0b_Mu|7ynSy#6hW)p`AU7_0O8 zKVYoR>;H_gI>A-sWml^mxqTj!!M(wZPz*z0Cf1R<~U;iOvwZHy*#%h0kk5i>QwZDEe zW3|7&5LnmeECXLh^xFRMorGZzR{O<|Fjo7;&oNf}#TYt5_F^)t?tvelzYu@m-`nx+ zf%;a{C+jDfbqKfceE~F0CA@&~`w4@;mhU6YGH&MkNI%GU!F3ciI*2z&!$k1)P#`F_>2IeZg` zU(a|p<2xB|Wc)beTE@R2jPJJVWqNnQe+Z}l2F3AjPr}f53)3IN;rINn3_pSJe(?Xi z0)qnnr5Lv`K8Nwfi)A=nb4&EI8Gl95e^iFkHJlW_e2v6(O(Wqo98TBB3I5Au_~DFS zxm04h)`-HlG5-q2lNo=A@q$Yv{TCQ-zDVMG8L$7C#6M^J;^h+WjA};mr?5T;GhWX0 zbghJlpK+4$=CzXle8%fo-t~;fIQ$;Q%Rj;KGalyjPQuS5fB54v{5_1ZK!+08( z&y9+o^Y329V;uf-#y4{Oe*one)5Mcq*s&6N;bZ-9Z@sa8ubo z_-Bl381FY(##h7f&0)NP^K%8`XE}e)XFQeh^@^U;cQ@nnIX|{C-oW91QT&|0hrU(D zznSx6A>&#uUypG;%ljzfQ4YVI@hhC(#~E+o{P_#xDV(1Dc9rqH$owZTKA-75#hR-#y4>I%Z$(G`myhBGQPE(-uEfY<<-x46YKL4#%oyLTN!U;`X?A~ zVflY%yp8exyUX~7xqOae{4B>mz_^C<>oUgm%zqE#Eu7!aGVbB>+4XHwehuS##y2oN zneiCQ{}AII&Yv3?k8=J!$he;K|9=_J=Jf7^0gu{m56gQWVf5D>d|z-k;ab>N*gwJJ zaAjY(n6a|=f0FSXH=?7(zgrl0Fy6>`?DI1GQO18`{8Ps3KPSWg!FbbWCEgcf2kEEw zi{8sv*-PgzR`!!+jFmlel(Dk!e~7WN_k5DEvVVVpv9hOsld-Z7f1k0k_rApV=-DFq zHGgHS_9J$mBK24H{aVIqzqDC}A1(R27_0rr(-^D$&9fM*{l*Iv{X)rqy$U}<;@cUk z{l&)_tNpWIt8li*|4H#5CHZ&WQ|hnm^9M3k`$a8`uWFO@os89fRzG89pDZ(0_Rgyr zEBoUejMaYRqm0%5-0vBy{kGlSA@#d&wv2y2#%e$RaK>tXpq{a^cg<(4?3aU#l|AoM zj9%bUsgCdNw{KfOYxC&jqy zaT$M!@npsqF<$VP4F5D?^qJEdF!1Bw=LlmyzmEM)?_m52<1LK0F#Z+e7a6~KZ^{2G zl58E<9$9l~g18~DDQA2Qy^ z_<6!e|F(LW{=YE)Hs;^^oiaTe8Bb$8h4r1ocrxQ&#_O5>3}AFeQaJK=$iR66f5gBa zGw{_0zENV#D&)Vr4g4dCG0Tzv{w%SaOyQ?@V=W8)eB356ev<$C44gIa#Rk6Iz+W}+ zg9d)uz`r-}^;xNP80NbJl1f)ReFfxm0u9~k_P zUSFRB4cuVhHUsxa?APzKfyWGdzJb?BymJlzyUM^{Fz{Ule%!z>82C>He#@aEy*sP; z_AzjSf!htd)WB&2pJU)l41Aq|zhvP14g5m`KWpG^2Hx+maQaR(@JR+f)4*#Ce2ana zHt<6Re%in<8Tg&=3AeBP41B18k2Y|#fsZ$Ehk?5c+-Kl^1HTm`?XLKC!?!!Wx8Zv` zzCG|w!M7*Az47gXZz{fbMRa;#-L?i*E#94qqPMD894s74Q}DmGG7Et-`k&-x$7ed}rf32j98)&cpWsd>_Pj zKE4m(`!K!>@Lh=SBls@DcQL*-_%6XmcEU^XU54*t_^!ow9lq=FeHPyh_-@4aIeeeT zcN4xZ;JX>$f8bk>?-qPt#CI#c+wgq}-+$u!GQJJ?zJibJk6*=i2fjP;eGT7T_%`DE zI==tHcQ?L!@O=Z{H}QQ7-zI$D#`hh3_u{(`-~IR=!1rBz@4&YgzIWn#7rq1V9f+?R z-}~{MfiH!xAD@SB5Z@5K%kf=-Z!Nx$+pRV-)Hb$gKsmw zf7g}&f7TW1`)g~GZS%VFLmgg!d5Hc_bS!FXYb%usnf`Jqlh4g96!L|R{75R3Dx1LMK(eVGw2UoM@T%9cI#D`*msmQ&I@{2zKdESf~dC-c0~Y$mtT zj(_edFITdEo>$0^bmlUpzI>n{%MXGQrBtD${VH%@p3}nt^V>UY@%Yi1YW&{oA$?wv zxtYqA(Bl;bNb}-AYSgFhDHjHYQ$-J1mPx1F8Q$v^^VwA%k_B~3Wff7vD`dcRb_AD5 znp0(29LOh>1S`F?w`*R$Fp^Svvoz<8jd}wmFKwq|=_nNSzyU?N=PYbbws*B963N53 z@{EqoFXYRkiBi6h8iIVAWKMZ-&?~q?+K0V?mBsRiE3Cs?l^Jl#6Dqn`L`{hdXip6c zJLN6t>+5OHW>8l1QUgc^D!849Mcz0HE|ZHPL9=pk;^#RiaT!AdL3=)jGLNTO>=la< zIgBWJ3i+||=s3DZy@IGXE(K6i2dOsX-1*(x4)q2zL*-}*z3ub7(!j7wI0vCpm$RsD zcFy*;FZN0))UlL1G~ty>=uVuqueW_^(JOR#gDD6v#?-;yc5ZQbXGQGwM)D;O$t)G} zS(h4#MQv%n*Ra#TF~?MnD)r2?rK1aRBsI{TP!-YEa=cjb&?OG$&7jfI;=Js*S7@7? zXlQI{FN}|tqG?7)IUBNen^l6^3;ALZH4d4EA!C7;MeT};v;!S`7drMz;qD5eV(iEa zP*f?qaVm}ib)LKNpB1*(V`gc znC?u(?^B^(C-cQ*F_laA=f{$eQNq-n<|s@(iUn#Znf6AZ1D3R6HJ41~^11Pm%-J3_ zF(TzvvDcPMqnpgpBo7OSWI9u%bcR}Va!5`K1g{+Y<)jAzB@DiD0@g`+gCEetuks3{ zKh|WJ_R?=yh@UKf10IIvSiE=M zd08OhhoKB6jfJJTOs-f;Wijq;|+GZ_j75SfwI5 z#FFI^Wsd7>hc`eH9Qoo%rI1E3gZN}mq`t2 z3E_~Q;e5_pQXc6S)dQsHO2kT?r?_&BOfskmV$CuylSS@Iv7w)^_-@N)dtjVEtz_vY zff<@FXVaVkGTWA*nuJ194L8e>C8|A}DncvSHMDieWl{LYL?>D=bunIHaVm!zR0xOn^%XF`MM1bi zwe}n0N-XM0jgLU?NoB8$CAp>rf(rR`d7xD6_0B4L#ZoA=xH>gjL!AxU7d0HDf5GCm zcJ&ilga6AgdME(=g#43@Y~_slj?_33ys|Cb>tRw`CYy_BLMxHC+=2M5+YamXxG`H? z31ohW8m-Ob2XWtH#773GqR$oXw)~%AsPg}wmnjrWU8!~8cU#0$FI>U$mPH2AN*Jni-P2$RcWP>Skzn2 zdO@~enx(kf+r{d-CfVM;07XpyMUHmBa<@thf<1E^%j0e>`3 zpMgK;we_P{DVIEIB=h~Ql0xQSotCBFxU^JX)IN`G6YcrY@r0PNi7ZI?rjsQJ>NM3* zoJlXpq&X~;276&@T#}%%1|~}{ z-QiIuB37uPict_2N=p(6F9nMzO$yK+Ix-lsFv?;)?#%gJFA-6Us^VtvVKiS7!v1}xvl`^HDTIfeY{B50O* zrd2>@m?x$%+`sTdP_3VtA|X<4hZPDb)6@u#BKk{VRS{DF3?3nC(~^X&1J=*&7;#{| z^a?0*I}ql@QYu$!b4DrqA0rz4h&JQ+5yb?%u^86O&?pEkF>pHaYe|_V zmxg53eHlM@_n(Q@Zc#@UrXM0kY>Tl6b}s7q?BYNtIe@vJ!)Cf9fzhIjDf%i8MQIu@ zDRiiuO%>*j1+#4<6$y;Fs@JoOg{r5rbfrH3RLnB10A#=GH(GpwJXgZR!B7Ak$dAH! zC#=G*K%Vu+1YrP-H2b6fTuQTZGg9tTRyH+B{+oyvr?6{*-rfJP z1H%SY6sD1TUjp``KgLJ{ra9v!+RsbQ$)aW?^P;vUF-y!0(F!#5E0&6*dFs88OyuT3 z0mA2J^Zlu;APfDDxz@l+_4Cr)>P#-3BwK};6*C6s(s*)JJ^hM=3^;x+ina1!a$p#(K&%mv zXn^D(Rt@1_u!t+rx{Fdx8JnbCTDHMS%?Q zGcA`i38*Q0JOq=2TDVZe&mCWu{FxNarusePfe}(fh(ll43q&RJskx8_XhTq!qJHO6 zG3iM>EnG@$zChW!NVwR|AhfBH9b-5TiB%K28kK;5%EIDA@n!Qc)X;y6`LRP%jjt*m|O>rhdQ- zMsAYR4?GF>|77YOG!Qs%P^v&AI=rsT2vxT*#v)4oBs)6p#Q7($R4%Zsinv5aF6Sv& zh#kohZm=WX$iOHvLo|B+E%+P6q?!DoO!hVu0`;Hf zFYv*DMm(U1z}!t>2-Xk&PA!j1g`c9;$>cX!?%858}YWi$1%NuF~`0`bF`UyaJSVrr1gIGGVGL&B-T zL;(YO!J{#^23;gshtb~_;kuKf|CS1CMh5B&ct$^R@5S5@mHotMXv2{*zq^iqx)!22(5hv*KUK! zN;?I@{lM5~cwKZ!^f>spD#ns)%dMIk(vJ#iez1#FixO=|$B*f50oC74gN~s?BSS&E z>B?wA<0P#gbLS``2!ruEpbJ-6O|yIstrIOpZOkOfV!W@KejaATF~n`7qgbitG-t~R z5tHn5A7Qx)Wn>XiKQMmn@27|gQ5qzNDQ^KbrCJ* zXK}<(44D~6;qJo3?n~_;W@faRK-)+`OORo-d6Sj9G}I?cFUg`wCF~Xyj$L>3Z>aRe zRv1uQc{b3BMHyTwh>i1A3Kwg>iE|ahElSD~%T>rC^RF4tN^jhVnU>cu2ab#yzuVnf zNa3v5nr+X?g$Fe=l@QEM?4QZTYeYa(c;hFGNx?WM<-sUPZpM_O!LS-chryh4*${;MkHnyhx2RT!>t-}jAjYK?G66NV>^bLZzV12|ZLSWI*@GrmB8M#9 zN_jb{bcbTHqBe}(1Or&dt`wEc9iHX`MM7~m3HC7uhG~=69V}v?eMn(uFL)S6U70h2 z-KA7Q*tOjR18Aiww3<#ihFTe+!rk0hNS6B>V!|3@!kS{jnq$JIyTfQu$BqN0D(-Nj zg7c&U-9JxoI>ipg0P-7SapR2WaBGC5&M`SG4jOQn*CMt!*s5oTX~LB(gI*~mTpNwUqXr1f2M>saxY+nh2zs`$bHh6t3@YQHGYW3VT4em(<6hU z<2A%+Q6me~#6hfPGQ~EsybZ%LmoIChDJ2oKa>+wIWa}V&foSY(&7wP?4g{@E_EtQ} z6ZB%Ygr#M<$A}H5$y|e$M2gfD5}i<@7L~AJrY3{-oLWy0b7^^CO^s^#7w8g_BYzId z(WBAWw25DBGM~3x~?}M5wtn$;FFUsKydU=^bX`Gz7^C2b*)yaHywt zd{Zz3k?Bs9g)k_?T3PT0$<_-W0AUIi&D;@28%WsK5y8z`6RQ+eIDII)*Uc;qXwI&w zsj=8xj}0kohRSURtAk>Ss0_ql>hFuIT#{9`dB((e?DW170d-ByY6{$y9}4F+nvd!v z#Q4AsI82nJR>ovBJrr|(VYq0WM|P4xLR963Ehw8Bz!57&nje6xhS&!$b`P?pie^6i zr@#8O6dul`vHq82q>C%ZBQqO*v0`~2omBEU8NzweXbNNnmOato#(>JYXr8P7gi&N; zD_oZ86fRd3)hMc<4_6XLJb@h^#Tj^oP)sDAJR&>Ezk%!tRP9BpkWLZwQ?dpBE7h-V zN*3|oh8e3HW+aPEjmc7T{pv=)M(K*Kh6|!}zd(e%3=?xXDk!o+wXUKmskS83xncZR zv<&+%`PFdIfmdN*zA&g76J(O%lM8-9=tM>taINeK&dk=Lt&)u>m>oN4XcttPFOg-j z;qVCV73NDf;cA++dN5}plN)C`Bq@S$kva%TB`HRk+Vn(;(26of=rjoJe=LTLrw?mV zx6)Xt7PL`cj|WwDG++{rg0;bMbU&|T0Op?g0#yL%9NId7vTH5F$wlP%c0G)s5l^p9F`(=Fxs6S0iU-Z@2G6a z?*i3Av{e+aAveq-lONVBOhL;>T3E-?hvy{HxWc zx)z+v_*YXZ*;v;y>t9fX!SvFTuNO-gJ`7NLsDbCKG6O1>Hn&%&81SdwZDLYgr{?9ab~nN z*d2%(Z(3%#%V#@?50|1l8jPiCKrE$-E8#tW!<=$KK)KTki!dEzBCA)TqP{3r`?8yvJ8{V+z7^Q02kEcMa5He@Xg=pa{tzj!2m@C~ZX>{6YmTsHu`f zOkG%vcK=Ro2Ajs(5)zBLOxmt^xPJ?`gTW_|d|m+h;JlS<2oH3Tv`wlVC_St0t94!}yaNuhQ z>t}c5=zrkPPu7Mg3fh>D3wP%(-;(B6EcB4%CY;~{ymAnbB`Pk_sU4*I)?_~_`%dS& zteM8iiLp70K&hvC0y=o$6)+5nxK-z@^`BBnMXtJUqDFThFN{d5&fH=X))USF9N%sm z@~GRLm+`V`ZL3M?qz@D!IwR@9piQ;E592negI}GUm%)tTT%3C0bJqHxt7osYLzgO0 zVNM|OCrXOGu-B#ARY!HLq0ZQ^M2kHPk~}Vp>gp!PYy+oEAqJLu_^4^-7sg0@Wu!in$BZb`z*o)F06|$QFufyj&ODeOTz>PhFPhkXx;9_ zi~D|fEkJD%wFFZc9Ak;g2GyrfjAVO~?uOnNF0v`=3!JbF-C@d#EGGwlU!S|@ zz^rfv?JB#|T)iNxBX$ea)=%*bVUD)YilK~hX9?#gdIPO0#FZD;71XuF#OU;Y2}g%5 zVHjI6;;=iKJ1Z1b&_Bh*s)(t_se(-PHZi3AXvpY~VklB-?2}G)?o^QFIm=x~j4X;x zbsI5c!CE?o2&L(FEwSB%F#@T^C$2b_%OW*z3T}1vha)u$kQ3&Pz`+ZPWc_~WR`O}a zZBf1%oUVIy&{B~jLEkvJn%#penO$LOM9C0s$uJWqPL!sSH#WOfLCd8GL3720-CAb4=*;!9iv~)e$2OPM{yfOfbfXUN5&$P#*j$-Bbs&#wU=W@u`oRwA;Fjm_Jf23G%qrB)+b&LL8+kUR45ibquEn3HC|VL?cWQ)EkFVa?dW*=6rFq1s`AdboRg{ zl>GPy$bHtT7U7!fAP9;-rgpnqi@YtjwqM+gPF0L63JYRq4qTiRD8?+RwN%Z(OOmZ-nvTARd&IGAYGakXH zgstT%f2OWR@&mcdQ`b>r2itTuJeR{?>v&u~NVDoejm-K|T@d{}3sH zPc-_vM#NN<#&7NPCpAnJFLT$X^JQF(VVXKkD!Rl4PH&aSg1KEK%6?qcQHcfx%x3$+ z3W*R^fzlE3ZE+wP}B7z73ui)v5ItMbx&EPT$29Z*dd6n zb9ALZWNorf7ukgmI~q9z%9{-I6Gt{Feu*bwS>l4pILe~jBa0)+DCb2s%Ei&*&Y=>M zb?~DYky(P1%d0YQk;gujaOnwVDUmG2VY=!S4EzdABq3c#Dy2IeC1q5R+|(qh5fEJ$ z5{nXz38jKcAUOfX#~Hy?Wjr#e6N)8ZiH@VK7q?92Fmj1=YrJI}mkuXGw0z`tmtAdQ z>CK!Cs!lYUs&4AyTMUcA&AXK=go-kTJv#0b4^L{;iOoHOHd?AVmc>b(SM|7O59EO{ zre6%K>cEh;fr$&+`5=>=$kI6?olWk083#x(qK0Vb(6l%jEt717;XYp1HP233W#(E+ z{;!rn8mgK%c{`;Lx4Z#b>^F=1YuN?BR^3lZhxF7C`Orj1jf`~oSP@#Y=m-~~3a&t_ z!zNytNZ+c41k(JRmIt;za@Ps@6jsHiMUIFoXB@X_N9CY-xwez8T^v#{?mU+&H|zdJ zqMG^l{vrdhD{BQg@_Pw0}u3T{Z(dLSmbTHeTh; z#CAHhQt04^hvxW>WBPqgBKgz9dnf(1)w72+jc*$8C#>8$h{(uXS+X!AyCPQJH%qqr-^2GNz6^dOn z!3io^*E~zwY9`1BAKvC!Ew3lW^CMt zG@Lgk!fHjL;sjaMnG41@VNu1AJ~5?^s2elQ@%RnMvod^#36Jk(G5ZX=>=#>FinC@E z8|s^j4GoP|*HPv1A7&S0cXZEUbt@QTL_-bA$R3$j$<0rC(FPuXp$BbRaU6UDHYad!qLxVZ1-ocStwIMpsjN6sMK5|JORiHphP194W6NYJe#0|LZj1^p`x+^nYBQ zbuBZ+-KhW9`9WvAW{Lsp|6G%Q4K2iBsHhsu29M}qYgoWE5WD|kK}AkSnNnFf8tJo7 zej5)<7#OzEf*Q>gs!kB@7mQvB!w?ow@+mLj$_8oT78~^=O$<$z|J-qYe6{H`g*ojhpy>bj|HWx0H zn8G=3ls;4?*Xh8w*AAEWm??@uu}3(FlRUQiSUd1p2C>$ZkbkFx7mD9H^>+ZGiON8sXUZtELKz^=2tPbwTf z(9UfokyiL+>L*Y1q>_7I35SO0UVb=lt2;Z8Eyfie?14a!r;BPtf50_pFf(RHi5sHi zbM#i(Ky+2N=8gqSPG>1G3zEv_KP9rnm|q}tj(MfMqF;hZvSpDwauobWMi3!b*Gh8$LN zywHIQ_g%!|bUr_f!JZd<;zh67nWBr%lIP{<^gZNImri`t4OTDDDV zNyf2u4^MdcW+E(r9K|5c zuC(0UL@4E?3@c^GPU6WpUour8szH42En*ot!yX(aBqOX3GHJUCT^><*bVON9&dsy&}`8dCbA|Ay>(9o#!Xxf>wDF zi|8_3K3`g!-c2{emE&gxk{1$+-yNLZkb6b`R7JUMw{jq z(KG&YBd%+hF3mXq+-NDi)9YuN4OuQp(1LNLxHUVGtz0%{MMCoeb2;Fkv)bB(ne3?q zpM#`DZOMZ^bU~A)Ggie?;SiaaTI!eH*|RpxiFhJR>oHa zNHSB|Wst&S-Qy!T>raJXYXcEFfz8hu#R|72+FUYt$r}(kl)1=xk}Dflb z(PVkF+CL$ycOZy7@W~+xTSBId-yU;C-Khc{e8s@&nKzpBS5*uxIwPrV$>PupzlLmx zf$5pwyD`QsRSF4@4$0H1-C0poNoZt__{~E;uAGtAETZdFQy*InH(fDQI&3#Ez)AGBeuIf#)LVc@1Y`bpo4z-W+*3 z1T}-DB{7K%KVZm%or}(vM%uutO4l8w7s8vm9~W`1#7duUs*2JthQ*HKqBj_A8R6nYz0+11MuQ5D zS-Mz*P&>88QESMh%QSl16MVO=evOHof2CW^S8UZ)v7=&PQle){FmVl@p$hc_hIrSs z&nDrRMdFN5QyCY{aH@zw2k&iN5`Ok*Lg-q)mje!%@tAk=~6)lB}P2QuT-VHMHxRz zT{ND%go!|PI7QR{&uG$Kew z9Tmt5MFcA~ql10rBS=J&BErlnnoNpb49jg#uAIXb30SF&@ZOF}6j0AiA|t?F1|qX4 zxB`x(29o(=vM3vwI0K9|yH^O)Yxh;qxLmBoP?}zxhn)xZEEvWMV%-_KvDc*Ip-HY^ zo$}-ow$z(SXYy?WXe7lxZ(ul=hqFCiLbO;)`32q>n=G=9_Y0%~=mnPc&1-Qza3Bd} zJ49bES_CiO9MO@71hwpFinO?J0Uqy|ev6|44k`3D7MX*@R877XFY7$7+pSb)u)92% zX#_2O$AtUMO zuAh-FUN%p6H}&xI8PdjJ>6R(VX&Sw$A$Hv2CvdK~GDR`Lqv?58uClCHP>}w7xg`9h zCLhgx|T(~(?1;((8p$`^i z@++_y3oz2qJ;vzS7Sp?yR9&QU;<;k8C|ty0)sU=+9j*$G@fK|5==o|q4(hMDNK5I@ z&|)RTNgGzp;yJ5~Ma*DEI-rmbhPV{fA}i&~1H;PU!xLUAOFR4MN95Eo?_ZJ#ZkC%S zGd?poeq^oe5R1aBiy!RFpQcP2N7fD&JP%f!m6#;ay3-5V$&O^Q!3v-BzLj}T}1yP4+~W#N!(;)r_JAkspvr?$;RNit2BZ<7*(o@z;y|0gkIIyG~tl?E6k#RQ}bX_MNA0atvzv^`ma0sJl;H)XMpZ z_Y}%B_b~>bqTNPu2H{Fa7m!{F|i9vT~aDvTI%8waaX*!)WsQ!Pj-<0 z)=X4En6U+HL6_)?%Xuehr95>q#m7S<1J@DdLsuyl+IBKn;^R)raUnJjoxHMs!%kMqP zr_N}iJzu{3NDn-!XSB2h9Y1)3xGPD7aRZ()bZee4zBr}9<%mP8lBa3zb&jC6@B`%z zJ;h{w=Bz4|oQP2O465B#Gw4!Gnl__jkKEx9i53$&r-(9UH@avNCofzyj~PVEz{Ee; zGQnzAH^b_(d7(fT$jT`{Uvf<>K}G9z>RD-9BO)H^9>jt~-wml0SB1@vh^Q*D(EBOw%R6E@HgY7F|AK9<4K1h{|Zz+*|k?_+nA$iwJ&(d%N?LN_Rg}iDfHQ zE#B@?`%)+gtT|@V@l8_y4ay3)oE;@tF8y|h&UH=VE$whtl(3Ii=#+*_N3QcxS*&eR z<6auhGHq<`6VY!sYUb>f98o|N`o!9mjvgPwHmiO|Fkcg7oeZZASwB)vOtCw0vNYbdmAbIWfQ@`QlZPEW>DJzfIhnlUpLgYipHlm@J*)v$&~Xzs!`BtRQM2o5~F(Q>A1|?Hl62p)^DzEd?(*h)r9R zFS_BR?_m&DzJd;Q1Nm&aj;;>rp0lt$d04V@NusZ9N&DR7;<uu`E>}543=CK#3>d*r_U+5@D$Q?13PQ1$*PeIpB zi(?M~nVl9tpZ)ivs-k8WV^~k%!&wanoxG@`mZ`>vojGhL!JSI=9FD9CL{>xH+s=E) zd9BYdq^itlo14I4MDbQhbaPb1bk_kq?C3;;G;jn;+u2Q3v9~?6>wQ6Sn-gvek3lG~>Nl{-}qLWel% zA6rS5N#zj41`n&2x|PF7s6WFO#BWFra*{6BtvJBKDLRf!W^;m_W-C)_E_VTOgoei6 zbwF=rK!mqJ42QjcSBY4+fN;qKEDz8Khm+96o_0}(q)-N-xUuIgrv{=8)vVLi>BWtkJ zfh*sv#M)_VuoKr{r>?}a+S=nfI5WmZTh&He)ka&@ zMq5?bqfGHlwyI6Gs!g`4O}45{c1AbZsy5lGHrc8++p0F(sy5rIHruM={s}YL&9vuXt@AnUBAuQ&%hcwK{qFZCrl*ZoF^v2j5 z!QQCF4kswyJ(RHnhvUXcb<8cY$)Rk%Kjqe`xjyMlpOM_@5PwY@niN5vNNPlAi(4qP z^ctooS26RF1Zk$zh83%uCGP38vYW&-BEi0x!2KdlS_5uWaArS=tJm^RmR8G7q4F|R z!%d|%$@wDxFi#c6I?VQ+@+m7@VC_W0Taan)tZ8l`qNYZAzRg8yM33&nl@yeikkSt^ zMVA<@)-^OV`%!|vrJpW%E~@7#3N0;#Su<8Az2+IoRZWemUc+MK*D1BxOm)GpSfE$1YcBzj?N^4@pSN#`}p z2*IYtGv+kwHCoGXSr23u#I^#BM-?bJ%t4>+l|rs;Tuqwv%CAxx6ltg#Xu44|jIYyN z=BP#SbV1z@Ra)7+5+3Y=S-XW9EusMvoVX@I4GZrgPDmA$*sA7w)crZ47w4>LXr#Ph z&{%&~W6PYTh@M?5K5~kz6glS?=o%W)^>Y6h*=L9Xs27Bb%VOS({*?E9R0q8zVF&5; z)5yi>v3qB zBxXq!vPMg?V0pcYPgeti9Q{MpTuXNqON^PWZgYYeF*DS@<#h4&wim5?&5$sCM%5_^YAZFZ?blVgS}+AK&WVqbF|v6 z{dv}$6XHu>H5!rWRhV+Mq-mWSPp;pW(~@RpeNbXwQ$1!_zfd0ovi!9D2wrQ2KC2vIxVJ zI-tbPqLIX+7Y)2y;L=gb!;>zap0~2ABbH7J)zJouRFO`(kF5@O<2Xpg>=qm-Qgx;Y z|MhQEdSlF$OGU)3T#n4#I4r2b*3P?GqvL41d-|*vAn1FNU7d-DFxhmZmt?Z zw+uRq}?)txBG7nxgv8xP*litU`cW%P7W} z8fJU^MpZAH(pgb#GFL6Jsp4{{+TJIeD>U{*by+bvqF4;C=BR9mAa^A?g4C2udSl;r zF%DAVmJl_Txf^m6Et(s5nj-IPak_qPAuhGTzS*XXaH!31Ic|pqSi!c0Sa)r$f1?!H zj@?G4m;_;MYymEHkg+bWaDNyybc!H16mwFU+Bu2h8j&?y(};b7I4f?LWhPtii}T%mlsfL*j-%HyJeo{bF`6n;%}Pf?v}Wl`kKl2s>m+rm?4;D1 z8n2dMtcqBWYqVCgl&iU_c#%{3@KY6!6`yF#!4f=Xks6Aw0-MY?WOL8~s4@xSQq?W0 z#BIv>is_RFnEoH8(YmUg!d2$XpVGcq_<^By>r298NNIbdZ>mR1vz4 zFX`gq=%Qpso^o;tjwCjvQ|3n=hw|Hk)^o%%Xq733PFFaF%%v)3r)Yp<qky2GUnN3+M_y&3OMQ#TozqTvV#Lzt-uT?SwVaTOAUXjht?usn#n1Yeo-r%qrRz+f& zCR@2G8H0TDuW5DcqG%cIPE(c4wwhHk25O=zRI_zcQR9irv6Y{=jLPY-c9C9pO5!9{ zpB77sqc;hLPXEj=B5-c6xQ_*E^B9M$P@`~!>%D~|*i=Ohr7=g3HEp73jczP>{zr|t zx=wB(Znd1}oc%UuY33xilygwo`Z=_15vDkEz z4mh~ZUCA;d6gj7Mcj>YgMHoHu_#H}^+{_b~P%BTOi6AaK<%&6e?MhS(d34fZnT!O+ z(3;7NAvIN3!=TC-SrkjHr=p@pt|Y{rlQ){NgVa#f zqA=BqAh4=w_)tFk$GFsY5}L6ZM8eso6N#h!bjmcWG@GP=w&5Zbt`bvstuM{MOsN@YA{(W_rv!vUQ0;^2h(cE;3ZiN84fsALk9oU5E(bz z(3VpjC88*{maC%1tDfGFxKF7H(ehdl)aO)IP6(=sLN>;#NUaF^^1XP836H}#*tMOX zx~QhE)8I*+N@9A;*-9k5+OMFG7H>OlCN|r@UrGHPoVsKhe;ZPLve3o_NEug2j@Cz4 zTZIZ(i4GQ@5UZ^qDiY()U~xUVE9YIp`-gZ>r3yuc==Sf-fSW;%@u>8{mC_g>@Ww;| z)zT2|q+KO%XRL;FK*Z8#_jgXg`9fwW10~2<;E;|nO0yA*LCUNb+@dYA1fD#vLL#1m zE6|miE?TziVtA+bjpDLaEHBWH_%}W|>q5w$TbJyIb7s0jJPU3psw#uQAbNY{8(U2b zxK$L-sF@`kA-zJUZ|I^%sHL49)hVwS!o+m(sFE~#GMG{nmG8IbYI$6aU} z;w{!tg)@n9|7sOfssp5#7c0aryOHR*qMjhpS$FV#I2dXxh{m*y-=mg?7#!rjL7%!D zx@6W$yhf2%H|1GXnsP}aEaT30<-8v!a1eLR7Kc5vff&-{{n^5`K28{u<#Tf?rbP6G zbenv9dI#t}P24P7LBHUUO@}yXU9R)fFgNSbYn8=_UYp7L%Y&E~yM|B78z%CLqXHeC zut+2KRLm1lGMZE>7@vq_s$9y?%a)7g`bA4aGA${V4STtE+=QIPtBkJf<|Jcwll6w& zgIGY)U)Bx~SXBn*UVX!)E{Q%){Gi_Ha-`bg8BArf{kYmZf+y&D`|ISrDuz&ZjGYCAe`;f%aBH&mfR;)xKK z&r`3JmapAF)ZT^i5!{{k;f38RrU(wJ^q8TF_g)H z)BpxMT2=MJoPo!9UFM%qYGlggBRetkPqd>TkK!~yS0@kCpmD;>sRF5d7N{eZDvcFW zDN{rq1yBCOG2j7W@#MW@W~6k(=91`?fw^-m>?IOwRb_LMN7fbQl~<$|L=;RS;!Ld4-oJ=@R%Z+=NyZXCR{0rpk|p z#s)KEaYcX^ifHaL$1AP&@Vb?JqbgS4K^R%^mLiRIWUWi1?NfT=B2l@`Z}!BIk|9v} zMn$KM-f)s{6*?wvp@P<|=+WZPqZBISrbqcXg}C(KIsHvL(xxqfax5&;#;oXNGDfVL!&`tQXm-ndEXA z$8VBF+W~cbGkCV4CyNKGU5|fN&<^uE*i`!SWbRUrs^cdF6cvXgEEmB${{(0Dl~8zL4~4fwoSXxkybAU zCCwhxYu2s|2+O5OkXlH@RGlzWzFZnD%h!u4#}F|-x-}1MroD)(O1r&GZQ^)%@u7(+iR;xMZ>r=6@_?)6^485ln%NJ#K&~=JluIp6V-a;}x zo=qo53z=17l`lIFwE>PDY4Z$yC`cQ8gIQkk)GoZrkfP`OEvzD)v{>~BsEw}uS~Wjf|<$UR1P!Qg4j!} z8z^B)z%+eIg-D7HIq$YuwGwuO^`yqhhAG;=E4YwPmj_BkuG|(yTbuTLq84h^ACc?o zFpgG|P9Mq-xht8t6PB*VB)Q#5!J zPXAT7(x8Llfj~hvVzQ$RMy;^in&fISb$Z3RW%9ql58Xj-(&V^KE)B$=T97cKbO`$i zoD=E1Fah?anr3Gs@ozs-`wn%ytCBx{H&AZ>r>3%ok<;51fU1i~R2D+=B3fl*cJ z%H(rm{urk3=AB@luQOejQoXp?Wdy&ANY2is;Ut1Yi)keWghHw?&PfhE)LGXZBtDKV z*%&JBhw8eBAv`9|2?~nP2NUBu ze9`eJf(U+^A9;&1r8@OTv?N6lkVeQvj-&sC6|zW~&wobC4QO<7DO(Kc)Thc}wJwc6 z(H+2hP#EORU}E9{)(GnDsK5(?Xl_^sDzFoU$uD*8%ZmZRrFn=zpEgKpSiN1w6Y(}vS0h6t766a zdplog8Fz%tG>gR1{`+b{Trm3o*wum|8@sb1)BJlbdBS>Wazda*T28qg$P*#acP$F( z!TFMCLTd?c)=SOc5q0w<+2S0l_%@X)x-L&Xvi<*Pm#-y|-Vqj7L|EOV(W1F1pRzCH zN7`XM=vg#?-vgr1GEZ>&v%^?yb zhV$iY+Tm!#v01JIrk{}=XJ;GDyr2r^CDFb^OkjHnQ2;NEm5Eh)4Una2Ch9ubswlVG z#b22oKgZa?!EheH954YBlsE_ky=YG8W3!OqNs=$5yYh0E7}UA}f_ybehkE?jE~lq5 zYOKJq_lVL~9#5c?E2tj0?CB$;l!z)Am`{+}1#mV%2>!zUC2gHp4h3YI8zni?A3gosHx_SPeL#7sNnL-ZYrhy<-Hh9mY`?B+KRj!{ zbZb9!`|ro1)l=X9ek@w$#J?YlRynbqAB)CdWj}iI?#_Qiod*YxI0+p7N1y64@{?rI4g;{a*d z+BIfs5g5-SuTfI8ucweg3RWS&tz{IWG>a&cMaW_l%+oOCG|VI6mndvXQBvxXIF)*v zOuweXMI~ajEH}CwLody2qf=pV_;3FxzlAvJ!j5q_si~>?%TIUTR8w=r$vzgV}NHofM^4VqIx6FiX^w{V2 zoAJ=bk%w;Ee8dm#`_-N+7vK833(q+9H~rUNv+kFl{q7g8Y(De;SwpX#R6g_<)8@?j zP3M$zKd?vtfh!(MJbBjEtKW0ica9nR+~rTcsb#}&PQ37Y7mVzATGtVeXVZV3d2wsU zm2bb~@EJX~-aG&Ed%xv~dr$q$r$7JN$G-Z^m%N&p-~IlP$!`=N+xC`B@`79Mf76Gi z?)K8ndtUIw7q)J?s{f|*YYu&-{jSoRX7v2*l!uaUd-uv?9{SApFMVkB{tL6;|MUz~r^V}mu9jy-tgq5Hk>?FYSS##`R{kLk~JUA|}Wr*FIZ zoO}P){Fgod{^+)|Qum#<>syPLp8LWXKUn|!Z!BB*^1-iOf54|#5B%{*hyC?y$Dh=4 z-jWqh{p=6J&t5*dZej84uJ1hgyB{C*wI_}%UG$4vulmTm4X>s4neoVr!;7E4>)hM_ zYtb&fpFi!!Bd`DMc;VUHUl#swv1IUzsz`={ZSkvk3$YT;h06gy5eVh{bje8x1OH<_KmN;{haA{ zO=+LH_xBpQ_UOIhj~D%|>CxX_ciJ(peet;ue)WuO<4LD2{P^q{Pk;Brlm5Qzw;#Rr z&F{SMzwUZ9_u@&5fAOWGYTvutF3&&whyS_ou)*J4@X{X|m;Ucl^DkKclVALO=#uW4 zQ*Xb!<(@BI-uKbhzBm7jU8Ya{-Jw&?`R+mKXMgyvV{SVA$}>;D@(Y`~{(R5X_4nTX z-(T4K%QK(Z|BH`Jx?qp9e)90OC$67;+%*S%Wzy(ZTb_O5n7==eZ#nNrzx-o;skZy) z!=GLI-kA?wa>Xx-pKW^R`IkTYli^AA2VcMOumwNb<=0!Ex$1$h-16vE-!DG)j`5eq zpV;TQQ+^KtBGiBh2Ns}IY+t(kz_KLe7oZf!<@}I1@^{H#lyu5XfPkw3RCmJ4m z^O?8*_qs&==1EOw%wG77k3Ti9=lg$taQYuFpMTb^^&77F-TbAi{&Z(&Yxcm0KL4)A z^K-MmKk1^6j_uX4+q;H8cJg&ke{Ea&ZO>dg=MRhi(bxaw;o`27eth;`S3dZbAMZDH zS?90&R-AmxDa+4l_{9PDto>HGrQ^XH&pmvn9~|}H_4{0V?-L^%rakwWKizxIXD|QJ zw_2~b{jz0m->^^V$6r3>XPdSivdf?A_uMPF+bjD$v-E}2?|<&Hqt5xwt54lL!+YVw z`|tGRKYp=f>4(4dkD2fPa=$~-jM$M z=v|55bbVsW_}yb)`tVbSZ{7FsJC0g){=uEE{_H!~l@DF{*stIE=(lH0{?0iM@ABF% zS9P6m$JB4U^4C{?`|1N@Z~x|}w!Q0_`|oW3>Ae1n_nx%Nmj(~{{J`YIIWK#kI`)J2 zEx2d*+dgpN6SIf+UU>hj_x#t{mlPf;J^r^3PW$orqO&)?_TJsEnt9&R?i)A%{2$*Q zIdJRWe)Ow`kpu4f^U6D~$**ia@9Of>oe%u*UdQio$kct_`GY0beJlH=(m|Wfd+4%D z|8{uW^XqPSYL7qlee&CjzH`y_`<{Q#Cw9K^$TQ!1)CI4dciR`AyL-P&`x-y-=w~P2T=(BMt*-s$*Dt#EN2jiN;h^tc z`s^+zE`Ia_58b!y(Ch{O^NZGB{c&{K!Vm0!)XqP6r2U=8ee8XEy?k%ux*tEjX_rS% zxn-xB?{8c9+48S1UUuZmzyIC%fs?Pf>1{vz;Ib(z|L5|9-+aP~Z%$wL=`)`>dg`)Q z{%7`Ip1i&DEt7xwj&=9{?K6+vzRSUTZ@KQ>-)uWDyVSd-^}JbE-?^skfDOC6+P?m{ zsRu2d{q(!ncK+qik6rTOqNOMP=Djbz{hTSQ(id)QeQmFI9{`>wWL;+ueFqyR}tA)!|I{>92dvZ>InKou2-hp6Cxb@{P1v7Nm?b^UaJ| z0oaEmUlt32G1He}Ra~?+Ix-b2nI~+C?&piC*jC>ypBMDWo+t1YWW3Pwu5I_-wiH?AIo#{5z^--A$#TJ=3_fSY5viDLWJ5Wtt!v z4?X^?t-DW|n__#y`bOro?j=j;*5tz~NjHn}iup_OsZlSDqHZzY1LrH7A#WJ?5-$0bFBsgh#(bR@tQ3x?7-_0p z?d(-3tYu9X+RzGxryrLJ7e7DnWU$sbHqvZc##FIOU+0bjRb&i(tj~;4SP`*d=<{jx zSR1NLy6#=+hjE5ROG-?~=)KSLi50H(yKUv&(+-V3q#w(V%{6_!$|*jqP`emdJlZ7{ zR-aoHcaIz2jhmJ%0yC*z!n8N!`RaP7E%f;lOQtgEZ#^wydi&^p+KbJFjJh*044KgA zo)aED!*Pih_V$(~H{O0RljhUxjYp0!P=6iR%+qd=`;31_okXoCcTNM(`uXrDtw%Nq z+^ajMb*?@PZ4sa!4xbv{^&MNI-6~7PGkEaX4%)`~wakc|-*hs3;|YJ3u?jKYT&9ln z-B(o=Bm$Q|A+^>8C2U*K+TjCaMJ>~pn&;&8(*+ooawM5(NU2T~7ma%FdK1#sZ#{ml zZen}wRK|X$RyaLrp@PcYGg-A++fwKmU&1FNVwY?`qIUz+T!jj~O9?lr2=Tvz53v@|ahUyuulY0J7aMlCxfTcV-1Fjy~0ToL;jaXWd&#wy1` z+oy|0K+~cg04OGe_nfX)ikChkgD>=bPN}voAbVv$6~P@`rg!=sIk8gGZia<3p-o3G z(b5_R6T|4sqM==m2cc%)>k@`M6ViEAwccKzr(oKx)isK+S_@nsqDf>I;3Z`2yRD}G z_Wb6f)V4uQlo8`3=0;03hB!ed;@S-x&h6yicgk3?xYJ>8LH}Mwz$Q18K+G~-dcOA z@k+4hvi!$PouTW)I{HZSRs-z@s|V=vb2r&eeqFNdHsG%AFIUeD5;cUs*TAn4V;Gcj z%O^C}(5Ki#6+C4)2<}eB6!blX_dKbE;}#s97dOvZb7RA24PyNv(V~k=5*88v6l!i^mSE5;Y6@wmWk1WvH15J zC}j?GZ!>BNEvhLDyAU>xyqDm7B~P{2hsxiVj|=aa5KAEOt`({#WhGigbNlvV!OeMu zn&2LPwpXFI{UEC@XGhTVR;hw46gVi05Dg*{&AO&}id{t6Yxd=Qw4mj`%bzk{e(no7 zi~P!aADGZpCpH>LXpylb*EPIk0hOKV`fJ~x7Vy-u-&tUiLB%Up=8kK@_D{iC(^8kH zQ?#+;tc@k*)+ zKyqblg3|dwZC`z9H;$o{5>@3-klEmNE7VZL!{fDp544?$CR&j?hggSaYp1B--onWe zi(q_LmTTP9jM=0`j?ZPBe$);Py($KkT)xFu+!=Q?++W%7xKB(oBUU+$9>Pm{C{r|Lr` zpc`!Cuy^o}lF3nBC!DESM;va61rH|pkwN--djcQ2e^rRUcg{FQ`22OfxTMZXQO~*u z?}~_$TIW&)!sW_I?#Lp#sYMy~iMqV|WYPnE)p@Zo@7IT!U#9ozSRcIqCbg;NU+Hgr z^3kJDR!!g2b#L-gJ54|5a5LMQy`~5aEfruPAl=+)?9G<3=zqrh!MT1D-7MJ4bDxx_ zs_k1R?`Z^Aoo?Er%j?nw1MPG%oXU?YqeTRa_VgTo4!jE=ulaVx9B(=L*MR!}yN1e_|FGxE_ZEeX4Lpo3CL{9-7d zXH2~Pq@`Sy{plu}qkN={|4h+^8>T$Yu+nXArqt!nU*tSy$pYS z&r~9E`7yk)8ju-fLH<4w))zAu_yXG9R*52Gn3|a`%S|nN27c$d!6n;+F`ZMYe{bxw zzPolO@s`@_svu|iobfQ#;DuXUcRl&Ili&HYrXVJkyu+_{a@?8xjOUPz-nKl@8Z3QD z8+jpvcQ)qfy~^uhcq+YQYo(RMSt_jn4?dlX$UF|_~e<$s~+ zJNbJrAhG`Jy8^50N+Kz;S@8b)6y!_UGMWZWX_i)h$(r8lrsYsax{FASyyw>6be5aUClk|<6Z5lKW8}w8MPt1kf_Kp?U zM5&*q_CNKegP-NRmfIG(m-<_wr!z?;5MNbsRV4%TEx8d9BPpYZVuU(n&-=`p8O`;l z`Scl3MqjoqPD-vgQ^N4}#kbZ4)$jEvgj3@J!eS^-ur&uYcaV|^yL1b@HFG6@?4%mq zJlJXBu;w?fan=B4QtNVc_jZcg|p0N`g$H6@Cg!d3Uuz7^w0ZxeE@&5NGFu>A3 z?BGAoWQRF;c%_IoSFI!RZe#XT;CdqS!De8HCQ^8dZea;UZN8kED*O zs)@Fgn3xLhkBTV46V{fLFIGMFo1+sU6q^G7c4o=ISJX{F3?a$kH3|q3v@iyUfkGfi zI6y&2Vi&6pamI&1Aq0587XqycF_f4)Wir$102I9NNGra+>?fnqY#oC;KXK<(J=qWRK{-K zakRkz;^(jR;6?y+z;SFjd>V=$Zn6rdRdyC3lf`=LY;Md2|9uUGd!wNeEZ~+{JY=x|`%s)*X{k?v( z#Fhr*ue<jt13bR z-qra_df!vRYV*R0i=H>|5udk zzmklFE4N8luS~P3>8}v1+Js#cT#+a;)i(K%$dE9*t>v{rbcY>)E}f9y(kFQqtyp$- zdvw4hm(%muNb!ROM!rtgto(5Dn`()c&*>yZ2fN@pL&x1m`x*Q_vCG{ z_L(SFZBP9_6cf4v9muFID8`9iM%MynA1q)ZNpAJ2%(Kn`2d*~G4>eu{7lnOcJ10N>@7}N7(#cTl9C@8>L;4cmN`GU6C#=w%l+6Nb3A^iO9 z!Ns}Y+rx%={@5c@=pVY~p?q0MT+?`ID3pG@L5wLhpbxhm@ntt%4n0{EBKi=rv}!%Ls#E5($kmCM6rtxaE(pE$334H zadI5{cB3LS0BzU9Xh|ZRUbm&9{@G3{pLRoz+ZAzH)Z-fkW_Wg`Sa{pW!_ukEQ8eV6 z43WUul_@wI<<$KE2EE2fiRkt?lgZL+%_2&>FUHR0N8K=NVrL(?tNG~@F;p#8(Aex?kh96=EJ_joe_h`3{d)R!Yt$RB=!6}?KtDkfHg&K+`Sj3sO!dx^=Q?m zfenq`x{WoNTm9bN7P^tG(iss(+!c)np!bS;WpAJp8n?%FCf|`x%w^e0iXQv zbmcA;4jW1zI7Qm4v;$S{SYo;AX_U#+yC=?HDUWQ^qX;9so=~fjx3c_G4WUv11}X-S z|586F@K@*QZ~YX%BP{}*CnvxG5Ijl)&{(!34+vC)fZvoXB*e+z6^xp8_6Lx^ibG<# z{-v+=!w3)qKTeh-HKhd;$H3#r75bs32mh#$a6DW~n-N*)@i-K_*Ut?7xnKL@@x(pDrf^ ze5yM*^g4gfBtObL;!gp=KCB&TIfWEgN`&5N9#)>R$5{mhm6l2mmf?(W?>*+1AM3)s zmaMI8R<)WxS+nE!EpV8`tjfHRVw01H+vf^4EW`AJqk+tbJDX{rI!921HaW@FGcp@- ziC;@HV|K@aHTJHjPE|4LC3?HtRt|*_ox#hie04Bu$~j3#{hnkj_TpBHn}qR%^xK5X zMG}#nMLebce2Fo1T1*^iJA8$BlM(yp7sZzql+2aS#dK76Y^*9gw#@2qdLz$6%Whut zyn%b5+hTpXRl+-vYE?xn$!hIul^&_Moh@+*7O5moQfR z$<67N*>sN^oqKKb-OSk<^)Zx7~$7|3%_tB)SF zN$`!%9yJ=c#CV^ z;&&!GCyOkOnKH_pt-g1AKL9}eG;nkxfg*)LsrYk_;J;ywf$;um5Auba1pO&G)ag)f zFT~GCUpaQ95WtQAcQFU!hJ9S+*iDR81*OaM&GpY9KnEuv5TS3Pq^+Th zU>6h?R>VHl2@9(jt045XHH?fAU>(B3XLQ*S>^}wRuYMRB7*Pv`-hd4V|7ZaveAvD`>F?eZ z*dswucxmW2$=lXBYF7A=%&kzH;9XU?)Dy<+gDzDIcA<{SMobXq@`#OLJdER|cR`1b zWwpf1*4ZXRie%;xlZV-Gk_gM=vvB@U|Aa68ft!orA-!Cp)O#MJXVsqt^Nsdi#p+ z3(W9K+`_YqnEbY^t2tV7a>ZAH78+;h=h>@1q + + + + files + + files2 + + rules + + ^Resources/ + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ + + nested + + weight + 10 + + ^.* + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^Resources/ + + weight + 20 + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^[^/]+$ + + nested + + weight + 10 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/_CodeSignature/CodeResources.meta b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/_CodeSignature/CodeResources.meta new file mode 100644 index 000000000..4cbf1969c --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Mac/AppsFlyerBundle.bundle/Contents/_CodeSignature/CodeResources.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 724b52b308e9a4a6d889d7bf3945a2ca +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityStoreKit2Bridge.swift b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityStoreKit2Bridge.swift new file mode 100644 index 000000000..e44f781f8 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityStoreKit2Bridge.swift @@ -0,0 +1,79 @@ +import Foundation +import StoreKit + +#if canImport(PurchaseConnector) +import PurchaseConnector + +@available(iOS 15.0, *) +@objc +public class AFUnityStoreKit2Bridge: NSObject { + @objc + public static func fetchAFSDKTransactionSK2(withTransactionId transactionId: String, completion: @escaping (AFSDKTransactionSK2?) -> Void) { + guard let transactionIdUInt64 = UInt64(transactionId) else { + print("Invalid transaction ID format.") + completion(nil) + return + } + Task { + for await result in StoreKit.Transaction.all { + if case .verified(let transaction) = result, transaction.id == transactionIdUInt64 { + let afTransaction = AFSDKTransactionSK2(transaction: transaction) + DispatchQueue.main.async { + completion(afTransaction) + } + return + } + } + DispatchQueue.main.async { + completion(nil) + } + } + } + + @objc + public static func extractSK2ProductInfo(_ products: [AFSDKProductSK2]) -> NSArray { + var result: [[String: Any]] = [] + + for product in products { + if let swiftProduct = Mirror(reflecting: product).children.first(where: { $0.label == "product" })?.value { + let productId = (swiftProduct as? NSObject)?.value(forKey: "id") as? String ?? "" + let title = (swiftProduct as? NSObject)?.value(forKey: "displayName") as? String ?? "" + let desc = (swiftProduct as? NSObject)?.value(forKey: "description") as? String ?? "" + let price = (swiftProduct as? NSObject)?.value(forKey: "price") as? NSDecimalNumber ?? 0 + + result.append([ + "productIdentifier": productId, + "localizedTitle": title, + "localizedDescription": desc, + "price": price + ]) + } + } + + return result as NSArray + } + + @objc + public static func extractSK2TransactionInfo(_ transactions: [AFSDKTransactionSK2]) -> NSArray { + var result: [[String: Any]] = [] + + for txn in transactions { + guard let mirrorChild = Mirror(reflecting: txn).children.first(where: { $0.label == "transaction" }), + let swiftTxn = mirrorChild.value as? StoreKit.Transaction else { + continue + } + + let transactionId = "\(swiftTxn.id)" + let date = NSNumber(value: swiftTxn.purchaseDate.timeIntervalSince1970) + + result.append([ + "transactionIdentifier": transactionId, + "transactionState": "verified", // or skip this line + "transactionDate": date + ]) + } + + return result as NSArray + } +} +#endif diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm.meta b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityStoreKit2Bridge.swift.meta similarity index 94% rename from Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm.meta rename to Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityStoreKit2Bridge.swift.meta index a05b67a6c..92217f900 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm.meta +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityStoreKit2Bridge.swift.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 476b7c27be2254b7abe547c3679f9d9f +guid: 5652805602a6b4273a6e527b00aea272 PluginImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.h b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.h new file mode 100644 index 000000000..d3fec431a --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.h @@ -0,0 +1,24 @@ +// +// AFUnityUtils.h +// +// Created by Andrii H. and Dmitry O. on 16 Oct 2023 +// + +#if __has_include() +#import +#else +#import "AppsFlyerLib.h" +#endif + +static NSString* stringFromChar(const char *str); +static NSDictionary* dictionaryFromJson(const char *jsonString); +static const char* stringFromdictionary(NSDictionary* dictionary); +static NSArray *NSArrayFromCArray(int length, const char **arr); +static char* getCString(const char* string); +static AppsFlyerLinkGenerator* generatorFromDictionary(NSDictionary* dictionary, AppsFlyerLinkGenerator* generator); +static EmailCryptType emailCryptTypeFromInt(int emailCryptTypeInt); +static AppsFlyerAdRevenueMediationNetworkType mediationNetworkTypeFromInt(int mediationNetwork); +static NSNumber *intFromNullableBool(const char *cStr); +static NSString* stringFromDeepLinkResultStatus(AFSDKDeepLinkResultStatus deepLinkResult); +static NSString* stringFromDeepLinkResultError(AppsFlyerDeepLinkResult *result); + diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h.meta b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.h.meta similarity index 92% rename from Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h.meta rename to Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.h.meta index 1a8834616..f6811a687 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h.meta +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.h.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 403bcefbab2d04a9da127ba76b99627b +guid: 4b0609ff467554f2088aee1c52bf54a2 PluginImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.mm b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.mm index 8e55713a7..611f269d9 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.mm +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AFUnityUtils.mm @@ -5,12 +5,7 @@ // Created by Jonathan Wesfield on 24/07/2019. // -#if __has_include() -#import -#else -#import "AppsFlyerLib.h" -#endif - +#import "AFUnityUtils.h" static NSString* stringFromChar(const char *str) { return str ? [NSString stringWithUTF8String:str] : nil; @@ -37,6 +32,21 @@ static const char* stringFromdictionary(NSDictionary* dictionary) { return nil; } +static NSDictionary* dictionaryFromNSError(NSError* error) { + if(error){ + NSInteger code = [error code]; + NSString *localizedDescription = [error localizedDescription]; + + NSDictionary *errorDictionary = @{ + @"code" : @(code) ?: @(-1), + @"localizedDescription" : localizedDescription, + }; + return errorDictionary; + } + + return nil; +} + static NSArray *NSArrayFromCArray(int length, const char **arr) { NSMutableArray *res = [[NSMutableArray alloc] init]; @@ -98,6 +108,72 @@ static EmailCryptType emailCryptTypeFromInt(int emailCryptTypeInt){ return emailCryptType; } +static NSNumber *intFromNullableBool(const char *cStr) { + if (!cStr) return nil; + NSString *str = [NSString stringWithUTF8String:cStr]; + + if ([str caseInsensitiveCompare:@"true"] == NSOrderedSame) { + return @YES; + } else if ([str caseInsensitiveCompare:@"false"] == NSOrderedSame) { + return @NO; + } + return nil; +} + +static AppsFlyerAdRevenueMediationNetworkType mediationNetworkTypeFromInt(int mediationNetworkInt){ + + AppsFlyerAdRevenueMediationNetworkType mediationNetworkType; + switch (mediationNetworkInt){ + case 1: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeGoogleAdMob; + break; + case 2: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeIronSource; + break; + case 3: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeApplovinMax; + break; + case 4: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeFyber; + break; + case 5: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeAppodeal; + break; + case 6: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeAdmost; + break; + case 7: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeTopon; + break; + case 8: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeTradplus; + break; + case 9: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeYandex; + break; + case 10: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeChartBoost; + break; + case 11: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeUnity; + break; + case 12: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeToponPte; + break; + case 13: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeCustom; + break; + case 14: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeDirectMonetization; + break; + default: + mediationNetworkType = AppsFlyerAdRevenueMediationNetworkTypeCustom; + break; + } + + return mediationNetworkType; +} + static NSString* stringFromDeepLinkResultStatus(AFSDKDeepLinkResultStatus deepLinkResult){ NSString* result; switch (deepLinkResult){ diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyer+AppController.m b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyer+AppController.m index 47de22742..f8775766a 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyer+AppController.m +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyer+AppController.m @@ -29,6 +29,8 @@ static IMP __original_openUrl_Imp __unused; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ +#if !AFSDK_SHOULD_SWIZZLE + id swizzleFlag = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"AppsFlyerShouldSwizzle"]; BOOL shouldSwizzle = swizzleFlag ? [swizzleFlag boolValue] : NO; @@ -54,6 +56,29 @@ static IMP __original_openUrl_Imp __unused; [self swizzleContinueUserActivity:[self class]]; } +#elif AFSDK_SHOULD_SWIZZLE + Method method1 = class_getInstanceMethod([self class], @selector(applicationDidBecomeActive:)); + __original_applicationDidBecomeActive_Imp = method_setImplementation(method1, (IMP)__swizzled_applicationDidBecomeActive); + + Method method2 = class_getInstanceMethod([self class], @selector(applicationDidEnterBackground:)); + __original_applicationDidEnterBackground_Imp = method_setImplementation(method2, (IMP)__swizzled_applicationDidEnterBackground); + + + Method method3 = class_getInstanceMethod([self class], @selector(didReceiveRemoteNotification:)); + __original_didReceiveRemoteNotification_Imp = method_setImplementation(method3, (IMP)__swizzled_didReceiveRemoteNotification); + + + Method method4 = class_getInstanceMethod([self class], @selector(application:openURL:options:)); + __original_openUrl_Imp = method_setImplementation(method4, (IMP)__swizzled_openURL); + + if (_AppsFlyerdelegate == nil) { + _AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init]; + } + + [self swizzleContinueUserActivity:[self class]]; + +#endif + }); } @@ -116,7 +141,7 @@ BOOL __swizzled_didReceiveRemoteNotification(id self, SEL _cmd, UIApplication* a [[AppsFlyerLib shared] handlePushNotification:userInfo]; if(__original_didReceiveRemoteNotification_Imp){ - return ((BOOL(*)(id, SEL, UIApplication*, NSDictionary*, (UIBackgroundFetchResult)))__original_didReceiveRemoteNotification_Imp)(self, _cmd, application, userInfo, nil); + return ((BOOL(*)(id, SEL, UIApplication*, NSDictionary*, int(UIBackgroundFetchResult)))__original_didReceiveRemoteNotification_Imp)(self, _cmd, application, userInfo, nil); } return YES; } diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h deleted file mode 100644 index 5ac6fec93..000000000 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppsFlyerAdRevenueWrapper.h -// Unity-iPhone -// -// Created by Jonathan Wesfield on 01/12/2019. -// - -#import - -#import "AFUnityUtils.mm" -#if __has_include() -#import -#endif - -@interface AppsFlyerAdRevenueWrapper : NSObject - -@end diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm deleted file mode 100644 index a23bd7239..000000000 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm +++ /dev/null @@ -1,38 +0,0 @@ -// -// AppsFlyerAdRevenueWrapper.mm -// Unity-iPhone -// -// Created by Jonathan Wesfield on 25/11/2019. -// - -#import "AppsFlyerAdRevenueWrapper.h" - - -@implementation AppsFlyerAdRevenueWrapper - - -extern "C" { - - - const void _start(int length, int* adRevenueTypes){ - [AppsFlyerAdRevenue start]; - } - const void _setIsDebugAdrevenue(bool isDebug){ - [[AppsFlyerAdRevenue shared] setIsDebug:isDebug]; - } - - const void _logAdRevenue(const char* monetizationNetwork, - int mediationNetwork, - double eventRevenue, - const char* revenueCurrency, - const char* additionalParameters){ - [[AppsFlyerAdRevenue shared] logAdRevenueWithMonetizationNetwork:stringFromChar(monetizationNetwork) - mediationNetwork:(AppsFlyerAdRevenueMediationNetworkType) mediationNetwork - eventRevenue:[NSNumber numberWithDouble:eventRevenue] - revenueCurrency:stringFromChar(revenueCurrency) - additionalParameters:dictionaryFromJson(additionalParameters)]; - - } -} - -@end diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAppController.mm b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAppController.mm index 1290b9c7d..3e492c094 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAppController.mm +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAppController.mm @@ -101,9 +101,11 @@ @end +#if !(AFSDK_SHOULD_SWIZZLE) + IMPL_APP_CONTROLLER_SUBCLASS(AppsFlyerAppController) - +#endif /** Note if you would not like to use IMPL_APP_CONTROLLER_SUBCLASS you can replace it with the code below. diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAttribution.m b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAttribution.m index caa591c33..c4e727820 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAttribution.m +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyerAttribution.m @@ -67,7 +67,8 @@ - (void) receiveBridgeReadyNotification:(NSNotification *) notification { - if(self.url && self.sourceApplication && self.annotation){ + NSLog (@"AppsFlyer Debug: handle deep link"); + if(self.url && self.sourceApplication){ [[AppsFlyerLib shared] handleOpenURL:self.url sourceApplication:self.sourceApplication withAnnotation:self.annotation]; self.url = nil; self.sourceApplication = nil; @@ -76,8 +77,8 @@ [[AppsFlyerLib shared] handleOpenUrl:self.url options:self.options]; self.options = nil; self.url = nil; - }else if(self.userActivity && self.restorationHandler){ - [[AppsFlyerLib shared] continueUserActivity:self.userActivity restorationHandler:self.restorationHandler]; + }else if(self.userActivity){ + [[AppsFlyerLib shared] continueUserActivity:self.userActivity restorationHandler:nil]; self.userActivity = nil; self.restorationHandler = nil; } diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.h b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.h index 96e3ca826..cf73afe58 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.h +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.h @@ -13,10 +13,27 @@ #else #import "AppsFlyerLib.h" #endif +#if __has_include() +#import +#else +#import "PurchaseConnector.h" +#endif +#import + +// Add StoreKit 2 support +#if __has_include() +#import +#endif + +@interface AppsFlyeriOSWarpper : NSObject -@interface AppsFlyeriOSWarpper : NSObject + (BOOL) didCallStart; + (void) setDidCallStart:(BOOL)val; + +// Add StoreKit 2 methods +- (void)setStoreKitVersion:(int)storeKitVersion; +- (void)logConsumableTransaction:(id)transaction; + @end @@ -36,12 +53,19 @@ static const char* OPEN_STORE_LINK_CALLBACK = "onOpenStoreLinkGenerated"; static const char* START_REQUEST_CALLBACK = "requestResponseReceived"; static const char* IN_APP_RESPONSE_CALLBACK = "inAppResponseReceived"; static const char* ON_DEEPLINKING = "onDeepLinking"; +static const char* VALIDATE_AND_LOG_V2_CALLBACK = "onValidateAndLogComplete"; +static const char* VALIDATE_AND_LOG_V2_ERROR_CALLBACK = "onValidateAndLogFailure"; static NSString* validateObjectName = @""; static NSString* openStoreObjectName = @""; static NSString* generateInviteObjectName = @""; +static NSString* validateAndLogObjectName = @""; static NSString* startRequestObjectName = @""; static NSString* inAppRequestObjectName = @""; static NSString* onDeeplinkingObjectName = @""; +static const char* PURCHASE_REVENUE_VALIDATION_CALLBACK = "didReceivePurchaseRevenueValidationInfo"; +static const char* PURCHASE_REVENUE_ERROR_CALLBACK = "didReceivePurchaseRevenueError"; + +static NSString* onPurchaseValidationObjectName = @""; diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm index bddd39ec0..88e5d233b 100644 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm +++ b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/AppsFlyeriOSWrapper.mm @@ -6,7 +6,22 @@ // #import "AppsFlyeriOSWrapper.h" +#import +#import +#import "UnityFramework/UnityFramework-Swift.h" + +#if __has_include() +#import +#elif __has_include("PurchaseConnector-Swift.h") +#import "PurchaseConnector-Swift.h" +#endif + +#if __has_include() +#import +#elif __has_include("UnityFramework-Swift.h") +#import "UnityFramework-Swift.h" +#endif static void unityCallBack(NSString* objectName, const char* method, const char* msg) { if(objectName){ @@ -17,6 +32,9 @@ static void unityCallBack(NSString* objectName, const char* method, const char* extern "C" { const void _startSDK(bool shouldCallback, const char* objectName) { + [[AppsFlyerLib shared] setPluginInfoWith: AFSDKPluginUnity + pluginVersion:@"6.17.1" + additionalParams:nil]; startRequestObjectName = stringFromChar(objectName); AppsFlyeriOSWarpper.didCallStart = YES; [AppsFlyerAttribution shared].isBridgeReady = YES; @@ -57,7 +75,7 @@ extern "C" { } const void _setDisableCollectAppleAdSupport (bool disableAdvertisingIdentifier) { - [AppsFlyerLib shared].disableAdvertisingIdentifier = disableAdvertisingIdentifier; + [AppsFlyerLib shared].disableAdvertisingIdentifier = disableAdvertisingIdentifier; } const void _setIsDebug (bool isDebug) { @@ -72,10 +90,40 @@ extern "C" { [[AppsFlyerLib shared] setAppInviteOneLink:stringFromChar(appInviteOneLinkID)]; } + const void _setDeepLinkTimeout (long deepLinkTimeout) { + [AppsFlyerLib shared].deepLinkTimeout = deepLinkTimeout; + } + const void _anonymizeUser (bool anonymizeUser) { [AppsFlyerLib shared].anonymizeUser = anonymizeUser; } + const void _enableTCFDataCollection (bool shouldCollectTcfData) { + [[AppsFlyerLib shared] enableTCFDataCollection:shouldCollectTcfData]; + } + + const void _setConsentData(const char* isUserSubjectToGDPR, const char* hasConsentForDataUsage, const char* hasConsentForAdsPersonalization, const char* hasConsentForAdStorage) { + + NSNumber *gdpr = intFromNullableBool(isUserSubjectToGDPR); + NSNumber *dataUsage = intFromNullableBool(hasConsentForDataUsage); + NSNumber *adsPersonalization = intFromNullableBool(hasConsentForAdsPersonalization); + NSNumber *adStorage = intFromNullableBool(hasConsentForAdStorage); + + AppsFlyerConsent *consentData = [[AppsFlyerConsent alloc] initWithIsUserSubjectToGDPR:gdpr + hasConsentForDataUsage:dataUsage + hasConsentForAdsPersonalization:adsPersonalization + hasConsentForAdStorage:adStorage]; + + [[AppsFlyerLib shared] setConsentData:consentData]; + } + + const void _logAdRevenue(const char* monetizationNetwork, int mediationNetworkInt, const char* currencyIso4217Code, double eventRevenue, const char* additionalParameters) { + AppsFlyerAdRevenueMediationNetworkType mediationNetwork = mediationNetworkTypeFromInt(mediationNetworkInt); + NSNumber *number = [NSNumber numberWithDouble:eventRevenue]; + AFAdRevenueData *adRevenue = [[AFAdRevenueData alloc] initWithMonetizationNetwork:stringFromChar(monetizationNetwork) mediationNetwork:mediationNetwork currencyIso4217Code:stringFromChar(currencyIso4217Code) eventRevenue:number]; + [[AppsFlyerLib shared] logAdRevenue: adRevenue additionalParameters:dictionaryFromJson(additionalParameters)]; + } + const void _setDisableCollectIAd (bool disableCollectASA) { [AppsFlyerLib shared].disableCollectASA = disableCollectASA; } @@ -218,7 +266,7 @@ extern "C" { } } - const void _validateAndSendInAppPurchase (const char* productIdentifier, const char* price, const char* currency, const char* tranactionId, const char* additionalParameters, const char* objectName) { + const void _validateAndSendInAppPurchase (const char* productIdentifier, const char* price, const char* currency, const char* transactionId, const char* additionalParameters, const char* objectName) { validateObjectName = stringFromChar(objectName); @@ -226,7 +274,7 @@ extern "C" { validateAndLogInAppPurchase:stringFromChar(productIdentifier) price:stringFromChar(price) currency:stringFromChar(currency) - transactionId:stringFromChar(tranactionId) + transactionId:stringFromChar(transactionId) additionalParameters:dictionaryFromJson(additionalParameters) success:^(NSDictionary *result){ unityCallBack(validateObjectName, VALIDATE_CALLBACK, stringFromdictionary(result)); @@ -239,6 +287,26 @@ extern "C" { } }]; } + + const void _validateAndSendInAppPurchaseV2 (const char* product, const char* price, const char* currency, const char* transactionId, const char* extraEventValues, const char* objectName) { + + validateAndLogObjectName = stringFromChar(objectName); + AFSDKPurchaseDetails *details = [[AFSDKPurchaseDetails alloc] initWithProductId:stringFromChar(product) price:stringFromChar(price) currency:stringFromChar(currency) transactionId:stringFromChar(transactionId)]; + + [[AppsFlyerLib shared] + validateAndLogInAppPurchase:details + extraEventValues:dictionaryFromJson(extraEventValues) + completionHandler:^(AFSDKValidateAndLogResult * _Nullable result) { + if (result.status == AFSDKValidateAndLogStatusSuccess) { + unityCallBack(validateAndLogObjectName, VALIDATE_AND_LOG_V2_CALLBACK, stringFromdictionary(result.result)); + } else if (result.status == AFSDKValidateAndLogStatusFailure) { + unityCallBack(validateAndLogObjectName, VALIDATE_AND_LOG_V2_CALLBACK, stringFromdictionary(result.errorData)); + } else { + unityCallBack(validateAndLogObjectName, VALIDATE_AND_LOG_V2_ERROR_CALLBACK, stringFromdictionary(dictionaryFromNSError(result.error))); + } + }]; + + } const void _getConversionData(const char* objectName) { if (_AppsFlyerdelegate == nil) { @@ -249,7 +317,7 @@ extern "C" { } const void _waitForATTUserAuthorizationWithTimeoutInterval (int timeoutInterval) { - [[AppsFlyerLib shared] waitForATTUserAuthorizationWithTimeoutInterval:timeoutInterval]; + [[AppsFlyerLib shared] waitForATTUserAuthorizationWithTimeoutInterval:timeoutInterval]; } const void _disableSKAdNetwork (bool isDisabled) { @@ -275,6 +343,106 @@ extern "C" { const void _setCurrentDeviceLanguage(const char* language) { [[AppsFlyerLib shared] setCurrentDeviceLanguage:stringFromChar(language)]; } + + const void _setPartnerData(const char* partnerId, const char* partnerInfo) { + [[AppsFlyerLib shared] setPartnerDataWithPartnerId: stringFromChar(partnerId) partnerInfo:dictionaryFromJson(partnerInfo)]; + } + + const void _disableIDFVCollection(bool isDisabled) { + [AppsFlyerLib shared].disableIDFVCollection = isDisabled; + } + + // Purchase connector + const void _startObservingTransactions() { + [[PurchaseConnector shared] startObservingTransactions]; + } + + const void _stopObservingTransactions() { + [[PurchaseConnector shared] stopObservingTransactions]; + } + + const void _setIsSandbox(bool isSandBox) { + [[PurchaseConnector shared] setIsSandbox:isSandBox]; + } + + const void _setPurchaseRevenueDelegate() { + if (_AppsFlyerdelegate== nil) { + _AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init]; + } + [[PurchaseConnector shared] setPurchaseRevenueDelegate:_AppsFlyerdelegate]; + } + + const void _setAutoLogPurchaseRevenue(int option) { + [[PurchaseConnector shared] setAutoLogPurchaseRevenue:option]; + + } + + const void _initPurchaseConnector(const char* objectName) { + if (_AppsFlyerdelegate == nil) { + _AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init]; + } + onPurchaseValidationObjectName = stringFromChar(objectName); + } + + const void _setPurchaseRevenueDataSource(const char* objectName) { + if (_AppsFlyerdelegate == nil) { + _AppsFlyerdelegate = [[AppsFlyeriOSWarpper alloc] init]; + } + + if (strstr(objectName, "StoreKit2") != NULL) { + + // Force protocol conformance + Protocol *sk2Protocol = @protocol(AppsFlyerPurchaseRevenueDataSourceStoreKit2); + class_addProtocol([_AppsFlyerdelegate class], sk2Protocol); + + if (![_AppsFlyerdelegate conformsToProtocol:@protocol(AppsFlyerPurchaseRevenueDataSourceStoreKit2)]) { + NSLog(@"[AppsFlyer] Warning: SK2 protocol not conformed!"); + } + } + + [PurchaseConnector shared].purchaseRevenueDataSource = _AppsFlyerdelegate; + } + + const void _setStoreKitVersion(int storeKitVersion) { + [[PurchaseConnector shared] setStoreKitVersion:(AFSDKStoreKitVersion)storeKitVersion]; + } + + const void _logConsumableTransaction(const char* transactionId) { + if (@available(iOS 15.0, *)) { + NSString *transactionIdStr = [NSString stringWithUTF8String:transactionId]; + [AFUnityStoreKit2Bridge fetchAFSDKTransactionSK2WithTransactionId:transactionIdStr completion:^(AFSDKTransactionSK2 *afTransaction) { + if (afTransaction) { + [[PurchaseConnector shared] logConsumableTransaction:afTransaction]; + } else { + NSLog(@"No AFSDKTransactionSK2 found for id %@", transactionIdStr); + } + }]; + } + } + + #ifdef __cplusplus + extern "C" { + #endif + + typedef const char *(*UnityPurchaseCallback)(const char *, const char *); + + UnityPurchaseCallback UnityPurchasesGetAdditionalParamsCallback = NULL; + UnityPurchaseCallback UnityPurchasesGetAdditionalParamsCallbackSK2 = NULL; + + __attribute__((visibility("default"))) + void RegisterUnityPurchaseRevenueParamsCallback(UnityPurchaseCallback callback) { + UnityPurchasesGetAdditionalParamsCallback = callback; + } + + __attribute__((visibility("default"))) + void RegisterUnityPurchaseRevenueParamsCallbackSK2(UnityPurchaseCallback callback) { + UnityPurchasesGetAdditionalParamsCallbackSK2 = callback; + } + + + #ifdef __cplusplus + } + #endif } @implementation AppsFlyeriOSWarpper @@ -310,10 +478,126 @@ static BOOL didCallStart; if(result && result.deepLink){ [dict setValue:result.deepLink.description forKey:@"deepLink"]; + [dict setValue:@(result.deepLink.isDeferred) forKey:@"is_deferred"]; } unityCallBack(onDeeplinkingObjectName, ON_DEEPLINKING, stringFromdictionary(dict)); } +// Purchase Connector +- (void)didReceivePurchaseRevenueValidationInfo:(NSDictionary *)validationInfo error:(NSError *)error { + if (error != nil) { + unityCallBack(onPurchaseValidationObjectName, PURCHASE_REVENUE_ERROR_CALLBACK, [[error localizedDescription] UTF8String]); + } else { + unityCallBack(onPurchaseValidationObjectName, PURCHASE_REVENUE_VALIDATION_CALLBACK, stringFromdictionary(validationInfo)); + } +} + +- (NSDictionary *)purchaseRevenueAdditionalParametersForProducts:(NSSet *)products + transactions:(NSSet *)transactions { + + NSMutableArray *productsArray = [NSMutableArray array]; + for (SKProduct *product in products) { + [productsArray addObject:@{ + @"productIdentifier": product.productIdentifier ?: @"", + @"localizedTitle": product.localizedTitle ?: @"", + @"localizedDescription": product.localizedDescription ?: @"", + @"price": [product.price stringValue] ?: @"" + }]; + } + + NSMutableArray *transactionsArray = [NSMutableArray array]; + for (SKPaymentTransaction *txn in transactions) { + [transactionsArray addObject:@{ + @"transactionIdentifier": txn.transactionIdentifier ?: @"", + @"transactionState": @(txn.transactionState), + @"transactionDate": txn.transactionDate ? [@(txn.transactionDate.timeIntervalSince1970) stringValue] : @"" + }]; + } + + NSDictionary *input = @{ + @"products": productsArray, + @"transactions": transactionsArray + }; + + NSError *error = nil; + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:input options:0 error:&error]; + if (error || !jsonData) { + NSLog(@"[AppsFlyer] Failed to serialize Unity purchase data: %@", error); + return @{}; + } + + NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; + if (!jsonString || !UnityPurchasesGetAdditionalParamsCallback) { + NSLog(@"[AppsFlyer] Unity callback not registered"); + return @{}; + } + + const char *resultCStr = UnityPurchasesGetAdditionalParamsCallback([jsonString UTF8String], ""); + if (!resultCStr) { + NSLog(@"[AppsFlyer] Unity callback returned null"); + return @{}; + } + + NSString *resultJson = [NSString stringWithUTF8String:resultCStr]; + NSData *resultData = [resultJson dataUsingEncoding:NSUTF8StringEncoding]; + NSDictionary *parsedResult = [NSJSONSerialization JSONObjectWithData:resultData options:0 error:&error]; + + if (error || ![parsedResult isKindOfClass:[NSDictionary class]]) { + NSLog(@"[AppsFlyer] Failed to parse Unity response: %@", error); + return @{}; + } + + return parsedResult; +} + +#pragma mark - AppsFlyerPurchaseRevenueDataSourceStoreKit2 +- (NSDictionary *)purchaseRevenueAdditionalParametersStoreKit2ForProducts:(NSSet *)products transactions:(NSSet *)transactions { + if (@available(iOS 15.0, *)) { + NSArray *productInfoArray = [AFUnityStoreKit2Bridge extractSK2ProductInfo:[products allObjects]]; + NSArray *transactionInfoArray = [AFUnityStoreKit2Bridge extractSK2TransactionInfo:[transactions allObjects]]; + + NSDictionary *input = @{ + @"products": productInfoArray, + @"transactions": transactionInfoArray + }; + + if (UnityPurchasesGetAdditionalParamsCallbackSK2) { + NSError *error = nil; + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:input options:0 error:&error]; + if (error || !jsonData) { + NSLog(@"[AppsFlyer] Failed to serialize Unity purchase data: %@", error); + return @{}; + } + + NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; + + const char *resultCStr = UnityPurchasesGetAdditionalParamsCallbackSK2([jsonString UTF8String], ""); + if (!resultCStr) { + NSLog(@"[AppsFlyer] Unity callback returned null"); + return @{}; + } + + NSString *resultJson = [NSString stringWithUTF8String:resultCStr]; + + NSData *resultData = [resultJson dataUsingEncoding:NSUTF8StringEncoding]; + NSDictionary *parsedResult = [NSJSONSerialization JSONObjectWithData:resultData options:0 error:&error]; + + if (error || ![parsedResult isKindOfClass:[NSDictionary class]]) { + NSLog(@"[AppsFlyer] Failed to parse Unity response: %@", error); + return @{}; + } + + return parsedResult; + } else { + NSLog(@"[AppsFlyer] SK2 - Unity callback is NOT registered"); + } + } else { + NSLog(@"[AppsFlyer] SK2 - iOS version not supported"); + } + return @{}; +} + @end + diff --git a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/SwiftForUnity.swift b/Assets/ThirdParty/AppsFlyer/Plugins/iOS/SwiftForUnity.swift deleted file mode 100644 index 521d0e4dd..000000000 --- a/Assets/ThirdParty/AppsFlyer/Plugins/iOS/SwiftForUnity.swift +++ /dev/null @@ -1 +0,0 @@ -import Foundation \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/ProductPurchase.cs b/Assets/ThirdParty/AppsFlyer/ProductPurchase.cs new file mode 100644 index 000000000..536190f14 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/ProductPurchase.cs @@ -0,0 +1,184 @@ +#nullable enable + +using System.Collections; +using System.Collections.Generic; +using System; +using UnityEngine; + +[System.Serializable] +public class InAppPurchaseValidationResult : EventArgs +{ + public bool success; + public ProductPurchase? productPurchase; + public ValidationFailureData? failureData; + public string? token; +} + +[System.Serializable] +public class ProductPurchase +{ + public string? kind; + public string? purchaseTimeMillis; + public int purchaseState; + public int consumptionState; + public string? developerPayload; + public string? orderId; + public int purchaseType; + public int acknowledgementState; + public string? purchaseToken; + public string? productId; + public int quantity; + public string? obfuscatedExternalAccountId; + public string? obfuscatedExternalProfil; + public string? regionCode; +} + +[System.Serializable] +public class ValidationFailureData +{ + public int status; + public string? description; +} + +[System.Serializable] +public class SubscriptionValidationResult +{ + public bool success; + public SubscriptionPurchase? subscriptionPurchase; + public ValidationFailureData? failureData; + public string? token; +} + +[System.Serializable] +public class SubscriptionPurchase +{ + public string? acknowledgementState; + public CanceledStateContext? canceledStateContext; + public ExternalAccountIdentifiers? externalAccountIdentifiers; + public string? kind; + public string? latestOrderId; + public List? lineItems; + public string? linkedPurchaseToken; + public PausedStateContext? pausedStateContext; + public string? regionCode; + public string? startTime; + public SubscribeWithGoogleInfo? subscribeWithGoogleInfo; + public string? subscriptionState; + public TestPurchase? testPurchase; +} + +[System.Serializable] +public class CanceledStateContext +{ + public DeveloperInitiatedCancellation? developerInitiatedCancellation; + public ReplacementCancellation? replacementCancellation; + public SystemInitiatedCancellation? systemInitiatedCancellation; + public UserInitiatedCancellation? userInitiatedCancellation; + +} + +[System.Serializable] +public class ExternalAccountIdentifiers +{ + public string? externalAccountId; + public string? obfuscatedExternalAccountId; + public string? obfuscatedExternalProfileId; +} + +[System.Serializable] +public class SubscriptionPurchaseLineItem +{ + public AutoRenewingPlan? autoRenewingPlan; + public DeferredItemReplacement? deferredItemReplacement; + public string? expiryTime; + public OfferDetails? offerDetails; + public PrepaidPlan? prepaidPlan; + public string? productId; +} + +[System.Serializable] +public class PausedStateContext +{ + public string? autoResumeTime; +} + +[System.Serializable] +public class SubscribeWithGoogleInfo +{ + public string? emailAddress; + public string? familyName; + public string? givenName; + public string? profileId; + public string? profileName; +} + +[System.Serializable] +public class TestPurchase{} + +[System.Serializable] +public class DeveloperInitiatedCancellation{} + +[System.Serializable] +public class ReplacementCancellation{} + +[System.Serializable] +public class SystemInitiatedCancellation{} + +[System.Serializable] +public class UserInitiatedCancellation +{ + public CancelSurveyResult? cancelSurveyResult; + public string? cancelTime; +} + +[System.Serializable] +public class AutoRenewingPlan +{ + public string? autoRenewEnabled; + public SubscriptionItemPriceChangeDetails? priceChangeDetails; +} + +[System.Serializable] +public class DeferredItemReplacement +{ + public string? productId; +} + +[System.Serializable] +public class OfferDetails +{ + public List? offerTags; + public string? basePlanId; + public string? offerId; +} + +[System.Serializable] +public class PrepaidPlan +{ + public string? allowExtendAfterTime; +} + +[System.Serializable] +public class CancelSurveyResult +{ + public string? reason; + public string? reasonUserInput; +} + +[System.Serializable] +public class SubscriptionItemPriceChangeDetails +{ + public string? expectedNewPriceChargeTime; + public Money? newPrice; + public string? priceChangeMode; + public string? priceChangeState; +} + +[System.Serializable] + public class Money + { + public string? currencyCode; + public long nanos; + public long units; + } + \ No newline at end of file diff --git a/Assets/ThirdParty/AppsFlyer/ProductPurchase.cs.meta b/Assets/ThirdParty/AppsFlyer/ProductPurchase.cs.meta new file mode 100644 index 000000000..7fdbf378b --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/ProductPurchase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a1435104a69d4c8ebcc6f237cc29a54 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/Tests.meta b/Assets/ThirdParty/AppsFlyer/Tests.meta new file mode 100644 index 000000000..8217a6a39 --- /dev/null +++ b/Assets/ThirdParty/AppsFlyer/Tests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1f19f272c71674582bed1d93925da003 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/AppsFlyer/Windows/AppsFlyerWindows.cs b/Assets/ThirdParty/AppsFlyer/Windows/AppsFlyerWindows.cs index d4a196400..a44fea480 100644 --- a/Assets/ThirdParty/AppsFlyer/Windows/AppsFlyerWindows.cs +++ b/Assets/ThirdParty/AppsFlyer/Windows/AppsFlyerWindows.cs @@ -40,6 +40,16 @@ namespace AppsFlyerSDK #endif } + public static string GetAppsFlyerId() + { +#if ENABLE_WINMD_SUPPORT + Log("[GetAppsFlyerId]"); + return AppsFlyerTracker.GetAppsFlyerTracker().GetAppsFlyerUID(); +#else + return ""; +#endif + } + public static void SetCustomerUserId(string customerUserId) { #if ENABLE_WINMD_SUPPORT @@ -67,8 +77,12 @@ namespace AppsFlyerSDK Log("[Callback]: {0}", code.ToString()); AppsFlyerRequestEventArgs eventArgs = new AppsFlyerRequestEventArgs((int)code, code.ToString()); - var method = _gameObject.GetType().GetMethod("AppsFlyerOnRequestResponse"); - method.Invoke(_gameObject, new object[] { AppsFlyerTracker.GetAppsFlyerTracker(), eventArgs }); + if (_gameObject != null) { + var method = _gameObject.GetType().GetMethod("AppsFlyerOnRequestResponse"); + if (method != null) { + method.Invoke(_gameObject, new object[] { AppsFlyerTracker.GetAppsFlyerTracker(), eventArgs }); + } + } } #endif diff --git a/Assets/ThirdParty/AppsFlyer/package.json b/Assets/ThirdParty/AppsFlyer/package.json index e16feba40..2a7b02fae 100644 --- a/Assets/ThirdParty/AppsFlyer/package.json +++ b/Assets/ThirdParty/AppsFlyer/package.json @@ -1,11 +1,8 @@ { - "name": "appsflyer-unity-plugin", + "name": "com.appsflyer.unity", "displayName": "AppsFlyer", - "description": "AppsFlyer Unity plugin strict mode", - "version": "6.2.61", + "description": "AppsFlyer Unity plugin", + "version": "6.17.1", "unity": "2019.4", - "license": "MIT", - "dependencies": { - "com.google.external-dependency-manager": "1.2.144" - } -} + "license": "MIT" + } diff --git a/Assets/UniversalRenderPipelineGlobalSettings.asset b/Assets/UniversalRenderPipelineGlobalSettings.asset new file mode 100644 index 000000000..a996a2e6e --- /dev/null +++ b/Assets/UniversalRenderPipelineGlobalSettings.asset @@ -0,0 +1,27 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2ec995e51a6e251468d2a3fd8a686257, type: 3} + m_Name: UniversalRenderPipelineGlobalSettings + m_EditorClassIdentifier: + k_AssetVersion: 2 + lightLayerName0: Light Layer default + lightLayerName1: Light Layer 1 + lightLayerName2: Light Layer 2 + lightLayerName3: Light Layer 3 + lightLayerName4: Light Layer 4 + lightLayerName5: Light Layer 5 + lightLayerName6: Light Layer 6 + lightLayerName7: Light Layer 7 + m_StripDebugVariants: 1 + m_StripUnusedPostProcessingVariants: 0 + m_StripUnusedVariants: 1 + supportRuntimeDebugDisplay: 0 diff --git a/Assets/UniversalRenderPipelineGlobalSettings.asset.meta b/Assets/UniversalRenderPipelineGlobalSettings.asset.meta new file mode 100644 index 000000000..a89c26bc8 --- /dev/null +++ b/Assets/UniversalRenderPipelineGlobalSettings.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a1393a63f60cf6f4f8e3062e3a56e975 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/XLua/Gen/AFInAppEventParameterNameWrap.cs b/Assets/XLua/Gen/AFInAppEventParameterNameWrap.cs deleted file mode 100644 index f871c7a6d..000000000 --- a/Assets/XLua/Gen/AFInAppEventParameterNameWrap.cs +++ /dev/null @@ -1,161 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class AFInAppEventParameterNameWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(AFInAppEventParameterName); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 78, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LEVEL", AFInAppEventParameterName.LEVEL); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SCORE", AFInAppEventParameterName.SCORE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SUCCESS", AFInAppEventParameterName.SUCCESS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PRICE", AFInAppEventParameterName.PRICE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONTENT_TYPE", AFInAppEventParameterName.CONTENT_TYPE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONTENT_ID", AFInAppEventParameterName.CONTENT_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONTENT_LIST", AFInAppEventParameterName.CONTENT_LIST); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CURRENCY", AFInAppEventParameterName.CURRENCY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "QUANTITY", AFInAppEventParameterName.QUANTITY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REGSITRATION_METHOD", AFInAppEventParameterName.REGSITRATION_METHOD); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PAYMENT_INFO_AVAILIBLE", AFInAppEventParameterName.PAYMENT_INFO_AVAILIBLE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MAX_RATING_VALUE", AFInAppEventParameterName.MAX_RATING_VALUE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RATING_VALUE", AFInAppEventParameterName.RATING_VALUE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SEARCH_STRING", AFInAppEventParameterName.SEARCH_STRING); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DATE_A", AFInAppEventParameterName.DATE_A); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DATE_B", AFInAppEventParameterName.DATE_B); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DESTINATION_A", AFInAppEventParameterName.DESTINATION_A); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DESTINATION_B", AFInAppEventParameterName.DESTINATION_B); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DESCRIPTION", AFInAppEventParameterName.DESCRIPTION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CLASS", AFInAppEventParameterName.CLASS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EVENT_START", AFInAppEventParameterName.EVENT_START); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EVENT_END", AFInAppEventParameterName.EVENT_END); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LATITUDE", AFInAppEventParameterName.LATITUDE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LONGTITUDE", AFInAppEventParameterName.LONGTITUDE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CUSTOMER_USER_ID", AFInAppEventParameterName.CUSTOMER_USER_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VALIDATED", AFInAppEventParameterName.VALIDATED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REVENUE", AFInAppEventParameterName.REVENUE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PROJECTED_REVENUE", AFInAppEventParameterName.PROJECTED_REVENUE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RECEIPT_ID", AFInAppEventParameterName.RECEIPT_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TUTORIAL_ID", AFInAppEventParameterName.TUTORIAL_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ACHIEVEMENT_ID", AFInAppEventParameterName.ACHIEVEMENT_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VIRTUAL_CURRENCY_NAME", AFInAppEventParameterName.VIRTUAL_CURRENCY_NAME); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEEP_LINK", AFInAppEventParameterName.DEEP_LINK); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OLD_VERSION", AFInAppEventParameterName.OLD_VERSION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NEW_VERSION", AFInAppEventParameterName.NEW_VERSION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REVIEW_TEXT", AFInAppEventParameterName.REVIEW_TEXT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COUPON_CODE", AFInAppEventParameterName.COUPON_CODE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_1", AFInAppEventParameterName.PARAM_1); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_2", AFInAppEventParameterName.PARAM_2); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_3", AFInAppEventParameterName.PARAM_3); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_4", AFInAppEventParameterName.PARAM_4); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_5", AFInAppEventParameterName.PARAM_5); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_6", AFInAppEventParameterName.PARAM_6); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_7", AFInAppEventParameterName.PARAM_7); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_8", AFInAppEventParameterName.PARAM_8); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_9", AFInAppEventParameterName.PARAM_9); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PARAM_10", AFInAppEventParameterName.PARAM_10); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ORDER_ID", AFInAppEventParameterName.ORDER_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEPARTING_DEPARTURE_DATE", AFInAppEventParameterName.DEPARTING_DEPARTURE_DATE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RETURNING_DEPARTURE_DATE", AFInAppEventParameterName.RETURNING_DEPARTURE_DATE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DESTINATION_LIST", AFInAppEventParameterName.DESTINATION_LIST); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CITY", AFInAppEventParameterName.CITY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REGION", AFInAppEventParameterName.REGION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COUNTRY", AFInAppEventParameterName.COUNTRY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEPARTING_ARRIVAL_DATE", AFInAppEventParameterName.DEPARTING_ARRIVAL_DATE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RETURNING_ARRIVAL_DATE", AFInAppEventParameterName.RETURNING_ARRIVAL_DATE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SUGGESTED_DESTINATIONS", AFInAppEventParameterName.SUGGESTED_DESTINATIONS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TRAVEL_START", AFInAppEventParameterName.TRAVEL_START); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TRAVEL_END", AFInAppEventParameterName.TRAVEL_END); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NUM_ADULTS", AFInAppEventParameterName.NUM_ADULTS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NUM_CHILDREN", AFInAppEventParameterName.NUM_CHILDREN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NUM_INFANTS", AFInAppEventParameterName.NUM_INFANTS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SUGGESTED_HOTELS", AFInAppEventParameterName.SUGGESTED_HOTELS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "USER_SCORE", AFInAppEventParameterName.USER_SCORE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HOTEL_SCORE", AFInAppEventParameterName.HOTEL_SCORE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PURCHASE_CURRENCY", AFInAppEventParameterName.PURCHASE_CURRENCY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PREFERRED_STAR_RATINGS", AFInAppEventParameterName.PREFERRED_STAR_RATINGS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PREFERRED_PRICE_RANGE", AFInAppEventParameterName.PREFERRED_PRICE_RANGE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PREFERRED_NEIGHBORHOODS", AFInAppEventParameterName.PREFERRED_NEIGHBORHOODS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PREFERRED_NUM_STOPS", AFInAppEventParameterName.PREFERRED_NUM_STOPS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AF_CHANNEL", AFInAppEventParameterName.AF_CHANNEL); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONTENT", AFInAppEventParameterName.CONTENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_REVENUE_AD_TYPE", AFInAppEventParameterName.AD_REVENUE_AD_TYPE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_REVENUE_NETWORK_NAME", AFInAppEventParameterName.AD_REVENUE_NETWORK_NAME); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_REVENUE_PLACEMENT_ID", AFInAppEventParameterName.AD_REVENUE_PLACEMENT_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_REVENUE_AD_SIZE", AFInAppEventParameterName.AD_REVENUE_AD_SIZE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_REVENUE_MEDIATED_NETWORK_NAME", AFInAppEventParameterName.AD_REVENUE_MEDIATED_NETWORK_NAME); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new AFInAppEventParameterName(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to AFInAppEventParameterName constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/AFInAppEventTypeWrap.cs b/Assets/XLua/Gen/AFInAppEventTypeWrap.cs deleted file mode 100644 index ce81658a9..000000000 --- a/Assets/XLua/Gen/AFInAppEventTypeWrap.cs +++ /dev/null @@ -1,113 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class AFInAppEventTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(AFInAppEventType); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 30, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LEVEL_ACHIEVED", AFInAppEventType.LEVEL_ACHIEVED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADD_PAYMENT_INFO", AFInAppEventType.ADD_PAYMENT_INFO); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADD_TO_CART", AFInAppEventType.ADD_TO_CART); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADD_TO_WISH_LIST", AFInAppEventType.ADD_TO_WISH_LIST); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COMPLETE_REGISTRATION", AFInAppEventType.COMPLETE_REGISTRATION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TUTORIAL_COMPLETION", AFInAppEventType.TUTORIAL_COMPLETION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INITIATED_CHECKOUT", AFInAppEventType.INITIATED_CHECKOUT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PURCHASE", AFInAppEventType.PURCHASE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RATE", AFInAppEventType.RATE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SEARCH", AFInAppEventType.SEARCH); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SPENT_CREDIT", AFInAppEventType.SPENT_CREDIT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ACHIEVEMENT_UNLOCKED", AFInAppEventType.ACHIEVEMENT_UNLOCKED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONTENT_VIEW", AFInAppEventType.CONTENT_VIEW); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TRAVEL_BOOKING", AFInAppEventType.TRAVEL_BOOKING); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SHARE", AFInAppEventType.SHARE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INVITE", AFInAppEventType.INVITE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LOGIN", AFInAppEventType.LOGIN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RE_ENGAGE", AFInAppEventType.RE_ENGAGE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UPDATE", AFInAppEventType.UPDATE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OPENED_FROM_PUSH_NOTIFICATION", AFInAppEventType.OPENED_FROM_PUSH_NOTIFICATION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LOCATION_CHANGED", AFInAppEventType.LOCATION_CHANGED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LOCATION_COORDINATES", AFInAppEventType.LOCATION_COORDINATES); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ORDER_ID", AFInAppEventType.ORDER_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CUSTOMER_SEGMENT", AFInAppEventType.CUSTOMER_SEGMENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LIST_VIEW", AFInAppEventType.LIST_VIEW); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SUBSCRIBE", AFInAppEventType.SUBSCRIBE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "START_TRIAL", AFInAppEventType.START_TRIAL); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_CLICK", AFInAppEventType.AD_CLICK); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_VIEW", AFInAppEventType.AD_VIEW); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new AFInAppEventType(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to AFInAppEventType constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/AdManagerWrap.cs b/Assets/XLua/Gen/AdManagerWrap.cs deleted file mode 100644 index 59e0dd34d..000000000 --- a/Assets/XLua/Gen/AdManagerWrap.cs +++ /dev/null @@ -1,454 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class AdManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(AdManager); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRewardedAdReady", _m_IsRewardedAdReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowRewardedAd", _m_ShowRewardedAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInterstitialReady", _m_IsInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowInterstitial", _m_ShowInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowBanner", _m_ShowBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HideBanner", _m_HideBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitializeBannerAds", _m_InitializeBannerAds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitializeInterstitialAds", _m_InitializeInterstitialAds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitializeRewardedAds", _m_InitializeRewardedAds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdRevenuePaidEventCallback", _m_SetAdRevenuePaidEventCallback); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaAdRevenuePaidEventCallback", _g_get_luaAdRevenuePaidEventCallback); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaAdRevenuePaidEventCallback", _s_set_luaAdRevenuePaidEventCallback); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new AdManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to AdManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _init = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Init( _init ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AdManager.Init!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRewardedAdReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsRewardedAdReady( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowRewardedAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ShowRewardedAd( _callback ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.ShowRewardedAd( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AdManager.ShowRewardedAd!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsInterstitialReady( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ShowInterstitial( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ShowBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HideBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.HideBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitializeBannerAds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitializeBannerAds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitializeInterstitialAds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitializeInterstitialAds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitializeRewardedAds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitializeRewardedAds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdRevenuePaidEventCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdRevenuePaidEventCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaAdRevenuePaidEventCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaAdRevenuePaidEventCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaAdRevenuePaidEventCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - AdManager gen_to_be_invoked = (AdManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaAdRevenuePaidEventCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AbsPostEffectWrap.cs b/Assets/XLua/Gen/BF_AbsPostEffectWrap.cs deleted file mode 100644 index cc7b098c6..000000000 --- a/Assets/XLua/Gen/BF_AbsPostEffectWrap.cs +++ /dev/null @@ -1,128 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAbsPostEffectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AbsPostEffect); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRenderImage", _m_OnRenderImage); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "active", _g_get_active); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "active", _s_set_active); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.AbsPostEffect does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRenderImage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AbsPostEffect gen_to_be_invoked = (BF.AbsPostEffect)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectContext _context = (BF.PostEffectContext)translator.GetObject(L, 2, typeof(BF.PostEffectContext)); - - var gen_ret = gen_to_be_invoked.OnRenderImage( _context ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_active(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AbsPostEffect gen_to_be_invoked = (BF.AbsPostEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.active); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_active(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AbsPostEffect gen_to_be_invoked = (BF.AbsPostEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.active = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AesEncryptWrap.cs b/Assets/XLua/Gen/BF_AesEncryptWrap.cs deleted file mode 100644 index 1224d349c..000000000 --- a/Assets/XLua/Gen/BF_AesEncryptWrap.cs +++ /dev/null @@ -1,162 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAesEncryptWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AesEncrypt); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Encrypt", _m_Encrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Decrypt", _m_Decrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Clear", _m_Clear_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.AesEncrypt(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.AesEncrypt constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - byte[] _buffer = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.AesEncrypt.Encrypt( _buffer, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Decrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - byte[] _buffer = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.AesEncrypt.Decrypt( _buffer, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - BF.AesEncrypt.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AssetBundleConfigCollectionWrap.cs b/Assets/XLua/Gen/BF_AssetBundleConfigCollectionWrap.cs deleted file mode 100644 index 85b167636..000000000 --- a/Assets/XLua/Gen/BF_AssetBundleConfigCollectionWrap.cs +++ /dev/null @@ -1,529 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAssetBundleConfigCollectionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AssetBundleConfigCollection); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetConfigByBundlePath", _m_GetConfigByBundlePath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetConfigByMainBundlePath", _m_GetConfigByMainBundlePath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetConfigByAssetPath", _m_GetConfigByAssetPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetConfigByMd5", _m_GetConfigByMd5); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToJson", _m_ToJson); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddAssetBundleConfig", _m_AddAssetBundleConfig); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLangAssetBundleConfig", _m_AddLangAssetBundleConfig); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLanguageConfigByName", _m_GetLanguageConfigByName); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "version", _g_get_version); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainConfigs", _g_get_mainConfigs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "languageConfigs", _g_get_languageConfigs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allConfigs", _g_get_allConfigs); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "version", _s_set_version); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainConfigs", _s_set_mainConfigs); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "languageConfigs", _s_set_languageConfigs); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allConfigs", _s_set_allConfigs); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Compress", _m_Compress_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Decompress", _m_Decompress_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.AssetBundleConfigCollection(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleConfigCollection constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConfigByBundlePath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - string _bundlePath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetConfigByBundlePath( _bundlePath ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConfigByMainBundlePath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - string _bundlePath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetConfigByMainBundlePath( _bundlePath ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConfigByAssetPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetConfigByAssetPath( _assetPath ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConfigByMd5(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - string _md5 = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetConfigByMd5( _md5 ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToJson(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToJson( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddAssetBundleConfig(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - BF.AssetBundleConfig _cfg = (BF.AssetBundleConfig)translator.GetObject(L, 2, typeof(BF.AssetBundleConfig)); - - gen_to_be_invoked.AddAssetBundleConfig( _cfg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLangAssetBundleConfig(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - string _languageName = LuaAPI.lua_tostring(L, 2); - BF.AssetBundleConfig _cfg = (BF.AssetBundleConfig)translator.GetObject(L, 3, typeof(BF.AssetBundleConfig)); - - gen_to_be_invoked.AddLangAssetBundleConfig( _languageName, _cfg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLanguageConfigByName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - BF.LanguageConfig _languageConfig; - - var gen_ret = gen_to_be_invoked.GetLanguageConfigByName( _name, out _languageConfig ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _languageConfig); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.AssetBundleConfigCollection.Create( _json ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compress_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.AssetBundleConfigCollection.Compress( _json ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Decompress_xlua_st_(RealStatePtr L) - { - try { - - - - - { - byte[] _bytes = LuaAPI.lua_tobytes(L, 1); - - var gen_ret = BF.AssetBundleConfigCollection.Decompress( _bytes ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainConfigs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainConfigs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_languageConfigs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.languageConfigs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allConfigs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.allConfigs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.version = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainConfigs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mainConfigs = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_languageConfigs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.languageConfigs = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allConfigs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfigCollection gen_to_be_invoked = (BF.AssetBundleConfigCollection)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allConfigs = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AssetBundleConfigWrap.cs b/Assets/XLua/Gen/BF_AssetBundleConfigWrap.cs deleted file mode 100644 index 283026ee9..000000000 --- a/Assets/XLua/Gen/BF_AssetBundleConfigWrap.cs +++ /dev/null @@ -1,299 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAssetBundleConfigWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AssetBundleConfig); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "assetBundlePath", _g_get_assetBundlePath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "assetsPath", _g_get_assetsPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "md5", _g_get_md5); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zipPath", _g_get_zipPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rawSize", _g_get_rawSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "location", _g_get_location); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "assetBundlePath", _s_set_assetBundlePath); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "assetsPath", _s_set_assetsPath); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "md5", _s_set_md5); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zipPath", _s_set_zipPath); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rawSize", _s_set_rawSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "location", _s_set_location); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.AssetBundleConfig(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleConfig constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_assetBundlePath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.assetBundlePath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_assetsPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.assetsPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_md5(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.md5); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zipPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.zipPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rawSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.rawSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_location(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.location); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_assetBundlePath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.assetBundlePath = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_assetsPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.assetsPath = (string[])translator.GetObject(L, 2, typeof(string[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_md5(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.md5 = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zipPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.zipPath = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rawSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rawSize = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_location(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleConfig gen_to_be_invoked = (BF.AssetBundleConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.location = (byte)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AssetBundleLoaderWrap.cs b/Assets/XLua/Gen/BF_AssetBundleLoaderWrap.cs deleted file mode 100644 index c748dd798..000000000 --- a/Assets/XLua/Gen/BF_AssetBundleLoaderWrap.cs +++ /dev/null @@ -1,614 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAssetBundleLoaderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AssetBundleLoader); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetAsync", _m_LoadAssetAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadDependBundleAsync", _m_LoadDependBundleAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadBundleAsync", _m_LoadBundleAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetSync", _m_LoadAssetSync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadDependBundleSync", _m_LoadDependBundleSync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadBundle", _m_UnLoadBundle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCache", _m_RemoveCache); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Tick", _m_Tick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAllDelayAssets", _m_UnloadAllDelayAssets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSceneLoadPath", _m_GetSceneLoadPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSceneAsync", _m_LoadSceneAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadScene", _m_UnloadScene); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsAsset", _m_ContainsAsset); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Config", _g_get_Config); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Manifest", _g_get_Manifest); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MAX_LOADING", BF.AssetBundleLoader.MAX_LOADING); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.AssetBundleLoader(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleLoader constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.AssetObject _assetObject = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - - gen_to_be_invoked.LoadAssetAsync( _assetObject ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - System.Action _complete = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.LoadAssetAsync( _assetPath, _type, _complete ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleLoader.LoadAssetAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadDependBundleAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - string _bundlePath = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.LoadDependBundleAsync( _bundlePath, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadBundleAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - string _bundlePath = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.LoadBundleAsync( _bundlePath, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetSync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.AssetObject _assetObject = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - - gen_to_be_invoked.LoadAssetSync( _assetObject ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAssetSync( _assetPath, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleLoader.LoadAssetSync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadDependBundleSync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - string _bundlePath = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.LoadDependBundleSync( _bundlePath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - BF.AssetObject _asset = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Unload( _asset, _immediately ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnLoadBundle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - BF.AssetObject _assetObject = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.UnLoadBundle( _assetObject, _immediately ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.UnLoadBundle( _assetBundlePath, _immediately ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - System.Action _unloadCallback = translator.GetDelegate(L, 4); - - gen_to_be_invoked.UnLoadBundle( _assetBundlePath, _immediately, _unloadCallback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleLoader.UnLoadBundle!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCache(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - BF.AssetBundleObject _abo = (BF.AssetBundleObject)translator.GetObject(L, 2, typeof(BF.AssetBundleObject)); - - gen_to_be_invoked.RemoveCache( _abo ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Tick( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAllDelayAssets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnloadAllDelayAssets( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneLoadPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetSceneLoadPath( _assetBundlePath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSceneAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.LoadSceneAsync( _assetBundlePath, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadScene(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.UnloadScene( _assetBundlePath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ContainsAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ContainsAsset( _assetPath ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Config(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Config); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Manifest(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleLoader gen_to_be_invoked = (BF.AssetBundleLoader)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Manifest); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AssetBundleObjectWrap.cs b/Assets/XLua/Gen/BF_AssetBundleObjectWrap.cs deleted file mode 100644 index cac1f9477..000000000 --- a/Assets/XLua/Gen/BF_AssetBundleObjectWrap.cs +++ /dev/null @@ -1,374 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAssetBundleObjectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AssetBundleObject); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadBundleAsync", _m_LoadBundleAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartLoadAsync", _m_StartLoadAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSync", _m_LoadSync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Tick", _m_Tick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Complete", _m_Complete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddUnloadCallback", _m_AddUnloadCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AssetBundleConfig", _g_get_AssetBundleConfig); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Assetbundle", _g_get_Assetbundle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timeout", _g_get_Timeout); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fullpathDict", _g_get_fullpathDict); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fullpathDict", _s_set_fullpathDict); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - BF.AssetBundleConfig _config = (BF.AssetBundleConfig)translator.GetObject(L, 2, typeof(BF.AssetBundleConfig)); - BF.AssetBundleLoader _loader = (BF.AssetBundleLoader)translator.GetObject(L, 3, typeof(BF.AssetBundleLoader)); - - var gen_ret = new BF.AssetBundleObject(_config, _loader); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleObject constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadBundleAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.LoadBundleAsync( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartLoadAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StartLoadAsync( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _ignoreRefCount = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.LoadSync( _ignoreRefCount ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.LoadSync( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetBundleObject.LoadSync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Tick( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Complete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AssetBundle _ab = (UnityEngine.AssetBundle)translator.GetObject(L, 2, typeof(UnityEngine.AssetBundle)); - - gen_to_be_invoked.Complete( _ab ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddUnloadCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - - - - { - System.Action _unloadCallback = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddUnloadCallback( _unloadCallback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - - - - { - bool _immediately = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.Unload( _immediately ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AssetBundleConfig(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.AssetBundleConfig); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Assetbundle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Assetbundle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetBundleObject gen_to_be_invoked = (BF.AssetBundleObject)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Timeout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fullpathDict(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.AssetBundleObject.fullpathDict); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fullpathDict(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - BF.AssetBundleObject.fullpathDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AssetLoaderWrap.cs b/Assets/XLua/Gen/BF_AssetLoaderWrap.cs deleted file mode 100644 index 71d26e35d..000000000 --- a/Assets/XLua/Gen/BF_AssetLoaderWrap.cs +++ /dev/null @@ -1,394 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAssetLoaderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AssetLoader); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetAsync", _m_LoadAssetAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetSync", _m_LoadAssetSync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSceneLoadPath", _m_GetSceneLoadPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSceneAsync", _m_LoadSceneAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadScene", _m_UnloadScene); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Tick", _m_Tick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAllDelayAssets", _m_UnloadAllDelayAssets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsAsset", _m_ContainsAsset); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.AssetLoader(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetLoader constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - System.Action _complete = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.LoadAssetAsync( _assetPath, _type, _complete ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetSync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.AssetObject _assetObject = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - - gen_to_be_invoked.LoadAssetSync( _assetObject ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAssetSync( _assetPath, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetLoader.LoadAssetSync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - BF.AssetObject _asset = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Unload( _asset, _immediately ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneLoadPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetSceneLoadPath( _assetBundlePath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSceneAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.LoadSceneAsync( _assetBundlePath, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadScene(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.UnloadScene( _assetBundlePath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Tick( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAllDelayAssets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnloadAllDelayAssets( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ContainsAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetLoader gen_to_be_invoked = (BF.AssetLoader)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ContainsAsset( _assetPath ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AssetObjectBaseWrap.cs b/Assets/XLua/Gen/BF_AssetObjectBaseWrap.cs deleted file mode 100644 index 912b8dbc9..000000000 --- a/Assets/XLua/Gen/BF_AssetObjectBaseWrap.cs +++ /dev/null @@ -1,262 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAssetObjectBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AssetObjectBase); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 6, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Tick", _m_Tick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadCountdown", _m_UnloadCountdown); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Id", _g_get_Id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AssetPath", _g_get_AssetPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AssetType", _g_get_AssetType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RefCount", _g_get_RefCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoadStatus", _g_get_LoadStatus); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Asset", _g_get_Asset); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "LoadStatus", _s_set_LoadStatus); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.AssetObjectBase does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Tick( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - - - - { - bool _immediately = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.Unload( _immediately ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadCountdown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - - - - { - bool _immediately = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.UnloadCountdown( _immediately ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.Id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AssetPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.AssetPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AssetType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.AssetType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RefCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.RefCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LoadStatus(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.LoadStatus); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Asset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Asset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LoadStatus(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.AssetObjectBase gen_to_be_invoked = (BF.AssetObjectBase)translator.FastGetCSObj(L, 1); - BF.EAssetLoadStatus gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.LoadStatus = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AssetObjectWrap.cs b/Assets/XLua/Gen/BF_AssetObjectWrap.cs deleted file mode 100644 index 8317c76c6..000000000 --- a/Assets/XLua/Gen/BF_AssetObjectWrap.cs +++ /dev/null @@ -1,299 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAssetObjectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.AssetObject); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadComplete", _m_LoadComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAsync", _m_LoadAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSync", _m_LoadSync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAsset", _m_UnloadAsset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartLoadAsset", _m_StartLoadAsset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssetDataBaseLoadEnd", _m_AssetDataBaseLoadEnd); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - bool _needSync = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = new BF.AssetObject(_assetPath, _type, _needSync); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = new BF.AssetObject(_assetPath, _type); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.AssetObject constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObject gen_to_be_invoked = (BF.AssetObject)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Object _asset = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - gen_to_be_invoked.LoadComplete( _asset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObject gen_to_be_invoked = (BF.AssetObject)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.LoadAsync( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObject gen_to_be_invoked = (BF.AssetObject)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LoadSync( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObject gen_to_be_invoked = (BF.AssetObject)translator.FastGetCSObj(L, 1); - - - - { - bool _immediately = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.Unload( _immediately ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObject gen_to_be_invoked = (BF.AssetObject)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnloadAsset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartLoadAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObject gen_to_be_invoked = (BF.AssetObject)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AssetBundle _ab = (UnityEngine.AssetBundle)translator.GetObject(L, 2, typeof(UnityEngine.AssetBundle)); - - gen_to_be_invoked.StartLoadAsset( _ab ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AssetDataBaseLoadEnd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.AssetObject gen_to_be_invoked = (BF.AssetObject)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - gen_to_be_invoked.AssetDataBaseLoadEnd( _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_AtlasWrap.cs b/Assets/XLua/Gen/BF_AtlasWrap.cs deleted file mode 100644 index 0499a38e7..000000000 --- a/Assets/XLua/Gen/BF_AtlasWrap.cs +++ /dev/null @@ -1,170 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFAtlasWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Atlas); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSprite", _m_GetSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforeSerialize", _m_OnBeforeSerialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAfterDeserialize", _m_OnAfterDeserialize); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.Atlas(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Atlas constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Atlas gen_to_be_invoked = (BF.Atlas)translator.FastGetCSObj(L, 1); - - - - { - uint _spriteName = LuaAPI.xlua_touint(L, 2); - - var gen_ret = gen_to_be_invoked.GetSprite( _spriteName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeforeSerialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Atlas gen_to_be_invoked = (BF.Atlas)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnBeforeSerialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnAfterDeserialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Atlas gen_to_be_invoked = (BF.Atlas)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnAfterDeserialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFAccountInfoWrap.cs b/Assets/XLua/Gen/BF_BFAccountInfoWrap.cs deleted file mode 100644 index b2f5a9a14..000000000 --- a/Assets/XLua/Gen/BF_BFAccountInfoWrap.cs +++ /dev/null @@ -1,301 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFAccountInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFAccountInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "code", _g_get_code); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "seq", _g_get_seq); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uid", _g_get_uid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "token", _g_get_token); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gate", _g_get_gate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ip", _g_get_ip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bind", _g_get_bind); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "code", _s_set_code); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "seq", _s_set_seq); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uid", _s_set_uid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "token", _s_set_token); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gate", _s_set_gate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ip", _s_set_ip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bind", _s_set_bind); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFAccountInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFAccountInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_code(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.code); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_seq(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.seq); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.uid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_token(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.token); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.gate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bind(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bind); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_code(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.code = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_seq(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.seq = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uid = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_token(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.token = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gate = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ip = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bind(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAccountInfo gen_to_be_invoked = (BF.BFAccountInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bind = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFAdmobSDKManagerWrap.cs b/Assets/XLua/Gen/BF_BFAdmobSDKManagerWrap.cs deleted file mode 100644 index 5f45a6c38..000000000 --- a/Assets/XLua/Gen/BF_BFAdmobSDKManagerWrap.cs +++ /dev/null @@ -1,527 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFAdmobSDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFAdmobSDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowFullScreenAds", _m_ShowFullScreenAds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryLoadRewardedAd", _m_TryLoadRewardedAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdPlacement", _m_SetAdPlacement); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdShowCallback", _m_SetAdShowCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdLoadedCallback", _m_SetAdLoadedCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdEarnedRewardCallback", _m_SetAdEarnedRewardCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowFullScreenAdFinish", _m_ShowFullScreenAdFinish); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AdLoadedFinish", _m_AdLoadedFinish); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EarnedRewardFinish", _m_EarnedRewardFinish); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaShowCallback", _g_get_luaShowCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaLoadedCallback", _g_get_luaLoadedCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaEarnedRewardCallback", _g_get_luaEarnedRewardCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AdLoaded", _g_get_AdLoaded); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AdInitialized", _g_get_AdInitialized); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaShowCallback", _s_set_luaShowCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaLoadedCallback", _s_set_luaLoadedCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaEarnedRewardCallback", _s_set_luaEarnedRewardCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AdLoaded", _s_set_AdLoaded); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AdInitialized", _s_set_AdInitialized); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFAdmobSDKManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFAdmobSDKManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowFullScreenAds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ShowFullScreenAds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryLoadRewardedAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TryLoadRewardedAd( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdPlacement(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _placement = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetAdPlacement( _placement ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdShowCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdShowCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdLoadedCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdLoadedCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdEarnedRewardCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdEarnedRewardCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowFullScreenAdFinish(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _code = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ShowFullScreenAdFinish( _code ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AdLoadedFinish(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _code = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.AdLoadedFinish( _code ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EarnedRewardFinish(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _code = LuaAPI.xlua_tointeger(L, 2); - string _result = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.EarnedRewardFinish( _code, _result ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaShowCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaShowCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaLoadedCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaLoadedCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaEarnedRewardCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaEarnedRewardCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AdLoaded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AdInitialized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AdInitialized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaShowCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaShowCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaLoadedCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaLoadedCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaEarnedRewardCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaEarnedRewardCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AdLoaded = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AdInitialized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFAdmobSDKManager gen_to_be_invoked = (BF.BFAdmobSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AdInitialized = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFCellWrap.cs b/Assets/XLua/Gen/BF_BFCellWrap.cs deleted file mode 100644 index 37bfecb32..000000000 --- a/Assets/XLua/Gen/BF_BFCellWrap.cs +++ /dev/null @@ -1,287 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFCellWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFCell); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnchoredPosition", _g_get_AnchoredPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SizeDelta", _g_get_SizeDelta); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CachedRectTransform", _g_get_CachedRectTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dataIndex", _g_get_dataIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "objIndex", _g_get_objIndex); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnchoredPosition", _s_set_AnchoredPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SizeDelta", _s_set_SizeDelta); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Height", _s_set_Height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dataIndex", _s_set_dataIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "objIndex", _s_set_objIndex); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFCell(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFCell constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnchoredPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.AnchoredPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SizeDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.SizeDelta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CachedRectTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CachedRectTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dataIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.dataIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_objIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.objIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AnchoredPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.AnchoredPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SizeDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.SizeDelta = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dataIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dataIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_objIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCell gen_to_be_invoked = (BF.BFCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.objIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFCircleLayoutWrap.cs b/Assets/XLua/Gen/BF_BFCircleLayoutWrap.cs deleted file mode 100644 index 3ab5447bc..000000000 --- a/Assets/XLua/Gen/BF_BFCircleLayoutWrap.cs +++ /dev/null @@ -1,250 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFCircleLayoutWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFCircleLayout); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 4, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Relayout", _m_Relayout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPosByIndex", _m_GetPosByIndex); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ActiveCount", _g_get_ActiveCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startAngle", _g_get_startAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angle", _g_get_angle); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startAngle", _s_set_startAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angle", _s_set_angle); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFCircleLayout(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFCircleLayout constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Relayout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Relayout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPosByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPosByIndex( _index ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ActiveCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ActiveCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFCircleLayout gen_to_be_invoked = (BF.BFCircleLayout)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFEventBaseWrap.cs b/Assets/XLua/Gen/BF_BFEventBaseWrap.cs deleted file mode 100644 index ab97fa797..000000000 --- a/Assets/XLua/Gen/BF_BFEventBaseWrap.cs +++ /dev/null @@ -1,200 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFEventBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFEventBase); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CallbackCount", _m_CallbackCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveListener", _m_RemoveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _length = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new BF.BFEventBase(_length); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEventBase constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CallbackCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEventBase gen_to_be_invoked = (BF.BFEventBase)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.CallbackCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEventBase gen_to_be_invoked = (BF.BFEventBase)translator.FastGetCSObj(L, 1); - - - - { - System.Delegate _del = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddListener( _del ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEventBase gen_to_be_invoked = (BF.BFEventBase)translator.FastGetCSObj(L, 1); - - - - { - System.Delegate _del = translator.GetDelegate(L, 2); - - gen_to_be_invoked.RemoveListener( _del ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEventBase gen_to_be_invoked = (BF.BFEventBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFEventWrap.cs b/Assets/XLua/Gen/BF_BFEventWrap.cs deleted file mode 100644 index 843630c60..000000000 --- a/Assets/XLua/Gen/BF_BFEventWrap.cs +++ /dev/null @@ -1,183 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFEvent); - Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _length = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new BF.BFEvent(_length); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - BF.BFEvent leftside = (BF.BFEvent)translator.GetObject(L, 1, typeof(BF.BFEvent)); - System.Action rightside = translator.GetDelegate(L, 2); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - BF.BFEvent leftside = (BF.BFEvent)translator.GetObject(L, 1, typeof(BF.BFEvent)); - System.Action rightside = translator.GetDelegate(L, 2); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEvent gen_to_be_invoked = (BF.BFEvent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Invoke( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFEvent_1_System_Collections_Generic_List_1_BF_BFFinger__Wrap.cs b/Assets/XLua/Gen/BF_BFEvent_1_System_Collections_Generic_List_1_BF_BFFinger__Wrap.cs deleted file mode 100644 index 2263fc1e1..000000000 --- a/Assets/XLua/Gen/BF_BFEvent_1_System_Collections_Generic_List_1_BF_BFFinger__Wrap.cs +++ /dev/null @@ -1,184 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFEvent_1_SystemCollectionsGenericList_1_BFBFFinger__Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFEvent>); - Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent>(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _length = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new BF.BFEvent>(_length); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent>(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent> constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable>>(L, 1) && translator.Assignable>>(L, 2)) - { - BF.BFEvent> leftside = (BF.BFEvent>)translator.GetObject(L, 1, typeof(BF.BFEvent>)); - System.Action> rightside = translator.GetDelegate>>(L, 2); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent>!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable>>(L, 1) && translator.Assignable>>(L, 2)) - { - BF.BFEvent> leftside = (BF.BFEvent>)translator.GetObject(L, 1, typeof(BF.BFEvent>)); - System.Action> rightside = translator.GetDelegate>>(L, 2); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent>!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEvent> gen_to_be_invoked = (BF.BFEvent>)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _t = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.Invoke( _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFEvent_2_BF_SelectEventType_BF_BFFinger_Wrap.cs b/Assets/XLua/Gen/BF_BFEvent_2_BF_SelectEventType_BF_BFFinger_Wrap.cs deleted file mode 100644 index 5bef3af0f..000000000 --- a/Assets/XLua/Gen/BF_BFEvent_2_BF_SelectEventType_BF_BFFinger_Wrap.cs +++ /dev/null @@ -1,185 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFEvent_2_BFSelectEventTypeBFBFFinger_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFEvent); - Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _length = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new BF.BFEvent(_length); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable>(L, 1) && translator.Assignable>(L, 2)) - { - BF.BFEvent leftside = (BF.BFEvent)translator.GetObject(L, 1, typeof(BF.BFEvent)); - System.Action rightside = translator.GetDelegate>(L, 2); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable>(L, 1) && translator.Assignable>(L, 2)) - { - BF.BFEvent leftside = (BF.BFEvent)translator.GetObject(L, 1, typeof(BF.BFEvent)); - System.Action rightside = translator.GetDelegate>(L, 2); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEvent gen_to_be_invoked = (BF.BFEvent)translator.FastGetCSObj(L, 1); - - - - { - BF.SelectEventType _t1;translator.Get(L, 2, out _t1); - BF.BFFinger _t2 = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger)); - - gen_to_be_invoked.Invoke( _t1, _t2 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFEvent_2_BF_TouchEventType_BF_BFFinger_Wrap.cs b/Assets/XLua/Gen/BF_BFEvent_2_BF_TouchEventType_BF_BFFinger_Wrap.cs deleted file mode 100644 index 63cfd5f77..000000000 --- a/Assets/XLua/Gen/BF_BFEvent_2_BF_TouchEventType_BF_BFFinger_Wrap.cs +++ /dev/null @@ -1,185 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFEvent_2_BFTouchEventTypeBFBFFinger_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFEvent); - Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _length = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new BF.BFEvent(_length); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable>(L, 1) && translator.Assignable>(L, 2)) - { - BF.BFEvent leftside = (BF.BFEvent)translator.GetObject(L, 1, typeof(BF.BFEvent)); - System.Action rightside = translator.GetDelegate>(L, 2); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable>(L, 1) && translator.Assignable>(L, 2)) - { - BF.BFEvent leftside = (BF.BFEvent)translator.GetObject(L, 1, typeof(BF.BFEvent)); - System.Action rightside = translator.GetDelegate>(L, 2); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFEvent gen_to_be_invoked = (BF.BFEvent)translator.FastGetCSObj(L, 1); - - - - { - BF.TouchEventType _t1;translator.Get(L, 2, out _t1); - BF.BFFinger _t2 = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger)); - - gen_to_be_invoked.Invoke( _t1, _t2 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFFingerSnapshotWrap.cs b/Assets/XLua/Gen/BF_BFFingerSnapshotWrap.cs deleted file mode 100644 index f72071aef..000000000 --- a/Assets/XLua/Gen/BF_BFFingerSnapshotWrap.cs +++ /dev/null @@ -1,290 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFFingerSnapshotWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFFingerSnapshot); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "age", _g_get_age); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "screenPos", _g_get_screenPos); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "age", _s_set_age); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "screenPos", _s_set_screenPos); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 1, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Pop", _m_Pop_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Push", _m_Push_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryGetScreenPos", _m_TryGetScreenPos_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLowerIndex", _m_GetLowerIndex_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "InactiveSnapshots", _g_get_InactiveSnapshots); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "InactiveSnapshots", _s_set_InactiveSnapshots); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFFingerSnapshot(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFingerSnapshot constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pop_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFFingerSnapshot.Pop( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Push_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - BF.BFFingerSnapshot _snapshot = (BF.BFFingerSnapshot)translator.GetObject(L, 1, typeof(BF.BFFingerSnapshot)); - - BF.BFFingerSnapshot.Push( _snapshot ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetScreenPos_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.List _snapshots = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _targetAge = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _screenPos;translator.Get(L, 3, out _screenPos); - - var gen_ret = BF.BFFingerSnapshot.TryGetScreenPos( _snapshots, _targetAge, ref _screenPos ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushUnityEngineVector2(L, _screenPos); - translator.UpdateUnityEngineVector2(L, 3, _screenPos); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLowerIndex_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.List _snapshots = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _targetAge = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = BF.BFFingerSnapshot.GetLowerIndex( _snapshots, _targetAge ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_age(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFingerSnapshot gen_to_be_invoked = (BF.BFFingerSnapshot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.age); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_screenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFingerSnapshot gen_to_be_invoked = (BF.BFFingerSnapshot)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.screenPos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InactiveSnapshots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.BFFingerSnapshot.InactiveSnapshots); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_age(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFingerSnapshot gen_to_be_invoked = (BF.BFFingerSnapshot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.age = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_screenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFingerSnapshot gen_to_be_invoked = (BF.BFFingerSnapshot)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.screenPos = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_InactiveSnapshots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - BF.BFFingerSnapshot.InactiveSnapshots = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFFingerWrap.cs b/Assets/XLua/Gen/BF_BFFingerWrap.cs deleted file mode 100644 index ad6a9860c..000000000 --- a/Assets/XLua/Gen/BF_BFFingerWrap.cs +++ /dev/null @@ -1,1571 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFFingerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFFinger); - Utils.BeginObjectRegister(type, L, translator, 0, 20, 29, 17); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRay", _m_GetRay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStartRay", _m_GetStartRay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSnapshotScreenDelta", _m_GetSnapshotScreenDelta); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSnapshotScreenPosition", _m_GetSnapshotScreenPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSnapshotWorldPosition", _m_GetSnapshotWorldPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRadians", _m_GetRadians); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDegrees", _m_GetDegrees); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLastRadians", _m_GetLastRadians); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLastDegrees", _m_GetLastDegrees); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDeltaRadians", _m_GetDeltaRadians); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDeltaDegrees", _m_GetDeltaDegrees); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetScreenDistance", _m_GetScreenDistance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLastScreenDistance", _m_GetLastScreenDistance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStartScreenDistance", _m_GetStartScreenDistance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStartWorldPosition", _m_GetStartWorldPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLastWorldPosition", _m_GetLastWorldPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldPosition", _m_GetWorldPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldDelta", _m_GetWorldDelta); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearSnapshots", _m_ClearSnapshots); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecordSnapshot", _m_RecordSnapshot); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartLayer", _g_get_StartLayer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsActive", _g_get_IsActive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SnapshotDuration", _g_get_SnapshotDuration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOverTargetLayer", _g_get_IsOverTargetLayer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TargetTrans", _g_get_TargetTrans); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Hit", _g_get_Hit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Down", _g_get_Down); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Up", _g_get_Up); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Move", _g_get_Move); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LastSnapshotScreenDelta", _g_get_LastSnapshotScreenDelta); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScreenDelta", _g_get_ScreenDelta); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SlideScreenDelta", _g_get_SlideScreenDelta); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "age", _g_get_age); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "touching", _g_get_touching); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastTouching", _g_get_lastTouching); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hit", _g_get_hit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hitCount", _g_get_hitCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "slide", _g_get_slide); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dead", _g_get_dead); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pressure", _g_get_pressure); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastPressure", _g_get_lastPressure); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startScreenPos", _g_get_startScreenPos); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastScreenPos", _g_get_lastScreenPos); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curScreenPos", _g_get_curScreenPos); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startOverTargetLayer", _g_get_startOverTargetLayer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startTargetTrans", _g_get_startTargetTrans); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cantTriggerHit", _g_get_cantTriggerHit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "snapshotList", _g_get_snapshotList); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "index", _s_set_index); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "age", _s_set_age); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "touching", _s_set_touching); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastTouching", _s_set_lastTouching); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hit", _s_set_hit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hitCount", _s_set_hitCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "slide", _s_set_slide); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dead", _s_set_dead); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pressure", _s_set_pressure); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastPressure", _s_set_lastPressure); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startScreenPos", _s_set_startScreenPos); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastScreenPos", _s_set_lastScreenPos); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curScreenPos", _s_set_curScreenPos); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startOverTargetLayer", _s_set_startOverTargetLayer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startTargetTrans", _s_set_startTargetTrans); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cantTriggerHit", _s_set_cantTriggerHit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "snapshotList", _s_set_snapshotList); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFFinger(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetRay( _camera ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetRay( ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetRay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStartRay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetStartRay( _camera ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetStartRay( ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetStartRay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSnapshotScreenDelta(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetSnapshotScreenDelta( _deltaTime ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSnapshotScreenPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - float _targetAge = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetSnapshotScreenPosition( _targetAge ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSnapshotWorldPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - float _targetAge = (float)LuaAPI.lua_tonumber(L, 2); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetSnapshotWorldPosition( _targetAge, _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _targetAge = (float)LuaAPI.lua_tonumber(L, 2); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.GetSnapshotWorldPosition( _targetAge, _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetSnapshotWorldPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRadians(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - - var gen_ret = gen_to_be_invoked.GetRadians( _referencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDegrees(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - - var gen_ret = gen_to_be_invoked.GetDegrees( _referencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastRadians(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - - var gen_ret = gen_to_be_invoked.GetLastRadians( _referencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastDegrees(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - - var gen_ret = gen_to_be_invoked.GetLastDegrees( _referencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDeltaRadians(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - - var gen_ret = gen_to_be_invoked.GetDeltaRadians( _referencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - UnityEngine.Vector2 _lastReferencePoint;translator.Get(L, 3, out _lastReferencePoint); - - var gen_ret = gen_to_be_invoked.GetDeltaRadians( _referencePoint, _lastReferencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetDeltaRadians!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDeltaDegrees(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - - var gen_ret = gen_to_be_invoked.GetDeltaDegrees( _referencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _referencePoint;translator.Get(L, 2, out _referencePoint); - UnityEngine.Vector2 _lastReferencePoint;translator.Get(L, 3, out _lastReferencePoint); - - var gen_ret = gen_to_be_invoked.GetDeltaDegrees( _referencePoint, _lastReferencePoint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetDeltaDegrees!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetScreenDistance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetScreenDistance( _point ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastScreenDistance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetLastScreenDistance( _point ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStartScreenDistance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.GetStartScreenDistance( _point ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStartWorldPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetStartWorldPosition( _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetStartWorldPosition( _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetStartWorldPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastWorldPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetLastWorldPosition( _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetLastWorldPosition( _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetLastWorldPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetWorldPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetWorldPosition( _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetWorldPosition( _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetWorldPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetWorldDelta(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetWorldDelta( _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetWorldDelta( _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - float _lastDistance = (float)LuaAPI.lua_tonumber(L, 2); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.GetWorldDelta( _lastDistance, _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _lastDistance = (float)LuaAPI.lua_tonumber(L, 2); - float _distance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.GetWorldDelta( _lastDistance, _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.GetWorldDelta!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearSnapshots(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _count = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ClearSnapshots( _count ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.ClearSnapshots( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFFinger.ClearSnapshots!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecordSnapshot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RecordSnapshot( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StartLayer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.StartLayer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsActive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsActive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SnapshotDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.SnapshotDuration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsOverTargetLayer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsOverTargetLayer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TargetTrans(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TargetTrans); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Hit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Hit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Down(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Down); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Up); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Move(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Move); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LastSnapshotScreenDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.LastSnapshotScreenDelta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScreenDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.ScreenDelta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SlideScreenDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.SlideScreenDelta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_age(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.age); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_touching(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.touching); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastTouching(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.lastTouching); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hitCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hitCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_slide(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.slide); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dead(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.dead); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pressure); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastPressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lastPressure); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startScreenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.startScreenPos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastScreenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.lastScreenPos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curScreenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.curScreenPos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startOverTargetLayer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.startOverTargetLayer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startTargetTrans(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.startTargetTrans); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cantTriggerHit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.cantTriggerHit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_snapshotList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.snapshotList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.index = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_age(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.age = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_touching(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.touching = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastTouching(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lastTouching = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hit = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hitCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hitCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_slide(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.slide = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dead(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dead = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pressure = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastPressure(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lastPressure = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startScreenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startScreenPos = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastScreenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lastScreenPos = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curScreenPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.curScreenPos = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startOverTargetLayer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startOverTargetLayer = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startTargetTrans(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startTargetTrans = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cantTriggerHit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cantTriggerHit = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_snapshotList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFFinger gen_to_be_invoked = (BF.BFFinger)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.snapshotList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFGateInfoWrap.cs b/Assets/XLua/Gen/BF_BFGateInfoWrap.cs deleted file mode 100644 index dcdeeeec5..000000000 --- a/Assets/XLua/Gen/BF_BFGateInfoWrap.cs +++ /dev/null @@ -1,212 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFGateInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFGateInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainDomain", _g_get_mainDomain); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainPort", _g_get_mainPort); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "chatDomain", _g_get_chatDomain); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "chatPort", _g_get_chatPort); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainDomain", _s_set_mainDomain); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainPort", _s_set_mainPort); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "chatDomain", _s_set_chatDomain); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "chatPort", _s_set_chatPort); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _mainDomain = LuaAPI.lua_tostring(L, 2); - int _mainPort = LuaAPI.xlua_tointeger(L, 3); - string _chatDomain = LuaAPI.lua_tostring(L, 4); - int _chatPort = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new BF.BFGateInfo(_mainDomain, _mainPort, _chatDomain, _chatPort); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGateInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainDomain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.mainDomain); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainPort(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mainPort); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_chatDomain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.chatDomain); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_chatPort(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.chatPort); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainDomain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mainDomain = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainPort(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mainPort = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_chatDomain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.chatDomain = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_chatPort(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGateInfo gen_to_be_invoked = (BF.BFGateInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.chatPort = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFGestureWrap.cs b/Assets/XLua/Gen/BF_BFGestureWrap.cs deleted file mode 100644 index ec674cfe4..000000000 --- a/Assets/XLua/Gen/BF_BFGestureWrap.cs +++ /dev/null @@ -1,615 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFGestureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFGesture); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 12, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScreenCenter", _m_GetScreenCenter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastScreenCenter", _m_GetLastScreenCenter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStartScreenCenter", _m_GetStartScreenCenter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScreenDelta", _m_GetScreenDelta_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetWorldDelta", _m_GetWorldDelta_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScreenDistance", _m_GetScreenDistance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastScreenDistance", _m_GetLastScreenDistance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStartScreenDistance", _m_GetStartScreenDistance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPinchScale", _m_GetPinchScale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTwistDegrees", _m_GetTwistDegrees_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTwistRadians", _m_GetTwistRadians_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFGesture does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetScreenCenter_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetScreenCenter( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetScreenCenter( _fingers ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetScreenCenter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastScreenCenter_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetLastScreenCenter( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetLastScreenCenter( _fingers ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetLastScreenCenter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStartScreenCenter_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetStartScreenCenter( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetStartScreenCenter( _fingers ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetStartScreenCenter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetScreenDelta_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetScreenDelta( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetScreenDelta( _fingers ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetScreenDelta!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetWorldDelta_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = BF.BFGesture.GetWorldDelta( _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _distance = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = BF.BFGesture.GetWorldDelta( _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = BF.BFGesture.GetWorldDelta( _fingers, _distance, _camera ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = BF.BFGesture.GetWorldDelta( _fingers, _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetWorldDelta!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetScreenDistance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetScreenDistance( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetScreenDistance( _fingers ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - UnityEngine.Vector2 _center;translator.Get(L, 2, out _center); - - var gen_ret = BF.BFGesture.GetScreenDistance( _fingers, _center ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetScreenDistance!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastScreenDistance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetLastScreenDistance( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetLastScreenDistance( _fingers ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - UnityEngine.Vector2 _center;translator.Get(L, 2, out _center); - - var gen_ret = BF.BFGesture.GetLastScreenDistance( _fingers, _center ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetLastScreenDistance!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStartScreenDistance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetStartScreenDistance( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetStartScreenDistance( _fingers ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - UnityEngine.Vector2 _center;translator.Get(L, 2, out _center); - - var gen_ret = BF.BFGesture.GetStartScreenDistance( _fingers, _center ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetStartScreenDistance!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPinchScale_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _useWheel = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = BF.BFGesture.GetPinchScale( _useWheel ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetPinchScale( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - bool _useWheel = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = BF.BFGesture.GetPinchScale( _fingers, _useWheel ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetPinchScale( _fingers ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetPinchScale!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTwistDegrees_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetTwistDegrees( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetTwistDegrees( _fingers ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetTwistDegrees!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTwistRadians_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = BF.BFGesture.GetTwistRadians( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fingers = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = BF.BFGesture.GetTwistRadians( _fingers ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGesture.GetTwistRadians!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFGraphicFlipWrap.cs b/Assets/XLua/Gen/BF_BFGraphicFlipWrap.cs deleted file mode 100644 index ff3f09cff..000000000 --- a/Assets/XLua/Gen/BF_BFGraphicFlipWrap.cs +++ /dev/null @@ -1,175 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFGraphicFlipWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFGraphicFlip); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontal", _g_get_horizontal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertical", _g_get_vertical); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontal", _s_set_horizontal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertical", _s_set_vertical); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFGraphicFlip(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGraphicFlip constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFGraphicFlip gen_to_be_invoked = (BF.BFGraphicFlip)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _verts = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _verts ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGraphicFlip gen_to_be_invoked = (BF.BFGraphicFlip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.horizontal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGraphicFlip gen_to_be_invoked = (BF.BFGraphicFlip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.vertical); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGraphicFlip gen_to_be_invoked = (BF.BFGraphicFlip)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.horizontal = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGraphicFlip gen_to_be_invoked = (BF.BFGraphicFlip)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vertical = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFGridLayoutWrap.cs b/Assets/XLua/Gen/BF_BFGridLayoutWrap.cs deleted file mode 100644 index b3b735d93..000000000 --- a/Assets/XLua/Gen/BF_BFGridLayoutWrap.cs +++ /dev/null @@ -1,329 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFGridLayoutWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFGridLayout); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshLayout", _m_RefreshLayout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVerticalSize", _m_GetVerticalSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorizontalSize", _m_GetHorizontalSize); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Spaceing", _g_get_Spaceing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellSize", _g_get_CellSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartCorner", _g_get_StartCorner); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintType", _g_get_ConstraintType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintCount", _g_get_ConstraintCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Spaceing", _s_set_Spaceing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellSize", _s_set_CellSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "StartCorner", _s_set_StartCorner); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintType", _s_set_ConstraintType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintCount", _s_set_ConstraintCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFGridLayout(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGridLayout constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshLayout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshLayout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVerticalSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetVerticalSize( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHorizontalSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHorizontalSize( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Spaceing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.Spaceing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CellSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.CellSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StartCorner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.StartCorner); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ConstraintType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ConstraintType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ConstraintCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ConstraintCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Spaceing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.Spaceing = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CellSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.CellSize = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_StartCorner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - BF.BFGridLayout.Corner gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.StartCorner = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ConstraintType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - BF.BFGridLayout.Constraint gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.ConstraintType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ConstraintCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ConstraintCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFHorizontalOrVerticalLayoutWrap.cs b/Assets/XLua/Gen/BF_BFHorizontalOrVerticalLayoutWrap.cs deleted file mode 100644 index dfda7ae95..000000000 --- a/Assets/XLua/Gen/BF_BFHorizontalOrVerticalLayoutWrap.cs +++ /dev/null @@ -1,260 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFHorizontalOrVerticalLayoutWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFHorizontalOrVerticalLayout); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshLayout", _m_RefreshLayout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVerticalSize", _m_GetVerticalSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorizontalSize", _m_GetHorizontalSize); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Spaceing", _g_get_Spaceing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VerticalOrHorizontal", _g_get_VerticalOrHorizontal); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Spaceing", _s_set_Spaceing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "VerticalOrHorizontal", _s_set_VerticalOrHorizontal); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFHorizontalOrVerticalLayout(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFHorizontalOrVerticalLayout constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshLayout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshLayout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVerticalSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetVerticalSize( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHorizontalSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHorizontalSize( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Spaceing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Spaceing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VerticalOrHorizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.VerticalOrHorizontal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Spaceing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Spaceing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_VerticalOrHorizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHorizontalOrVerticalLayout gen_to_be_invoked = (BF.BFHorizontalOrVerticalLayout)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.VerticalOrHorizontal = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFHttpsInfoWrap.cs b/Assets/XLua/Gen/BF_BFHttpsInfoWrap.cs deleted file mode 100644 index f2e7a551d..000000000 --- a/Assets/XLua/Gen/BF_BFHttpsInfoWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFHttpsInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFHttpsInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainDomain", _g_get_mainDomain); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainPort", _g_get_mainPort); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainDomain", _s_set_mainDomain); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainPort", _s_set_mainPort); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _mainDomain = LuaAPI.lua_tostring(L, 2); - int _mainPort = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new BF.BFHttpsInfo(_mainDomain, _mainPort); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFHttpsInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainDomain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHttpsInfo gen_to_be_invoked = (BF.BFHttpsInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.mainDomain); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainPort(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHttpsInfo gen_to_be_invoked = (BF.BFHttpsInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mainPort); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainDomain(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHttpsInfo gen_to_be_invoked = (BF.BFHttpsInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mainDomain = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainPort(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFHttpsInfo gen_to_be_invoked = (BF.BFHttpsInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mainPort = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFIronSourceSDKManagerWrap.cs b/Assets/XLua/Gen/BF_BFIronSourceSDKManagerWrap.cs deleted file mode 100644 index 911201bf8..000000000 --- a/Assets/XLua/Gen/BF_BFIronSourceSDKManagerWrap.cs +++ /dev/null @@ -1,528 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFIronSourceSDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFIronSourceSDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdRevenuePaidEventCallback", _m_SetAdRevenuePaidEventCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowFullScreenAds", _m_ShowFullScreenAds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryLoadRewardedAd", _m_TryLoadRewardedAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdPlacement", _m_SetAdPlacement); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdShowCallback", _m_SetAdShowCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdLoadedCallback", _m_SetAdLoadedCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdEarnedRewardCallback", _m_SetAdEarnedRewardCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowFullScreenAdFinish", _m_ShowFullScreenAdFinish); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaShowCallback", _g_get_luaShowCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaLoadedCallback", _g_get_luaLoadedCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaEarnedRewardCallback", _g_get_luaEarnedRewardCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaAdRevenuePaidEventCallback", _g_get_luaAdRevenuePaidEventCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AdLoaded", _g_get_AdLoaded); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AdInitialized", _g_get_AdInitialized); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaShowCallback", _s_set_luaShowCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaLoadedCallback", _s_set_luaLoadedCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaEarnedRewardCallback", _s_set_luaEarnedRewardCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaAdRevenuePaidEventCallback", _s_set_luaAdRevenuePaidEventCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AdLoaded", _s_set_AdLoaded); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AdInitialized", _s_set_AdInitialized); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFIronSourceSDKManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFIronSourceSDKManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Start( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdRevenuePaidEventCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdRevenuePaidEventCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowFullScreenAds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ShowFullScreenAds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryLoadRewardedAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TryLoadRewardedAd( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdPlacement(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _placement = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetAdPlacement( _placement ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdShowCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdShowCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdLoadedCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdLoadedCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdEarnedRewardCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAdEarnedRewardCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowFullScreenAdFinish(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _code = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ShowFullScreenAdFinish( _code ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaShowCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaShowCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaLoadedCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaLoadedCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaEarnedRewardCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaEarnedRewardCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaAdRevenuePaidEventCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaAdRevenuePaidEventCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AdLoaded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AdInitialized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AdInitialized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaShowCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaShowCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaLoadedCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaLoadedCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaEarnedRewardCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaEarnedRewardCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaAdRevenuePaidEventCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaAdRevenuePaidEventCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AdLoaded = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AdInitialized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFIronSourceSDKManager gen_to_be_invoked = (BF.BFIronSourceSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AdInitialized = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFLanguageInfoWrap.cs b/Assets/XLua/Gen/BF_BFLanguageInfoWrap.cs deleted file mode 100644 index c5866f8d9..000000000 --- a/Assets/XLua/Gen/BF_BFLanguageInfoWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFLanguageInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFLanguageInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFallbackLanguage", _m_GetFallbackLanguage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Languages", _g_get_Languages); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _languages = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = new BF.BFLanguageInfo(_languages); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFLanguageInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFallbackLanguage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLanguageInfo gen_to_be_invoked = (BF.BFLanguageInfo)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetFallbackLanguage( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLanguageInfo gen_to_be_invoked = (BF.BFLanguageInfo)translator.FastGetCSObj(L, 1); - - - - { - string _lang = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Contains( _lang ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Languages(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLanguageInfo gen_to_be_invoked = (BF.BFLanguageInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Languages); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFLayoutBaseWrap.cs b/Assets/XLua/Gen/BF_BFLayoutBaseWrap.cs deleted file mode 100644 index 11599888c..000000000 --- a/Assets/XLua/Gen/BF_BFLayoutBaseWrap.cs +++ /dev/null @@ -1,223 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFLayoutBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFLayoutBase); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Left", _g_get_Left); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Right", _g_get_Right); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Top", _g_get_Top); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Bottom", _g_get_Bottom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChildAlignment", _g_get_ChildAlignment); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Left", _s_set_Left); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Right", _s_set_Right); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Top", _s_set_Top); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Bottom", _s_set_Bottom); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ChildAlignment", _s_set_ChildAlignment); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFLayoutBase does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Top); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Bottom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ChildAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineTextAnchor(L, gen_to_be_invoked.ChildAlignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Left = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Right = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Top(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Top = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Bottom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Bottom = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ChildAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLayoutBase gen_to_be_invoked = (BF.BFLayoutBase)translator.FastGetCSObj(L, 1); - UnityEngine.TextAnchor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.ChildAlignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFLogWrap.cs b/Assets/XLua/Gen/BF_BFLogWrap.cs deleted file mode 100644 index 69a57b735..000000000 --- a/Assets/XLua/Gen/BF_BFLogWrap.cs +++ /dev/null @@ -1,281 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFLogWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFLog); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 2, 2); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogDebug", _m_LogDebug_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Log", _m_Log_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogWarning", _m_LogWarning_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogError", _m_LogError_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogAssert", _m_LogAssert_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DEBUG_RESMGR", _g_get_DEBUG_RESMGR); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DEBUG_GAME_LAUNCH", _g_get_DEBUG_GAME_LAUNCH); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DEBUG_RESMGR", _s_set_DEBUG_RESMGR); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DEBUG_GAME_LAUNCH", _s_set_DEBUG_GAME_LAUNCH); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFLog does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogDebug_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - string _color = LuaAPI.lua_tostring(L, 1); - string _text = LuaAPI.lua_tostring(L, 2); - object[] _par = translator.GetParams(L, 3); - - BF.BFLog.LogDebug( _color, _text, _par ); - - - - return 0; - } - if(gen_param_count >= 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable(L, 4))) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - string _color = LuaAPI.lua_tostring(L, 2); - string _text = LuaAPI.lua_tostring(L, 3); - object[] _par = translator.GetParams(L, 4); - - BF.BFLog.LogDebug( _condition, _color, _text, _par ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFLog.LogDebug!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Log_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _text = LuaAPI.lua_tostring(L, 1); - object[] _par = translator.GetParams(L, 2); - - BF.BFLog.Log( _text, _par ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogWarning_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _text = LuaAPI.lua_tostring(L, 1); - object[] _par = translator.GetParams(L, 2); - - BF.BFLog.LogWarning( _text, _par ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogError_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _text = LuaAPI.lua_tostring(L, 1); - object[] _par = translator.GetParams(L, 2); - - BF.BFLog.LogError( _text, _par ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogAssert_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - bool _val = LuaAPI.lua_toboolean(L, 1); - string _text = LuaAPI.lua_tostring(L, 2); - object[] _par = translator.GetParams(L, 3); - - var gen_ret = BF.BFLog.LogAssert( _val, _text, _par ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DEBUG_RESMGR(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, BF.BFLog.DEBUG_RESMGR); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DEBUG_GAME_LAUNCH(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, BF.BFLog.DEBUG_GAME_LAUNCH); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DEBUG_RESMGR(RealStatePtr L) - { - try { - - BF.BFLog.DEBUG_RESMGR = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DEBUG_GAME_LAUNCH(RealStatePtr L) - { - try { - - BF.BFLog.DEBUG_GAME_LAUNCH = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFLoginInfoWrap.cs b/Assets/XLua/Gen/BF_BFLoginInfoWrap.cs deleted file mode 100644 index 24cdc5ab6..000000000 --- a/Assets/XLua/Gen/BF_BFLoginInfoWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFLoginInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFLoginInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loginType", _g_get_loginType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "msg", _g_get_msg); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "loginType", _s_set_loginType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "msg", _s_set_msg); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - int _loginType = LuaAPI.xlua_tointeger(L, 2); - string _msg = LuaAPI.lua_tostring(L, 3); - - var gen_ret = new BF.BFLoginInfo(_loginType, _msg); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFLoginInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loginType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginInfo gen_to_be_invoked = (BF.BFLoginInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.loginType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_msg(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginInfo gen_to_be_invoked = (BF.BFLoginInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.msg); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_loginType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginInfo gen_to_be_invoked = (BF.BFLoginInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.loginType = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_msg(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginInfo gen_to_be_invoked = (BF.BFLoginInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.msg = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFLoginSDKManagerWrap.cs b/Assets/XLua/Gen/BF_BFLoginSDKManagerWrap.cs deleted file mode 100644 index 97c1a9639..000000000 --- a/Assets/XLua/Gen/BF_BFLoginSDKManagerWrap.cs +++ /dev/null @@ -1,1327 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFLoginSDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFLoginSDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 30, 12, 11); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitListener", _m_InitListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaLoginCallback", _m_SetLuaLoginCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaLogoutCallback", _m_SetLuaLogoutCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaBindCallback", _m_SetLuaBindCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaServerListCallback", _m_SetLuaServerListCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaAccountLoginCallback", _m_SetLuaAccountLoginCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaAccountChangeCallback", _m_SetLuaAccountChangeCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNewPlayerGuid", _m_GetNewPlayerGuid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Logout", _m_Logout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBFToken", _m_GetBFToken); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBFTokenToBytes", _m_GetBFTokenToBytes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAccountInfo", _m_SetAccountInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAccountInfoBind", _m_SetAccountInfoBind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAccountInfo", _m_GetAccountInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleLoginComplete", _m_GoogleLoginComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleLogoutComplete", _m_GoogleLogoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoginComplete", _m_LoginComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogoutComplete", _m_LogoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BindComplete", _m_BindComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostWithURL", _m_PostWithURL); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWithURL", _m_GetWithURL); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetServerList", _m_GetServerList); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartAccountChange", _m_StartAccountChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartAccountBind", _m_StartAccountBind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartAccountLogin", _m_StartAccountLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStartAccountLogin", _m_OnStartAccountLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStartAccountChange", _m_OnStartAccountChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFirebaseToken", _m_SetFirebaseToken); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirebaseToken", _m_GetFirebaseToken); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SDKLogin", _g_get_SDKLogin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AccountLoginSeq", _g_get_AccountLoginSeq); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaLoginCallback", _g_get_luaLoginCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaLogoutCallback", _g_get_luaLogoutCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaBindCallback", _g_get_luaBindCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaServerListCallback", _g_get_luaServerListCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaAccountLoginCallback", _g_get_luaAccountLoginCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaAccountChangeCallback", _g_get_luaAccountChangeCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "FBSdk", _g_get_FBSdk); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "accountInfo", _g_get_accountInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firebaseToken", _g_get_firebaseToken); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaFirebaseTokenCallback", _g_get_luaFirebaseTokenCallback); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AccountLoginSeq", _s_set_AccountLoginSeq); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaLoginCallback", _s_set_luaLoginCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaLogoutCallback", _s_set_luaLogoutCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaBindCallback", _s_set_luaBindCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaServerListCallback", _s_set_luaServerListCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaAccountLoginCallback", _s_set_luaAccountLoginCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaAccountChangeCallback", _s_set_luaAccountChangeCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "FBSdk", _s_set_FBSdk); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "accountInfo", _s_set_accountInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firebaseToken", _s_set_firebaseToken); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaFirebaseTokenCallback", _s_set_luaFirebaseTokenCallback); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFLoginSDKManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFLoginSDKManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitListener( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaLoginCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaLoginCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaLogoutCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaLogoutCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaBindCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaBindCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaServerListCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaServerListCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaAccountLoginCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaAccountLoginCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaAccountChangeCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaAccountChangeCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNewPlayerGuid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNewPlayerGuid( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Login(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - BF.NativeCore.LoginType _type;translator.Get(L, 2, out _type); - - gen_to_be_invoked.Login( _type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Logout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - BF.NativeCore.LoginType _type;translator.Get(L, 2, out _type); - - gen_to_be_invoked.Logout( _type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBFToken(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetBFToken( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBFTokenToBytes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetBFTokenToBytes( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAccountInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _json = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetAccountInfo( _json ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAccountInfoBind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _json = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetAccountInfoBind( _json ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAccountInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _json = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetAccountInfo( _json ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GoogleLoginComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - bool _succ = LuaAPI.lua_toboolean(L, 2); - string _msg = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.GoogleLoginComplete( _succ, _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GoogleLogoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - bool _succ = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.GoogleLogoutComplete( _succ ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoginComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - BF.NativeCore.LoginType _loginType;translator.Get(L, 2, out _loginType); - BF.NativeCore.ULoginResult _result;translator.Get(L, 3, out _result); - string _msg = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.LoginComplete( _loginType, _result, _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - BF.NativeCore.LoginType _loginType;translator.Get(L, 2, out _loginType); - BF.NativeCore.ULoginResult _result;translator.Get(L, 3, out _result); - string _msg = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.LogoutComplete( _loginType, _result, _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BindComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - BF.NativeCore.ULoginResult _result;translator.Get(L, 2, out _result); - string _msg = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.BindComplete( _result, _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostWithURL(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.PostWithURL( _url, _data, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetWithURL(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.GetWithURL( _url, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetServerList(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _requestUrl = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.GetServerList( _requestUrl ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartAccountChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _requestArgsJson = LuaAPI.lua_tostring(L, 3); - int _sdkLoginType = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.StartAccountChange( _url, _requestArgsJson, _sdkLoginType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartAccountBind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _sdkLoginType = LuaAPI.xlua_tointeger(L, 2); - string _url = LuaAPI.lua_tostring(L, 3); - string _requestArgsJson = LuaAPI.lua_tostring(L, 4); - System.Action _luaBindCallback = translator.GetDelegate>(L, 5); - - gen_to_be_invoked.StartAccountBind( _sdkLoginType, _url, _requestArgsJson, _luaBindCallback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartAccountLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _requestArgsJson = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.StartAccountLogin( _url, _requestArgsJson ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStartAccountLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _requestArgsJson = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.OnStartAccountLogin( _url, _requestArgsJson ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStartAccountChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _requestArgsJson = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.OnStartAccountChange( _url, _requestArgsJson ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFirebaseToken(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _token = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetFirebaseToken( _token ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFirebaseToken(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.GetFirebaseToken( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SDKLogin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.SDKLogin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AccountLoginSeq(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AccountLoginSeq); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaLoginCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaLoginCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaLogoutCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaLogoutCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaBindCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaBindCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaServerListCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaServerListCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaAccountLoginCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaAccountLoginCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaAccountChangeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaAccountChangeCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FBSdk(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.FBSdk); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_accountInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.accountInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firebaseToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.firebaseToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaFirebaseTokenCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaFirebaseTokenCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AccountLoginSeq(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AccountLoginSeq = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaLoginCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaLoginCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaLogoutCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaLogoutCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaBindCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaBindCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaServerListCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaServerListCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaAccountLoginCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaAccountLoginCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaAccountChangeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaAccountChangeCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_FBSdk(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.FBSdk = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.GetObject(L, 2, typeof(BF.NativeCore.ThirdPlatform.FacebookSdk)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_accountInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.accountInfo = (BF.BFAccountInfo)translator.GetObject(L, 2, typeof(BF.BFAccountInfo)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firebaseToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.firebaseToken = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaFirebaseTokenCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaFirebaseTokenCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFMainWrap.cs b/Assets/XLua/Gen/BF_BFMainWrap.cs deleted file mode 100644 index 98f3b11e8..000000000 --- a/Assets/XLua/Gen/BF_BFMainWrap.cs +++ /dev/null @@ -1,566 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFMainWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFMain); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 14, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartGame", _m_StartGame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "GameLaunchMgr", _g_get_GameLaunchMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuaMgr", _g_get_LuaMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoomMgr", _g_get_LoomMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PoolMgr", _g_get_PoolMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TouchMgr", _g_get_TouchMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RenderMgr", _g_get_RenderMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ResMgr", _g_get_ResMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "NetMgr", _g_get_NetMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "WebRequestMgr", _g_get_WebRequestMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OneShotManager", _g_get_OneShotManager); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SoundManager", _g_get_SoundManager); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TaskMgr", _g_get_TaskMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BIReport", _g_get_BIReport); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SDKMgr", _g_get_SDKMgr); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 6, 6); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetServerTime", _m_SetServerTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ForFree", _m_ForFree_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CLIENT_VERSION", BF.BFMain.CLIENT_VERSION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FILE_HEAD", BF.BFMain.FILE_HEAD); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FILE_HEAD_BASE64", BF.BFMain.FILE_HEAD_BASE64); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsStandAlone", _g_get_IsStandAlone); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsShenhe", _g_get_IsShenhe); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsWhite", _g_get_IsWhite); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IsGotServerTime", _g_get_IsGotServerTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ServerTime", _g_get_ServerTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DifferenceTime", _g_get_DifferenceTime); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsStandAlone", _s_set_IsStandAlone); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsShenhe", _s_set_IsShenhe); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsWhite", _s_set_IsWhite); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IsGotServerTime", _s_set_IsGotServerTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ServerTime", _s_set_ServerTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DifferenceTime", _s_set_DifferenceTime); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFMain(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFMain constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StartGame( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetServerTime_xlua_st_(RealStatePtr L) - { - try { - - - - - { - long _serverTime = LuaAPI.lua_toint64(L, 1); - - BF.BFMain.SetServerTime( _serverTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForFree_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _str = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.BFMain.ForFree( _str ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_GameLaunchMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.GameLaunchMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LuaMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.LuaMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LoomMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.LoomMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PoolMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PoolMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TouchMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TouchMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RenderMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RenderMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ResMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ResMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_NetMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.NetMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_WebRequestMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.WebRequestMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OneShotManager(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OneShotManager); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SoundManager(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SoundManager); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TaskMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TaskMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BIReport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BIReport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SDKMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFMain gen_to_be_invoked = (BF.BFMain)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SDKMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsStandAlone(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, BF.BFMain.IsStandAlone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsShenhe(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, BF.BFMain.IsShenhe); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsWhite(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, BF.BFMain.IsWhite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsGotServerTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, BF.BFMain.IsGotServerTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ServerTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushint64(L, BF.BFMain.ServerTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DifferenceTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushint64(L, BF.BFMain.DifferenceTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsStandAlone(RealStatePtr L) - { - try { - - BF.BFMain.IsStandAlone = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsShenhe(RealStatePtr L) - { - try { - - BF.BFMain.IsShenhe = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsWhite(RealStatePtr L) - { - try { - - BF.BFMain.IsWhite = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsGotServerTime(RealStatePtr L) - { - try { - - BF.BFMain.IsGotServerTime = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ServerTime(RealStatePtr L) - { - try { - - BF.BFMain.ServerTime = LuaAPI.lua_toint64(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DifferenceTime(RealStatePtr L) - { - try { - - BF.BFMain.DifferenceTime = LuaAPI.lua_toint64(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFNativeSDKManagerWrap.cs b/Assets/XLua/Gen/BF_BFNativeSDKManagerWrap.cs deleted file mode 100644 index 3c3f6cb8b..000000000 --- a/Assets/XLua/Gen/BF_BFNativeSDKManagerWrap.cs +++ /dev/null @@ -1,617 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFNativeSDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFNativeSDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 18, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitGoogleLogin", _m_InitGoogleLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitGooglePay", _m_InitGooglePay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitAdmobRewardedVideo", _m_InitAdmobRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GooglePay", _m_GooglePay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConsumePurchase", _m_ConsumePurchase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleLogin", _m_GoogleLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleLogout", _m_GoogleLogout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueryGoogleProductInfo", _m_QueryGoogleProductInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConnectGoogleStore", _m_ConnectGoogleStore); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueryUncompleteOrder", _m_QueryUncompleteOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QuerySubscribeInfo", _m_QuerySubscribeInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirebaseToken", _m_GetFirebaseToken); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowFullScreenAds", _m_ShowFullScreenAds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryLoadRewardedAd", _m_TryLoadRewardedAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdPlacement", _m_SetAdPlacement); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogEvent", _m_LogEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogCrashCustomKey", _m_LogCrashCustomKey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MsgFromAndroidOrIOS", _m_MsgFromAndroidOrIOS); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFNativeSDKManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFNativeSDKManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitGoogleLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitGoogleLogin( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitGooglePay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitGooglePay( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitAdmobRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitAdmobRewardedVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GooglePay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - string _productId = LuaAPI.lua_tostring(L, 3); - string _customMsg = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.GooglePay( _payType, _productId, _customMsg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConsumePurchase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _token = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.ConsumePurchase( _token ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GoogleLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GoogleLogin( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GoogleLogout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GoogleLogout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryGoogleProductInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - string _productJson = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.QueryGoogleProductInfo( _payType, _productJson ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConnectGoogleStore(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ConnectGoogleStore( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryUncompleteOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.QueryUncompleteOrder( _payType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QuerySubscribeInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.QuerySubscribeInfo( _payType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFirebaseToken(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GetFirebaseToken( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowFullScreenAds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ShowFullScreenAds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryLoadRewardedAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TryLoadRewardedAd( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdPlacement(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _placement = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetAdPlacement( _placement ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _eventValues = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.LogEvent( _eventName, _eventValues ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - string _eventValues = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.LogEvent( _eventName, _eventValues ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFNativeSDKManager.LogEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogCrashCustomKey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _stack = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.LogCrashCustomKey( _key, _stack ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MsgFromAndroidOrIOS(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFNativeSDKManager gen_to_be_invoked = (BF.BFNativeSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _content = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.MsgFromAndroidOrIOS( _content ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFNativeSDKManager_NativeResultMsgWrap.cs b/Assets/XLua/Gen/BF_BFNativeSDKManager_NativeResultMsgWrap.cs deleted file mode 100644 index 6d98481d5..000000000 --- a/Assets/XLua/Gen/BF_BFNativeSDKManager_NativeResultMsgWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFNativeSDKManagerNativeResultMsgWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFNativeSDKManager.NativeResultMsg); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "head", _g_get_head); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "body", _g_get_body); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "head", _s_set_head); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "body", _s_set_body); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFNativeSDKManager.NativeResultMsg(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFNativeSDKManager.NativeResultMsg constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_head(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFNativeSDKManager.NativeResultMsg gen_to_be_invoked = (BF.BFNativeSDKManager.NativeResultMsg)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.head); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_body(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFNativeSDKManager.NativeResultMsg gen_to_be_invoked = (BF.BFNativeSDKManager.NativeResultMsg)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.body); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_head(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFNativeSDKManager.NativeResultMsg gen_to_be_invoked = (BF.BFNativeSDKManager.NativeResultMsg)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.head = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_body(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFNativeSDKManager.NativeResultMsg gen_to_be_invoked = (BF.BFNativeSDKManager.NativeResultMsg)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.body = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFNativeSDKMessageWrap.cs b/Assets/XLua/Gen/BF_BFNativeSDKMessageWrap.cs deleted file mode 100644 index a452479ae..000000000 --- a/Assets/XLua/Gen/BF_BFNativeSDKMessageWrap.cs +++ /dev/null @@ -1,90 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFNativeSDKMessageWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFNativeSDKMessage); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 24, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_LOGIN_SUCCESS", BF.BFNativeSDKMessage.GOOGLE_LOGIN_SUCCESS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_LOGIN_FAILED", BF.BFNativeSDKMessage.GOOGLE_LOGIN_FAILED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_LOGOUT_SUCCESS", BF.BFNativeSDKMessage.GOOGLE_LOGOUT_SUCCESS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_PAY_SUCCESS", BF.BFNativeSDKMessage.GOOGLE_PAY_SUCCESS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_PAY_FAILED", BF.BFNativeSDKMessage.GOOGLE_PAY_FAILED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_PAY_CANCEL", BF.BFNativeSDKMessage.GOOGLE_PAY_CANCEL); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_CONNECT_SUCCESS", BF.BFNativeSDKMessage.GOOGLE_CONNECT_SUCCESS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_CONNECT_FAILED", BF.BFNativeSDKMessage.GOOGLE_CONNECT_FAILED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "QUERY_PRODUCT_SUCCESS", BF.BFNativeSDKMessage.QUERY_PRODUCT_SUCCESS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "QUERY_PRODUCT_FAILED", BF.BFNativeSDKMessage.QUERY_PRODUCT_FAILED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "QUERY_UNCOMPLETE_ORDER_FINISH", BF.BFNativeSDKMessage.QUERY_UNCOMPLETE_ORDER_FINISH); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_CONSUME_SUCCESS", BF.BFNativeSDKMessage.GOOGLE_CONSUME_SUCCESS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_CONSUME_FAILED", BF.BFNativeSDKMessage.GOOGLE_CONSUME_FAILED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GOOGLE_LOGOUT_FAILED", BF.BFNativeSDKMessage.GOOGLE_LOGOUT_FAILED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FIREBASE_TOKEN", BF.BFNativeSDKMessage.FIREBASE_TOKEN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "QUERY_SUBSCRIBE_FINISH", BF.BFNativeSDKMessage.QUERY_SUBSCRIBE_FINISH); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB_SHOWED_FULLSCREEN", BF.BFNativeSDKMessage.ADMOB_SHOWED_FULLSCREEN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB_FAILEDTO_SHOW_FULLSCREEN", BF.BFNativeSDKMessage.ADMOB_FAILEDTO_SHOW_FULLSCREEN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB_DISMISSED_FULLSCREEN", BF.BFNativeSDKMessage.ADMOB_DISMISSED_FULLSCREEN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB_LOADED", BF.BFNativeSDKMessage.ADMOB_LOADED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB_LOADED_FAILED", BF.BFNativeSDKMessage.ADMOB_LOADED_FAILED); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB_EARNED_REWARD", BF.BFNativeSDKMessage.ADMOB_EARNED_REWARD); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB_INITIALIZED", BF.BFNativeSDKMessage.ADMOB_INITIALIZED); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFNativeSDKMessage does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFParseClientManagerWrap.cs b/Assets/XLua/Gen/BF_BFParseClientManagerWrap.cs deleted file mode 100644 index dd1cd6112..000000000 --- a/Assets/XLua/Gen/BF_BFParseClientManagerWrap.cs +++ /dev/null @@ -1,1152 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFParseClientManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFParseClientManager); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetServerUrl", _m_SetServerUrl); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseOrderCallback", _m_SetLuaCheckPurchaseOrderCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseConsumeCallback", _m_SetLuaCheckPurchaseConsumeCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseIOSOrderCallback", _m_SetLuaCheckPurchaseIOSOrderCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseIOSConsumeCallback", _m_SetLuaCheckPurchaseIOSConsumeCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaFirstRequestCallback", _m_SetLuaFirstRequestCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserLogin", _m_UserLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserTokenLogin", _m_UserTokenLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersPost", _m_UsersPost); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersGet", _m_UsersGet); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersPut", _m_UsersPut); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersDel", _m_UsersDel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseGPOrder", _m_CheckPurchaseGPOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseGPConsume", _m_CheckPurchaseGPConsume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FirstRequestAction", _m_FirstRequestAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseIOSOrder", _m_CheckPurchaseIOSOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseIOSConsume", _m_CheckPurchaseIOSConsume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseGPOrder", _m_OnCheckPurchaseGPOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseGPConsume", _m_OnCheckPurchaseGPConsume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFirstRequestAction", _m_OnFirstRequestAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseIOSOrder", _m_OnCheckPurchaseIOSOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseIOSConsume", _m_OnCheckPurchaseIOSConsume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FunctionPost", _m_FunctionPost); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageWrite", _m_StorageWrite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageRead", _m_StorageRead); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageUpdate", _m_StorageUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageDelete", _m_StorageDelete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Put", _m_Put); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseOrderCallback", _g_get_luaCheckPurchaseOrderCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseConsumeCallback", _g_get_luaCheckPurchaseConsumeCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaFirstRequestCallback", _g_get_luaFirstRequestCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseIOSOrderCallback", _g_get_luaCheckPurchaseIOSOrderCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseIOSConsumeCallback", _g_get_luaCheckPurchaseIOSConsumeCallback); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseOrderCallback", _s_set_luaCheckPurchaseOrderCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseConsumeCallback", _s_set_luaCheckPurchaseConsumeCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaFirstRequestCallback", _s_set_luaFirstRequestCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseIOSOrderCallback", _s_set_luaCheckPurchaseIOSOrderCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseIOSConsumeCallback", _s_set_luaCheckPurchaseIOSConsumeCallback); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFParseClientManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFParseClientManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetServerUrl(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - string _url = LuaAPI.lua_tostring(L, 2); - string _psarseRevocableSession = LuaAPI.lua_tostring(L, 3); - string _parseApplicationId = LuaAPI.lua_tostring(L, 4); - string _parseClientKey = LuaAPI.lua_tostring(L, 5); - - gen_to_be_invoked.SetServerUrl( _url, _psarseRevocableSession, _parseApplicationId, _parseClientKey ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _url = LuaAPI.lua_tostring(L, 2); - string _psarseRevocableSession = LuaAPI.lua_tostring(L, 3); - string _parseApplicationId = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.SetServerUrl( _url, _psarseRevocableSession, _parseApplicationId ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _url = LuaAPI.lua_tostring(L, 2); - string _psarseRevocableSession = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.SetServerUrl( _url, _psarseRevocableSession ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _url = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetServerUrl( _url ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFParseClientManager.SetServerUrl!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaCheckPurchaseOrderCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaCheckPurchaseOrderCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaCheckPurchaseConsumeCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaCheckPurchaseConsumeCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaCheckPurchaseIOSOrderCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaCheckPurchaseIOSOrderCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaCheckPurchaseIOSConsumeCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaCheckPurchaseIOSConsumeCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaFirstRequestCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaFirstRequestCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _loginiInfo = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.UserLogin( _loginiInfo, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserTokenLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _token = LuaAPI.lua_tostring(L, 2); - string _loginiInfo = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UserTokenLogin( _token, _loginiInfo, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersPost(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersPost( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersGet(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersGet( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersPut(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersPut( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersDel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersDel( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckPurchaseGPOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _purchase = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.CheckPurchaseGPOrder( _purchase ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckPurchaseGPConsume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _purchase = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.CheckPurchaseGPConsume( _purchase ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FirstRequestAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _info = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.FirstRequestAction( _info ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckPurchaseIOSOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _purchase = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.CheckPurchaseIOSOrder( _purchase ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckPurchaseIOSConsume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _purchase = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.CheckPurchaseIOSConsume( _purchase ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCheckPurchaseGPOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _msg = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.OnCheckPurchaseGPOrder( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCheckPurchaseGPConsume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _msg = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.OnCheckPurchaseGPConsume( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnFirstRequestAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _msg = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.OnFirstRequestAction( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCheckPurchaseIOSOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _msg = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.OnCheckPurchaseIOSOrder( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCheckPurchaseIOSConsume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _msg = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.OnCheckPurchaseIOSConsume( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FunctionPost(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.FunctionPost( _url, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StorageWrite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.StorageWrite( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StorageRead(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.StorageRead( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StorageUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.StorageUpdate( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StorageDelete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _deleteKeys = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.StorageDelete( _key, _deleteKeys, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Put(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Put( _url, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaCheckPurchaseOrderCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaCheckPurchaseOrderCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaCheckPurchaseConsumeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaCheckPurchaseConsumeCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaFirstRequestCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaFirstRequestCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaCheckPurchaseIOSOrderCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaCheckPurchaseIOSOrderCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaCheckPurchaseIOSConsumeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaCheckPurchaseIOSConsumeCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaCheckPurchaseOrderCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaCheckPurchaseOrderCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaCheckPurchaseConsumeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaCheckPurchaseConsumeCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaFirstRequestCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaFirstRequestCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaCheckPurchaseIOSOrderCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaCheckPurchaseIOSOrderCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaCheckPurchaseIOSConsumeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaCheckPurchaseIOSConsumeCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFPaySDKManagerWrap.cs b/Assets/XLua/Gen/BF_BFPaySDKManagerWrap.cs deleted file mode 100644 index aba4d447f..000000000 --- a/Assets/XLua/Gen/BF_BFPaySDKManagerWrap.cs +++ /dev/null @@ -1,731 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFPaySDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFPaySDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 8, 7); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleStoreConnectComplete", _m_GoogleStoreConnectComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pay", _m_Pay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GooglePayComplete", _m_GooglePayComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGoogleDelayPayCallback", _m_SetGoogleDelayPayCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConsumePurchase", _m_ConsumePurchase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleConsumeComplete", _m_GoogleConsumeComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConnectGoogleStore", _m_ConnectGoogleStore); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueryProductInfo", _m_QueryProductInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueryProductOver", _m_QueryProductOver); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueryUncompleteOrder", _m_QueryUncompleteOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueryUncompleteOrderFinish", _m_QueryUncompleteOrderFinish); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QuerySubscribeInfo", _m_QuerySubscribeInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QuerySubscribeInfoFinish", _m_QuerySubscribeInfoFinish); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConnectStoreSucc", _g_get_ConnectStoreSucc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaPayCallback", _g_get_luaPayCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaDelayPayCallback", _g_get_luaDelayPayCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaQueryProductCallback", _g_get_luaQueryProductCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaQueryUncompleteOrderCallback", _g_get_luaQueryUncompleteOrderCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaQuerySubscribeInfoCallback", _g_get_luaQuerySubscribeInfoCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaConnectGoogleStoreCallback", _g_get_luaConnectGoogleStoreCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaConsumeCallback", _g_get_luaConsumeCallback); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaPayCallback", _s_set_luaPayCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaDelayPayCallback", _s_set_luaDelayPayCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaQueryProductCallback", _s_set_luaQueryProductCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaQueryUncompleteOrderCallback", _s_set_luaQueryUncompleteOrderCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaQuerySubscribeInfoCallback", _s_set_luaQuerySubscribeInfoCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaConnectGoogleStoreCallback", _s_set_luaConnectGoogleStoreCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaConsumeCallback", _s_set_luaConsumeCallback); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFPaySDKManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFPaySDKManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GoogleStoreConnectComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - bool _success = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.GoogleStoreConnectComplete( _success ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - string _productId = LuaAPI.lua_tostring(L, 3); - string _customMsg = LuaAPI.lua_tostring(L, 4); - System.Action _callback = translator.GetDelegate>(L, 5); - - gen_to_be_invoked.Pay( _payType, _productId, _customMsg, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GooglePayComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _code = LuaAPI.xlua_tointeger(L, 2); - string _result = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.GooglePayComplete( _code, _result ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGoogleDelayPayCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetGoogleDelayPayCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConsumePurchase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _token = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.ConsumePurchase( _token, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GoogleConsumeComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _code = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.GoogleConsumeComplete( _code ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConnectGoogleStore(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ConnectGoogleStore( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryProductInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - string _productJson = LuaAPI.lua_tostring(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.QueryProductInfo( _payType, _productJson, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryProductOver(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - bool _succ = LuaAPI.lua_toboolean(L, 2); - string _result = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.QueryProductOver( _succ, _result ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryUncompleteOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.QueryUncompleteOrder( _payType, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueryUncompleteOrderFinish(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _result = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.QueryUncompleteOrderFinish( _result ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QuerySubscribeInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _payType = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.QuerySubscribeInfo( _payType, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QuerySubscribeInfoFinish(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _result = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.QuerySubscribeInfoFinish( _result ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ConnectStoreSucc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ConnectStoreSucc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaPayCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaPayCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaDelayPayCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaDelayPayCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaQueryProductCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaQueryProductCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaQueryUncompleteOrderCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaQueryUncompleteOrderCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaQuerySubscribeInfoCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaQuerySubscribeInfoCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaConnectGoogleStoreCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaConnectGoogleStoreCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaConsumeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaConsumeCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaPayCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaPayCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaDelayPayCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaDelayPayCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaQueryProductCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaQueryProductCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaQueryUncompleteOrderCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaQueryUncompleteOrderCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaQuerySubscribeInfoCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaQuerySubscribeInfoCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaConnectGoogleStoreCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaConnectGoogleStoreCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaConsumeCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFPaySDKManager gen_to_be_invoked = (BF.BFPaySDKManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaConsumeCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFPlatformWrap.cs b/Assets/XLua/Gen/BF_BFPlatformWrap.cs deleted file mode 100644 index cbba567d7..000000000 --- a/Assets/XLua/Gen/BF_BFPlatformWrap.cs +++ /dev/null @@ -1,710 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFPlatformWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFPlatform); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 24, 2, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "InitUrlsFromLoginCenter", _m_InitUrlsFromLoginCenter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetClusterType", _m_GetClusterType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsLoginCenterConfigValid", _m_IsLoginCenterConfigValid_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLoginCenterConfigValid", _m_SetLoginCenterConfigValid_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsDevChannel", _m_IsDevChannel_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsReleaseChannel", _m_IsReleaseChannel_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsPublishChannel", _m_IsPublishChannel_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCurrentGateInfo", _m_GetCurrentGateInfo_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMainGateURL", _m_GetMainGateURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMainGatePort", _m_GetMainGatePort_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetChatGateURL", _m_GetChatGateURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetChatGatePort", _m_GetChatGatePort_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetVsnHttpsInfo", _m_GetVsnHttpsInfo_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetVsnHttpURL", _m_GetVsnHttpURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetVsnHttpPort", _m_GetVsnHttpPort_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLoginCenterURL", _m_GetLoginCenterURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPayCenterURL", _m_GetPayCenterURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCommunityWebURL", _m_GetCommunityWebURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCommunitySrvURL", _m_GetCommunitySrvURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAicsHttpURL", _m_GetAicsHttpURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAicsWebSocketURL", _m_GetAicsWebSocketURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLanguageInfo", _m_GetLanguageInfo_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCurrentLanguageInfo", _m_GetCurrentLanguageInfo_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Identifier", _g_get_Identifier); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "languageInfos", _g_get_languageInfos); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "languageInfos", _s_set_languageInfos); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFPlatform(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFPlatform constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitUrlsFromLoginCenter_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - - BF.BFPlatform.InitUrlsFromLoginCenter( _json ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetClusterType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFPlatform.GetClusterType( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsLoginCenterConfigValid_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.IsLoginCenterConfigValid( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoginCenterConfigValid_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _valid = LuaAPI.lua_toboolean(L, 1); - - BF.BFPlatform.SetLoginCenterConfigValid( _valid ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDevChannel_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.IsDevChannel( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsReleaseChannel_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.IsReleaseChannel( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsPublishChannel_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.IsPublishChannel( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentGateInfo_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFPlatform.GetCurrentGateInfo( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMainGateURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetMainGateURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMainGatePort_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetMainGatePort( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetChatGateURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetChatGateURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetChatGatePort_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetChatGatePort( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVsnHttpsInfo_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFPlatform.GetVsnHttpsInfo( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVsnHttpURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetVsnHttpURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVsnHttpPort_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetVsnHttpPort( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLoginCenterURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetLoginCenterURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPayCenterURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetPayCenterURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCommunityWebURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetCommunityWebURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCommunitySrvURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetCommunitySrvURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAicsHttpURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetAicsHttpURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAicsWebSocketURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.BFPlatform.GetAicsWebSocketURL( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLanguageInfo_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _identifier = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.BFPlatform.GetLanguageInfo( _identifier ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentLanguageInfo_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFPlatform.GetCurrentLanguageInfo( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Identifier(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, BF.BFPlatform.Identifier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_languageInfos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.BFPlatform.languageInfos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_languageInfos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - BF.BFPlatform.languageInfos = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFScrollRectBaseWrap.cs b/Assets/XLua/Gen/BF_BFScrollRectBaseWrap.cs deleted file mode 100644 index bfe815b8d..000000000 --- a/Assets/XLua/Gen/BF_BFScrollRectBaseWrap.cs +++ /dev/null @@ -1,577 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFScrollRectBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFScrollRectBase); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 3, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRefreshAction", _m_SetRefreshAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOnInstantiateCellAction", _m_SetOnInstantiateCellAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelectedAction", _m_SetSelectedAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSelectedIndex", _m_GetSelectedIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchoredPositionChange", _m_SetAnchoredPositionChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCells", _m_ClearCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnchoredPositionChange", _m_AnchoredPositionChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToIndex", _m_MoveToIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCell", _m_RemoveCell); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ContentTrans", _g_get_ContentTrans); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDrag", _g_get_isDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contentTrans", _g_get_contentTrans); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDrag", _s_set_isDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "contentTrans", _s_set_contentTrans); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFScrollRectBase does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRefreshAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetRefreshAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOnInstantiateCellAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetOnInstantiateCellAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelectedAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetSelectedAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSelectedIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSelectedIndex( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnchoredPositionChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetAnchoredPositionChange( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - int _targetIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RefillCells( _totalCount, _targetIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTotalCount( _totalCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCells( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSelected( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AnchoredPositionChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AnchoredPositionChange( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveToIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.MoveToIndex( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCell(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveCell( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ContentTrans(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ContentTrans); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contentTrans(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.contentTrans); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isDrag = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_contentTrans(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectBase gen_to_be_invoked = (BF.BFScrollRectBase)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.contentTrans = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFScrollRectCommonWrap.cs b/Assets/XLua/Gen/BF_BFScrollRectCommonWrap.cs deleted file mode 100644 index 2aba70449..000000000 --- a/Assets/XLua/Gen/BF_BFScrollRectCommonWrap.cs +++ /dev/null @@ -1,884 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFScrollRectCommonWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFScrollRectCommon); - Utils.BeginObjectRegister(type, L, translator, 0, 17, 10, 10); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCells", _m_ClearCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnchoredPositionChange", _m_AnchoredPositionChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToIndex", _m_MoveToIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCell", _m_RemoveCell); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopMovement", _m_StopMovement); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateAllCellPosition", _m_UpdateAllCellPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCellWidth", _m_SetCellWidth); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCellHeight", _m_SetCellHeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPerLineNum", _m_SetPerLineNum); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTopRecoveryOffset", _m_SetTopRecoveryOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDownRecoveryOffset", _m_SetDownRecoveryOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTopRecoveryOffset", _m_GetTopRecoveryOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDownRecoveryOffset", _m_GetDownRecoveryOffset); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellWidth", _g_get_CellWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellHeight", _g_get_CellHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bfCell", _g_get_bfCell); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topRecoveryOffset", _g_get_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "downRecoveryOffset", _g_get_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverse", _g_get_reverse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellWidth", _g_get_cellWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellHeight", _g_get_cellHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "perLineNum", _g_get_perLineNum); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellWidth", _s_set_CellWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellHeight", _s_set_CellHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bfCell", _s_set_bfCell); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topRecoveryOffset", _s_set_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "downRecoveryOffset", _s_set_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverse", _s_set_reverse); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellWidth", _s_set_cellWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellHeight", _s_set_cellHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "perLineNum", _s_set_perLineNum); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFScrollRectCommon(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFScrollRectCommon constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - int _targetIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RefillCells( _totalCount, _targetIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTotalCount( _totalCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSelected( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCells( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AnchoredPositionChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AnchoredPositionChange( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveToIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.MoveToIndex( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCell(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveCell( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopMovement(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopMovement( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateAllCellPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateAllCellPosition( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCellWidth(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - float _width = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetCellWidth( _width ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCellHeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - float _height = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetCellHeight( _height ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPerLineNum(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _num = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetPerLineNum( _num ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTopRecoveryOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _num = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTopRecoveryOffset( _num ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDownRecoveryOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - int _num = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetDownRecoveryOffset( _num ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTopRecoveryOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetTopRecoveryOffset( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDownRecoveryOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDownRecoveryOffset( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CellWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CellWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CellHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CellHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bfCell); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.topRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.downRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.reverse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cellWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cellHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_perLineNum(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.perLineNum); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CellWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CellWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CellHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CellHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bfCell = (BF.BFCell)translator.GetObject(L, 2, typeof(BF.BFCell)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.topRecoveryOffset = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.downRecoveryOffset = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - BF.BFUIDirection gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverse = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cellWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cellWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cellHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cellHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_perLineNum(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectCommon gen_to_be_invoked = (BF.BFScrollRectCommon)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.perLineNum = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFScrollRectGridWrap.cs b/Assets/XLua/Gen/BF_BFScrollRectGridWrap.cs deleted file mode 100644 index 01b44b810..000000000 --- a/Assets/XLua/Gen/BF_BFScrollRectGridWrap.cs +++ /dev/null @@ -1,503 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFScrollRectGridWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFScrollRectGrid); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 7, 7); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCells", _m_ClearCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnchoredPositionChange", _m_AnchoredPositionChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToIndex", _m_MoveToIndex); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bfCell", _g_get_bfCell); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spacing", _g_get_spacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topRecoveryOffset", _g_get_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "downRecoveryOffset", _g_get_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preLineCount", _g_get_preLineCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bfCell", _s_set_bfCell); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spacing", _s_set_spacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topRecoveryOffset", _s_set_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "downRecoveryOffset", _s_set_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preLineCount", _s_set_preLineCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFScrollRectGrid(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFScrollRectGrid constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - int _targetIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RefillCells( _totalCount, _targetIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTotalCount( _totalCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSelected( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCells( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AnchoredPositionChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AnchoredPositionChange( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveToIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.MoveToIndex( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bfCell); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.topRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.downRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preLineCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.preLineCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bfCell = (BF.BFCell)translator.GetObject(L, 2, typeof(BF.BFCell)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.padding = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.topRecoveryOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.downRecoveryOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preLineCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preLineCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectGrid gen_to_be_invoked = (BF.BFScrollRectGrid)translator.FastGetCSObj(L, 1); - BF.BFUIDirection gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFScrollRectMultCellWrap.cs b/Assets/XLua/Gen/BF_BFScrollRectMultCellWrap.cs deleted file mode 100644 index 03184aa67..000000000 --- a/Assets/XLua/Gen/BF_BFScrollRectMultCellWrap.cs +++ /dev/null @@ -1,503 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFScrollRectMultCellWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFScrollRectMultCell); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 7, 7); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGetCellIndexFunc", _m_SetGetCellIndexFunc); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCells", _m_ClearCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnchoredPositionChange", _m_AnchoredPositionChange); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bfCells", _g_get_bfCells); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spacing", _g_get_spacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topRecoveryOffset", _g_get_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "downRecoveryOffset", _g_get_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preLineCount", _g_get_preLineCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bfCells", _s_set_bfCells); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spacing", _s_set_spacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topRecoveryOffset", _s_set_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "downRecoveryOffset", _s_set_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preLineCount", _s_set_preLineCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFScrollRectMultCell(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFScrollRectMultCell constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGetCellIndexFunc(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - - - - { - System.Func _getCellIndex = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetGetCellIndexFunc( _getCellIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - int _targetIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RefillCells( _totalCount, _targetIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTotalCount( _totalCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSelected( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCells( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AnchoredPositionChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AnchoredPositionChange( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bfCells(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bfCells); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.topRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.downRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preLineCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.preLineCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bfCells(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bfCells = (BF.BFCell[])translator.GetObject(L, 2, typeof(BF.BFCell[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.padding = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.topRecoveryOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.downRecoveryOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preLineCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preLineCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultCell gen_to_be_invoked = (BF.BFScrollRectMultCell)translator.FastGetCSObj(L, 1); - BF.BFUIDirection gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFScrollRectMultSizeWrap.cs b/Assets/XLua/Gen/BF_BFScrollRectMultSizeWrap.cs deleted file mode 100644 index bd3d82b29..000000000 --- a/Assets/XLua/Gen/BF_BFScrollRectMultSizeWrap.cs +++ /dev/null @@ -1,443 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFScrollRectMultSizeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFScrollRectMultSize); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCells", _m_ClearCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnchoredPositionChange", _m_AnchoredPositionChange); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bfCell", _g_get_bfCell); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spacing", _g_get_spacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "topRecoveryOffset", _g_get_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "downRecoveryOffset", _g_get_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverse", _g_get_reverse); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bfCell", _s_set_bfCell); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spacing", _s_set_spacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "topRecoveryOffset", _s_set_topRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "downRecoveryOffset", _s_set_downRecoveryOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverse", _s_set_reverse); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFScrollRectMultSize(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFScrollRectMultSize constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - int _targetIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RefillCells( _totalCount, _targetIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTotalCount( _totalCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSelected( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCells( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AnchoredPositionChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AnchoredPositionChange( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bfCell); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.topRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.downRecoveryOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.reverse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bfCell = (BF.BFCell)translator.GetObject(L, 2, typeof(BF.BFCell)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_topRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.topRecoveryOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_downRecoveryOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.downRecoveryOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - BF.BFUIDirection gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFScrollRectMultSize gen_to_be_invoked = (BF.BFScrollRectMultSize)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverse = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFSliderWrap.cs b/Assets/XLua/Gen/BF_BFSliderWrap.cs deleted file mode 100644 index 5d08164c9..000000000 --- a/Assets/XLua/Gen/BF_BFSliderWrap.cs +++ /dev/null @@ -1,361 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFSliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFSlider); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 11, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillDirection", _g_get_fillDirection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillCenter", _g_get_fillCenter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelsPerUnitMultiplier", _g_get_pixelsPerUnitMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelsPerUnit", _g_get_pixelsPerUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overrideSprite", _g_get_overrideSprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasBorder", _g_get_hasBorder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaHitTestMinimumThreshold", _g_get_alphaHitTestMinimumThreshold); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillDirection", _s_set_fillDirection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillCenter", _s_set_fillCenter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pixelsPerUnitMultiplier", _s_set_pixelsPerUnitMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "overrideSprite", _s_set_overrideSprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaHitTestMinimumThreshold", _s_set_alphaHitTestMinimumThreshold); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFSlider does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - translator.PushBFBFSliderFillDirection(L, gen_to_be_invoked.fillDirection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.fillCenter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelsPerUnitMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelsPerUnitMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overrideSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.overrideSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasBorder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasBorder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alphaHitTestMinimumThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alphaHitTestMinimumThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - BF.BFSlider.FillDirection gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fillDirection = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.value = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fillCenter = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pixelsPerUnitMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pixelsPerUnitMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overrideSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.overrideSprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alphaHitTestMinimumThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFSlider gen_to_be_invoked = (BF.BFSlider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alphaHitTestMinimumThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFThirdReportSDKManagerWrap.cs b/Assets/XLua/Gen/BF_BFThirdReportSDKManagerWrap.cs deleted file mode 100644 index a40a3ecf8..000000000 --- a/Assets/XLua/Gen/BF_BFThirdReportSDKManagerWrap.cs +++ /dev/null @@ -1,629 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFThirdReportSDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFThirdReportSDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 16, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetThinkingAnalyticsAccountId", _m_SetThinkingAnalyticsAccountId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitAppsFlyerAdRevenue", _m_InitAppsFlyerAdRevenue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearThinkingAnalyticsAccountId", _m_ClearThinkingAnalyticsAccountId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostThinkingAnalyticsEvent", _m_PostThinkingAnalyticsEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostThinkingAnalyticsEventName", _m_PostThinkingAnalyticsEventName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostThinkingAnalyticsEventProperties", _m_PostThinkingAnalyticsEventProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostAppsflyerEvent", _m_PostAppsflyerEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostFireBaseEvent", _m_PostFireBaseEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostAdjustSimpleTrackEvent", _m_PostAdjustSimpleTrackEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostAdjustRevenueTrackEvent", _m_PostAdjustRevenueTrackEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostAdjustCallbackTrackEvent", _m_PostAdjustCallbackTrackEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostAdjustPartnerTrackEvent", _m_PostAdjustPartnerTrackEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostAdjustAdRevenueAppLovinMAX", _m_PostAdjustAdRevenueAppLovinMAX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AdjustSetDeviceToken", _m_AdjustSetDeviceToken); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogAppsFlyerAdRevenue", _m_LogAppsFlyerAdRevenue); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFThirdReportSDKManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFThirdReportSDKManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetThinkingAnalyticsAccountId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _id = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetThinkingAnalyticsAccountId( _id ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitAppsFlyerAdRevenue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitAppsFlyerAdRevenue( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearThinkingAnalyticsAccountId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearThinkingAnalyticsAccountId( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostThinkingAnalyticsEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.PostThinkingAnalyticsEvent( _eventName, _data ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PostThinkingAnalyticsEvent( _eventName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFThirdReportSDKManager.PostThinkingAnalyticsEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostThinkingAnalyticsEventName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _eventName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PostThinkingAnalyticsEventName( _eventName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostThinkingAnalyticsEventProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.PostThinkingAnalyticsEventProperties( _eventName, _properties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostAppsflyerEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.PostAppsflyerEvent( _eventName, _data ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PostAppsflyerEvent( _eventName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFThirdReportSDKManager.PostAppsflyerEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostFireBaseEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.PostFireBaseEvent( _eventName, _data ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PostFireBaseEvent( _eventName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFThirdReportSDKManager.PostFireBaseEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostAdjustSimpleTrackEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PostAdjustSimpleTrackEvent( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostAdjustRevenueTrackEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - double _currency = LuaAPI.lua_tonumber(L, 3); - string _currencyCode = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.PostAdjustRevenueTrackEvent( _key, _currency, _currencyCode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostAdjustCallbackTrackEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.PostAdjustCallbackTrackEvent( _key, _data ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PostAdjustCallbackTrackEvent( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFThirdReportSDKManager.PostAdjustCallbackTrackEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostAdjustPartnerTrackEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.PostAdjustPartnerTrackEvent( _key, _data ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PostAdjustPartnerTrackEvent( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFThirdReportSDKManager.PostAdjustPartnerTrackEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostAdjustAdRevenueAppLovinMAX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - double _revenue = LuaAPI.lua_tonumber(L, 2); - string _networkName = LuaAPI.lua_tostring(L, 3); - string _adUnitIdentifier = LuaAPI.lua_tostring(L, 4); - string _placement = LuaAPI.lua_tostring(L, 5); - - gen_to_be_invoked.PostAdjustAdRevenueAppLovinMAX( _revenue, _networkName, _adUnitIdentifier, _placement ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AdjustSetDeviceToken(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _token = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.AdjustSetDeviceToken( _token ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogAppsFlyerAdRevenue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFThirdReportSDKManager gen_to_be_invoked = (BF.BFThirdReportSDKManager)translator.FastGetCSObj(L, 1); - - - - { - int _mediationNetwork = LuaAPI.xlua_tointeger(L, 2); - string _monetizationNetwork = LuaAPI.lua_tostring(L, 3); - double _eventRevenue = LuaAPI.lua_tonumber(L, 4); - string _data = LuaAPI.lua_tostring(L, 5); - - gen_to_be_invoked.LogAppsFlyerAdRevenue( _mediationNetwork, _monetizationNetwork, _eventRevenue, _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFTouchManagerWrap.cs b/Assets/XLua/Gen/BF_BFTouchManagerWrap.cs deleted file mode 100644 index 1b7065127..000000000 --- a/Assets/XLua/Gen/BF_BFTouchManagerWrap.cs +++ /dev/null @@ -1,765 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFTouchManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFTouchManager); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 11, 11); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGuideMask", _m_SetGuideMask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RaycastFindTrans", _m_RaycastFindTrans); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PointOverTargetLayer", _m_PointOverTargetLayer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PointOverLayer", _m_PointOverLayer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RaycastFind", _m_RaycastFind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RaycastResultContains", _m_RaycastResultContains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFingers", _m_GetFingers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFinger", _g_get_onFinger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onGesture", _g_get_onGesture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fingers", _g_get_fingers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hitThresholdTime", _g_get_hitThresholdTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "slideThresholdPixels", _g_get_slideThresholdPixels); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetLayers", _g_get_targetLayers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "recordFingers", _g_get_recordFingers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "recordThresholdPixels", _g_get_recordThresholdPixels); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "recordTimeLimit", _g_get_recordTimeLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "simulateMultiFingers", _g_get_simulateMultiFingers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxFinger", _g_get_maxFinger); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFinger", _s_set_onFinger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onGesture", _s_set_onGesture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fingers", _s_set_fingers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hitThresholdTime", _s_set_hitThresholdTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "slideThresholdPixels", _s_set_slideThresholdPixels); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetLayers", _s_set_targetLayers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "recordFingers", _s_set_recordFingers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "recordThresholdPixels", _s_set_recordThresholdPixels); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "recordTimeLimit", _s_set_recordTimeLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "simulateMultiFingers", _s_set_simulateMultiFingers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxFinger", _s_set_maxFinger); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFTouchManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFTouchManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGuideMask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - bool _mask = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetGuideMask( _mask ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RaycastFindTrans(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _screenPosition;translator.Get(L, 2, out _screenPosition); - - var gen_ret = gen_to_be_invoked.RaycastFindTrans( _screenPosition ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PointOverTargetLayer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _screenPosition;translator.Get(L, 2, out _screenPosition); - - var gen_ret = gen_to_be_invoked.PointOverTargetLayer( _screenPosition ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PointOverLayer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _screenPosition;translator.Get(L, 2, out _screenPosition); - UnityEngine.LayerMask _layer;translator.Get(L, 3, out _layer); - - var gen_ret = gen_to_be_invoked.PointOverLayer( _screenPosition, _layer ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RaycastFind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _screenPosition;translator.Get(L, 2, out _screenPosition); - - var gen_ret = gen_to_be_invoked.RaycastFind( _screenPosition ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _screenPosition;translator.Get(L, 2, out _screenPosition); - UnityEngine.LayerMask _layerMask;translator.Get(L, 3, out _layerMask); - - var gen_ret = gen_to_be_invoked.RaycastFind( _screenPosition, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFTouchManager.RaycastFind!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RaycastResultContains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _screenPosition;translator.Get(L, 2, out _screenPosition); - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform)); - - var gen_ret = gen_to_be_invoked.RaycastResultContains( _screenPosition, _transform ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFingers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - bool _ignoreIfStartedOverGui = LuaAPI.lua_toboolean(L, 2); - bool _ignoreIfOverGui = LuaAPI.lua_toboolean(L, 3); - int _fingerCount = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetFingers( _ignoreIfStartedOverGui, _ignoreIfOverGui, _fingerCount ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _ignoreIfStartedOverGui = LuaAPI.lua_toboolean(L, 2); - bool _ignoreIfOverGui = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetFingers( _ignoreIfStartedOverGui, _ignoreIfOverGui ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFTouchManager.GetFingers!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onFinger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onFinger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onGesture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onGesture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fingers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hitThresholdTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.hitThresholdTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_slideThresholdPixels(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.slideThresholdPixels); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetLayers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetLayers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_recordFingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.recordFingers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_recordThresholdPixels(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.recordThresholdPixels); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_recordTimeLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.recordTimeLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_simulateMultiFingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.simulateMultiFingers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxFinger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxFinger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onFinger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onFinger = (BF.BFEvent)translator.GetObject(L, 2, typeof(BF.BFEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onGesture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onGesture = (BF.BFEvent>)translator.GetObject(L, 2, typeof(BF.BFEvent>)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fingers = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hitThresholdTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hitThresholdTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_slideThresholdPixels(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.slideThresholdPixels = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetLayers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - UnityEngine.LayerMask gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.targetLayers = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_recordFingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.recordFingers = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_recordThresholdPixels(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.recordThresholdPixels = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_recordTimeLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.recordTimeLimit = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_simulateMultiFingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.simulateMultiFingers = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxFinger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchManager gen_to_be_invoked = (BF.BFTouchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxFinger = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFTouchSelectableWrap.cs b/Assets/XLua/Gen/BF_BFTouchSelectableWrap.cs deleted file mode 100644 index 89bea6408..000000000 --- a/Assets/XLua/Gen/BF_BFTouchSelectableWrap.cs +++ /dev/null @@ -1,269 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFTouchSelectableWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFTouchSelectable); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnEvent", _g_get_OnEvent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnSelectGesture", _g_get_OnSelectGesture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsSelected", _g_get_IsSelected); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsLongSelected", _g_get_IsLongSelected); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowMutiFingers", _g_get_allowMutiFingers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowOutOfRange", _g_get_allowOutOfRange); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "longHitTime", _g_get_longHitTime); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnEvent", _s_set_OnEvent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnSelectGesture", _s_set_OnSelectGesture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowMutiFingers", _s_set_allowMutiFingers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowOutOfRange", _s_set_allowOutOfRange); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "longHitTime", _s_set_longHitTime); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFTouchSelectable(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFTouchSelectable constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnEvent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnSelectGesture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnSelectGesture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsSelected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsSelected); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsLongSelected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsLongSelected); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowMutiFingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowMutiFingers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowOutOfRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowOutOfRange); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_longHitTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.longHitTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OnEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OnEvent = (BF.BFEvent)translator.GetObject(L, 2, typeof(BF.BFEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OnSelectGesture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OnSelectGesture = (BF.BFEvent>)translator.GetObject(L, 2, typeof(BF.BFEvent>)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowMutiFingers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowMutiFingers = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowOutOfRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowOutOfRange = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_longHitTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFTouchSelectable gen_to_be_invoked = (BF.BFTouchSelectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.longHitTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFUnitySliderWrap.cs b/Assets/XLua/Gen/BF_BFUnitySliderWrap.cs deleted file mode 100644 index bffd68388..000000000 --- a/Assets/XLua/Gen/BF_BFUnitySliderWrap.cs +++ /dev/null @@ -1,200 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFUnitySliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFUnitySlider); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnBeginDragCallback", _m_AddOnBeginDragCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnEndDragCallback", _m_AddOnEndDragCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFUnitySlider(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFUnitySlider constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnBeginDragCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFUnitySlider gen_to_be_invoked = (BF.BFUnitySlider)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddOnBeginDragCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnEndDragCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFUnitySlider gen_to_be_invoked = (BF.BFUnitySlider)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddOnEndDragCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFUnitySlider gen_to_be_invoked = (BF.BFUnitySlider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFUnitySlider gen_to_be_invoked = (BF.BFUnitySlider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFVersionInfoWrap.cs b/Assets/XLua/Gen/BF_BFVersionInfoWrap.cs deleted file mode 100644 index 7426549f6..000000000 --- a/Assets/XLua/Gen/BF_BFVersionInfoWrap.cs +++ /dev/null @@ -1,394 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFVersionInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFVersionInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 10); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min_version", _g_get_min_version); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "latest_version", _g_get_latest_version); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "version", _g_get_version); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "store_url", _g_get_store_url); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "env", _g_get_env); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cdn_url", _g_get_cdn_url); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "game_urls", _g_get_game_urls); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "open_at", _g_get_open_at); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "now", _g_get_now); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "notice", _g_get_notice); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min_version", _s_set_min_version); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "latest_version", _s_set_latest_version); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "version", _s_set_version); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "store_url", _s_set_store_url); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "env", _s_set_env); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cdn_url", _s_set_cdn_url); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "game_urls", _s_set_game_urls); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "open_at", _s_set_open_at); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "now", _s_set_now); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "notice", _s_set_notice); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BFVersionInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFVersionInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.min_version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_latest_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.latest_version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_store_url(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.store_url); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_env(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.env); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cdn_url(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.cdn_url); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_game_urls(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.game_urls); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_open_at(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.open_at); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_now(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.now); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_notice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.notice); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.min_version = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_latest_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.latest_version = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.version = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_store_url(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.store_url = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_env(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.env = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cdn_url(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cdn_url = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_game_urls(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.game_urls = (System.Collections.Generic.List>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List>)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_open_at(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.open_at = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_now(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.now = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_notice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BFVersionInfo gen_to_be_invoked = (BF.BFVersionInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.notice = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BFWebRequestManagerWrap.cs b/Assets/XLua/Gen/BF_BFWebRequestManagerWrap.cs deleted file mode 100644 index 43999e3c0..000000000 --- a/Assets/XLua/Gen/BF_BFWebRequestManagerWrap.cs +++ /dev/null @@ -1,325 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBFWebRequestManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BFWebRequestManager); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMono", _m_SetMono); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateWebRequest", _m_CreateWebRequest); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Get", _m_Get); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Post", _m_Post); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostForm", _m_PostForm); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BFWebRequestManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BFWebRequestManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMono(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFWebRequestManager gen_to_be_invoked = (BF.BFWebRequestManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); - - gen_to_be_invoked.SetMono( _mono ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFWebRequestManager gen_to_be_invoked = (BF.BFWebRequestManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateWebRequest(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFWebRequestManager gen_to_be_invoked = (BF.BFWebRequestManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _method = LuaAPI.lua_tostring(L, 3); - int _timeout = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.CreateWebRequest( _url, _method, _timeout ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Get(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFWebRequestManager gen_to_be_invoked = (BF.BFWebRequestManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - int _timeout = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.Get( _url, _callback, _timeout ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.Get( _url, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFWebRequestManager.Get!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Post(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFWebRequestManager gen_to_be_invoked = (BF.BFWebRequestManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _url = LuaAPI.lua_tostring(L, 2); - string _fields = LuaAPI.lua_tostring(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - int _timeout = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.Post( _url, _fields, _callback, _timeout ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)) - { - string _url = LuaAPI.lua_tostring(L, 2); - string _fields = LuaAPI.lua_tostring(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Post( _url, _fields, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFWebRequestManager.Post!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostForm(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BFWebRequestManager gen_to_be_invoked = (BF.BFWebRequestManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _url = LuaAPI.lua_tostring(L, 2); - string _fields = LuaAPI.lua_tostring(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - int _timeout = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.PostForm( _url, _fields, _callback, _timeout ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)) - { - string _url = LuaAPI.lua_tostring(L, 2); - string _fields = LuaAPI.lua_tostring(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.PostForm( _url, _fields, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.BFWebRequestManager.PostForm!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BIReportWrap.cs b/Assets/XLua/Gen/BF_BIReportWrap.cs deleted file mode 100644 index 0757b3a94..000000000 --- a/Assets/XLua/Gen/BF_BIReportWrap.cs +++ /dev/null @@ -1,355 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBIReportWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BIReport); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMono", _m_SetMono); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUri", _m_SetUri); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasUri", _m_HasUri); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Post", _m_Post); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostWithURL", _m_PostWithURL); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BIReport does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.BIReport.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMono(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); - - gen_to_be_invoked.SetMono( _mono ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUri(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - string _uri = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetUri( _uri ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasUri(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.HasUri( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Post(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - string _data = LuaAPI.lua_tostring(L, 2); - long _offset = LuaAPI.lua_toint64(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Post( _data, _offset, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PostWithURL(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BIReport gen_to_be_invoked = (BF.BIReport)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - System.Action _callback = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.PostWithURL( _url, _data, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BaseSortingOrderHelperWrap.cs b/Assets/XLua/Gen/BF_BaseSortingOrderHelperWrap.cs deleted file mode 100644 index 97347d459..000000000 --- a/Assets/XLua/Gen/BF_BaseSortingOrderHelperWrap.cs +++ /dev/null @@ -1,157 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBaseSortingOrderHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BaseSortingOrderHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSortingOrder", _m_SetSortingOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUIOrder", _m_SetUIOrder); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "GroupOrder", _g_get_GroupOrder); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "GroupOrder", _s_set_GroupOrder); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.BaseSortingOrderHelper does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSortingOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BaseSortingOrderHelper gen_to_be_invoked = (BF.BaseSortingOrderHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - int _order = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetSortingOrder( _uiOrder, _order ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUIOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BaseSortingOrderHelper gen_to_be_invoked = (BF.BaseSortingOrderHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetUIOrder( _uiOrder ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_GroupOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BaseSortingOrderHelper gen_to_be_invoked = (BF.BaseSortingOrderHelper)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.GroupOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_GroupOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BaseSortingOrderHelper gen_to_be_invoked = (BF.BaseSortingOrderHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.GroupOrder = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BattleControlBgWrap.cs b/Assets/XLua/Gen/BF_BattleControlBgWrap.cs deleted file mode 100644 index 842cb5365..000000000 --- a/Assets/XLua/Gen/BF_BattleControlBgWrap.cs +++ /dev/null @@ -1,268 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBattleControlBgWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BattleControlBg); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPositionByTime", _m_SetPositionByTime); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endX", _g_get_endX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resetX", _g_get_resetX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canMove", _g_get_canMove); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speed", _s_set_speed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endX", _s_set_endX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resetX", _s_set_resetX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "canMove", _s_set_canMove); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BattleControlBg(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BattleControlBg constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPositionByTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - - - - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetPositionByTime( _time ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.endX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resetX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.resetX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canMove(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canMove); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.speed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.endX = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resetX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.resetX = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.type = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_canMove(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.canMove = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_BattleUnitAttrWrap.cs b/Assets/XLua/Gen/BF_BattleUnitAttrWrap.cs deleted file mode 100644 index ba715d170..000000000 --- a/Assets/XLua/Gen/BF_BattleUnitAttrWrap.cs +++ /dev/null @@ -1,263 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFBattleUnitAttrWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.BattleUnitAttr); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BindGetAttributeFunc", _m_BindGetAttributeFunc); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetAttributeFromLua", _m_TryGetAttributeFromLua); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAttribute", _m_GetAttribute); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnitAttribute", _g_get_UnitAttribute); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuaGetAttributeFunc", _g_get_LuaGetAttributeFunc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Side", _g_get_Side); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UnitAttribute", _s_set_UnitAttribute); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "LuaGetAttributeFunc", _s_set_LuaGetAttributeFunc); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Side", _s_set_Side); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.BattleUnitAttr(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.BattleUnitAttr constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BindGetAttributeFunc(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - - - - { - System.Action _getFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.BindGetAttributeFunc( _getFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetAttributeFromLua(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TryGetAttributeFromLua( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAttribute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - - - - { - string _attr = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.GetAttribute( _attr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UnitAttribute(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UnitAttribute); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LuaGetAttributeFunc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.LuaGetAttributeFunc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Side(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Side); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UnitAttribute(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UnitAttribute = (BF.BattleUnitAttribute)translator.GetObject(L, 2, typeof(BF.BattleUnitAttribute)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LuaGetAttributeFunc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.LuaGetAttributeFunc = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Side(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.BattleUnitAttr gen_to_be_invoked = (BF.BattleUnitAttr)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Side = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CalculateDiffProcessorWrap.cs b/Assets/XLua/Gen/BF_CalculateDiffProcessorWrap.cs deleted file mode 100644 index c911c9f76..000000000 --- a/Assets/XLua/Gen/BF_CalculateDiffProcessorWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCalculateDiffProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CalculateDiffProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.CalculateDiffProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CalculateDiffProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CalculateDiffProcessor gen_to_be_invoked = (BF.CalculateDiffProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CalculateDiffProcessor gen_to_be_invoked = (BF.CalculateDiffProcessor)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CameraHelperWrap.cs b/Assets/XLua/Gen/BF_CameraHelperWrap.cs deleted file mode 100644 index 615766ece..000000000 --- a/Assets/XLua/Gen/BF_CameraHelperWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCameraHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CameraHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OriginFieldOfView", _g_get_OriginFieldOfView); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OriginFieldOfView", _s_set_OriginFieldOfView); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.CameraHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CameraHelper constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OriginFieldOfView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CameraHelper gen_to_be_invoked = (BF.CameraHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.OriginFieldOfView); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OriginFieldOfView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CameraHelper gen_to_be_invoked = (BF.CameraHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OriginFieldOfView = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CanvasSortingOrderHelperWrap.cs b/Assets/XLua/Gen/BF_CanvasSortingOrderHelperWrap.cs deleted file mode 100644 index 9df7f39a4..000000000 --- a/Assets/XLua/Gen/BF_CanvasSortingOrderHelperWrap.cs +++ /dev/null @@ -1,143 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCanvasSortingOrderHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CanvasSortingOrderHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSortingOrder", _m_SetSortingOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUIOrder", _m_SetUIOrder); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.CanvasSortingOrderHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CanvasSortingOrderHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSortingOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CanvasSortingOrderHelper gen_to_be_invoked = (BF.CanvasSortingOrderHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - int _order = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetSortingOrder( _uiOrder, _order ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUIOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CanvasSortingOrderHelper gen_to_be_invoked = (BF.CanvasSortingOrderHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetUIOrder( _uiOrder ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CellDragEventWrap.cs b/Assets/XLua/Gen/BF_CellDragEventWrap.cs deleted file mode 100644 index 24966c9cc..000000000 --- a/Assets/XLua/Gen/BF_CellDragEventWrap.cs +++ /dev/null @@ -1,292 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCellDragEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CellDragEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTouchEventListener", _m_AddTouchEventListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTargetDrection", _m_IsTargetDrection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSrollRect", _m_SetSrollRect); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "slideType", _g_get_slideType); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "slideType", _s_set_slideType); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.CellDragEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CellDragEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTouchEventListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - - - - { - System.Action _func = translator.GetDelegate>(L, 2); - int _slideType = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.AddTouchEventListener( _func, _slideType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTargetDrection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _offset;translator.Get(L, 2, out _offset); - - var gen_ret = gen_to_be_invoked.IsTargetDrection( _offset ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSrollRect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.ScrollRect _scroll = (UnityEngine.UI.ScrollRect)translator.GetObject(L, 2, typeof(UnityEngine.UI.ScrollRect)); - - gen_to_be_invoked.SetSrollRect( _scroll ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_slideType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.slideType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_slideType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellDragEvent gen_to_be_invoked = (BF.CellDragEvent)translator.FastGetCSObj(L, 1); - BF.UITouchEventType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.slideType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CellObjWrap.cs b/Assets/XLua/Gen/BF_CellObjWrap.cs deleted file mode 100644 index 9503a9191..000000000 --- a/Assets/XLua/Gen/BF_CellObjWrap.cs +++ /dev/null @@ -1,177 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCellObjWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CellObj); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "index", _g_get_index); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "objectIndex", _g_get_objectIndex); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gameObject", _s_set_gameObject); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "index", _s_set_index); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "objectIndex", _s_set_objectIndex); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.CellObj(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CellObj constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellObj gen_to_be_invoked = (BF.CellObj)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellObj gen_to_be_invoked = (BF.CellObj)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.index); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_objectIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellObj gen_to_be_invoked = (BF.CellObj)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.objectIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellObj gen_to_be_invoked = (BF.CellObj)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_index(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellObj gen_to_be_invoked = (BF.CellObj)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.index = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_objectIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CellObj gen_to_be_invoked = (BF.CellObj)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.objectIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CharacterAnimationInfoWrap.cs b/Assets/XLua/Gen/BF_CharacterAnimationInfoWrap.cs deleted file mode 100644 index 608d3ba4d..000000000 --- a/Assets/XLua/Gen/BF_CharacterAnimationInfoWrap.cs +++ /dev/null @@ -1,214 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCharacterAnimationInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CharacterAnimationInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashName", _g_get_hashName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationName", _g_get_animationName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationTime", _g_get_animationTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keyFrame", _g_get_keyFrame); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashName", _s_set_hashName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationName", _s_set_animationName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationTime", _s_set_animationTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "keyFrame", _s_set_keyFrame); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.CharacterAnimationInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CharacterAnimationInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.hashName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.animationName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.animationTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keyFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.keyFrame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.hashName = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animationName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.animationName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animationTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.animationTime = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keyFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterAnimationInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.keyFrame = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CharacterHelperWrap.cs b/Assets/XLua/Gen/BF_CharacterHelperWrap.cs deleted file mode 100644 index 455aaf44e..000000000 --- a/Assets/XLua/Gen/BF_CharacterHelperWrap.cs +++ /dev/null @@ -1,647 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCharacterHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CharacterHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 6, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModelObject", _m_GetModelObject); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModelHashCode", _m_GetModelHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListCount", _m_GetListCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByIndex", _m_GetGameObjectByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashNameByIndex", _m_GetHashNameByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheLocalPosition", _m_CacheLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPosition", _m_SetLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CachePosition", _m_CachePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalEulerAngles", _m_SetLocalEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScale", _m_SetLocalScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMainModelLocalPosition", _m_SetMainModelLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStateTime", _m_GetStateTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStateKeyFrame", _m_GetStateKeyFrame); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionX", _g_get_PositionX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionY", _g_get_PositionY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionZ", _g_get_PositionZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "modelObject", _g_get_modelObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "objectList", _g_get_objectList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationList", _g_get_animationList); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "modelObject", _s_set_modelObject); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "objectList", _s_set_objectList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationList", _s_set_animationList); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.CharacterHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CharacterHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetModelObject(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetModelObject( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetModelHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetModelHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetListCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetListCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByIndex( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashNameByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetHashNameByIndex( _index ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheLocalPosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CachePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CachePosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalScale( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMainModelLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetMainModelLocalPosition( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStateTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - uint _index = LuaAPI.xlua_touint(L, 2); - - var gen_ret = gen_to_be_invoked.GetStateTime( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStateKeyFrame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - - - - { - uint _hashName = LuaAPI.xlua_touint(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetStateKeyFrame( _hashName, _index ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_modelObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.modelObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_objectList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.objectList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animationList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_modelObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.modelObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_objectList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.objectList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animationList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterHelper gen_to_be_invoked = (BF.CharacterHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.animationList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CharacterObjectInfoWrap.cs b/Assets/XLua/Gen/BF_CharacterObjectInfoWrap.cs deleted file mode 100644 index 56f357b28..000000000 --- a/Assets/XLua/Gen/BF_CharacterObjectInfoWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCharacterObjectInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CharacterObjectInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashName", _g_get_hashName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashName", _s_set_hashName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gameObject", _s_set_gameObject); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.CharacterObjectInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CharacterObjectInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.hashName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.hashName = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CharacterSpineHelperWrap.cs b/Assets/XLua/Gen/BF_CharacterSpineHelperWrap.cs deleted file mode 100644 index 16a1c17f6..000000000 --- a/Assets/XLua/Gen/BF_CharacterSpineHelperWrap.cs +++ /dev/null @@ -1,912 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCharacterSpineHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CharacterSpineHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 24, 5, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reload", _m_Reload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayAnimation", _m_PlayAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnimationSpeed", _m_SetAnimationSpeed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoop", _m_SetLoop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpineObject", _m_GetSpineObject); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkeletonGraphic", _m_GetSkeletonGraphic); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListCount", _m_GetListCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByIndex", _m_GetGameObjectByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashNameByIndex", _m_GetHashNameByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInstanceID", _m_GetInstanceID); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheLocalPosition", _m_CacheLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPosition", _m_SetLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CachePosition", _m_CachePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheBonePosition", _m_CacheBonePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalEulerAngles", _m_SetLocalEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setEulerAngles", _m_setEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScale", _m_SetLocalScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScaleX", _m_SetLocalScaleX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMainSpineLocalPosition", _m_SetMainSpineLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAnimationDuration", _m_GetAnimationDuration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAnimationKeyFrameTime", _m_GetAnimationKeyFrameTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDefaultMix", _m_SetDefaultMix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayAnimationAndPause", _m_PlayAnimationAndPause); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionX", _g_get_PositionX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionY", _g_get_PositionY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionZ", _g_get_PositionZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SpineObject", _g_get_SpineObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ObjectList", _g_get_ObjectList); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SpineObject", _s_set_SpineObject); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ObjectList", _s_set_ObjectList); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.CharacterSpineHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CharacterSpineHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reload( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - string _animName = LuaAPI.lua_tostring(L, 2); - bool _loop = LuaAPI.lua_toboolean(L, 3); - bool _forceRefresh = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.PlayAnimation( _animName, _loop, _forceRefresh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnimationSpeed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - float _timeScale = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetAnimationSpeed( _timeScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - bool _isLoop = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetLoop( _isLoop ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpineObject(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSpineObject( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSkeletonGraphic(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSkeletonGraphic( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetListCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetListCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByIndex( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashNameByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetHashNameByIndex( _index ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInstanceID(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetInstanceID( _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheLocalPosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CachePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CachePosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheBonePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.CacheBonePosition( _name ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.setEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalScale( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalScaleX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetLocalScaleX( _index, _x ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMainSpineLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetMainSpineLocalPosition( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAnimationDuration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetAnimationDuration( _name ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAnimationKeyFrameTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetAnimationKeyFrameTime( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDefaultMix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - float _mixDuration = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetDefaultMix( _mixDuration ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayAnimationAndPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - - - - { - string _animName = LuaAPI.lua_tostring(L, 2); - float _percent = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.PlayAnimationAndPause( _animName, _percent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SpineObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SpineObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ObjectList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ObjectList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SpineObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SpineObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ObjectList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineHelper gen_to_be_invoked = (BF.CharacterSpineHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ObjectList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CharacterSpineObjectInfoWrap.cs b/Assets/XLua/Gen/BF_CharacterSpineObjectInfoWrap.cs deleted file mode 100644 index b512b65f3..000000000 --- a/Assets/XLua/Gen/BF_CharacterSpineObjectInfoWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCharacterSpineObjectInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CharacterSpineObjectInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashName", _g_get_hashName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashName", _s_set_hashName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gameObject", _s_set_gameObject); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.CharacterSpineObjectInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CharacterSpineObjectInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.hashName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.hashName = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CharacterSpineObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CombineURLWrap.cs b/Assets/XLua/Gen/BF_CombineURLWrap.cs deleted file mode 100644 index e6485551a..000000000 --- a/Assets/XLua/Gen/BF_CombineURLWrap.cs +++ /dev/null @@ -1,392 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCombineURLWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CombineURL); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 9, 9); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cluster_type", _g_get_cluster_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ugate_addr", _g_get_ugate_addr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vsn_addr", _g_get_vsn_addr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "upay_addr", _g_get_upay_addr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uchat_addr", _g_get_uchat_addr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "community_web_addr", _g_get_community_web_addr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "community_srv_addr", _g_get_community_srv_addr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aics_http_addr", _g_get_aics_http_addr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aics_ws_addr", _g_get_aics_ws_addr); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cluster_type", _s_set_cluster_type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ugate_addr", _s_set_ugate_addr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vsn_addr", _s_set_vsn_addr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "upay_addr", _s_set_upay_addr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uchat_addr", _s_set_uchat_addr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "community_web_addr", _s_set_community_web_addr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "community_srv_addr", _s_set_community_srv_addr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aics_http_addr", _s_set_aics_http_addr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aics_ws_addr", _s_set_aics_ws_addr); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.CombineURL(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CombineURL constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cluster_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cluster_type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ugate_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ugate_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vsn_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.vsn_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_upay_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.upay_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uchat_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.uchat_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_community_web_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.community_web_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_community_srv_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.community_srv_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aics_http_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.aics_http_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aics_ws_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.aics_ws_addr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cluster_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cluster_type = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ugate_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ugate_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vsn_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vsn_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_upay_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.upay_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uchat_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uchat_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_community_web_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.community_web_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_community_srv_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.community_srv_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aics_http_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.aics_http_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aics_ws_addr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CombineURL gen_to_be_invoked = (BF.CombineURL)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.aics_ws_addr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_CounterModeCryptoTransformWrap.cs b/Assets/XLua/Gen/BF_CounterModeCryptoTransformWrap.cs deleted file mode 100644 index 6afb0457f..000000000 --- a/Assets/XLua/Gen/BF_CounterModeCryptoTransformWrap.cs +++ /dev/null @@ -1,241 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFCounterModeCryptoTransformWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.CounterModeCryptoTransform); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 4, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransformFinalBlock", _m_TransformFinalBlock); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransformBlock", _m_TransformBlock); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InputBlockSize", _g_get_InputBlockSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OutputBlockSize", _g_get_OutputBlockSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CanTransformMultipleBlocks", _g_get_CanTransformMultipleBlocks); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CanReuseTransform", _g_get_CanReuseTransform); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - System.Security.Cryptography.SymmetricAlgorithm _symmetricAlgorithm = (System.Security.Cryptography.SymmetricAlgorithm)translator.GetObject(L, 2, typeof(System.Security.Cryptography.SymmetricAlgorithm)); - byte[] _key = LuaAPI.lua_tobytes(L, 3); - byte[] _counter = LuaAPI.lua_tobytes(L, 4); - - var gen_ret = new BF.CounterModeCryptoTransform(_symmetricAlgorithm, _key, _counter); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.CounterModeCryptoTransform constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformFinalBlock(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CounterModeCryptoTransform gen_to_be_invoked = (BF.CounterModeCryptoTransform)translator.FastGetCSObj(L, 1); - - - - { - byte[] _inputBuffer = LuaAPI.lua_tobytes(L, 2); - int _inputOffset = LuaAPI.xlua_tointeger(L, 3); - int _inputCount = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.TransformFinalBlock( _inputBuffer, _inputOffset, _inputCount ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformBlock(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CounterModeCryptoTransform gen_to_be_invoked = (BF.CounterModeCryptoTransform)translator.FastGetCSObj(L, 1); - - - - { - byte[] _inputBuffer = LuaAPI.lua_tobytes(L, 2); - int _inputOffset = LuaAPI.xlua_tointeger(L, 3); - int _inputCount = LuaAPI.xlua_tointeger(L, 4); - byte[] _outputBuffer = LuaAPI.lua_tobytes(L, 5); - int _outputOffset = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.TransformBlock( _inputBuffer, _inputOffset, _inputCount, _outputBuffer, _outputOffset ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.CounterModeCryptoTransform gen_to_be_invoked = (BF.CounterModeCryptoTransform)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InputBlockSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CounterModeCryptoTransform gen_to_be_invoked = (BF.CounterModeCryptoTransform)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.InputBlockSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OutputBlockSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CounterModeCryptoTransform gen_to_be_invoked = (BF.CounterModeCryptoTransform)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.OutputBlockSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CanTransformMultipleBlocks(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CounterModeCryptoTransform gen_to_be_invoked = (BF.CounterModeCryptoTransform)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.CanTransformMultipleBlocks); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CanReuseTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.CounterModeCryptoTransform gen_to_be_invoked = (BF.CounterModeCryptoTransform)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.CanReuseTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_DZSDKManagerWrap.cs b/Assets/XLua/Gen/BF_DZSDKManagerWrap.cs deleted file mode 100644 index 18b777fb1..000000000 --- a/Assets/XLua/Gen/BF_DZSDKManagerWrap.cs +++ /dev/null @@ -1,286 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFDZSDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.DZSDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CSGetNotchScreenInfo", _m_CSGetNotchScreenInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreen", _m_GetNotchScreen); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenInfo", _m_GetNotchScreenInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenType", _m_GetNotchScreenType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenEnable", _m_GetNotchScreenEnable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenWidth", _m_GetNotchScreenWidth); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenHeight", _m_GetNotchScreenHeight); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.DZSDKManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.DZSDKManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CSGetNotchScreenInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CSGetNotchScreenInfo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreen(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1); - - - - { - string _content = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.GetNotchScreen( _content ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNotchScreenInfo( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNotchScreenType( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenEnable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNotchScreenEnable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenWidth(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNotchScreenWidth( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenHeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNotchScreenHeight( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_DelayedWrap.cs b/Assets/XLua/Gen/BF_DelayedWrap.cs deleted file mode 100644 index 4981be899..000000000 --- a/Assets/XLua/Gen/BF_DelayedWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFDelayedWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Delayed); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "action", _g_get_action); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "action", _s_set_action); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.Delayed)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Delayed constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Delayed gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_action(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Delayed gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.action); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Delayed gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_action(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Delayed gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.action = translator.GetDelegate(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_DownloadUpdateProcessorWrap.cs b/Assets/XLua/Gen/BF_DownloadUpdateProcessorWrap.cs deleted file mode 100644 index 801f3f1d9..000000000 --- a/Assets/XLua/Gen/BF_DownloadUpdateProcessorWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFDownloadUpdateProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.DownloadUpdateProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.DownloadUpdateProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.DownloadUpdateProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DownloadUpdateProcessor gen_to_be_invoked = (BF.DownloadUpdateProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_DragEventSyncWrap.cs b/Assets/XLua/Gen/BF_DragEventSyncWrap.cs deleted file mode 100644 index 455cd2a21..000000000 --- a/Assets/XLua/Gen/BF_DragEventSyncWrap.cs +++ /dev/null @@ -1,202 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFDragEventSyncWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.DragEventSync); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parentScrollRect", _g_get_parentScrollRect); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "parentScrollRect", _s_set_parentScrollRect); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.DragEventSync(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.DragEventSync constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DragEventSync gen_to_be_invoked = (BF.DragEventSync)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DragEventSync gen_to_be_invoked = (BF.DragEventSync)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.DragEventSync gen_to_be_invoked = (BF.DragEventSync)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parentScrollRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.DragEventSync gen_to_be_invoked = (BF.DragEventSync)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.parentScrollRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_parentScrollRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.DragEventSync gen_to_be_invoked = (BF.DragEventSync)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.parentScrollRect = (UnityEngine.UI.ScrollRect)translator.GetObject(L, 2, typeof(UnityEngine.UI.ScrollRect)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_EffectHelperWrap.cs b/Assets/XLua/Gen/BF_EffectHelperWrap.cs deleted file mode 100644 index c0bf906ff..000000000 --- a/Assets/XLua/Gen/BF_EffectHelperWrap.cs +++ /dev/null @@ -1,766 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFEffectHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.EffectHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 18, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitParticleSystemRendererList", _m_InitParticleSystemRendererList); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPosition", _m_SetLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalEulerAngles", _m_SetLocalEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEulerAngles", _m_SetEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScale", _m_SetLocalScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSortingOrder", _m_SetSortingOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUIOrder", _m_SetUIOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeSortingOrderToFudge", _m_ChangeSortingOrderToFudge); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopAndClear", _m_StopAndClear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTrail", _m_ClearTrail); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTimeScale", _m_SetTimeScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetParticleActive", _m_SetParticleActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIsParticleActive", _m_GetIsParticleActive); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RootParticle", _g_get_RootParticle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectDuration", _g_get_EffectDuration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimatorCount", _g_get_AnimatorCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TrailRendererCount", _g_get_TrailRendererCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EulerAnglesFlip", _g_get_EulerAnglesFlip); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "RootParticle", _s_set_RootParticle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EffectDuration", _s_set_EffectDuration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnimatorCount", _s_set_AnimatorCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TrailRendererCount", _s_set_TrailRendererCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EulerAnglesFlip", _s_set_EulerAnglesFlip); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.EffectHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.EffectHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitParticleSystemRendererList(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitParticleSystemRendererList( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetLocalPosition( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetPosition( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetLocalEulerAngles( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetEulerAngles( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetLocalScale( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSortingOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - int _order = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetSortingOrder( _uiOrder, _order ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUIOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetUIOrder( _uiOrder ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeSortingOrderToFudge(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - int _order = LuaAPI.xlua_tointeger(L, 2); - float _coefficient = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.ChangeSortingOrderToFudge( _order, _coefficient ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopAndClear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopAndClear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearTrail(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearTrail( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTimeScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - float _timeScale = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetTimeScale( _timeScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetParticleActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - bool _active = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetParticleActive( _active ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIsParticleActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetIsParticleActive( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RootParticle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RootParticle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EffectDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.EffectDuration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimatorCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AnimatorCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TrailRendererCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TrailRendererCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EulerAnglesFlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EulerAnglesFlip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_RootParticle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.RootParticle = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EffectDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EffectDuration = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AnimatorCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AnimatorCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TrailRendererCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TrailRendererCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EulerAnglesFlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EffectHelper gen_to_be_invoked = (BF.EffectHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EulerAnglesFlip = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_EliminationTouchEventWrap.cs b/Assets/XLua/Gen/BF_EliminationTouchEventWrap.cs deleted file mode 100644 index d0a2481be..000000000 --- a/Assets/XLua/Gen/BF_EliminationTouchEventWrap.cs +++ /dev/null @@ -1,286 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFEliminationTouchEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.EliminationTouchEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTouchEventListener", _m_AddTouchEventListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveEventListener", _m_RemoveEventListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCancel", _m_OnCancel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerEnter", _m_OnPointerEnter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerExit", _m_OnPointerExit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.EliminationTouchEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.EliminationTouchEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTouchEventListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EliminationTouchEvent gen_to_be_invoked = (BF.EliminationTouchEvent)translator.FastGetCSObj(L, 1); - - - - { - System.Action _func = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddTouchEventListener( _func ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveEventListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EliminationTouchEvent gen_to_be_invoked = (BF.EliminationTouchEvent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveEventListener( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCancel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EliminationTouchEvent gen_to_be_invoked = (BF.EliminationTouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnCancel( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EliminationTouchEvent gen_to_be_invoked = (BF.EliminationTouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerEnter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EliminationTouchEvent gen_to_be_invoked = (BF.EliminationTouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerEnter( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerExit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EliminationTouchEvent gen_to_be_invoked = (BF.EliminationTouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerExit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EliminationTouchEvent gen_to_be_invoked = (BF.EliminationTouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerUp( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_EmojiGraphicWrap.cs b/Assets/XLua/Gen/BF_EmojiGraphicWrap.cs deleted file mode 100644 index 10a7f3e69..000000000 --- a/Assets/XLua/Gen/BF_EmojiGraphicWrap.cs +++ /dev/null @@ -1,189 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFEmojiGraphicWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.EmojiGraphic); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshInfos", _m_SetMeshInfos); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshInfoFromLua", _m_SetMeshInfoFromLua); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MainTexture", _g_get_MainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MainTexture", _s_set_MainTexture); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.EmojiGraphic(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.EmojiGraphic constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshInfos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EmojiGraphic gen_to_be_invoked = (BF.EmojiGraphic)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _emojiInfos = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetMeshInfos( _emojiInfos ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshInfoFromLua(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.EmojiGraphic gen_to_be_invoked = (BF.EmojiGraphic)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _pos = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetMeshInfoFromLua( _pos, _uv ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiGraphic gen_to_be_invoked = (BF.EmojiGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiGraphic gen_to_be_invoked = (BF.EmojiGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiGraphic gen_to_be_invoked = (BF.EmojiGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MainTexture = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_EmojiInfoWrap.cs b/Assets/XLua/Gen/BF_EmojiInfoWrap.cs deleted file mode 100644 index 89a38402e..000000000 --- a/Assets/XLua/Gen/BF_EmojiInfoWrap.cs +++ /dev/null @@ -1,270 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFEmojiInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.EmojiInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartIndex", _g_get_StartIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartStrIndex", _g_get_StartStrIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Length", _g_get_Length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Corner", _g_get_Corner); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UVs", _g_get_UVs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartTrueStrIndex", _g_get_StartTrueStrIndex); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "StartIndex", _s_set_StartIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "StartStrIndex", _s_set_StartStrIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Length", _s_set_Length); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Corner", _s_set_Corner); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UVs", _s_set_UVs); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "StartTrueStrIndex", _s_set_StartTrueStrIndex); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.EmojiInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.EmojiInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StartIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.StartIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StartStrIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.StartStrIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Corner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Corner); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UVs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UVs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StartTrueStrIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.StartTrueStrIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_StartIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.StartIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_StartStrIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.StartStrIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Length = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Corner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Corner = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UVs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UVs = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_StartTrueStrIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.EmojiInfo gen_to_be_invoked = (BF.EmojiInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.StartTrueStrIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_EmptyRaycastWrap.cs b/Assets/XLua/Gen/BF_EmptyRaycastWrap.cs deleted file mode 100644 index 28774e1b3..000000000 --- a/Assets/XLua/Gen/BF_EmptyRaycastWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFEmptyRaycastWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.EmptyRaycast); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.EmptyRaycast does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_EnumFlagsAttributeWrap.cs b/Assets/XLua/Gen/BF_EnumFlagsAttributeWrap.cs deleted file mode 100644 index df875b202..000000000 --- a/Assets/XLua/Gen/BF_EnumFlagsAttributeWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFEnumFlagsAttributeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.EnumFlagsAttribute); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.EnumFlagsAttribute(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.EnumFlagsAttribute constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ExtensionMethodsWrap.cs b/Assets/XLua/Gen/BF_ExtensionMethodsWrap.cs deleted file mode 100644 index d41850e18..000000000 --- a/Assets/XLua/Gen/BF_ExtensionMethodsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFExtensionMethodsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ExtensionMethods); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.ExtensionMethods does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_FirstABProcessorWrap.cs b/Assets/XLua/Gen/BF_FirstABProcessorWrap.cs deleted file mode 100644 index af2eea30d..000000000 --- a/Assets/XLua/Gen/BF_FirstABProcessorWrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFFirstABProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.FirstABProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirstAB", _m_GetFirstAB); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadFirstAb", _m_UnloadFirstAb); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.FirstABProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.FirstABProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.FirstABProcessor gen_to_be_invoked = (BF.FirstABProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFirstAB(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.FirstABProcessor gen_to_be_invoked = (BF.FirstABProcessor)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetFirstAB( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadFirstAb(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.FirstABProcessor gen_to_be_invoked = (BF.FirstABProcessor)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnloadFirstAb( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_FixUpProcessorWrap.cs b/Assets/XLua/Gen/BF_FixUpProcessorWrap.cs deleted file mode 100644 index 7802661df..000000000 --- a/Assets/XLua/Gen/BF_FixUpProcessorWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFFixUpProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.FixUpProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.FixUpProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.FixUpProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.FixUpProcessor gen_to_be_invoked = (BF.FixUpProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_GameConstWrap.cs b/Assets/XLua/Gen/BF_GameConstWrap.cs deleted file mode 100644 index 579f84532..000000000 --- a/Assets/XLua/Gen/BF_GameConstWrap.cs +++ /dev/null @@ -1,132 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFGameConstWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.GameConst); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 12, 2, 2); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DESIGN_RESOLUTION_WIDTH", BF.GameConst.DESIGN_RESOLUTION_WIDTH); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DESIGN_RESOLUTION_HEIGHT", BF.GameConst.DESIGN_RESOLUTION_HEIGHT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BIG_TEXTURE_WIDTH", BF.GameConst.BIG_TEXTURE_WIDTH); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BIG_TEXTURE_HEIGHT", BF.GameConst.BIG_TEXTURE_HEIGHT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EDITOR_MODE", BF.GameConst.EDITOR_MODE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEBUG", BF.GameConst.DEBUG); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "USE_AB", BF.GameConst.USE_AB); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SKIP_VERSION", BF.GameConst.SKIP_VERSION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BF_APP_DEV", BF.GameConst.BF_APP_DEV); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BF_APP_TEST", BF.GameConst.BF_APP_TEST); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BF_APP_PUBLISH", BF.GameConst.BF_APP_PUBLISH); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "C_FREE_CHAR", _g_get_C_FREE_CHAR); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "C_CONFIG_CHAR", _g_get_C_CONFIG_CHAR); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "C_FREE_CHAR", _s_set_C_FREE_CHAR); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "C_CONFIG_CHAR", _s_set_C_CONFIG_CHAR); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.GameConst does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_C_FREE_CHAR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.GameConst.C_FREE_CHAR); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_C_CONFIG_CHAR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.GameConst.C_CONFIG_CHAR); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_C_FREE_CHAR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - BF.GameConst.C_FREE_CHAR = (char[])translator.GetObject(L, 1, typeof(char[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_C_CONFIG_CHAR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - BF.GameConst.C_CONFIG_CHAR = (char[])translator.GetObject(L, 1, typeof(char[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_GameLaunchManagerWrap.cs b/Assets/XLua/Gen/BF_GameLaunchManagerWrap.cs deleted file mode 100644 index df00764ed..000000000 --- a/Assets/XLua/Gen/BF_GameLaunchManagerWrap.cs +++ /dev/null @@ -1,611 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFGameLaunchManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.GameLaunchManager); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 3, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMono", _m_SetMono); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LaunchGame", _m_LaunchGame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LaunchForLogin", _m_LaunchForLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LaunchForRelogin", _m_LaunchForRelogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LaunchForLanguage", _m_LaunchForLanguage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsNetworkReachability", _m_IsNetworkReachability); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsWifi", _m_IsWifi); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCurrentProcessor", _m_SetCurrentProcessor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsVersionWhiteList", _m_IsVersionWhiteList); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirstAB", _m_GetFirstAB); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentVersion", _m_GetCurrentVersion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QuitGame", _m_QuitGame); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LaunchRequester", _g_get_LaunchRequester); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LaunchTimes", _g_get_LaunchTimes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoadedFirstAb", _g_get_LoadedFirstAb); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "LoadedFirstAb", _s_set_LoadedFirstAb); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ForJustice", _m_ForJustice_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.GameLaunchManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.GameLaunchManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMono(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); - - gen_to_be_invoked.SetMono( _mono ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LaunchGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LaunchGame( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LaunchForLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - string _versionJson = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.LaunchForLogin( _versionJson ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LaunchForRelogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - string _versionJson = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.LaunchForRelogin( _versionJson ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LaunchForLanguage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - string _language = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.LaunchForLanguage( _language ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsNetworkReachability(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsNetworkReachability( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsWifi(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsWifi( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCurrentProcessor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - BF.GameLaunchProcessorBase _processor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - gen_to_be_invoked.SetCurrentProcessor( _processor ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsVersionWhiteList(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsVersionWhiteList( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFirstAB(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetFirstAB( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentVersion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetCurrentVersion( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QuitGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.QuitGame( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForJustice_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _str = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.GameLaunchManager.ForJustice( _str ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LaunchRequester(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.LaunchRequester); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LaunchTimes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.LaunchTimes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LoadedFirstAb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.LoadedFirstAb); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LoadedFirstAb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameLaunchManager gen_to_be_invoked = (BF.GameLaunchManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.LoadedFirstAb = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_GameLaunchProcessorBaseWrap.cs b/Assets/XLua/Gen/BF_GameLaunchProcessorBaseWrap.cs deleted file mode 100644 index 46ea7145c..000000000 --- a/Assets/XLua/Gen/BF_GameLaunchProcessorBaseWrap.cs +++ /dev/null @@ -1,217 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFGameLaunchProcessorBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.GameLaunchProcessorBase); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPersistentLessThanPackageVersion", _m_IsPersistentLessThanPackageVersion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsClientBiggerThanMinVersion", _m_IsClientBiggerThanMinVersion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsClientBiggerThanLatestVersion", _m_IsClientBiggerThanLatestVersion); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.GameLaunchProcessorBase does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchProcessorBase gen_to_be_invoked = (BF.GameLaunchProcessorBase)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchProcessorBase gen_to_be_invoked = (BF.GameLaunchProcessorBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsPersistentLessThanPackageVersion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchProcessorBase gen_to_be_invoked = (BF.GameLaunchProcessorBase)translator.FastGetCSObj(L, 1); - - - - { - string _packageVersion = LuaAPI.lua_tostring(L, 2); - string _persistentVersion = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.IsPersistentLessThanPackageVersion( _packageVersion, _persistentVersion ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsClientBiggerThanMinVersion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchProcessorBase gen_to_be_invoked = (BF.GameLaunchProcessorBase)translator.FastGetCSObj(L, 1); - - - - { - string _minVersion = LuaAPI.lua_tostring(L, 2); - string _clientVersion = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.IsClientBiggerThanMinVersion( _minVersion, _clientVersion ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsClientBiggerThanLatestVersion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameLaunchProcessorBase gen_to_be_invoked = (BF.GameLaunchProcessorBase)translator.FastGetCSObj(L, 1); - - - - { - string _latestVersion = LuaAPI.lua_tostring(L, 2); - string _clientVersion = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.IsClientBiggerThanLatestVersion( _latestVersion, _clientVersion ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_GameLaunchUtilsWrap.cs b/Assets/XLua/Gen/BF_GameLaunchUtilsWrap.cs deleted file mode 100644 index 5e4357d96..000000000 --- a/Assets/XLua/Gen/BF_GameLaunchUtilsWrap.cs +++ /dev/null @@ -1,109 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFGameLaunchUtilsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.GameLaunchUtils); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFileMD5", _m_GetFileMD5_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ABCONFIG_FILE_NAME", BF.GameLaunchUtils.ABCONFIG_FILE_NAME); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.GameLaunchUtils does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFileMD5_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _filePath = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.GameLaunchUtils.GetFileMD5( _filePath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - byte[] _content = LuaAPI.lua_tobytes(L, 1); - - var gen_ret = BF.GameLaunchUtils.GetFileMD5( _content ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.GameLaunchUtils.GetFileMD5!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_GameObjectInfoWrap.cs b/Assets/XLua/Gen/BF_GameObjectInfoWrap.cs deleted file mode 100644 index 83bcddd11..000000000 --- a/Assets/XLua/Gen/BF_GameObjectInfoWrap.cs +++ /dev/null @@ -1,214 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFGameObjectInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.GameObjectInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hashName", _g_get_hashName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "objectType", _g_get_objectType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hashName", _s_set_hashName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "objectType", _s_set_objectType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gameObject", _s_set_gameObject); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.GameObjectInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.GameObjectInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.hashName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_objectType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.objectType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hashName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.hashName = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_objectType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.objectType = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.GameObjectInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_GameObjectPoolWrap.cs b/Assets/XLua/Gen/BF_GameObjectPoolWrap.cs deleted file mode 100644 index 7d16a0391..000000000 --- a/Assets/XLua/Gen/BF_GameObjectPoolWrap.cs +++ /dev/null @@ -1,172 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFGameObjectPoolWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.GameObjectPool); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Get", _m_Get); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Release", _m_Release); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.GameObjectPool(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.GameObjectPool constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Get(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameObjectPool gen_to_be_invoked = (BF.GameObjectPool)translator.FastGetCSObj(L, 1); - - - - { - string _resPath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Get( _resPath ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Release(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameObjectPool gen_to_be_invoked = (BF.GameObjectPool)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - string _resPath = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.Release( _gameObject, _resPath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.GameObjectPool gen_to_be_invoked = (BF.GameObjectPool)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_HorizontalScrollRectOldWrap.cs b/Assets/XLua/Gen/BF_HorizontalScrollRectOldWrap.cs deleted file mode 100644 index c8246f5f1..000000000 --- a/Assets/XLua/Gen/BF_HorizontalScrollRectOldWrap.cs +++ /dev/null @@ -1,141 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFHorizontalScrollRectOldWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.HorizontalScrollRectOld); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshRealShowIndex", _m_RefreshRealShowIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsNotFull", _m_IsNotFull); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.HorizontalScrollRectOld(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.HorizontalScrollRectOld constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshRealShowIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.HorizontalScrollRectOld gen_to_be_invoked = (BF.HorizontalScrollRectOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshRealShowIndex( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsNotFull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.HorizontalScrollRectOld gen_to_be_invoked = (BF.HorizontalScrollRectOld)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsNotFull( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_HrefInfoWrap.cs b/Assets/XLua/Gen/BF_HrefInfoWrap.cs deleted file mode 100644 index 1388785b4..000000000 --- a/Assets/XLua/Gen/BF_HrefInfoWrap.cs +++ /dev/null @@ -1,254 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFHrefInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.HrefInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Id", _g_get_Id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartIndex", _g_get_StartIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EndIndex", _g_get_EndIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Name", _g_get_Name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HrefValue", _g_get_HrefValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Boxes", _g_get_Boxes); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Id", _s_set_Id); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "StartIndex", _s_set_StartIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EndIndex", _s_set_EndIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Name", _s_set_Name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HrefValue", _s_set_HrefValue); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.HrefInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.HrefInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StartIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.StartIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EndIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.EndIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HrefValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.HrefValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Boxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Boxes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Id = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_StartIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.StartIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EndIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EndIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HrefValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.HrefInfo gen_to_be_invoked = (BF.HrefInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HrefValue = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_InlineTextWrap.cs b/Assets/XLua/Gen/BF_InlineTextWrap.cs deleted file mode 100644 index 2ecb364ec..000000000 --- a/Assets/XLua/Gen/BF_InlineTextWrap.cs +++ /dev/null @@ -1,470 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFInlineTextWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.InlineText); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 4, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTrueLength", _m_GetTrueLength); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEmojiSize", _m_SetEmojiSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FilterStr", _m_FilterStr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsOnlyEmoji", _m_IsOnlyEmoji); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTranslateStr", _m_GetTranslateStr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaGetEmojiUVs", _m_AddLuaGetEmojiUVs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaSetMainTexture", _m_AddLuaSetMainTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaGetNotCalVerticeStr", _m_AddLuaGetNotCalVerticeStr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMainTexture", _m_SetMainTexture); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnHrefClick", _g_get_OnHrefClick); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnHrefClick", _s_set_OnHrefClick); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.InlineText(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.InlineText constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTrueLength(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetTrueLength( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEmojiSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - int _size = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetEmojiSize( _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FilterStr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - int _length = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.FilterStr( _length ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsOnlyEmoji(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsOnlyEmoji( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTranslateStr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - string _format; - - var gen_ret = gen_to_be_invoked.GetTranslateStr( out _format ); - translator.Push(L, gen_ret); - LuaAPI.lua_pushstring(L, _format); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaGetEmojiUVs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - System.Func> _callback = translator.GetDelegate>>(L, 2); - - gen_to_be_invoked.AddLuaGetEmojiUVs( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaSetMainTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - System.Func _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaSetMainTexture( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaGetNotCalVerticeStr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - System.Func> _callback = translator.GetDelegate>>(L, 2); - - gen_to_be_invoked.AddLuaGetNotCalVerticeStr( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMainTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Texture2D _texture = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - gen_to_be_invoked.SetMainTexture( _texture ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnHrefClick(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnHrefClick); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OnHrefClick(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.InlineText gen_to_be_invoked = (BF.InlineText)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OnHrefClick = (BF.BFEvent)translator.GetObject(L, 2, typeof(BF.BFEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_LanguageConfigWrap.cs b/Assets/XLua/Gen/BF_LanguageConfigWrap.cs deleted file mode 100644 index 2b2c659ef..000000000 --- a/Assets/XLua/Gen/BF_LanguageConfigWrap.cs +++ /dev/null @@ -1,175 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFLanguageConfigWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.LanguageConfig); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddAssetBundleConfig", _m_AddAssetBundleConfig); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "languageName", _g_get_languageName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "configs", _g_get_configs); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "languageName", _s_set_languageName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "configs", _s_set_configs); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.LanguageConfig(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.LanguageConfig constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddAssetBundleConfig(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LanguageConfig gen_to_be_invoked = (BF.LanguageConfig)translator.FastGetCSObj(L, 1); - - - - { - BF.AssetBundleConfig _cfg = (BF.AssetBundleConfig)translator.GetObject(L, 2, typeof(BF.AssetBundleConfig)); - - gen_to_be_invoked.AddAssetBundleConfig( _cfg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_languageName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LanguageConfig gen_to_be_invoked = (BF.LanguageConfig)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.languageName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_configs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LanguageConfig gen_to_be_invoked = (BF.LanguageConfig)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.configs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_languageName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LanguageConfig gen_to_be_invoked = (BF.LanguageConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.languageName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_configs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LanguageConfig gen_to_be_invoked = (BF.LanguageConfig)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.configs = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_LaunchRequesterWrap.cs b/Assets/XLua/Gen/BF_LaunchRequesterWrap.cs deleted file mode 100644 index c840af17e..000000000 --- a/Assets/XLua/Gen/BF_LaunchRequesterWrap.cs +++ /dev/null @@ -1,1320 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFLaunchRequesterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.LaunchRequester); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 32, 22); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLanguageName", _m_SetLanguageName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFirstRequestAction", _m_SetFirstRequestAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVersionInfo", _m_SetVersionInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShowDialogAction", _m_SetShowDialogAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShowDialogComplexAction", _m_SetShowDialogComplexAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHideDialogAction", _m_SetHideDialogAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdateSliderAction", _m_SetUpdateSliderAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHideSliderAction", _m_SetHideSliderAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPreCheckEndCallback", _m_SetPreCheckEndCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGetTotalLengthCallback", _m_SetGetTotalLengthCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDownloadingCallback", _m_SetDownloadingCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLaunchSuccCallback", _m_AddLaunchSuccCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearLaunchSuccCallback", _m_ClearLaunchSuccCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PreCheckNextProcess", _m_PreCheckNextProcess); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "FirstRequestAction", _g_get_FirstRequestAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DialogAction", _g_get_DialogAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DialogComplexAction", _g_get_DialogComplexAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HideDialogAction", _g_get_HideDialogAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateSilderAction", _g_get_UpdateSilderAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HideSliderAction", _g_get_HideSliderAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnPreCheckEnd", _g_get_OnPreCheckEnd); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnGetTotalLength", _g_get_OnGetTotalLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnDownloading", _g_get_OnDownloading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnLaunchSucc", _g_get_OnLaunchSucc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isNewPackage", _g_get_isNewPackage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isHotUpdate", _g_get_isHotUpdate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAutoRepair", _g_get_isAutoRepair); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstAb", _g_get_firstAb); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "languageName", _g_get_languageName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "downloadLanguage", _g_get_downloadLanguage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "persistentAbccVersion", _g_get_persistentAbccVersion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curVersionTempDir", _g_get_curVersionTempDir); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "versionInfo", _g_get_versionInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstChoiceCDN", _g_get_firstChoiceCDN); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "backupCDN", _g_get_backupCDN); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "launchSucceed", _g_get_launchSucceed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "streamingAbcc", _g_get_streamingAbcc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "persistentAbcc", _g_get_persistentAbcc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "versionAbcc", _g_get_versionAbcc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "streamingData", _g_get_streamingData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "versionData", _g_get_versionData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preCheckMissingList", _g_get_preCheckMissingList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preCheckOverList", _g_get_preCheckOverList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "downloadList", _g_get_downloadList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deleteList", _g_get_deleteList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preCheckNextProcessAction", _g_get_preCheckNextProcessAction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isNewPackage", _s_set_isNewPackage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isHotUpdate", _s_set_isHotUpdate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isAutoRepair", _s_set_isAutoRepair); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstAb", _s_set_firstAb); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "languageName", _s_set_languageName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "downloadLanguage", _s_set_downloadLanguage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "persistentAbccVersion", _s_set_persistentAbccVersion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curVersionTempDir", _s_set_curVersionTempDir); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "versionInfo", _s_set_versionInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstChoiceCDN", _s_set_firstChoiceCDN); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "backupCDN", _s_set_backupCDN); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "launchSucceed", _s_set_launchSucceed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "streamingAbcc", _s_set_streamingAbcc); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "persistentAbcc", _s_set_persistentAbcc); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "versionAbcc", _s_set_versionAbcc); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "streamingData", _s_set_streamingData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "versionData", _s_set_versionData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preCheckMissingList", _s_set_preCheckMissingList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preCheckOverList", _s_set_preCheckOverList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "downloadList", _s_set_downloadList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "deleteList", _s_set_deleteList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preCheckNextProcessAction", _s_set_preCheckNextProcessAction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.LaunchRequester(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.LaunchRequester constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLanguageName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - string _languageName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetLanguageName( _languageName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFirstRequestAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action> _action = translator.GetDelegate>>(L, 2); - - gen_to_be_invoked.SetFirstRequestAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVersionInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - string _json = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetVersionInfo( _json ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetShowDialogAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetShowDialogAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetShowDialogComplexAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetShowDialogComplexAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetHideDialogAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.SetHideDialogAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdateSliderAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetUpdateSliderAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetHideSliderAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.SetHideSliderAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPreCheckEndCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.SetPreCheckEndCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGetTotalLengthCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetGetTotalLengthCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDownloadingCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetDownloadingCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLaunchSuccCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddLaunchSuccCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearLaunchSuccCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearLaunchSuccCallback( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PreCheckNextProcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.PreCheckNextProcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FirstRequestAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.FirstRequestAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DialogAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.DialogAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DialogComplexAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.DialogComplexAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HideDialogAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.HideDialogAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UpdateSilderAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UpdateSilderAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HideSliderAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.HideSliderAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnPreCheckEnd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnPreCheckEnd); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnGetTotalLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnGetTotalLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnDownloading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnDownloading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnLaunchSucc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnLaunchSucc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isNewPackage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isNewPackage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isHotUpdate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isHotUpdate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isAutoRepair(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isAutoRepair); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstAb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.firstAb); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_languageName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.languageName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_downloadLanguage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.downloadLanguage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_persistentAbccVersion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.persistentAbccVersion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curVersionTempDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.curVersionTempDir); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_versionInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.versionInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstChoiceCDN(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.firstChoiceCDN); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_backupCDN(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.backupCDN); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_launchSucceed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.launchSucceed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingAbcc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.streamingAbcc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_persistentAbcc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.persistentAbcc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_versionAbcc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.versionAbcc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.streamingData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_versionData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.versionData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preCheckMissingList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.preCheckMissingList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preCheckOverList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.preCheckOverList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_downloadList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.downloadList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deleteList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.deleteList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preCheckNextProcessAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.preCheckNextProcessAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isNewPackage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isNewPackage = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isHotUpdate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isHotUpdate = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isAutoRepair(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isAutoRepair = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstAb(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.firstAb = (UnityEngine.AssetBundle)translator.GetObject(L, 2, typeof(UnityEngine.AssetBundle)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_languageName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.languageName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_downloadLanguage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.downloadLanguage = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_persistentAbccVersion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.persistentAbccVersion = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curVersionTempDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.curVersionTempDir = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_versionInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.versionInfo = (BF.BFVersionInfo)translator.GetObject(L, 2, typeof(BF.BFVersionInfo)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstChoiceCDN(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.firstChoiceCDN = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_backupCDN(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.backupCDN = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_launchSucceed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.launchSucceed = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingAbcc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.streamingAbcc = (BF.AssetBundleConfigCollection)translator.GetObject(L, 2, typeof(BF.AssetBundleConfigCollection)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_persistentAbcc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.persistentAbcc = (BF.AssetBundleConfigCollection)translator.GetObject(L, 2, typeof(BF.AssetBundleConfigCollection)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_versionAbcc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.versionAbcc = (BF.AssetBundleConfigCollection)translator.GetObject(L, 2, typeof(BF.AssetBundleConfigCollection)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.streamingData = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_versionData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.versionData = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preCheckMissingList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preCheckMissingList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preCheckOverList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preCheckOverList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_downloadList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.downloadList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_deleteList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.deleteList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preCheckNextProcessAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LaunchRequester gen_to_be_invoked = (BF.LaunchRequester)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preCheckNextProcessAction = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_LaunchSuccProcessorWrap.cs b/Assets/XLua/Gen/BF_LaunchSuccProcessorWrap.cs deleted file mode 100644 index 0a24a0c43..000000000 --- a/Assets/XLua/Gen/BF_LaunchSuccProcessorWrap.cs +++ /dev/null @@ -1,113 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFLaunchSuccProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.LaunchSuccProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.LaunchSuccProcessor(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.LaunchSuccProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LaunchSuccProcessor gen_to_be_invoked = (BF.LaunchSuccProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_LoaderBaseWrap.cs b/Assets/XLua/Gen/BF_LoaderBaseWrap.cs deleted file mode 100644 index dc7398e8c..000000000 --- a/Assets/XLua/Gen/BF_LoaderBaseWrap.cs +++ /dev/null @@ -1,391 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFLoaderBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.LoaderBase); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetAsync", _m_LoadAssetAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetSync", _m_LoadAssetSync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Tick", _m_Tick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAllDelayAssets", _m_UnloadAllDelayAssets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSceneLoadPath", _m_GetSceneLoadPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSceneAsync", _m_LoadSceneAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadScene", _m_UnloadScene); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsAsset", _m_ContainsAsset); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.LoaderBase does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.AssetObject _assetObject = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - - gen_to_be_invoked.LoadAssetAsync( _assetObject ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - System.Action _complete = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.LoadAssetAsync( _assetPath, _type, _complete ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.LoaderBase.LoadAssetAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetSync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.AssetObject _assetObject = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - - gen_to_be_invoked.LoadAssetSync( _assetObject ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAssetSync( _assetPath, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.LoaderBase.LoadAssetSync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Tick( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - BF.AssetObject _asset = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Unload( _asset, _immediately ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAllDelayAssets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnloadAllDelayAssets( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneLoadPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetSceneLoadPath( _assetBundlePath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSceneAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.LoadSceneAsync( _assetBundlePath, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadScene(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.UnloadScene( _assetBundlePath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ContainsAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoaderBase gen_to_be_invoked = (BF.LoaderBase)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ContainsAsset( _assetPath ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_LocalDataWrap.cs b/Assets/XLua/Gen/BF_LocalDataWrap.cs deleted file mode 100644 index a213a39de..000000000 --- a/Assets/XLua/Gen/BF_LocalDataWrap.cs +++ /dev/null @@ -1,457 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFLocalDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.LocalData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 15, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetString", _m_SetString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetString", _m_GetString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetInt", _m_SetInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInt", _m_GetInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetFloat", _m_SetFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFloat", _m_GetFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HasKey", _m_HasKey_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DelKey", _m_DelKey_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetDeviceQualityCache", _m_SetDeviceQualityCache_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDeviceQualityCache", _m_GetDeviceQualityCache_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetProtoPath", _m_SetProtoPath_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetProtoPath", _m_GetProtoPath_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetCurrentCanvasName", _m_SetCurrentCanvasName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCurrentCanvasName", _m_GetCurrentCanvasName_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.LocalData(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.LocalData constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - - BF.LocalData.SetString( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetString_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.LocalData.GetString( _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - string _defaultValue = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.LocalData.GetString( _key, _defaultValue ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.LocalData.GetString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - int _value = LuaAPI.xlua_tointeger(L, 2); - - BF.LocalData.SetInt( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.LocalData.GetInt( _key ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloat_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - BF.LocalData.SetFloat( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloat_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.LocalData.GetFloat( _key ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasKey_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.LocalData.HasKey( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DelKey_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - BF.LocalData.DelKey( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDeviceQualityCache_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _value = LuaAPI.lua_tostring(L, 1); - - BF.LocalData.SetDeviceQualityCache( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDeviceQualityCache_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.LocalData.GetDeviceQualityCache( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetProtoPath_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _value = LuaAPI.lua_tostring(L, 1); - - BF.LocalData.SetProtoPath( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetProtoPath_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.LocalData.GetProtoPath( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCurrentCanvasName_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _value = LuaAPI.lua_tostring(L, 1); - - BF.LocalData.SetCurrentCanvasName( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentCanvasName_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.LocalData.GetCurrentCanvasName( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_LoomManagerWrap.cs b/Assets/XLua/Gen/BF_LoomManagerWrap.cs deleted file mode 100644 index 4a13fb5ce..000000000 --- a/Assets/XLua/Gen/BF_LoomManagerWrap.cs +++ /dev/null @@ -1,227 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFLoomManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.LoomManager); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "QueueOnMainThread", _m_QueueOnMainThread); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RunAsync", _m_RunAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxThreads", _g_get_maxThreads); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxThreads", _s_set_maxThreads); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.LoomManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.LoomManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_QueueOnMainThread(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoomManager gen_to_be_invoked = (BF.LoomManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Action _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.QueueOnMainThread( _action ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Action _action = translator.GetDelegate(L, 2); - float _time = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.QueueOnMainThread( _action, _time ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.LoomManager.QueueOnMainThread!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RunAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoomManager gen_to_be_invoked = (BF.LoomManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.RunAsync( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LoomManager gen_to_be_invoked = (BF.LoomManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxThreads(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LoomManager gen_to_be_invoked = (BF.LoomManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxThreads); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxThreads(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LoomManager gen_to_be_invoked = (BF.LoomManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxThreads = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_LuaManagerWrap.cs b/Assets/XLua/Gen/BF_LuaManagerWrap.cs deleted file mode 100644 index d3fd6a974..000000000 --- a/Assets/XLua/Gen/BF_LuaManagerWrap.cs +++ /dev/null @@ -1,552 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFLuaManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.LuaManager); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitFirstLua", _m_InitFirstLua); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitGame", _m_InitGame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadLuaDeveloperMode", _m_LoadLuaDeveloperMode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGlobalLuaFunc", _m_GetGlobalLuaFunc); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGameInitSucc", _m_OnGameInitSucc); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCache", _m_ClearCache); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LuaEnvTick", _m_LuaEnvTick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LuaEnvFullGC", _m_LuaEnvFullGC); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnApplicationFocus", _m_OnApplicationFocus); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnApplicationPause", _m_OnApplicationPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnApplicationQuit", _m_OnApplicationQuit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DevExist", _g_get_DevExist); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "DevExist", _s_set_DevExist); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.LuaManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.LuaManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitFirstLua(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - XLua.LuaEnv.CustomLoader _loader = translator.GetDelegate(L, 2); - - gen_to_be_invoked.InitFirstLua( _loader ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _gameInitSuccCallback = translator.GetDelegate(L, 2); - - gen_to_be_invoked.InitGame( _gameInitSuccCallback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadLuaDeveloperMode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - string _scriptPath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.LoadLuaDeveloperMode( _scriptPath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalLuaFunc(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GetGlobalLuaFunc( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnGameInitSucc(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnGameInitSucc( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCache(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCache( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LuaEnvTick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LuaEnvTick( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LuaEnvFullGC(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - int _count = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.LuaEnvFullGC( _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnApplicationFocus(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - bool _hasFocus = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.OnApplicationFocus( _hasFocus ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnApplicationPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - bool _pauseStatus = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.OnApplicationPause( _pauseStatus ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnApplicationQuit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnApplicationQuit( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DevExist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.DevExist); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DevExist(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.LuaManager gen_to_be_invoked = (BF.LuaManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.DevExist = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ManagerBaseWrap.cs b/Assets/XLua/Gen/BF_ManagerBaseWrap.cs deleted file mode 100644 index 1d6a9651b..000000000 --- a/Assets/XLua/Gen/BF_ManagerBaseWrap.cs +++ /dev/null @@ -1,225 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFManagerBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ManagerBase); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMono", _m_SetMono); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.ManagerBase(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.ManagerBase constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMono(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ManagerBase gen_to_be_invoked = (BF.ManagerBase)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); - - gen_to_be_invoked.SetMono( _mono ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ManagerBase gen_to_be_invoked = (BF.ManagerBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ManagerBase gen_to_be_invoked = (BF.ManagerBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ManagerBase gen_to_be_invoked = (BF.ManagerBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ManagerBase gen_to_be_invoked = (BF.ManagerBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_Md5EncryptWrap.cs b/Assets/XLua/Gen/BF_Md5EncryptWrap.cs deleted file mode 100644 index cae2c19cb..000000000 --- a/Assets/XLua/Gen/BF_Md5EncryptWrap.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFMd5EncryptWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Md5Encrypt); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Encrypt", _m_Encrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "VerifyMd5Hash", _m_VerifyMd5Hash_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.Md5Encrypt(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Md5Encrypt constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.Md5Encrypt.Encrypt( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_VerifyMd5Hash_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _input = LuaAPI.lua_tostring(L, 1); - string _hash = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.Md5Encrypt.VerifyMd5Hash( _input, _hash ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_MeshInfoWrap.cs b/Assets/XLua/Gen/BF_MeshInfoWrap.cs deleted file mode 100644 index a2c6113b6..000000000 --- a/Assets/XLua/Gen/BF_MeshInfoWrap.cs +++ /dev/null @@ -1,202 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFMeshInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.MeshInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Release", _m_Release); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexs", _g_get_vertexs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvs", _g_get_uvs); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexs", _s_set_vertexs); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvs", _s_set_uvs); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.MeshInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.MeshInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.MeshInfo gen_to_be_invoked = (BF.MeshInfo)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Release(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.MeshInfo gen_to_be_invoked = (BF.MeshInfo)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Release( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.MeshInfo gen_to_be_invoked = (BF.MeshInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vertexs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.MeshInfo gen_to_be_invoked = (BF.MeshInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uvs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.MeshInfo gen_to_be_invoked = (BF.MeshInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vertexs = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.MeshInfo gen_to_be_invoked = (BF.MeshInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uvs = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_MirrorWrap.cs b/Assets/XLua/Gen/BF_MirrorWrap.cs deleted file mode 100644 index b0d53c7ec..000000000 --- a/Assets/XLua/Gen/BF_MirrorWrap.cs +++ /dev/null @@ -1,188 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFMirrorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Mirror); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNativeSize", _m_SetNativeSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mirrorType", _g_get_mirrorType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rectTransform", _g_get_rectTransform); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mirrorType", _s_set_mirrorType); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.Mirror(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Mirror constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNativeSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Mirror gen_to_be_invoked = (BF.Mirror)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetNativeSize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Mirror gen_to_be_invoked = (BF.Mirror)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mirrorType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Mirror gen_to_be_invoked = (BF.Mirror)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mirrorType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rectTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Mirror gen_to_be_invoked = (BF.Mirror)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rectTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mirrorType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Mirror gen_to_be_invoked = (BF.Mirror)translator.FastGetCSObj(L, 1); - BF.Mirror.MirrorType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mirrorType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_MonoSingleton_1_AdManager_Wrap.cs b/Assets/XLua/Gen/BF_MonoSingleton_1_AdManager_Wrap.cs deleted file mode 100644 index 3c7ac7ec8..000000000 --- a/Assets/XLua/Gen/BF_MonoSingleton_1_AdManager_Wrap.cs +++ /dev/null @@ -1,97 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFMonoSingleton_1_AdManager_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.MonoSingleton); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.MonoSingleton(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.MonoSingleton constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.MonoSingleton.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_MonoSingleton_1_BF_BFMain_Wrap.cs b/Assets/XLua/Gen/BF_MonoSingleton_1_BF_BFMain_Wrap.cs deleted file mode 100644 index c177bb5b6..000000000 --- a/Assets/XLua/Gen/BF_MonoSingleton_1_BF_BFMain_Wrap.cs +++ /dev/null @@ -1,97 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFMonoSingleton_1_BFBFMain_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.MonoSingleton); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.MonoSingleton(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.MonoSingleton constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.MonoSingleton.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_MultipleSpriteAnimationWrap.cs b/Assets/XLua/Gen/BF_MultipleSpriteAnimationWrap.cs deleted file mode 100644 index 195767ee3..000000000 --- a/Assets/XLua/Gen/BF_MultipleSpriteAnimationWrap.cs +++ /dev/null @@ -1,211 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFMultipleSpriteAnimationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.MultipleSpriteAnimation); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpriteList", _m_SetSpriteList); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayAnimation", _m_PlayAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOder", _m_SetOder); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.MultipleSpriteAnimation(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.MultipleSpriteAnimation constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpriteList(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.MultipleSpriteAnimation gen_to_be_invoked = (BF.MultipleSpriteAnimation)translator.FastGetCSObj(L, 1); - - - - { - BF.SimpleAtlas _atlas = (BF.SimpleAtlas)translator.GetObject(L, 2, typeof(BF.SimpleAtlas)); - - gen_to_be_invoked.SetSpriteList( _atlas ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.MultipleSpriteAnimation gen_to_be_invoked = (BF.MultipleSpriteAnimation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - bool _isLoop = LuaAPI.lua_toboolean(L, 2); - float _interval = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.PlayAnimation( _isLoop, _interval ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isLoop = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.PlayAnimation( _isLoop ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _endIndex = LuaAPI.xlua_tointeger(L, 3); - bool _isLoop = LuaAPI.lua_toboolean(L, 4); - float _interval = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.PlayAnimation( _startIndex, _endIndex, _isLoop, _interval ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _endIndex = LuaAPI.xlua_tointeger(L, 3); - bool _isLoop = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.PlayAnimation( _startIndex, _endIndex, _isLoop ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.MultipleSpriteAnimation.PlayAnimation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.MultipleSpriteAnimation gen_to_be_invoked = (BF.MultipleSpriteAnimation)translator.FastGetCSObj(L, 1); - - - - { - int _order = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetOder( _order ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_AppsFlyerSdkWrap.cs b/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_AppsFlyerSdkWrap.cs deleted file mode 100644 index 337715ce5..000000000 --- a/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_AppsFlyerSdkWrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNativeCoreThirdPlatformAppsFlyerSdkWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NativeCore.ThirdPlatform.AppsFlyerSdk); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendEvent", _m_SendEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTaAccountId", _m_SetTaAccountId); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NativeCore.ThirdPlatform.AppsFlyerSdk(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.AppsFlyerSdk constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.AppsFlyerSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.AppsFlyerSdk)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.AppsFlyerSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.AppsFlyerSdk)translator.FastGetCSObj(L, 1); - - - - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.SendEvent( _eventName, _properties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTaAccountId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.AppsFlyerSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.AppsFlyerSdk)translator.FastGetCSObj(L, 1); - - - - { - string _accountId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetTaAccountId( _accountId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_FacebookSdkWrap.cs b/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_FacebookSdkWrap.cs deleted file mode 100644 index c5648eae9..000000000 --- a/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_FacebookSdkWrap.cs +++ /dev/null @@ -1,408 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNativeCoreThirdPlatformFacebookSdkWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NativeCore.ThirdPlatform.FacebookSdk); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Logout", _m_Logout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetULoginListener", _m_SetULoginListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogAppEvent", _m_LogAppEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogAppEventWithValue", _m_LogAppEventWithValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogPurchase", _m_LogPurchase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogPurchaseDecimal", _m_LogPurchaseDecimal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnApplicationPause", _m_OnApplicationPause); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NativeCore.ThirdPlatform.FacebookSdk(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.FacebookSdk constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Login(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Login( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Logout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Logout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetULoginListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - - { - BF.NativeCore.IULoginListener _listeners = (BF.NativeCore.IULoginListener)translator.GetObject(L, 2, typeof(BF.NativeCore.IULoginListener)); - - gen_to_be_invoked.SetULoginListener( _listeners ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogAppEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _logEvent = LuaAPI.lua_tostring(L, 2); - string _data = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.LogAppEvent( _logEvent, _data ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _logEvent = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.LogAppEvent( _logEvent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.FacebookSdk.LogAppEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogAppEventWithValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _logEvent = LuaAPI.lua_tostring(L, 2); - float _valueToSum = (float)LuaAPI.lua_tonumber(L, 3); - string _data = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.LogAppEventWithValue( _logEvent, _valueToSum, _data ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _logEvent = LuaAPI.lua_tostring(L, 2); - float _valueToSum = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.LogAppEventWithValue( _logEvent, _valueToSum ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.FacebookSdk.LogAppEventWithValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogPurchase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - float _logPurchase = (float)LuaAPI.lua_tonumber(L, 2); - string _currency = LuaAPI.lua_tostring(L, 3); - string _data = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.LogPurchase( _logPurchase, _currency, _data ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - float _logPurchase = (float)LuaAPI.lua_tonumber(L, 2); - string _currency = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.LogPurchase( _logPurchase, _currency ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.FacebookSdk.LogPurchase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogPurchaseDecimal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || translator.IsDecimal(L, 2))&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - decimal _logPurchase;translator.Get(L, 2, out _logPurchase); - string _currency = LuaAPI.lua_tostring(L, 3); - string _data = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.LogPurchaseDecimal( _logPurchase, _currency, _data ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || translator.IsDecimal(L, 2))&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - decimal _logPurchase;translator.Get(L, 2, out _logPurchase); - string _currency = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.LogPurchaseDecimal( _logPurchase, _currency ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.FacebookSdk.LogPurchaseDecimal!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnApplicationPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.FacebookSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.FacebookSdk)translator.FastGetCSObj(L, 1); - - - - { - bool _pauseStatus = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.OnApplicationPause( _pauseStatus ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_ThinkingAnalyticsSdkWrap.cs b/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_ThinkingAnalyticsSdkWrap.cs deleted file mode 100644 index c51867c1f..000000000 --- a/Assets/XLua/Gen/BF_NativeCore_ThirdPlatform_ThinkingAnalyticsSdkWrap.cs +++ /dev/null @@ -1,269 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNativeCoreThirdPlatformThinkingAnalyticsSdkWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAccountId", _m_SetAccountId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearAccountId", _m_ClearAccountId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Track", _m_Track); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDistinctId", _m_GetDistinctId); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAccountId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk)translator.FastGetCSObj(L, 1); - - - - { - string _id = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetAccountId( _id ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearAccountId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearAccountId( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Track(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.Track( _eventName, _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.Track( _eventName, _properties ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)&& translator.Assignable(L, 4)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _date;translator.Get(L, 4, out _date); - string _appId = LuaAPI.lua_tostring(L, 5); - - gen_to_be_invoked.Track( _eventName, _properties, _date, _appId ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)&& translator.Assignable(L, 4)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _date;translator.Get(L, 4, out _date); - - gen_to_be_invoked.Track( _eventName, _properties, _date ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk.Track!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDistinctId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk gen_to_be_invoked = (BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDistinctId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NativeUtilsWrap.cs b/Assets/XLua/Gen/BF_NativeUtilsWrap.cs deleted file mode 100644 index a33441eda..000000000 --- a/Assets/XLua/Gen/BF_NativeUtilsWrap.cs +++ /dev/null @@ -1,208 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNativeUtilsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NativeUtils); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLanguageAndCountry", _m_GetLanguageAndCountry_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTimeZone", _m_GetTimeZone_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BindGetKeyChainUser", _m_BindGetKeyChainUser_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BindSetKeyChainUser", _m_BindSetKeyChainUser_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BindDeleteKeyChainUser", _m_BindDeleteKeyChainUser_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NativeUtils(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NativeUtils constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLanguageAndCountry_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.NativeUtils.GetLanguageAndCountry( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTimeZone_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.NativeUtils.GetTimeZone( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BindGetKeyChainUser_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.NativeUtils.BindGetKeyChainUser( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BindSetKeyChainUser_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _uuid = LuaAPI.lua_tostring(L, 1); - - BF.NativeUtils.BindSetKeyChainUser( _uuid ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BindDeleteKeyChainUser_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - BF.NativeUtils.BindDeleteKeyChainUser( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetAesEncryptWrap.cs b/Assets/XLua/Gen/BF_NetAesEncryptWrap.cs deleted file mode 100644 index 23e63878d..000000000 --- a/Assets/XLua/Gen/BF_NetAesEncryptWrap.cs +++ /dev/null @@ -1,300 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetAesEncryptWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetAesEncrypt); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateEncryptor", _m_CreateEncryptor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateDecryptor", _m_CreateDecryptor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GenerateKey", _m_GenerateKey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GenerateIV", _m_GenerateIV); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Encrypt", _m_Encrypt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Decrypt", _m_Decrypt); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aesKey", _g_get_aesKey); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aesKey", _s_set_aesKey); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _counter = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = new BF.NetAesEncrypt(_counter); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetAesEncrypt constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateEncryptor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - - - - { - byte[] _rgbKey = LuaAPI.lua_tobytes(L, 2); - byte[] _ignoredParameter = LuaAPI.lua_tobytes(L, 3); - - var gen_ret = gen_to_be_invoked.CreateEncryptor( _rgbKey, _ignoredParameter ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateDecryptor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - - - - { - byte[] _rgbKey = LuaAPI.lua_tobytes(L, 2); - byte[] _ignoredParameter = LuaAPI.lua_tobytes(L, 3); - - var gen_ret = gen_to_be_invoked.CreateDecryptor( _rgbKey, _ignoredParameter ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateKey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GenerateKey( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateIV(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GenerateIV( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encrypt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - - - - { - byte[] _inputBuffer = LuaAPI.lua_tobytes(L, 2); - int _inputOffset = LuaAPI.xlua_tointeger(L, 3); - int _inputCount = LuaAPI.xlua_tointeger(L, 4); - byte[] _outputBuffer = LuaAPI.lua_tobytes(L, 5); - int _outputOffset = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.Encrypt( _inputBuffer, _inputOffset, _inputCount, _outputBuffer, _outputOffset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Decrypt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - - - - { - byte[] _inputBuffer = LuaAPI.lua_tobytes(L, 2); - int _inputOffset = LuaAPI.xlua_tointeger(L, 3); - int _inputCount = LuaAPI.xlua_tointeger(L, 4); - byte[] _outputBuffer = LuaAPI.lua_tobytes(L, 5); - int _outputOffset = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.Decrypt( _inputBuffer, _inputOffset, _inputCount, _outputBuffer, _outputOffset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aesKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.aesKey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aesKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetAesEncrypt gen_to_be_invoked = (BF.NetAesEncrypt)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.aesKey = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetClientWrap.cs b/Assets/XLua/Gen/BF_NetClientWrap.cs deleted file mode 100644 index c68fc3661..000000000 --- a/Assets/XLua/Gen/BF_NetClientWrap.cs +++ /dev/null @@ -1,481 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetClientWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetClient); - Utils.BeginObjectRegister(type, L, translator, 0, 13, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Shutdown", _m_Shutdown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetupService", _m_SetupService); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Connect", _m_Connect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reconnect", _m_Reconnect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Close", _m_Close); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReadMessage", _m_ReadMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecycleMessage", _m_RecycleMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetConnectStatus", _m_GetConnectStatus); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetConnectIP", _m_GetConnectIP); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetServerTimestamp", _m_GetServerTimestamp); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.NetClient does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Start( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Shutdown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Shutdown( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetupService(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - BF.NetConfiguration _configuration = (BF.NetConfiguration)translator.GetObject(L, 2, typeof(BF.NetConfiguration)); - - gen_to_be_invoked.SetupService( _configuration ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Connect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - BF.NetConnectConfiguration _configuration = (BF.NetConnectConfiguration)translator.GetObject(L, 2, typeof(BF.NetConnectConfiguration)); - string _domainName = LuaAPI.lua_tostring(L, 3); - int _port = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.Connect( _configuration, _domainName, _port ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - BF.NetConnectConfiguration _configuration = (BF.NetConnectConfiguration)translator.GetObject(L, 2, typeof(BF.NetConnectConfiguration)); - System.Net.IPAddress _ipAddress = (System.Net.IPAddress)translator.GetObject(L, 3, typeof(System.Net.IPAddress)); - int _port = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.Connect( _configuration, _ipAddress, _port ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetClient.Connect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reconnect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Reconnect( _uniqueIdentifier ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Close(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Close( _uniqueIdentifier ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Send(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - uint _group = LuaAPI.xlua_touint(L, 3); - byte _cmd = (byte)LuaAPI.xlua_tointeger(L, 4); - byte[] _data = LuaAPI.lua_tobytes(L, 5); - - var gen_ret = gen_to_be_invoked.Send( _uniqueIdentifier, _group, _cmd, _data ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ReadMessage( _uniqueIdentifier ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecycleMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - BF.INetIncomingMessage _message = (BF.INetIncomingMessage)translator.GetObject(L, 3, typeof(BF.INetIncomingMessage)); - - gen_to_be_invoked.RecycleMessage( _uniqueIdentifier, _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConnectStatus(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetConnectStatus( _uniqueIdentifier ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConnectIP(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetConnectIP( _uniqueIdentifier ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetServerTimestamp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetClient gen_to_be_invoked = (BF.NetClient)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetServerTimestamp( _uniqueIdentifier ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.NetClient.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetConfigurationWrap.cs b/Assets/XLua/Gen/BF_NetConfigurationWrap.cs deleted file mode 100644 index ad26df6ae..000000000 --- a/Assets/XLua/Gen/BF_NetConfigurationWrap.cs +++ /dev/null @@ -1,147 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetConfigurationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetConfiguration); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ServiceType", _g_get_ServiceType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ThreadName", _g_get_ThreadName); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ServiceType", _s_set_ServiceType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ThreadName", _s_set_ThreadName); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NetConfiguration(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetConfiguration constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ServiceType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConfiguration gen_to_be_invoked = (BF.NetConfiguration)translator.FastGetCSObj(L, 1); - translator.PushBFNetServiceType(L, gen_to_be_invoked.ServiceType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ThreadName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConfiguration gen_to_be_invoked = (BF.NetConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ThreadName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ServiceType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConfiguration gen_to_be_invoked = (BF.NetConfiguration)translator.FastGetCSObj(L, 1); - BF.NetServiceType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.ServiceType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ThreadName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConfiguration gen_to_be_invoked = (BF.NetConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ThreadName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetConnectConfigurationWrap.cs b/Assets/XLua/Gen/BF_NetConnectConfigurationWrap.cs deleted file mode 100644 index 21c0e1c50..000000000 --- a/Assets/XLua/Gen/BF_NetConnectConfigurationWrap.cs +++ /dev/null @@ -1,638 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetConnectConfigurationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetConnectConfiguration); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 16, 14); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableMessageType", _m_EnableMessageType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisableMessageType", _m_DisableMessageType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsMessageTypeEnabled", _m_IsMessageTypeEnabled); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ServiceType", _g_get_ServiceType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UniqueIdentifier", _g_get_UniqueIdentifier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InitializeExchangeRc4Key", _g_get_InitializeExchangeRc4Key); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SendBufferCapacity", _g_get_SendBufferCapacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ReceiveBufferCapacity", _g_get_ReceiveBufferCapacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MessagePoolCapacity", _g_get_MessagePoolCapacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AlreadySendMessageCacheCount", _g_get_AlreadySendMessageCacheCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableSilenceReconnect", _g_get_EnableSilenceReconnect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AutoReconnectCount", _g_get_AutoReconnectCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ReconnectTimeoutTime", _g_get_ReconnectTimeoutTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ReconnectBaseInterval", _g_get_ReconnectBaseInterval); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableHeartBeat", _g_get_EnableHeartBeat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HeartBeatInterval", _g_get_HeartBeatInterval); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxHeartBeatMissCount", _g_get_MaxHeartBeatMissCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableStatistics", _g_get_EnableStatistics); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConnectTimeout", _g_get_ConnectTimeout); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "InitializeExchangeRc4Key", _s_set_InitializeExchangeRc4Key); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SendBufferCapacity", _s_set_SendBufferCapacity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ReceiveBufferCapacity", _s_set_ReceiveBufferCapacity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MessagePoolCapacity", _s_set_MessagePoolCapacity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AlreadySendMessageCacheCount", _s_set_AlreadySendMessageCacheCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableSilenceReconnect", _s_set_EnableSilenceReconnect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AutoReconnectCount", _s_set_AutoReconnectCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ReconnectTimeoutTime", _s_set_ReconnectTimeoutTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ReconnectBaseInterval", _s_set_ReconnectBaseInterval); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableHeartBeat", _s_set_EnableHeartBeat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HeartBeatInterval", _s_set_HeartBeatInterval); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MaxHeartBeatMissCount", _s_set_MaxHeartBeatMissCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableStatistics", _s_set_EnableStatistics); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConnectTimeout", _s_set_ConnectTimeout); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - BF.NetServiceType _serviceType;translator.Get(L, 2, out _serviceType); - string _uniqueIdentifier = LuaAPI.lua_tostring(L, 3); - - var gen_ret = new BF.NetConnectConfiguration(_serviceType, _uniqueIdentifier); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetConnectConfiguration constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableMessageType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - - - - { - BF.NetIncomingMessageType _type;translator.Get(L, 2, out _type); - - gen_to_be_invoked.EnableMessageType( _type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DisableMessageType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - - - - { - BF.NetIncomingMessageType _type;translator.Get(L, 2, out _type); - - gen_to_be_invoked.DisableMessageType( _type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsMessageTypeEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - - - - { - BF.NetIncomingMessageType _type;translator.Get(L, 2, out _type); - - var gen_ret = gen_to_be_invoked.IsMessageTypeEnabled( _type ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ServiceType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - translator.PushBFNetServiceType(L, gen_to_be_invoked.ServiceType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UniqueIdentifier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.UniqueIdentifier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InitializeExchangeRc4Key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.InitializeExchangeRc4Key); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SendBufferCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.SendBufferCapacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ReceiveBufferCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ReceiveBufferCapacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MessagePoolCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.MessagePoolCapacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AlreadySendMessageCacheCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AlreadySendMessageCacheCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableSilenceReconnect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableSilenceReconnect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AutoReconnectCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AutoReconnectCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ReconnectTimeoutTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ReconnectTimeoutTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ReconnectBaseInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ReconnectBaseInterval); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableHeartBeat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableHeartBeat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HeartBeatInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.HeartBeatInterval); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MaxHeartBeatMissCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.MaxHeartBeatMissCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableStatistics(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableStatistics); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ConnectTimeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ConnectTimeout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_InitializeExchangeRc4Key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.InitializeExchangeRc4Key = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SendBufferCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SendBufferCapacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ReceiveBufferCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ReceiveBufferCapacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MessagePoolCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MessagePoolCapacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AlreadySendMessageCacheCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AlreadySendMessageCacheCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableSilenceReconnect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableSilenceReconnect = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AutoReconnectCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AutoReconnectCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ReconnectTimeoutTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ReconnectTimeoutTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ReconnectBaseInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ReconnectBaseInterval = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableHeartBeat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableHeartBeat = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HeartBeatInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HeartBeatInterval = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MaxHeartBeatMissCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MaxHeartBeatMissCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableStatistics(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableStatistics = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ConnectTimeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetConnectConfiguration gen_to_be_invoked = (BF.NetConnectConfiguration)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ConnectTimeout = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetErrorCodeWrap.cs b/Assets/XLua/Gen/BF_NetErrorCodeWrap.cs deleted file mode 100644 index 59c2513dc..000000000 --- a/Assets/XLua/Gen/BF_NetErrorCodeWrap.cs +++ /dev/null @@ -1,77 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetErrorCodeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetErrorCode); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 11, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ExceptionError", BF.NetErrorCode.ExceptionError); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ConnectFailed", BF.NetErrorCode.ConnectFailed); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ReceiveBufferError", BF.NetErrorCode.ReceiveBufferError); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BeginSendError", BF.NetErrorCode.BeginSendError); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PeerDisconnect", BF.NetErrorCode.PeerDisconnect); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DataParseError", BF.NetErrorCode.DataParseError); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DNSParseDomainNameError", BF.NetErrorCode.DNSParseDomainNameError); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ServerRefuseReconnect", BF.NetErrorCode.ServerRefuseReconnect); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ServerKickNtfClient", BF.NetErrorCode.ServerKickNtfClient); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OtherDeviceLogin", BF.NetErrorCode.OtherDeviceLogin); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.NetErrorCode does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetExceptionWrap.cs b/Assets/XLua/Gen/BF_NetExceptionWrap.cs deleted file mode 100644 index 35f5401b7..000000000 --- a/Assets/XLua/Gen/BF_NetExceptionWrap.cs +++ /dev/null @@ -1,143 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetExceptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetException); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Assert", _m_Assert_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NetException(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _message = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new BF.NetException(_message); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _message = LuaAPI.lua_tostring(L, 2); - System.Exception _inner = (System.Exception)translator.GetObject(L, 3, typeof(System.Exception)); - - var gen_ret = new BF.NetException(_message, _inner); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetException constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Assert_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _isOk = LuaAPI.lua_toboolean(L, 1); - - BF.NetException.Assert( _isOk ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - bool _isOk = LuaAPI.lua_toboolean(L, 1); - string _message = LuaAPI.lua_tostring(L, 2); - - BF.NetException.Assert( _isOk, _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetException.Assert!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetManagerWrap.cs b/Assets/XLua/Gen/BF_NetManagerWrap.cs deleted file mode 100644 index 5f85ad8f7..000000000 --- a/Assets/XLua/Gen/BF_NetManagerWrap.cs +++ /dev/null @@ -1,1443 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetManager); - Utils.BeginObjectRegister(type, L, translator, 0, 39, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitNetClientCount", _m_InitNetClientCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HandleDecodePbChange", _m_HandleDecodePbChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetConnectIP", _m_GetConnectIP); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsConnected", _m_IsConnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsDisconnected", _m_IsDisconnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAvailable", _m_IsAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsClosed", _m_IsClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reconnect", _m_Reconnect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetServerTimestamp", _m_GetServerTimestamp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConnectWithDomainName", _m_ConnectWithDomainName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConnectWithConfiguration", _m_ConnectWithConfiguration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Close", _m_Close); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAuthReqData", _m_GetAuthReqData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetChatAuthReqData", _m_GetChatAuthReqData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLoginReqData", _m_GetLoginReqData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDecodeStataus", _m_GetDecodeStataus); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDecodePbStr", _m_GetDecodePbStr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDecodeGroup", _m_GetDecodeGroup); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnReceiveMessage", _m_AddLuaOnReceiveMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLuaOnReceiveMessage", _m_RemoveLuaOnReceiveMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnConnected", _m_AddLuaOnConnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLuaOnConnected", _m_RemoveLuaOnConnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnDisconnected", _m_AddLuaOnDisconnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLuaOnDisconnected", _m_RemoveLuaOnDisconnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnReconnectSuccess", _m_AddLuaOnReconnectSuccess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLuaOnReconnectSuccess", _m_RemoveLuaOnReconnectSuccess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnReconnect", _m_AddLuaOnReconnect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLuaOnReconnect", _m_RemoveLuaOnReconnect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaAuthCallback", _m_SetLuaAuthCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaOnDecodePbCallback", _m_SetLuaOnDecodePbCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLuaOnDecodePbCallback", _m_RemoveLuaOnDecodePbCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnError", _m_AddLuaOnError); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveLuaOnError", _m_RemoveLuaOnError); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllLuaCallback", _m_RemoveAllLuaCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "luaAuthCallback", _e_luaAuthCallback); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loginReqData", _g_get_loginReqData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "authReqData", _g_get_authReqData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChatAuthReqData", _g_get_ChatAuthReqData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decodePbStr", _g_get_decodePbStr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rspGroup", _g_get_rspGroup); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decodeFinish", _g_get_decodeFinish); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "loginReqData", _s_set_loginReqData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "authReqData", _s_set_authReqData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ChatAuthReqData", _s_set_ChatAuthReqData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decodePbStr", _s_set_decodePbStr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rspGroup", _s_set_rspGroup); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decodeFinish", _s_set_decodeFinish); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MAIN_SOCKET_NAME", BF.NetManager.MAIN_SOCKET_NAME); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CHAT_SOCKET_NAME", BF.NetManager.CHAT_SOCKET_NAME); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NetManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.NetManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitNetClientCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _count = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.InitNetClientCount( _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HandleDecodePbChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - uint _group = LuaAPI.xlua_touint(L, 3); - uint _seq = LuaAPI.xlua_touint(L, 4); - byte[] _data = LuaAPI.lua_tobytes(L, 5); - - gen_to_be_invoked.HandleDecodePbChange( _clientId, _group, _seq, _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConnectIP(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetConnectIP( _clientId ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsConnected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsConnected( _clientId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDisconnected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsDisconnected( _clientId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsAvailable( _clientId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsClosed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsClosed( _clientId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reconnect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Reconnect( _clientId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetServerTimestamp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetServerTimestamp( _clientId ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConnectWithDomainName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - string _clientName = LuaAPI.lua_tostring(L, 3); - string _domainName = LuaAPI.lua_tostring(L, 4); - int _port = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.ConnectWithDomainName( _clientId, _clientName, _domainName, _port ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConnectWithConfiguration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - BF.NetConnectConfiguration _configuration = (BF.NetConnectConfiguration)translator.GetObject(L, 3, typeof(BF.NetConnectConfiguration)); - string _domainName = LuaAPI.lua_tostring(L, 4); - int _port = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.ConnectWithConfiguration( _clientId, _configuration, _domainName, _port ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Send(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - uint _group = LuaAPI.xlua_touint(L, 3); - byte _cmd = (byte)LuaAPI.xlua_tointeger(L, 4); - byte[] _data = LuaAPI.lua_tobytes(L, 5); - - gen_to_be_invoked.Send( _clientId, _group, _cmd, _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Close(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - int _clientId = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Close( _clientId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAuthReqData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAuthReqData( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetChatAuthReqData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetChatAuthReqData( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLoginReqData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetLoginReqData( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDecodeStataus(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDecodeStataus( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDecodePbStr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDecodePbStr( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDecodeGroup(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDecodeGroup( ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnReceiveMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnReceiveMessage( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveLuaOnReceiveMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveLuaOnReceiveMessage( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnConnected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnConnected( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveLuaOnConnected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveLuaOnConnected( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnDisconnected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnDisconnected( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveLuaOnDisconnected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveLuaOnDisconnected( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnReconnectSuccess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnReconnectSuccess( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveLuaOnReconnectSuccess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveLuaOnReconnectSuccess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnReconnect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnReconnect( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveLuaOnReconnect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveLuaOnReconnect( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaAuthCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaAuthCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuaOnDecodePbCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.SetLuaOnDecodePbCallback( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveLuaOnDecodePbCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveLuaOnDecodePbCallback( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnError(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnError( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveLuaOnError(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveLuaOnError( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAllLuaCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveAllLuaCallback( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loginReqData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.loginReqData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_authReqData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.authReqData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ChatAuthReqData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ChatAuthReqData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decodePbStr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.decodePbStr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rspGroup(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.rspGroup); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decodeFinish(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.decodeFinish); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_loginReqData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.loginReqData = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_authReqData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.authReqData = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ChatAuthReqData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ChatAuthReqData = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decodePbStr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decodePbStr = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rspGroup(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rspGroup = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decodeFinish(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decodeFinish = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_luaAuthCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BF.NetManager gen_to_be_invoked = (BF.NetManager)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.luaAuthCallback += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.luaAuthCallback -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BF.NetManager.luaAuthCallback!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/BF_NetMd5EncryptWrap.cs b/Assets/XLua/Gen/BF_NetMd5EncryptWrap.cs deleted file mode 100644 index e6ef1c277..000000000 --- a/Assets/XLua/Gen/BF_NetMd5EncryptWrap.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNetMd5EncryptWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NetMd5Encrypt); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Encrypt", _m_Encrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "VerifyMd5Hash", _m_VerifyMd5Hash_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NetMd5Encrypt(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NetMd5Encrypt constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.NetMd5Encrypt.Encrypt( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_VerifyMd5Hash_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _input = LuaAPI.lua_tostring(L, 1); - string _hash = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.NetMd5Encrypt.VerifyMd5Hash( _input, _hash ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NodeHelperWrap.cs b/Assets/XLua/Gen/BF_NodeHelperWrap.cs deleted file mode 100644 index fecbf6fe6..000000000 --- a/Assets/XLua/Gen/BF_NodeHelperWrap.cs +++ /dev/null @@ -1,495 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNodeHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NodeHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 4, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByName", _m_GetGameObjectByName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListCount", _m_GetListCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashNameByIndex", _m_GetHashNameByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObjectTypeByIndex", _m_GetObjectTypeByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByIndex", _m_GetGameObjectByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPosition", _m_SetLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CachePosition", _m_CachePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheLocalEulerAngles", _m_CacheLocalEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalEulerAngles", _m_SetLocalEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScale", _m_SetLocalScale); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionX", _g_get_PositionX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionY", _g_get_PositionY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionZ", _g_get_PositionZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "prefabList", _g_get_prefabList); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "prefabList", _s_set_prefabList); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NodeHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NodeHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByName( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetListCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetListCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashNameByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetHashNameByIndex( _index ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetObjectTypeByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetObjectTypeByIndex( _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByIndex( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CachePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CachePosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheLocalEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheLocalEulerAngles( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalScale( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_prefabList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.prefabList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_prefabList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NodeHelper gen_to_be_invoked = (BF.NodeHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.prefabList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NotchScreenInfoWrap.cs b/Assets/XLua/Gen/BF_NotchScreenInfoWrap.cs deleted file mode 100644 index 3af032a32..000000000 --- a/Assets/XLua/Gen/BF_NotchScreenInfoWrap.cs +++ /dev/null @@ -1,238 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNotchScreenInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NotchScreenInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "notchType", _g_get_notchType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "notchType", _s_set_notchType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.NotchScreenInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NotchScreenInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_notchType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.notchType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_notchType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - BF.NotchType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.notchType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.width = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_NotchScreenNodeWrap.cs b/Assets/XLua/Gen/BF_NotchScreenNodeWrap.cs deleted file mode 100644 index 1348d1842..000000000 --- a/Assets/XLua/Gen/BF_NotchScreenNodeWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFNotchScreenNodeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.NotchScreenNode); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adjustHeight", _g_get_adjustHeight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gameObject", _s_set_gameObject); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adjustHeight", _s_set_adjustHeight); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.NotchScreenNode)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.NotchScreenNode constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenNode gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adjustHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenNode gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.adjustHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenNode gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adjustHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.NotchScreenNode gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.adjustHeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_OnGetVersionProcessorWrap.cs b/Assets/XLua/Gen/BF_OnGetVersionProcessorWrap.cs deleted file mode 100644 index a003e2199..000000000 --- a/Assets/XLua/Gen/BF_OnGetVersionProcessorWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFOnGetVersionProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.OnGetVersionProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.OnGetVersionProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.OnGetVersionProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.OnGetVersionProcessor gen_to_be_invoked = (BF.OnGetVersionProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_OneShotManagerWrap.cs b/Assets/XLua/Gen/BF_OneShotManagerWrap.cs deleted file mode 100644 index 32557df09..000000000 --- a/Assets/XLua/Gen/BF_OneShotManagerWrap.cs +++ /dev/null @@ -1,207 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFOneShotManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.OneShotManager); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOneShot", _m_AddOneShot); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.OneShotManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.OneShotManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.OneShotManager gen_to_be_invoked = (BF.OneShotManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.OneShotManager gen_to_be_invoked = (BF.OneShotManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.OneShotManager gen_to_be_invoked = (BF.OneShotManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOneShot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.OneShotManager gen_to_be_invoked = (BF.OneShotManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _oneShot = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddOneShot( _oneShot ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_OutlineWrap.cs b/Assets/XLua/Gen/BF_OutlineWrap.cs deleted file mode 100644 index eded1e891..000000000 --- a/Assets/XLua/Gen/BF_OutlineWrap.cs +++ /dev/null @@ -1,179 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFOutlineWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Outline); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OutlineMode", _g_get_OutlineMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OutlineColor", _g_get_OutlineColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OutlineWidth", _g_get_OutlineWidth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OutlineMode", _s_set_OutlineMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OutlineColor", _s_set_OutlineColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OutlineWidth", _s_set_OutlineWidth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.Outline(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Outline constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OutlineMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Outline gen_to_be_invoked = (BF.Outline)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OutlineMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OutlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Outline gen_to_be_invoked = (BF.Outline)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.OutlineColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OutlineWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Outline gen_to_be_invoked = (BF.Outline)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.OutlineWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OutlineMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Outline gen_to_be_invoked = (BF.Outline)translator.FastGetCSObj(L, 1); - BF.Outline.Mode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.OutlineMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OutlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Outline gen_to_be_invoked = (BF.Outline)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.OutlineColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OutlineWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Outline gen_to_be_invoked = (BF.Outline)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OutlineWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PoolManagerWrap.cs b/Assets/XLua/Gen/BF_PoolManagerWrap.cs deleted file mode 100644 index c9808b77b..000000000 --- a/Assets/XLua/Gen/BF_PoolManagerWrap.cs +++ /dev/null @@ -1,165 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPoolManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PoolManager); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "GameObjPool", _g_get_GameObjPool); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.PoolManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.PoolManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PoolManager gen_to_be_invoked = (BF.PoolManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PoolManager gen_to_be_invoked = (BF.PoolManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_GameObjPool(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PoolManager gen_to_be_invoked = (BF.PoolManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.GameObjPool); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PostEffectBehaviourWrap.cs b/Assets/XLua/Gen/BF_PostEffectBehaviourWrap.cs deleted file mode 100644 index 8bfc09ec2..000000000 --- a/Assets/XLua/Gen/BF_PostEffectBehaviourWrap.cs +++ /dev/null @@ -1,288 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPostEffectBehaviourWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PostEffectBehaviour); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckSupport", _m_CheckSupport); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPostEffectType", _m_SetPostEffectType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenPostEffect", _m_OpenPostEffect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosePostEffect", _m_ClosePostEffect); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectType", _g_get_EffectType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VividBloomEffect", _g_get_VividBloomEffect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "FxaaEffect", _g_get_FxaaEffect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RadialBlurEffetc", _g_get_RadialBlurEffetc); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.PostEffectBehaviour(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PostEffectBehaviour constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckSupport(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.CheckSupport( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPostEffectType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectType _type;translator.Get(L, 2, out _type); - - gen_to_be_invoked.SetPostEffectType( _type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OpenPostEffect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType); - - gen_to_be_invoked.OpenPostEffect( _effectType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosePostEffect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType); - - gen_to_be_invoked.ClosePostEffect( _effectType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EffectType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.EffectType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VividBloomEffect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.VividBloomEffect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FxaaEffect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.FxaaEffect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RadialBlurEffetc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RadialBlurEffetc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PostEffectBloomWrap.cs b/Assets/XLua/Gen/BF_PostEffectBloomWrap.cs deleted file mode 100644 index d7376330b..000000000 --- a/Assets/XLua/Gen/BF_PostEffectBloomWrap.cs +++ /dev/null @@ -1,300 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPostEffectBloomWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PostEffectBloom); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIteration", _m_SetIteration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDownSample", _m_SetDownSample); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuminance", _m_SetLuminance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRenderImage", _m_OnRenderImage); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Iterations", _g_get_Iterations); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DownSample", _g_get_DownSample); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LuminanceThreshold", _g_get_LuminanceThreshold); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 2, 2); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "BlurSizeID", _g_get_BlurSizeID); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "BloomID", _g_get_BloomID); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "BlurSizeID", _s_set_BlurSizeID); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "BloomID", _s_set_BloomID); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.PostEffectBloom(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PostEffectBloom constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIteration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBloom gen_to_be_invoked = (BF.PostEffectBloom)translator.FastGetCSObj(L, 1); - - - - { - int _iterations = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetIteration( _iterations ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDownSample(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBloom gen_to_be_invoked = (BF.PostEffectBloom)translator.FastGetCSObj(L, 1); - - - - { - int _downSample = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetDownSample( _downSample ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLuminance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBloom gen_to_be_invoked = (BF.PostEffectBloom)translator.FastGetCSObj(L, 1); - - - - { - float _luminanceThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetLuminance( _luminanceThreshold ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRenderImage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectBloom gen_to_be_invoked = (BF.PostEffectBloom)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectContext _context = (BF.PostEffectContext)translator.GetObject(L, 2, typeof(BF.PostEffectContext)); - - var gen_ret = gen_to_be_invoked.OnRenderImage( _context ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Iterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectBloom gen_to_be_invoked = (BF.PostEffectBloom)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Iterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DownSample(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectBloom gen_to_be_invoked = (BF.PostEffectBloom)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.DownSample); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LuminanceThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectBloom gen_to_be_invoked = (BF.PostEffectBloom)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.LuminanceThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BlurSizeID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, BF.PostEffectBloom.BlurSizeID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BloomID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, BF.PostEffectBloom.BloomID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_BlurSizeID(RealStatePtr L) - { - try { - - BF.PostEffectBloom.BlurSizeID = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_BloomID(RealStatePtr L) - { - try { - - BF.PostEffectBloom.BloomID = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PostEffectContextWrap.cs b/Assets/XLua/Gen/BF_PostEffectContextWrap.cs deleted file mode 100644 index 1c70e6a99..000000000 --- a/Assets/XLua/Gen/BF_PostEffectContextWrap.cs +++ /dev/null @@ -1,156 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPostEffectContextWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PostEffectContext); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "src", _g_get_src); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dest", _g_get_dest); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "src", _s_set_src); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dest", _s_set_dest); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.PostEffectContext(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.RenderTexture _src = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 3, typeof(UnityEngine.RenderTexture)); - - var gen_ret = new BF.PostEffectContext(_src, _dest); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PostEffectContext constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_src(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectContext gen_to_be_invoked = (BF.PostEffectContext)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.src); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dest(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectContext gen_to_be_invoked = (BF.PostEffectContext)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.dest); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_src(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectContext gen_to_be_invoked = (BF.PostEffectContext)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.src = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dest(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectContext gen_to_be_invoked = (BF.PostEffectContext)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PostEffectFxaaWrap.cs b/Assets/XLua/Gen/BF_PostEffectFxaaWrap.cs deleted file mode 100644 index 2fd0c7ba7..000000000 --- a/Assets/XLua/Gen/BF_PostEffectFxaaWrap.cs +++ /dev/null @@ -1,129 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPostEffectFxaaWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PostEffectFxaa); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRenderImage", _m_OnRenderImage); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "FxaaMaterial", _g_get_FxaaMaterial); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.PostEffectFxaa(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PostEffectFxaa constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRenderImage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectFxaa gen_to_be_invoked = (BF.PostEffectFxaa)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectContext _context = (BF.PostEffectContext)translator.GetObject(L, 2, typeof(BF.PostEffectContext)); - - var gen_ret = gen_to_be_invoked.OnRenderImage( _context ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FxaaMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectFxaa gen_to_be_invoked = (BF.PostEffectFxaa)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.FxaaMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PostEffectRadialBlurWrap.cs b/Assets/XLua/Gen/BF_PostEffectRadialBlurWrap.cs deleted file mode 100644 index cc613d640..000000000 --- a/Assets/XLua/Gen/BF_PostEffectRadialBlurWrap.cs +++ /dev/null @@ -1,306 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPostEffectRadialBlurWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PostEffectRadialBlur); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 3, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlurRadius", _m_SetBlurRadius); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshBlurRadius", _m_RefreshBlurRadius); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRadialCenter", _m_SetRadialCenter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshRadialCenter", _m_RefreshRadialCenter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRenderImage", _m_OnRenderImage); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RadialBlurMaterial", _g_get_RadialBlurMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BlurRadius", _g_get_BlurRadius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RadialCenter", _g_get_RadialCenter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "BlurRadius", _s_set_BlurRadius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "RadialCenter", _s_set_RadialCenter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.PostEffectRadialBlur(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PostEffectRadialBlur constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBlurRadius(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - - - - { - float _blurRadius = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetBlurRadius( _blurRadius ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshBlurRadius(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshBlurRadius( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRadialCenter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _value;translator.Get(L, 2, out _value); - - gen_to_be_invoked.SetRadialCenter( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshRadialCenter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshRadialCenter( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRenderImage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectContext _context = (BF.PostEffectContext)translator.GetObject(L, 2, typeof(BF.PostEffectContext)); - - var gen_ret = gen_to_be_invoked.OnRenderImage( _context ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RadialBlurMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RadialBlurMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BlurRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.BlurRadius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RadialCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.RadialCenter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_BlurRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.BlurRadius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_RadialCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectRadialBlur gen_to_be_invoked = (BF.PostEffectRadialBlur)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.RadialCenter = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PostEffectVividBloomWrap.cs b/Assets/XLua/Gen/BF_PostEffectVividBloomWrap.cs deleted file mode 100644 index 64a606d38..000000000 --- a/Assets/XLua/Gen/BF_PostEffectVividBloomWrap.cs +++ /dev/null @@ -1,427 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPostEffectVividBloomWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PostEffectVividBloom); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 4, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIntensity", _m_SetIntensity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIterations", _m_SetIterations); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetThreshold", _m_SetThreshold); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSoftThreshold", _m_SetSoftThreshold); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshFilter", _m_RefreshFilter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshIntensity", _m_RefreshIntensity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRenderImage", _m_OnRenderImage); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Intensity", _g_get_Intensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Iterations", _g_get_Iterations); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Threshold", _g_get_Threshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SoftThreshold", _g_get_SoftThreshold); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 3, 3); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "FilterID", _g_get_FilterID); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "IntensityID", _g_get_IntensityID); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SourceTexID", _g_get_SourceTexID); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "FilterID", _s_set_FilterID); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "IntensityID", _s_set_IntensityID); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SourceTexID", _s_set_SourceTexID); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.PostEffectVividBloom(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PostEffectVividBloom constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIntensity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetIntensity( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIterations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - - - - { - int _value = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetIterations( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetThreshold(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetThreshold( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSoftThreshold(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetSoftThreshold( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshFilter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshFilter( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshIntensity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshIntensity( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRenderImage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - - - - { - BF.PostEffectContext _context = (BF.PostEffectContext)translator.GetObject(L, 2, typeof(BF.PostEffectContext)); - - var gen_ret = gen_to_be_invoked.OnRenderImage( _context ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Intensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Iterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Iterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Threshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Threshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SoftThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PostEffectVividBloom gen_to_be_invoked = (BF.PostEffectVividBloom)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.SoftThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FilterID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, BF.PostEffectVividBloom.FilterID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IntensityID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, BF.PostEffectVividBloom.IntensityID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SourceTexID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, BF.PostEffectVividBloom.SourceTexID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_FilterID(RealStatePtr L) - { - try { - - BF.PostEffectVividBloom.FilterID = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IntensityID(RealStatePtr L) - { - try { - - BF.PostEffectVividBloom.IntensityID = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SourceTexID(RealStatePtr L) - { - try { - - BF.PostEffectVividBloom.SourceTexID = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PreCheckProcessorWrap.cs b/Assets/XLua/Gen/BF_PreCheckProcessorWrap.cs deleted file mode 100644 index c01a59196..000000000 --- a/Assets/XLua/Gen/BF_PreCheckProcessorWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPreCheckProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PreCheckProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.PreCheckProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PreCheckProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PreCheckProcessor gen_to_be_invoked = (BF.PreCheckProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PrefabHelperWrap.cs b/Assets/XLua/Gen/BF_PrefabHelperWrap.cs deleted file mode 100644 index 2bb881c5a..000000000 --- a/Assets/XLua/Gen/BF_PrefabHelperWrap.cs +++ /dev/null @@ -1,1411 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPrefabHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PrefabHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 41, 4, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByName", _m_GetGameObjectByName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListCount", _m_GetListCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashNameByIndex", _m_GetHashNameByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObjectTypeByIndex", _m_GetObjectTypeByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByIndex", _m_GetGameObjectByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheAnchoredPosition", _m_CacheAnchoredPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAnchoredPosition", _m_GetAnchoredPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchoredPositionX", _m_SetAnchoredPositionX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchoredPositionY", _m_SetAnchoredPositionY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchoredPosition", _m_SetAnchoredPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchorMin", _m_SetAnchorMin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchorMax", _m_SetAnchorMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOffsetMin", _m_SetOffsetMin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOffsetMax", _m_SetOffsetMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddAnchoredPosition", _m_AddAnchoredPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSizeDelta", _m_SetSizeDelta); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSizeDeltaX", _m_SetSizeDeltaX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSizeDeltaY", _m_SetSizeDeltaY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSizeDelta", _m_AddSizeDelta); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSizeDelta", _m_GetSizeDelta); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheSizeDelt", _m_CacheSizeDelt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRectWidth", _m_GetRectWidth); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRectHeight", _m_GetRectHeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddPosition", _m_AddPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPosition", _m_SetLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPositionX", _m_SetLocalPositionX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPositionY", _m_SetLocalPositionY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLocalPosition", _m_AddLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheLocalPosition", _m_CacheLocalPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CachePosition", _m_CachePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheLocalScale", _m_CacheLocalScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEulerAngles", _m_SetEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEulerAngles", _m_AddEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalEulerAngles", _m_SetLocalEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLocalEulerAngles", _m_AddLocalEulerAngles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScale", _m_SetLocalScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLocalScale", _m_AddLocalScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRootPrefabIndex", _m_GetRootPrefabIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScrollRectCellName", _m_SetScrollRectCellName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetlocalRotationZ", _m_GetlocalRotationZ); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionX", _g_get_PositionX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionY", _g_get_PositionY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionZ", _g_get_PositionZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "prefabList", _g_get_prefabList); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "prefabList", _s_set_prefabList); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.PrefabHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PrefabHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByName( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetListCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetListCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashNameByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetHashNameByIndex( _index ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetObjectTypeByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetObjectTypeByIndex( _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByIndex( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheAnchoredPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheAnchoredPosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAnchoredPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAnchoredPosition( _index ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnchoredPositionX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetAnchoredPositionX( _index, _x ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnchoredPositionY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetAnchoredPositionY( _index, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnchoredPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetAnchoredPosition( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnchorMin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetAnchorMin( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnchorMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetAnchorMax( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOffsetMin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetOffsetMin( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOffsetMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetOffsetMax( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddAnchoredPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.AddAnchoredPosition( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSizeDelta(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetSizeDelta( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSizeDeltaX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetSizeDeltaX( _index, _x ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSizeDeltaY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetSizeDeltaY( _index, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSizeDelta(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.AddSizeDelta( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSizeDelta(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSizeDelta( _index ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheSizeDelt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheSizeDelt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRectWidth(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetRectWidth( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRectHeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetRectHeight( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.AddPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPositionX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetLocalPositionX( _index, _x ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPositionY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetLocalPositionY( _index, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.AddLocalPosition( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheLocalPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheLocalPosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CachePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CachePosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheLocalScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheLocalScale( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.AddEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLocalEulerAngles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.AddLocalEulerAngles( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLocalScale( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLocalScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - float _z = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.AddLocalScale( _index, _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRootPrefabIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetRootPrefabIndex( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetScrollRectCellName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _nameIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetScrollRectCellName( _index, _nameIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetlocalRotationZ(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetlocalRotationZ( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_prefabList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.prefabList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_prefabList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.PrefabHelper gen_to_be_invoked = (BF.PrefabHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.prefabList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_PrepareProcessorWrap.cs b/Assets/XLua/Gen/BF_PrepareProcessorWrap.cs deleted file mode 100644 index d0bbd19b8..000000000 --- a/Assets/XLua/Gen/BF_PrepareProcessorWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFPrepareProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.PrepareProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.PrepareProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.PrepareProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.PrepareProcessor gen_to_be_invoked = (BF.PrepareProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_RawImageGridWrap.cs b/Assets/XLua/Gen/BF_RawImageGridWrap.cs deleted file mode 100644 index 8b7da8c11..000000000 --- a/Assets/XLua/Gen/BF_RawImageGridWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFRawImageGridWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.RawImageGrid); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "paddingTopSlice", _g_get_paddingTopSlice); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "paddingBottomSlice", _g_get_paddingBottomSlice); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "paddingTopSlice", _s_set_paddingTopSlice); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "paddingBottomSlice", _s_set_paddingBottomSlice); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.RawImageGrid(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.RawImageGrid constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_paddingTopSlice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RawImageGrid gen_to_be_invoked = (BF.RawImageGrid)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.paddingTopSlice); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_paddingBottomSlice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RawImageGrid gen_to_be_invoked = (BF.RawImageGrid)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.paddingBottomSlice); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_paddingTopSlice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RawImageGrid gen_to_be_invoked = (BF.RawImageGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.paddingTopSlice = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_paddingBottomSlice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RawImageGrid gen_to_be_invoked = (BF.RawImageGrid)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.paddingBottomSlice = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_Rc4EncryptWrap.cs b/Assets/XLua/Gen/BF_Rc4EncryptWrap.cs deleted file mode 100644 index 284bd89e0..000000000 --- a/Assets/XLua/Gen/BF_Rc4EncryptWrap.cs +++ /dev/null @@ -1,220 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFRc4EncryptWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Rc4Encrypt); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EncryptBytes", _m_EncryptBytes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DecryptBytes", _m_DecryptBytes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EncryptStr", _m_EncryptStr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DecryptStr", _m_DecryptStr); - - - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Key", _s_set_Key); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.Rc4Encrypt(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Rc4Encrypt constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EncryptBytes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Rc4Encrypt gen_to_be_invoked = (BF.Rc4Encrypt)translator.FastGetCSObj(L, 1); - - - - { - byte[] _bytes = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = gen_to_be_invoked.EncryptBytes( _bytes ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DecryptBytes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Rc4Encrypt gen_to_be_invoked = (BF.Rc4Encrypt)translator.FastGetCSObj(L, 1); - - - - { - byte[] _bytes = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = gen_to_be_invoked.DecryptBytes( _bytes ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EncryptStr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Rc4Encrypt gen_to_be_invoked = (BF.Rc4Encrypt)translator.FastGetCSObj(L, 1); - - - - { - string _data = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.EncryptStr( _data ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DecryptStr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Rc4Encrypt gen_to_be_invoked = (BF.Rc4Encrypt)translator.FastGetCSObj(L, 1); - - - - { - string _data = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.DecryptStr( _data ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Rc4Encrypt gen_to_be_invoked = (BF.Rc4Encrypt)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Key = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_Rc4ObjectWrap.cs b/Assets/XLua/Gen/BF_Rc4ObjectWrap.cs deleted file mode 100644 index 8ac808d9b..000000000 --- a/Assets/XLua/Gen/BF_Rc4ObjectWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFRc4ObjectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Rc4Object); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "key", _g_get_key); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "key", _s_set_key); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.Rc4Object(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Rc4Object constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Rc4Object gen_to_be_invoked = (BF.Rc4Object)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.key); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Rc4Object gen_to_be_invoked = (BF.Rc4Object)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_key(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Rc4Object gen_to_be_invoked = (BF.Rc4Object)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.key = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Rc4Object gen_to_be_invoked = (BF.Rc4Object)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.value = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_RenderManagerWrap.cs b/Assets/XLua/Gen/BF_RenderManagerWrap.cs deleted file mode 100644 index 66bdcb0f6..000000000 --- a/Assets/XLua/Gen/BF_RenderManagerWrap.cs +++ /dev/null @@ -1,914 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFRenderManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.RenderManager); - Utils.BeginObjectRegister(type, L, translator, 0, 18, 12, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUIDefaultMat", _m_SetUIDefaultMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUITutorialMat", _m_SetUITutorialMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlurMat", _m_SetBlurMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBloomMat", _m_SetBloomMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlitCopyMat", _m_SetBlitCopyMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVividBloomMat", _m_SetVividBloomMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFxaaMat", _m_SetFxaaMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRadialBlur", _m_SetRadialBlur); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshOutlineMaskMat", _m_SetMeshOutlineMaskMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshOutlineFillMat", _m_SetMeshOutlineFillMat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGrey", _m_SetGrey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlurBg", _m_GetBlurBg); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlurBgWithBloom", _m_GetBlurBgWithBloom); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetScreenShot", _m_GetScreenShot); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenPostEffect", _m_OpenPostEffect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosePostEffect", _m_ClosePostEffect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BlurSizeID", _g_get_BlurSizeID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BloomID", _g_get_BloomID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UIDefaultMat", _g_get_UIDefaultMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UITutorialMat", _g_get_UITutorialMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BlurMat", _g_get_BlurMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BloomMat", _g_get_BloomMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VividBloomMat", _g_get_VividBloomMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BlitCopyMat", _g_get_BlitCopyMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "FxaaMat", _g_get_FxaaMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RadialBlurMat", _g_get_RadialBlurMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshOutlineMaskMat", _g_get_MeshOutlineMaskMat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshOutlineFillMat", _g_get_MeshOutlineFillMat); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.RenderManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.RenderManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUIDefaultMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetUIDefaultMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUITutorialMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetUITutorialMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBlurMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetBlurMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBloomMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetBloomMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBlitCopyMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetBlitCopyMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVividBloomMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetVividBloomMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFxaaMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetFxaaMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRadialBlur(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetRadialBlur( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshOutlineMaskMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetMeshOutlineMaskMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshOutlineFillMat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetMeshOutlineFillMat( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGrey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.UI.MaskableGraphic _mg = (UnityEngine.UI.MaskableGraphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.MaskableGraphic)); - bool _isGrey = LuaAPI.lua_toboolean(L, 3); - byte _greyLv = (byte)LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetGrey( _mg, _isGrey, _greyLv ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.UI.MaskableGraphic _mg = (UnityEngine.UI.MaskableGraphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.MaskableGraphic)); - bool _isGrey = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetGrey( _mg, _isGrey ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.SetGrey!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlurBg(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - int _width = LuaAPI.xlua_tointeger(L, 3); - int _height = LuaAPI.xlua_tointeger(L, 4); - int _iteration = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.GetBlurBg( _targetCameras, _width, _height, _iteration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - int _width = LuaAPI.xlua_tointeger(L, 3); - int _height = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetBlurBg( _targetCameras, _width, _height ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.GetBlurBg!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlurBgWithBloom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - int _width = LuaAPI.xlua_tointeger(L, 3); - int _height = LuaAPI.xlua_tointeger(L, 4); - int _iteration = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.GetBlurBgWithBloom( _targetCameras, _width, _height, _iteration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - int _width = LuaAPI.xlua_tointeger(L, 3); - int _height = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetBlurBgWithBloom( _targetCameras, _width, _height ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.GetBlurBgWithBloom!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetScreenShot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _onTexture = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.GetScreenShot( _onTexture ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - - var gen_ret = gen_to_be_invoked.GetScreenShot( _targetCameras ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Camera[] _targetCameras = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - UnityEngine.Rect _rect;translator.Get(L, 3, out _rect); - - var gen_ret = gen_to_be_invoked.GetScreenShot( _targetCameras, _rect ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.GetScreenShot!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OpenPostEffect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _effectType = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.OpenPostEffect( _effectType, _camera ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.OpenPostEffect( _effectType, _camera ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.OpenPostEffect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosePostEffect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _effectType = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.ClosePostEffect( _effectType, _camera ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.ClosePostEffect( _effectType, _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RenderManager.ClosePostEffect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BlurSizeID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.BlurSizeID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BloomID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.BloomID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UIDefaultMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UIDefaultMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UITutorialMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UITutorialMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BlurMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BlurMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BloomMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BloomMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VividBloomMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.VividBloomMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BlitCopyMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BlitCopyMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FxaaMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.FxaaMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RadialBlurMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RadialBlurMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MeshOutlineMaskMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MeshOutlineMaskMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MeshOutlineFillMat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.RenderManager gen_to_be_invoked = (BF.RenderManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MeshOutlineFillMat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_RequestLoginCenterConfigProcessorWrap.cs b/Assets/XLua/Gen/BF_RequestLoginCenterConfigProcessorWrap.cs deleted file mode 100644 index b7deecffa..000000000 --- a/Assets/XLua/Gen/BF_RequestLoginCenterConfigProcessorWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFRequestLoginCenterConfigProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.RequestLoginCenterConfigProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.RequestLoginCenterConfigProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.RequestLoginCenterConfigProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RequestLoginCenterConfigProcessor gen_to_be_invoked = (BF.RequestLoginCenterConfigProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_RequestVersionProcessorWrap.cs b/Assets/XLua/Gen/BF_RequestVersionProcessorWrap.cs deleted file mode 100644 index 3a554f4e6..000000000 --- a/Assets/XLua/Gen/BF_RequestVersionProcessorWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFRequestVersionProcessorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.RequestVersionProcessor); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Process", _m_Process); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - BF.GameLaunchProcessorBase _nextProcessor = (BF.GameLaunchProcessorBase)translator.GetObject(L, 2, typeof(BF.GameLaunchProcessorBase)); - - var gen_ret = new BF.RequestVersionProcessor(_nextProcessor); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.RequestVersionProcessor constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Process(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.RequestVersionProcessor gen_to_be_invoked = (BF.RequestVersionProcessor)translator.FastGetCSObj(L, 1); - - - - { - BF.LaunchRequester _lr = (BF.LaunchRequester)translator.GetObject(L, 2, typeof(BF.LaunchRequester)); - - gen_to_be_invoked.Process( _lr ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ResourceManagerWrap.cs b/Assets/XLua/Gen/BF_ResourceManagerWrap.cs deleted file mode 100644 index 5149f6c6d..000000000 --- a/Assets/XLua/Gen/BF_ResourceManagerWrap.cs +++ /dev/null @@ -1,579 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFResourceManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ResourceManager); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAbConfigCollection", _m_SetAbConfigCollection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReloadManifest", _m_ReloadManifest); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAsync", _m_LoadAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSync", _m_LoadSync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAsset", _m_RemoveAsset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAllDelayAssets", _m_UnloadAllDelayAssets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSceneLoadPath", _m_GetSceneLoadPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadSceneAsync", _m_LoadSceneAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadScene", _m_UnloadScene); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsAsset", _m_ContainsAsset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AbConfigCollection", _g_get_AbConfigCollection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Manifest", _g_get_Manifest); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TIME_OUT_LOAD", BF.ResourceManager.TIME_OUT_LOAD); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TIME_DELAY_UNLOAD", BF.ResourceManager.TIME_DELAY_UNLOAD); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.ResourceManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.ResourceManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAbConfigCollection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - BF.AssetBundleConfigCollection _abcc = (BF.AssetBundleConfigCollection)translator.GetObject(L, 2, typeof(BF.AssetBundleConfigCollection)); - - gen_to_be_invoked.SetAbConfigCollection( _abcc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReloadManifest(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ReloadManifest( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - System.Action _complete = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.LoadAsync( _assetPath, _type, _complete ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadSync( _assetPath, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Unload( _assetPath, _immediately ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - BF.AssetObject _assetObject = (BF.AssetObject)translator.GetObject(L, 2, typeof(BF.AssetObject)); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Unload( _assetObject, _immediately ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ResourceManager.Unload!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.RemoveAsset( _assetPath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAllDelayAssets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnloadAllDelayAssets( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneLoadPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetSceneLoadPath( _assetBundlePath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSceneAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.LoadSceneAsync( _assetBundlePath, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadScene(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - string _assetBundlePath = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.UnloadScene( _assetBundlePath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ContainsAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - string _assetPath = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ContainsAsset( _assetPath ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AbConfigCollection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.AbConfigCollection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Manifest(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ResourceManager gen_to_be_invoked = (BF.ResourceManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Manifest); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ResourcesProtectWrap.cs b/Assets/XLua/Gen/BF_ResourcesProtectWrap.cs deleted file mode 100644 index 9b9c2349d..000000000 --- a/Assets/XLua/Gen/BF_ResourcesProtectWrap.cs +++ /dev/null @@ -1,282 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFResourcesProtectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ResourcesProtect); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DoEncrypt", _m_DoEncrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DoDecrypt", _m_DoDecrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Read", _m_Read_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Write", _m_Write_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteEncrypt", _m_ExecuteEncrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteDecrypt", _m_ExecuteDecrypt_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.ResourcesProtect(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.ResourcesProtect constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DoEncrypt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)) - { - string _resPath = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - string _desPath = LuaAPI.lua_tostring(L, 3); - System.Func _filter = translator.GetDelegate>(L, 4); - - BF.ResourcesProtect.DoEncrypt( _resPath, _key, _desPath, _filter ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _resPath = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - string _desPath = LuaAPI.lua_tostring(L, 3); - - BF.ResourcesProtect.DoEncrypt( _resPath, _key, _desPath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ResourcesProtect.DoEncrypt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DoDecrypt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)) - { - string _resPath = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - string _desPath = LuaAPI.lua_tostring(L, 3); - System.Func _filter = translator.GetDelegate>(L, 4); - - BF.ResourcesProtect.DoDecrypt( _resPath, _key, _desPath, _filter ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _resPath = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - string _desPath = LuaAPI.lua_tostring(L, 3); - - BF.ResourcesProtect.DoDecrypt( _resPath, _key, _desPath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ResourcesProtect.DoDecrypt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Read_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _resPath = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.ResourcesProtect.Read( _resPath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Write_xlua_st_(RealStatePtr L) - { - try { - - - - - { - byte[] _buffer = LuaAPI.lua_tobytes(L, 1); - string _resPath = LuaAPI.lua_tostring(L, 2); - - BF.ResourcesProtect.Write( _buffer, _resPath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ExecuteEncrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - byte[] _buffer = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.ResourcesProtect.ExecuteEncrypt( _buffer, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ExecuteDecrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - byte[] _buffer = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.ResourcesProtect.ExecuteDecrypt( _buffer, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_RsaEncryptWrap.cs b/Assets/XLua/Gen/BF_RsaEncryptWrap.cs deleted file mode 100644 index 66f989e45..000000000 --- a/Assets/XLua/Gen/BF_RsaEncryptWrap.cs +++ /dev/null @@ -1,200 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFRsaEncryptWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.RsaEncrypt); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Encrypt", _m_Encrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Decrypt", _m_Decrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertFromPemPublicKey", _m_ConvertFromPemPublicKey_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.RsaEncrypt(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.RsaEncrypt constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encrypt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - bool _tobase64 = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = BF.RsaEncrypt.Encrypt( _key, _value, _tobase64 ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.RsaEncrypt.Encrypt( _key, _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RsaEncrypt.Encrypt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Decrypt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - bool _frombase64 = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = BF.RsaEncrypt.Decrypt( _key, _value, _frombase64 ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - - var gen_ret = BF.RsaEncrypt.Decrypt( _key, _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.RsaEncrypt.Decrypt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertFromPemPublicKey_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _pemFileConent = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.RsaEncrypt.ConvertFromPemPublicKey( _pemFileConent ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SDKManagerWrap.cs b/Assets/XLua/Gen/BF_SDKManagerWrap.cs deleted file mode 100644 index b9d43ce0e..000000000 --- a/Assets/XLua/Gen/BF_SDKManagerWrap.cs +++ /dev/null @@ -1,283 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSDKManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SDKManager); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 5, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLanguage", _m_GetLanguage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTimeZone", _m_GetTimeZone); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BFLoginSDKMgr", _g_get_BFLoginSDKMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BFPaySDKMgr", _g_get_BFPaySDKMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IosPaySDKMgr", _g_get_IosPaySDKMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BFNativeSDKMgr", _g_get_BFNativeSDKMgr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BFThirdReportSDKMgr", _g_get_BFThirdReportSDKMgr); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.SDKManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.SDKManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLanguage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetLanguage( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTimeZone(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetTimeZone( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BFLoginSDKMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BFLoginSDKMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BFPaySDKMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BFPaySDKMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IosPaySDKMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.IosPaySDKMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BFNativeSDKMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BFNativeSDKMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BFThirdReportSDKMgr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SDKManager gen_to_be_invoked = (BF.SDKManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BFThirdReportSDKMgr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SafeAreaManagerWrap.cs b/Assets/XLua/Gen/BF_SafeAreaManagerWrap.cs deleted file mode 100644 index 1b40c10b0..000000000 --- a/Assets/XLua/Gen/BF_SafeAreaManagerWrap.cs +++ /dev/null @@ -1,149 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSafeAreaManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SafeAreaManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSafeArea", _m_GetSafeArea_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetNotchScreenHeight", _m_GetNotchScreenHeight_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.SafeAreaManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.SafeAreaManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSafeArea_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.SafeAreaManager.GetSafeArea( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenHeight_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.SafeAreaManager.GetNotchScreenHeight( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.SafeAreaManager.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ScrollRectBaseOldWrap.cs b/Assets/XLua/Gen/BF_ScrollRectBaseOldWrap.cs deleted file mode 100644 index b741a80c3..000000000 --- a/Assets/XLua/Gen/BF_ScrollRectBaseOldWrap.cs +++ /dev/null @@ -1,2061 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFScrollRectBaseOldWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ScrollRectBaseOld); - Utils.BeginObjectRegister(type, L, translator, 0, 34, 33, 26); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnvalueChangedFunc", _m_AddOnvalueChangedFunc); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnInstantiateCellAction", _m_AddOnInstantiateCellAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRefreshAction", _m_AddRefreshAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSetSelectedAction", _m_AddSetSelectedAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTotalCount", _m_GetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSelectedIndex", _m_GetSelectedIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCell", _m_AddCell); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsNotFull", _m_IsNotFull); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCell", _m_RemoveCell); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCells", _m_ClearCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshRealShowIndex", _m_RefreshRealShowIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScrollToCellImmediately", _m_ScrollToCellImmediately); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScrollToCell", _m_ScrollToCell); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCellsFromEnd", _m_RefillCellsFromEnd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefiilCellsFromEndForFrame", _m_RefiilCellsFromEndForFrame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCellsForFrame", _m_RefillCellsForFrame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsActive", _m_IsActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopMovement", _m_StopMovement); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnScroll", _m_OnScroll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInitializePotentialDrag", _m_OnInitializePotentialDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HorizontalScrollbar", _g_get_HorizontalScrollbar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VerticalScrollbar", _g_get_VerticalScrollbar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HorizontalScrollbarVisibility", _g_get_HorizontalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VerticalScrollbarVisibility", _g_get_VerticalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HorizontalScrollbarSpacing", _g_get_HorizontalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VerticalScrollbarSpacing", _g_get_VerticalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "NormalizedPosition", _g_get_NormalizedPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HorizontalNormalizedPosition", _g_get_HorizontalNormalizedPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VerticalNormalizedPosition", _g_get_VerticalNormalizedPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bfCell", _g_get_bfCell); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useBar", _g_get_useBar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rubberScale", _g_get_rubberScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaInstantiateCellAction", _g_get_luaInstantiateCellAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaRefreshAction", _g_get_luaRefreshAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaSetSelectedAction", _g_get_luaSetSelectedAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "content", _g_get_content); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontal", _g_get_horizontal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertical", _g_get_vertical); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "movementType", _g_get_movementType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "elasticity", _g_get_elasticity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inertia", _g_get_inertia); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decelerationRate", _g_get_decelerationRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scrollSensitivity", _g_get_scrollSensitivity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewport", _g_get_viewport); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HorizontalScrollbar", _s_set_HorizontalScrollbar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "VerticalScrollbar", _s_set_VerticalScrollbar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HorizontalScrollbarVisibility", _s_set_HorizontalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "VerticalScrollbarVisibility", _s_set_VerticalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HorizontalScrollbarSpacing", _s_set_HorizontalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "VerticalScrollbarSpacing", _s_set_VerticalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "NormalizedPosition", _s_set_NormalizedPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HorizontalNormalizedPosition", _s_set_HorizontalNormalizedPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "VerticalNormalizedPosition", _s_set_VerticalNormalizedPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bfCell", _s_set_bfCell); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useBar", _s_set_useBar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rubberScale", _s_set_rubberScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaInstantiateCellAction", _s_set_luaInstantiateCellAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaRefreshAction", _s_set_luaRefreshAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaSetSelectedAction", _s_set_luaSetSelectedAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "content", _s_set_content); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontal", _s_set_horizontal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertical", _s_set_vertical); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "movementType", _s_set_movementType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "elasticity", _s_set_elasticity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inertia", _s_set_inertia); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decelerationRate", _s_set_decelerationRate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scrollSensitivity", _s_set_scrollSensitivity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "viewport", _s_set_viewport); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocity", _s_set_velocity); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.ScrollRectBaseOld does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnvalueChangedFunc(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - System.Action _func = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddOnvalueChangedFunc( _func ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnInstantiateCellAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddOnInstantiateCellAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRefreshAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddRefreshAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSetSelectedAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddSetSelectedAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - int _count = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTotalCount( _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetTotalCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSelected( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSelectedIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSelectedIndex( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCell(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AddCell( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsNotFull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsNotFull( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCell(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - bool _alignFlag = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.RemoveCell( _index, _alignFlag ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveCell( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectBaseOld.RemoveCell!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCells( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshRealShowIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshRealShowIndex( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScrollToCellImmediately(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - bool _alignFlag = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.ScrollToCellImmediately( _index, _alignFlag ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ScrollToCellImmediately( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectBaseOld.ScrollToCellImmediately!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScrollToCell(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _speed = (float)LuaAPI.lua_tonumber(L, 3); - bool _alignFlag = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.ScrollToCell( _index, _speed, _alignFlag ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _speed = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.ScrollToCell( _index, _speed ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectBaseOld.ScrollToCell!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCellsFromEnd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _offset = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RefillCellsFromEnd( _offset ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.RefillCellsFromEnd( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectBaseOld.RefillCellsFromEnd!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefiilCellsFromEndForFrame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _intervalFrame = LuaAPI.xlua_tointeger(L, 2); - int _offset = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RefiilCellsFromEndForFrame( _intervalFrame, _offset ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intervalFrame = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RefiilCellsFromEndForFrame( _intervalFrame ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectBaseOld.RefiilCellsFromEndForFrame!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RefillCells( _index ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.RefillCells( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectBaseOld.RefillCells!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCellsForFrame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _intervalFrame = LuaAPI.xlua_tointeger(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RefillCellsForFrame( _intervalFrame, _index ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intervalFrame = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RefillCellsForFrame( _intervalFrame ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectBaseOld.RefillCellsForFrame!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _executing;translator.Get(L, 2, out _executing); - - gen_to_be_invoked.Rebuild( _executing ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsActive( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopMovement(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopMovement( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnScroll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _data = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnScroll( _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnInitializePotentialDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnInitializePotentialDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HorizontalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.HorizontalScrollbar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VerticalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.VerticalScrollbar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HorizontalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.PushBFScrollRectBaseOldScrollbarVisibility(L, gen_to_be_invoked.HorizontalScrollbarVisibility); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VerticalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.PushBFScrollRectBaseOldScrollbarVisibility(L, gen_to_be_invoked.VerticalScrollbarVisibility); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HorizontalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.HorizontalScrollbarSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VerticalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.VerticalScrollbarSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_NormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.NormalizedPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HorizontalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.HorizontalNormalizedPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VerticalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.VerticalNormalizedPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bfCell); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useBar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useBar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rubberScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rubberScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaInstantiateCellAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaInstantiateCellAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaRefreshAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaRefreshAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaSetSelectedAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaSetSelectedAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_content(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.content); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.horizontal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.vertical); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_movementType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.PushBFScrollRectBaseOldMovementType(L, gen_to_be_invoked.movementType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_elasticity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.elasticity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inertia(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.inertia); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decelerationRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.decelerationRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scrollSensitivity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scrollSensitivity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_viewport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.viewport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HorizontalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HorizontalScrollbar = (UnityEngine.UI.Scrollbar)translator.GetObject(L, 2, typeof(UnityEngine.UI.Scrollbar)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_VerticalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.VerticalScrollbar = (UnityEngine.UI.Scrollbar)translator.GetObject(L, 2, typeof(UnityEngine.UI.Scrollbar)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HorizontalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - BF.ScrollRectBaseOld.ScrollbarVisibility gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.HorizontalScrollbarVisibility = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_VerticalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - BF.ScrollRectBaseOld.ScrollbarVisibility gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.VerticalScrollbarVisibility = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HorizontalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HorizontalScrollbarSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_VerticalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.VerticalScrollbarSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_NormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.NormalizedPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HorizontalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HorizontalNormalizedPosition = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_VerticalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.VerticalNormalizedPosition = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bfCell = (BF.BFCell)translator.GetObject(L, 2, typeof(BF.BFCell)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useBar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useBar = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rubberScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rubberScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaInstantiateCellAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaInstantiateCellAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaRefreshAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaRefreshAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaSetSelectedAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaSetSelectedAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_content(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.content = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.horizontal = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vertical = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_movementType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - BF.ScrollRectBaseOld.MovementType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.movementType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_elasticity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.elasticity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inertia(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.inertia = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decelerationRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decelerationRate = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scrollSensitivity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scrollSensitivity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_viewport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.viewport = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectBaseOld gen_to_be_invoked = (BF.ScrollRectBaseOld)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ScrollRectCenterControllerWrap.cs b/Assets/XLua/Gen/BF_ScrollRectCenterControllerWrap.cs deleted file mode 100644 index 83477abd4..000000000 --- a/Assets/XLua/Gen/BF_ScrollRectCenterControllerWrap.cs +++ /dev/null @@ -1,1299 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFScrollRectCenterControllerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ScrollRectCenterController); - Utils.BeginObjectRegister(type, L, translator, 0, 24, 16, 16); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnInstantiateCellAction", _m_AddOnInstantiateCellAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRefreshAction", _m_AddRefreshAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSetSelectedAction", _m_AddSetSelectedAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnCenterAction", _m_AddOnCenterAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnLeaveCenterAction", _m_AddOnLeaveCenterAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnBeginDragAction", _m_AddOnBeginDragAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOnEndDragAction", _m_AddOnEndDragAction); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitComponent", _m_InitComponent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdatePositionVer", _m_OnUpdatePositionVer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdatePositionHor", _m_OnUpdatePositionHor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdateItemCenter", _m_SetUpdateItemCenter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveLeft", _m_MoveLeft); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveRight", _m_MoveRight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveTo", _m_MoveTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTotalCount", _m_SetTotalCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScaleRatio", _m_SetScaleRatio); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefillCells", _m_RefillCells); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshAll", _m_RefreshAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSelectedIndex", _m_GetSelectedIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelected", _m_SetSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetCenterIndex", _m_ResetCenterIndex); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bfCell", _g_get_bfCell); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "centerTransform", _g_get_centerTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDrag", _g_get_isDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetPosition", _g_get_targetPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastDragPoint", _g_get_lastDragPoint); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "moveToImmediately", _g_get_moveToImmediately); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "impactScaleRang", _g_get_impactScaleRang); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellScrollScaleType", _g_get_CellScrollScaleType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellScrollScaleDistance", _g_get_CellScrollScaleDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaRefreshAction", _g_get_luaRefreshAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaInstantiateCellAction", _g_get_luaInstantiateCellAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaSetSelectedAction", _g_get_luaSetSelectedAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaOnCenterAction", _g_get_luaOnCenterAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaOnLeaveCenterAction", _g_get_luaOnLeaveCenterAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaOnBeginDragAction", _g_get_luaOnBeginDragAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaOnEndDragAction", _g_get_luaOnEndDragAction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bfCell", _s_set_bfCell); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "centerTransform", _s_set_centerTransform); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isDrag", _s_set_isDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetPosition", _s_set_targetPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastDragPoint", _s_set_lastDragPoint); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "moveToImmediately", _s_set_moveToImmediately); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "impactScaleRang", _s_set_impactScaleRang); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellScrollScaleType", _s_set_CellScrollScaleType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellScrollScaleDistance", _s_set_CellScrollScaleDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaRefreshAction", _s_set_luaRefreshAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaInstantiateCellAction", _s_set_luaInstantiateCellAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaSetSelectedAction", _s_set_luaSetSelectedAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaOnCenterAction", _s_set_luaOnCenterAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaOnLeaveCenterAction", _s_set_luaOnLeaveCenterAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaOnBeginDragAction", _s_set_luaOnBeginDragAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaOnEndDragAction", _s_set_luaOnEndDragAction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.ScrollRectCenterController(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectCenterController constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnInstantiateCellAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddOnInstantiateCellAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRefreshAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddRefreshAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSetSelectedAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddSetSelectedAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnCenterAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddOnCenterAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnLeaveCenterAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddOnLeaveCenterAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnBeginDragAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddOnBeginDragAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOnEndDragAction(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddOnEndDragAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitComponent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitComponent( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdatePositionVer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnUpdatePositionVer( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdatePositionHor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnUpdatePositionHor( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdateItemCenter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetUpdateItemCenter( _index, _immediately ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetUpdateItemCenter( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectCenterController.SetUpdateItemCenter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveLeft(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.MoveLeft( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveRight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.MoveRight( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - bool _immediately = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.MoveTo( _index, _immediately ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.MoveTo( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectCenterController.MoveTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTotalCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - int _totalCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTotalCount( _totalCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetScaleRatio(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - float _ratio = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetScaleRatio( _ratio ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefillCells(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - int _centerIndex = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RefillCells( _centerIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSelectedIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSelectedIndex( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSelected( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetCenterIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetCenterIndex( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bfCell); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_centerTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.centerTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.targetPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lastDragPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lastDragPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_moveToImmediately(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.moveToImmediately); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_impactScaleRang(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.impactScaleRang); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CellScrollScaleType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.CellScrollScaleType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CellScrollScaleDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CellScrollScaleDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaRefreshAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaRefreshAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaInstantiateCellAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaInstantiateCellAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaSetSelectedAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaSetSelectedAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaOnCenterAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaOnCenterAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaOnLeaveCenterAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaOnLeaveCenterAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaOnBeginDragAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaOnBeginDragAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_luaOnEndDragAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.luaOnEndDragAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bfCell(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bfCell = (BF.BFCell)translator.GetObject(L, 2, typeof(BF.BFCell)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_centerTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.centerTransform = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isDrag = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetPosition = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lastDragPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lastDragPoint = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_moveToImmediately(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.moveToImmediately = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_impactScaleRang(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.impactScaleRang = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CellScrollScaleType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CellScrollScaleType = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CellScrollScaleDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CellScrollScaleDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaRefreshAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaRefreshAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaInstantiateCellAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaInstantiateCellAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaSetSelectedAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaSetSelectedAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaOnCenterAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaOnCenterAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaOnLeaveCenterAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaOnLeaveCenterAction = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaOnBeginDragAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaOnBeginDragAction = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_luaOnEndDragAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenterController gen_to_be_invoked = (BF.ScrollRectCenterController)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.luaOnEndDragAction = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ScrollRectCenterWrap.cs b/Assets/XLua/Gen/BF_ScrollRectCenterWrap.cs deleted file mode 100644 index 501b59d67..000000000 --- a/Assets/XLua/Gen/BF_ScrollRectCenterWrap.cs +++ /dev/null @@ -1,99 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFScrollRectCenterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ScrollRectCenter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scrollRectCenterController", _g_get_scrollRectCenterController); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.ScrollRectCenter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.ScrollRectCenter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scrollRectCenterController(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ScrollRectCenter gen_to_be_invoked = (BF.ScrollRectCenter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.scrollRectCenterController); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ShowDebugTextWrap.cs b/Assets/XLua/Gen/BF_ShowDebugTextWrap.cs deleted file mode 100644 index 922d9f82d..000000000 --- a/Assets/XLua/Gen/BF_ShowDebugTextWrap.cs +++ /dev/null @@ -1,141 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFShowDebugTextWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ShowDebugText); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCallback", _m_AddCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCallback", _m_RemoveCallback); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.ShowDebugText(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.ShowDebugText constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ShowDebugText gen_to_be_invoked = (BF.ShowDebugText)translator.FastGetCSObj(L, 1); - - - - { - System.Func _func = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddCallback( _func ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.ShowDebugText gen_to_be_invoked = (BF.ShowDebugText)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveCallback( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_ShowFPSWrap.cs b/Assets/XLua/Gen/BF_ShowFPSWrap.cs deleted file mode 100644 index 30908adbf..000000000 --- a/Assets/XLua/Gen/BF_ShowFPSWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFShowFPSWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.ShowFPS); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "f_UpdateInterval", _g_get_f_UpdateInterval); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "f_UpdateInterval", _s_set_f_UpdateInterval); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.ShowFPS(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.ShowFPS constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_f_UpdateInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ShowFPS gen_to_be_invoked = (BF.ShowFPS)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.f_UpdateInterval); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_f_UpdateInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.ShowFPS gen_to_be_invoked = (BF.ShowFPS)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.f_UpdateInterval = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SimpleAtlasWrap.cs b/Assets/XLua/Gen/BF_SimpleAtlasWrap.cs deleted file mode 100644 index 4ebf21c38..000000000 --- a/Assets/XLua/Gen/BF_SimpleAtlasWrap.cs +++ /dev/null @@ -1,317 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSimpleAtlasWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SimpleAtlas); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSprite", _m_AddSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveSprite", _m_RemoveSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveNullSprite", _m_RemoveNullSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCount", _m_GetCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSprite", _m_GetSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpriteList", _m_GetSpriteList); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.SimpleAtlas(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.SimpleAtlas constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Sprite _sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - var gen_ret = gen_to_be_invoked.AddSprite( _sprite ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Sprite _sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - gen_to_be_invoked.RemoveSprite( _sprite ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveNullSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveNullSprite( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Sprite _sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - var gen_ret = gen_to_be_invoked.Contains( _sprite ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSprite( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpriteList(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SimpleAtlas gen_to_be_invoked = (BF.SimpleAtlas)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSpriteList( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SkillSectorMeshWrap.cs b/Assets/XLua/Gen/BF_SkillSectorMeshWrap.cs deleted file mode 100644 index f260f41b9..000000000 --- a/Assets/XLua/Gen/BF_SkillSectorMeshWrap.cs +++ /dev/null @@ -1,236 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSkillSectorMeshWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SkillSectorMesh); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshMesh", _m_RefreshMesh); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Radius", _g_get_Radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InnerRadius", _g_get_InnerRadius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AngleDegree", _g_get_AngleDegree); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Segments", _g_get_Segments); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Radius", _s_set_Radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "InnerRadius", _s_set_InnerRadius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AngleDegree", _s_set_AngleDegree); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Segments", _s_set_Segments); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.SkillSectorMesh(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.SkillSectorMesh constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshMesh( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InnerRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.InnerRadius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AngleDegree(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AngleDegree); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Segments(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Segments); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_InnerRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.InnerRadius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AngleDegree(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AngleDegree = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Segments(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SkillSectorMesh gen_to_be_invoked = (BF.SkillSectorMesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Segments = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SocketChannelHelperWrap.cs b/Assets/XLua/Gen/BF_SocketChannelHelperWrap.cs deleted file mode 100644 index 84d8bdf2e..000000000 --- a/Assets/XLua/Gen/BF_SocketChannelHelperWrap.cs +++ /dev/null @@ -1,297 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSocketChannelHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SocketChannelHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRc4Encrypt", _m_SetRc4Encrypt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Shutdown", _m_Shutdown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnPack", _m_UnPack); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Serialize", _m_Serialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DeserializeHeader", _m_DeserializeHeader); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HeaderLength", _g_get_HeaderLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InfoLength", _g_get_InfoLength); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DeCompressBuffer", _m_DeCompressBuffer_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isLittleEndian = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = new BF.SocketChannelHelper(_isLittleEndian); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannelHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRc4Encrypt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelHelper gen_to_be_invoked = (BF.SocketChannelHelper)translator.FastGetCSObj(L, 1); - - - - { - BF.Rc4Encrypt _Rc4Encrypt = (BF.Rc4Encrypt)translator.GetObject(L, 2, typeof(BF.Rc4Encrypt)); - - gen_to_be_invoked.SetRc4Encrypt( _Rc4Encrypt ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Shutdown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelHelper gen_to_be_invoked = (BF.SocketChannelHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Shutdown( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnPack(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelHelper gen_to_be_invoked = (BF.SocketChannelHelper)translator.FastGetCSObj(L, 1); - - - - { - byte[] _body = LuaAPI.lua_tobytes(L, 2); - uint _group; - int _cmd; - - var gen_ret = gen_to_be_invoked.UnPack( ref _body, out _group, out _cmd ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushstring(L, _body); - - LuaAPI.xlua_pushuint(L, _group); - - LuaAPI.xlua_pushinteger(L, _cmd); - - - - - return 4; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeCompressBuffer_xlua_st_(RealStatePtr L) - { - try { - - - - - { - byte[] _byteArray = LuaAPI.lua_tobytes(L, 1); - - var gen_ret = BF.SocketChannelHelper.DeCompressBuffer( _byteArray ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelHelper gen_to_be_invoked = (BF.SocketChannelHelper)translator.FastGetCSObj(L, 1); - - - - { - BF.SocketChannel.NetPack _pack = (BF.SocketChannel.NetPack)translator.GetObject(L, 2, typeof(BF.SocketChannel.NetPack)); - System.IO.MemoryStream _destination = (System.IO.MemoryStream)translator.GetObject(L, 3, typeof(System.IO.MemoryStream)); - - var gen_ret = gen_to_be_invoked.Serialize( _pack, _destination ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeserializeHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelHelper gen_to_be_invoked = (BF.SocketChannelHelper)translator.FastGetCSObj(L, 1); - - - - { - BF.ICircularBuffer _receiveBuffer = (BF.ICircularBuffer)translator.GetObject(L, 2, typeof(BF.ICircularBuffer)); - - var gen_ret = gen_to_be_invoked.DeserializeHeader( _receiveBuffer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HeaderLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannelHelper gen_to_be_invoked = (BF.SocketChannelHelper)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.HeaderLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InfoLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannelHelper gen_to_be_invoked = (BF.SocketChannelHelper)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.InfoLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SocketChannelManagerWrap.cs b/Assets/XLua/Gen/BF_SocketChannelManagerWrap.cs deleted file mode 100644 index ed0e13e09..000000000 --- a/Assets/XLua/Gen/BF_SocketChannelManagerWrap.cs +++ /dev/null @@ -1,353 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSocketChannelManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SocketChannelManager); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasSocketChannel", _m_HasSocketChannel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSocketChannel", _m_GetSocketChannel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllSocketChannels", _m_GetAllSocketChannels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSocketChannel", _m_TryGetSocketChannel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateSocketChannel", _m_CreateSocketChannel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestroySocketChannel", _m_DestroySocketChannel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Shutdown", _m_Shutdown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SocketChannelCount", _g_get_SocketChannelCount); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.SocketChannelManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannelManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasSocketChannel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasSocketChannel( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSocketChannel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetSocketChannel( _name ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllSocketChannels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAllSocketChannels( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetSocketChannel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.TryGetSocketChannel( _name ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateSocketChannel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - BF.ISocketChannelHelper _socketChannelHelper = (BF.ISocketChannelHelper)translator.GetObject(L, 3, typeof(BF.ISocketChannelHelper)); - - var gen_ret = gen_to_be_invoked.CreateSocketChannel( _name, _socketChannelHelper ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - string _name = LuaAPI.lua_tostring(L, 2); - BF.ISocketChannelHelper _socketChannelHelper = (BF.ISocketChannelHelper)translator.GetObject(L, 3, typeof(BF.ISocketChannelHelper)); - System.Action _callback = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.CreateSocketChannel( _name, _socketChannelHelper, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannelManager.CreateSocketChannel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DestroySocketChannel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.DestroySocketChannel( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Shutdown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Shutdown( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - - - - { - float _elapseSeconds = (float)LuaAPI.lua_tonumber(L, 2); - float _realElapseSeconds = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Update( _elapseSeconds, _realElapseSeconds ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SocketChannelCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannelManager gen_to_be_invoked = (BF.SocketChannelManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.SocketChannelCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SocketChannelWrap.cs b/Assets/XLua/Gen/BF_SocketChannelWrap.cs deleted file mode 100644 index 1296d8dc9..000000000 --- a/Assets/XLua/Gen/BF_SocketChannelWrap.cs +++ /dev/null @@ -1,870 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSocketChannelWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SocketChannel); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 9, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConnectWithIp", _m_ConnectWithIp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConnectWithDomainName", _m_ConnectWithDomainName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Connect", _m_Connect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendRaw", _m_SendRaw); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessSend", _m_ProcessSend); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessReceive", _m_ProcessReceive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnConnectedListener", _m_AddLuaOnConnectedListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnDisconnectListener", _m_AddLuaOnDisconnectListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnReceiveListener", _m_AddLuaOnReceiveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearLuaOnReceiveListener", _m_ClearLuaOnReceiveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLuaOnErrorListener", _m_AddLuaOnErrorListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Close", _m_Close); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Shutdown", _m_Shutdown); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnConnected", _e_OnConnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDisconnected", _e_OnDisconnected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnReceive", _e_OnReceive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnError", _e_OnError); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Name", _g_get_Name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ProcessReceiveCountPerFrame", _g_get_ProcessReceiveCountPerFrame); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConnectIP", _g_get_ConnectIP); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Socket", _g_get_Socket); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsConnected", _g_get_IsConnected); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "NetType", _g_get_NetType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HeartBeatInterval", _g_get_HeartBeatInterval); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HeartBeatWaitSeconds", _g_get_HeartBeatWaitSeconds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HeartBeatMissCount", _g_get_HeartBeatMissCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ProcessReceiveCountPerFrame", _s_set_ProcessReceiveCountPerFrame); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HeartBeatInterval", _s_set_HeartBeatInterval); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRandomString", _m_GetRandomString_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - BF.ISocketChannelHelper _channelHelper = (BF.ISocketChannelHelper)translator.GetObject(L, 3, typeof(BF.ISocketChannelHelper)); - - var gen_ret = new BF.SocketChannel(_name, _channelHelper); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannel constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConnectWithIp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - string _ip = LuaAPI.lua_tostring(L, 2); - int _port = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.ConnectWithIp( _ip, _port ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConnectWithDomainName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - string _domainName = LuaAPI.lua_tostring(L, 2); - int _port = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.ConnectWithDomainName( _domainName, _port ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Connect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - System.Net.IPAddress _ipAddress = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _port = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Connect( _ipAddress, _port ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Send(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Send( ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - byte[] _bytes = LuaAPI.lua_tobytes(L, 2); - uint _group = LuaAPI.xlua_touint(L, 3); - byte _cmd = (byte)LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.Send( _bytes, _group, _cmd ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannel.Send!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendRaw(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - byte[] _bytes = LuaAPI.lua_tobytes(L, 2); - byte _group = (byte)LuaAPI.xlua_tointeger(L, 3); - byte _cmd = (byte)LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SendRaw( _bytes, _group, _cmd ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - float _elapseSeconds = (float)LuaAPI.lua_tonumber(L, 2); - float _realElapseSeconds = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Update( _elapseSeconds, _realElapseSeconds ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ProcessSend(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ProcessSend( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ProcessReceive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ProcessReceive( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnConnectedListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddLuaOnConnectedListener( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnDisconnectListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddLuaOnDisconnectListener( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnReceiveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnReceiveListener( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearLuaOnReceiveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearLuaOnReceiveListener( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddLuaOnErrorListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - System.Action _luaFunc = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddLuaOnErrorListener( _luaFunc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Close(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Close( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Shutdown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Shutdown( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRandomString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _len = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = BF.SocketChannel.GetRandomString( _len ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ProcessReceiveCountPerFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ProcessReceiveCountPerFrame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ConnectIP(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ConnectIP); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Socket(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Socket); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsConnected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsConnected); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_NetType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.NetType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HeartBeatInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.HeartBeatInterval); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HeartBeatWaitSeconds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.HeartBeatWaitSeconds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HeartBeatMissCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.HeartBeatMissCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ProcessReceiveCountPerFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ProcessReceiveCountPerFrame = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HeartBeatInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HeartBeatInterval = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnConnected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnConnected += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnConnected -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannel.OnConnected!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnDisconnected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnDisconnected += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnDisconnected -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannel.OnDisconnected!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnReceive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnReceive += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnReceive -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannel.OnReceive!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnError(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BF.SocketChannel gen_to_be_invoked = (BF.SocketChannel)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnError += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnError -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannel.OnError!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/BF_SocketChannel_NetPackWrap.cs b/Assets/XLua/Gen/BF_SocketChannel_NetPackWrap.cs deleted file mode 100644 index 014308e19..000000000 --- a/Assets/XLua/Gen/BF_SocketChannel_NetPackWrap.cs +++ /dev/null @@ -1,361 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSocketChannelNetPackWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SocketChannel.NetPack); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "group", _g_get_group); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cmd", _g_get_cmd); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "seq", _g_get_seq); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "data", _g_get_data); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "packDataLength", _g_get_packDataLength); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "group", _s_set_group); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cmd", _s_set_cmd); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "seq", _s_set_seq); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "data", _s_set_data); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "packDataLength", _s_set_packDataLength); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateNetPack", _m_CreateNetPack_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RecycleNetPack", _m_RecycleNetPack_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - int _s = LuaAPI.xlua_tointeger(L, 2); - uint _g = LuaAPI.xlua_touint(L, 3); - byte _c = (byte)LuaAPI.xlua_tointeger(L, 4); - byte[] _d = LuaAPI.lua_tobytes(L, 5); - - var gen_ret = new BF.SocketChannel.NetPack(_s, _g, _c, _d); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.SocketChannel.NetPack constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - - - - { - int _s = LuaAPI.xlua_tointeger(L, 2); - uint _g = LuaAPI.xlua_touint(L, 3); - byte _c = (byte)LuaAPI.xlua_tointeger(L, 4); - byte[] _d = LuaAPI.lua_tobytes(L, 5); - - gen_to_be_invoked.Init( _s, _g, _c, _d ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateNetPack_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _seq = LuaAPI.xlua_tointeger(L, 1); - uint _group = LuaAPI.xlua_touint(L, 2); - byte _cmd = (byte)LuaAPI.xlua_tointeger(L, 3); - byte[] _data = LuaAPI.lua_tobytes(L, 4); - - var gen_ret = BF.SocketChannel.NetPack.CreateNetPack( _seq, _group, _cmd, _data ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecycleNetPack_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - BF.SocketChannel.NetPack _pack = (BF.SocketChannel.NetPack)translator.GetObject(L, 1, typeof(BF.SocketChannel.NetPack)); - - BF.SocketChannel.NetPack.RecycleNetPack( _pack ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_group(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.group); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cmd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cmd); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_seq(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.seq); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_packDataLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.packDataLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_group(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.group = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cmd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cmd = (byte)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_seq(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.seq = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.data = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_packDataLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.SocketChannel.NetPack gen_to_be_invoked = (BF.SocketChannel.NetPack)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.packDataLength = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SocketManagerWrap.cs b/Assets/XLua/Gen/BF_SocketManagerWrap.cs deleted file mode 100644 index 9c616ab46..000000000 --- a/Assets/XLua/Gen/BF_SocketManagerWrap.cs +++ /dev/null @@ -1,296 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSocketManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SocketManager); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSocketClient", _m_TryGetSocketClient); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateSocketClient", _m_CreateSocketClient); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestroySocketChannel", _m_DestroySocketChannel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Shutdown", _m_Shutdown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.SocketManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.SocketManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketManager gen_to_be_invoked = (BF.SocketManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketManager gen_to_be_invoked = (BF.SocketManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetSocketClient(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketManager gen_to_be_invoked = (BF.SocketManager)translator.FastGetCSObj(L, 1); - - - - { - string _channelName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.TryGetSocketClient( _channelName ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateSocketClient(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketManager gen_to_be_invoked = (BF.SocketManager)translator.FastGetCSObj(L, 1); - - - - { - string _channelName = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.CreateSocketClient( _channelName, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DestroySocketChannel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketManager gen_to_be_invoked = (BF.SocketManager)translator.FastGetCSObj(L, 1); - - - - { - string _channelName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.DestroySocketChannel( _channelName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Shutdown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketManager gen_to_be_invoked = (BF.SocketManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Shutdown( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SocketManager gen_to_be_invoked = (BF.SocketManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_SoundManagerWrap.cs b/Assets/XLua/Gen/BF_SoundManagerWrap.cs deleted file mode 100644 index bef76a9b3..000000000 --- a/Assets/XLua/Gen/BF_SoundManagerWrap.cs +++ /dev/null @@ -1,208 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFSoundManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.SoundManager); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getMusicAudioSource", _m_getMusicAudioSource); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addEffectAudioSource", _m_addEffectAudioSource); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "clearAudioSource", _m_clearAudioSource); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.SoundManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.SoundManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SoundManager gen_to_be_invoked = (BF.SoundManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getMusicAudioSource(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SoundManager gen_to_be_invoked = (BF.SoundManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getMusicAudioSource( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addEffectAudioSource(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SoundManager gen_to_be_invoked = (BF.SoundManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.addEffectAudioSource( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_clearAudioSource(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.SoundManager gen_to_be_invoked = (BF.SoundManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.clearAudioSource( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_StringConstWrap.cs b/Assets/XLua/Gen/BF_StringConstWrap.cs deleted file mode 100644 index de9370dd8..000000000 --- a/Assets/XLua/Gen/BF_StringConstWrap.cs +++ /dev/null @@ -1,121 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFStringConstWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.StringConst); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 1, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScrollRectCellName", _m_GetScrollRectCellName_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CACHE_ROOT_NAME", BF.StringConst.CACHE_ROOT_NAME); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SCROLL_RECT_CELL_NAME", _g_get_SCROLL_RECT_CELL_NAME); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SCROLL_RECT_CELL_NAME", _s_set_SCROLL_RECT_CELL_NAME); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.StringConst does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetScrollRectCellName_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _index = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = BF.StringConst.GetScrollRectCellName( _index ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SCROLL_RECT_CELL_NAME(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, BF.StringConst.SCROLL_RECT_CELL_NAME); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SCROLL_RECT_CELL_NAME(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - BF.StringConst.SCROLL_RECT_CELL_NAME = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TaskManagerWrap.cs b/Assets/XLua/Gen/BF_TaskManagerWrap.cs deleted file mode 100644 index 21dbaac0c..000000000 --- a/Assets/XLua/Gen/BF_TaskManagerWrap.cs +++ /dev/null @@ -1,312 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTaskManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TaskManager); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMono", _m_SetMono); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTask", _m_AddTask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopTask", _m_StopTask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveTask", _m_RemoveTask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EasyTimer", _m_EasyTimer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TaskCount", _g_get_TaskCount); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.TaskManager does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.TaskManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMono(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); - - gen_to_be_invoked.SetMono( _mono ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.IEnumerator _c = (System.Collections.IEnumerator)translator.GetObject(L, 2, typeof(System.Collections.IEnumerator)); - - var gen_ret = gen_to_be_invoked.AddTask( _c ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopTask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - - - - { - int _taskID = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.StopTask( _taskID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveTask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - - - - { - int _taskID = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveTask( _taskID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EasyTimer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - - - - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - System.Action _action = translator.GetDelegate(L, 3); - - gen_to_be_invoked.EasyTimer( _time, _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TaskCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TaskManager gen_to_be_invoked = (BF.TaskManager)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TaskCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TaskWrap.cs b/Assets/XLua/Gen/BF_TaskWrap.cs deleted file mode 100644 index 577225cc5..000000000 --- a/Assets/XLua/Gen/BF_TaskWrap.cs +++ /dev/null @@ -1,229 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTaskWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Task); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unpause", _m_Unpause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CallWrapper", _m_CallWrapper); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Running", _g_get_Running); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Paused", _g_get_Paused); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - int _taskID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.IEnumerator _c = (System.Collections.IEnumerator)translator.GetObject(L, 3, typeof(System.Collections.IEnumerator)); - - var gen_ret = new BF.Task(_taskID, _c); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.Task constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Task gen_to_be_invoked = (BF.Task)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Task gen_to_be_invoked = (BF.Task)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unpause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Task gen_to_be_invoked = (BF.Task)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Unpause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CallWrapper(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.Task gen_to_be_invoked = (BF.Task)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.CallWrapper( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Running(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Task gen_to_be_invoked = (BF.Task)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Running); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Paused(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.Task gen_to_be_invoked = (BF.Task)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Paused); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TimeLineItemWrap.cs b/Assets/XLua/Gen/BF_TimeLineItemWrap.cs deleted file mode 100644 index 913eace47..000000000 --- a/Assets/XLua/Gen/BF_TimeLineItemWrap.cs +++ /dev/null @@ -1,539 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTimeLineItemWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TimeLineItem); - Utils.BeginObjectRegister(type, L, translator, 0, 13, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FrameMove", _m_FrameMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterEvent", _m_RegisterEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Resume", _m_Resume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAndPlay", _m_ResetAndPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBindingObject", _m_GetBindingObject); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Binding", _m_Binding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnBinding", _m_UnBinding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearAllBinding", _m_ClearAllBinding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Duration", _g_get_Duration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onComplete", _g_get_onComplete); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onComplete", _s_set_onComplete); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.TimeLineItem(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Playables.PlayableDirector _pd = (UnityEngine.Playables.PlayableDirector)translator.GetObject(L, 2, typeof(UnityEngine.Playables.PlayableDirector)); - - var gen_ret = new BF.TimeLineItem(_pd); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimeLineItem constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FrameMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - double _delta = LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.FrameMove( _delta ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - double _time = LuaAPI.lua_tonumber(L, 2); - System.Action _e = translator.GetDelegate(L, 3); - - gen_to_be_invoked.RegisterEvent( _time, _e ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Resume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Resume( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - double _timePoint = LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Reset( _timePoint ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimeLineItem.Reset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetAndPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.ResetAndPlay( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - double _timePoint = LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.ResetAndPlay( _timePoint ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimeLineItem.ResetAndPlay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBindingObject(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - string _trackName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetBindingObject( _trackName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Binding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - string _trackName = LuaAPI.lua_tostring(L, 2); - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - - gen_to_be_invoked.Binding( _trackName, _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnBinding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - string _trackName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.UnBinding( _trackName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearAllBinding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearAllBinding( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onComplete); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimeLineItem gen_to_be_invoked = (BF.TimeLineItem)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onComplete = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TimeLineItem_FrameDataWrap.cs b/Assets/XLua/Gen/BF_TimeLineItem_FrameDataWrap.cs deleted file mode 100644 index 14b68c5b5..000000000 --- a/Assets/XLua/Gen/BF_TimeLineItem_FrameDataWrap.cs +++ /dev/null @@ -1,158 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTimeLineItemFrameDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TimeLineItem.FrameData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "e", _g_get_e); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "e", _s_set_e); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - double _t = LuaAPI.lua_tonumber(L, 2); - System.Action _a = translator.GetDelegate(L, 3); - - var gen_ret = new BF.TimeLineItem.FrameData(_t, _a); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.TimeLineItem.FrameData)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimeLineItem.FrameData constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimeLineItem.FrameData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_e(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimeLineItem.FrameData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.e); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimeLineItem.FrameData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.time = LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_e(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimeLineItem.FrameData gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.e = translator.GetDelegate(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TimeLineManagerWrap.cs b/Assets/XLua/Gen/BF_TimeLineManagerWrap.cs deleted file mode 100644 index a09ddbe5f..000000000 --- a/Assets/XLua/Gen/BF_TimeLineManagerWrap.cs +++ /dev/null @@ -1,668 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTimeLineManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TimeLineManager); - Utils.BeginObjectRegister(type, L, translator, 0, 18, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Load", _m_Load); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Binding", _m_Binding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unbinding", _m_Unbinding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearBinding", _m_ClearBinding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Resume", _m_Resume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAndPlay", _m_ResetAndPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterCompleteCallback", _m_RegisterCompleteCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterCallback", _m_RegisterCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTimelineTime", _m_GetTimelineTime); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.TimeLineManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimeLineManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.TimeLineManager.Create( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Destroy( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Load(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.Load( _tlObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.Unload( _tlObject ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Binding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - string _trackName = LuaAPI.lua_tostring(L, 3); - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); - - gen_to_be_invoked.Binding( _tlObject, _trackName, _obj ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unbinding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - string _trackName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.Unbinding( _tlObject, _trackName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearBinding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - gen_to_be_invoked.ClearBinding( _tlObject ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - gen_to_be_invoked.Play( _tlObject ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - gen_to_be_invoked.Pause( _tlObject ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Resume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - gen_to_be_invoked.Resume( _tlObject ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - gen_to_be_invoked.Stop( _tlObject ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - gen_to_be_invoked.Reset( _tlObject ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - double _timePoint = LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Reset( _tlObject, _timePoint ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimeLineManager.Reset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetAndPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - gen_to_be_invoked.ResetAndPlay( _tlObject ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - double _timePoint = LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.ResetAndPlay( _tlObject, _timePoint ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimeLineManager.ResetAndPlay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterCompleteCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - System.Action _action = translator.GetDelegate(L, 3); - - gen_to_be_invoked.RegisterCompleteCallback( _tlObject, _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - double _time = LuaAPI.lua_tonumber(L, 3); - System.Action _action = translator.GetDelegate(L, 4); - - gen_to_be_invoked.RegisterCallback( _tlObject, _time, _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTimelineTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimeLineManager gen_to_be_invoked = (BF.TimeLineManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _tlObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.GetTimelineTime( _tlObject ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TimelineEventItemWrap.cs b/Assets/XLua/Gen/BF_TimelineEventItemWrap.cs deleted file mode 100644 index 2c80a0818..000000000 --- a/Assets/XLua/Gen/BF_TimelineEventItemWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTimelineEventItemWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TimelineEventItem); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eventName", _g_get_eventName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eventHash", _g_get_eventHash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eventTime", _g_get_eventTime); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eventName", _s_set_eventName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eventHash", _s_set_eventHash); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eventTime", _s_set_eventTime); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(BF.TimelineEventItem)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimelineEventItem constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eventName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineEventItem gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.eventName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eventHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineEventItem gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.eventHash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eventTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineEventItem gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.eventTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eventName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineEventItem gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.eventName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eventHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineEventItem gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.eventHash = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eventTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineEventItem gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.eventTime = LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TimelineHelperWrap.cs b/Assets/XLua/Gen/BF_TimelineHelperWrap.cs deleted file mode 100644 index c615af370..000000000 --- a/Assets/XLua/Gen/BF_TimelineHelperWrap.cs +++ /dev/null @@ -1,444 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTimelineHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TimelineHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByName", _m_GetGameObjectByName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetListCount", _m_GetListCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObjectTypeByIndex", _m_GetObjectTypeByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashNameByIndex", _m_GetHashNameByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGameObjectByIndex", _m_GetGameObjectByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRootPrefabIndex", _m_GetRootPrefabIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEventListCount", _m_GetEventListCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEventHashNameByIndex", _m_GetEventHashNameByIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEventTimeByIndex", _m_GetEventTimeByIndex); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "prefabList", _g_get_prefabList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timelineEventList", _g_get_timelineEventList); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "prefabList", _s_set_prefabList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "duration", _s_set_duration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timelineEventList", _s_set_timelineEventList); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.TimelineHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimelineHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByName( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetListCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetListCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetObjectTypeByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetObjectTypeByIndex( _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashNameByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetHashNameByIndex( _index ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGameObjectByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetGameObjectByIndex( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRootPrefabIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetRootPrefabIndex( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEventListCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEventListCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEventHashNameByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetEventHashNameByIndex( _index ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEventTimeByIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetEventTimeByIndex( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_prefabList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.prefabList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timelineEventList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.timelineEventList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_prefabList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.prefabList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.duration = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timelineEventList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.TimelineHelper gen_to_be_invoked = (BF.TimelineHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.timelineEventList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TimelineSortingOderHelperWrap.cs b/Assets/XLua/Gen/BF_TimelineSortingOderHelperWrap.cs deleted file mode 100644 index 1ee853eda..000000000 --- a/Assets/XLua/Gen/BF_TimelineSortingOderHelperWrap.cs +++ /dev/null @@ -1,143 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTimelineSortingOderHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TimelineSortingOderHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSortingOrder", _m_SetSortingOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUIOrder", _m_SetUIOrder); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.TimelineSortingOderHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.TimelineSortingOderHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSortingOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineSortingOderHelper gen_to_be_invoked = (BF.TimelineSortingOderHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - int _order = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetSortingOrder( _uiOrder, _order ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUIOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TimelineSortingOderHelper gen_to_be_invoked = (BF.TimelineSortingOderHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetUIOrder( _uiOrder ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_TutorialClickAreaWrap.cs b/Assets/XLua/Gen/BF_TutorialClickAreaWrap.cs deleted file mode 100644 index 31bc195c1..000000000 --- a/Assets/XLua/Gen/BF_TutorialClickAreaWrap.cs +++ /dev/null @@ -1,286 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFTutorialClickAreaWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.TutorialClickArea); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTargetTransform", _m_SetTargetTransform); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTargetTransform", _m_ClearTargetTransform); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerEnter", _m_OnPointerEnter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerExit", _m_OnPointerExit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCancel", _m_OnCancel); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.TutorialClickArea(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.TutorialClickArea constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTargetTransform(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TutorialClickArea gen_to_be_invoked = (BF.TutorialClickArea)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Transform _target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.SetTargetTransform( _target ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearTargetTransform(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TutorialClickArea gen_to_be_invoked = (BF.TutorialClickArea)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearTargetTransform( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TutorialClickArea gen_to_be_invoked = (BF.TutorialClickArea)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TutorialClickArea gen_to_be_invoked = (BF.TutorialClickArea)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerUp( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerEnter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TutorialClickArea gen_to_be_invoked = (BF.TutorialClickArea)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerEnter( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerExit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TutorialClickArea gen_to_be_invoked = (BF.TutorialClickArea)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerExit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCancel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.TutorialClickArea gen_to_be_invoked = (BF.TutorialClickArea)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnCancel( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UICoordinateHelperWrap.cs b/Assets/XLua/Gen/BF_UICoordinateHelperWrap.cs deleted file mode 100644 index a867afa0b..000000000 --- a/Assets/XLua/Gen/BF_UICoordinateHelperWrap.cs +++ /dev/null @@ -1,233 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUICoordinateHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UICoordinateHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUICamera", _m_SetUICamera); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMainCamera", _m_SetMainCamera); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RectTransformScreenPointToLocalPointInRectangle", _m_RectTransformScreenPointToLocalPointInRectangle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WorldPointToLocalPointInRectangle", _m_WorldPointToLocalPointInRectangle); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalPointX", _g_get_LocalPointX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalPointY", _g_get_LocalPointY); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UICoordinateHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UICoordinateHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUICamera(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UICoordinateHelper gen_to_be_invoked = (BF.UICoordinateHelper)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.SetUICamera( _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMainCamera(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UICoordinateHelper gen_to_be_invoked = (BF.UICoordinateHelper)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.SetMainCamera( _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RectTransformScreenPointToLocalPointInRectangle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UICoordinateHelper gen_to_be_invoked = (BF.UICoordinateHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.RectTransformScreenPointToLocalPointInRectangle( _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WorldPointToLocalPointInRectangle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UICoordinateHelper gen_to_be_invoked = (BF.UICoordinateHelper)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.WorldPointToLocalPointInRectangle( _x, _y, _z ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LocalPointX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UICoordinateHelper gen_to_be_invoked = (BF.UICoordinateHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.LocalPointX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LocalPointY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UICoordinateHelper gen_to_be_invoked = (BF.UICoordinateHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.LocalPointY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UIDragEventWrap.cs b/Assets/XLua/Gen/BF_UIDragEventWrap.cs deleted file mode 100644 index c98df533f..000000000 --- a/Assets/XLua/Gen/BF_UIDragEventWrap.cs +++ /dev/null @@ -1,113 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUIDragEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UIDragEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UIDragEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UIDragEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDragEvent gen_to_be_invoked = (BF.UIDragEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UIDynamicBrightEffectWrap.cs b/Assets/XLua/Gen/BF_UIDynamicBrightEffectWrap.cs deleted file mode 100644 index 37956a961..000000000 --- a/Assets/XLua/Gen/BF_UIDynamicBrightEffectWrap.cs +++ /dev/null @@ -1,261 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUIDynamicBrightEffectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UIDynamicBrightEffect); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMarterial", _m_SetMarterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBright", _m_SetBright); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Brightness", _g_get_Brightness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Brighting", _g_get_Brighting); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectmat", _g_get_effectmat); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Brightness", _s_set_Brightness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectmat", _s_set_effectmat); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UIDynamicBrightEffect(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UIDynamicBrightEffect constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMarterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetMarterial( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBright(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _brightness = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetBright( _brightness ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.SetBright( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.UIDynamicBrightEffect.SetBright!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Brightness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Brightness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Brighting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Brighting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_effectmat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.effectmat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Brightness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Brightness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_effectmat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicBrightEffect gen_to_be_invoked = (BF.UIDynamicBrightEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.effectmat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UIDynamicShinyEffectWrap.cs b/Assets/XLua/Gen/BF_UIDynamicShinyEffectWrap.cs deleted file mode 100644 index 787f3cbaf..000000000 --- a/Assets/XLua/Gen/BF_UIDynamicShinyEffectWrap.cs +++ /dev/null @@ -1,415 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUIDynamicShinyEffectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UIDynamicShinyEffect); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMarterial", _m_SetMarterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRepeat", _m_SetRepeat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CancelRepeat", _m_CancelRepeat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Location", _g_get_Location); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Softness", _g_get_Softness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Highlight", _g_get_Highlight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Rotation", _g_get_Rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectmat", _g_get_effectmat); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Location", _s_set_Location); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Softness", _s_set_Softness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Highlight", _s_set_Highlight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Rotation", _s_set_Rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectmat", _s_set_effectmat); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UIDynamicShinyEffect(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UIDynamicShinyEffect constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMarterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetMarterial( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRepeat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - - - - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _intervalTime = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetRepeat( _duration, _intervalTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CancelRepeat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CancelRepeat( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - - - - { - float _durationParam = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Play( _durationParam ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Location(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Location); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Softness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Softness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Highlight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Highlight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_effectmat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.effectmat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Location(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Location = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Softness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Softness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Highlight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Highlight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Rotation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_effectmat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIDynamicShinyEffect gen_to_be_invoked = (BF.UIDynamicShinyEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.effectmat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UIEraserTextureWrap.cs b/Assets/XLua/Gen/BF_UIEraserTextureWrap.cs deleted file mode 100644 index a50811579..000000000 --- a/Assets/XLua/Gen/BF_UIEraserTextureWrap.cs +++ /dev/null @@ -1,349 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUIEraserTextureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UIEraserTexture); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTouchEventListener", _m_AddTouchEventListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveEventListener", _m_RemoveEventListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCancel", _m_OnCancel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsPos", _m_ContainsPos); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "brushScale", _g_get_brushScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eraseScale", _g_get_eraseScale); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "brushScale", _s_set_brushScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eraseScale", _s_set_eraseScale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UIEraserTexture(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UIEraserTexture constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTouchEventListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - - - - { - System.Action _func = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddTouchEventListener( _func ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveEventListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveEventListener( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerUp( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCancel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnCancel( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ContainsPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - - - - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.ContainsPos( _x, _y ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_brushScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.brushScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eraseScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.eraseScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_brushScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.brushScale = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eraseScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIEraserTexture gen_to_be_invoked = (BF.UIEraserTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.eraseScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UIHelperWrap.cs b/Assets/XLua/Gen/BF_UIHelperWrap.cs deleted file mode 100644 index e46a6bdf4..000000000 --- a/Assets/XLua/Gen/BF_UIHelperWrap.cs +++ /dev/null @@ -1,695 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUIHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UIHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 17, 5, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInit", _m_SetInit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHasInitDefaultNotchScreenHeight", _m_GetHasInitDefaultNotchScreenHeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenNodeCount", _m_GetNotchScreenNodeCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenNodeGameObject", _m_GetNotchScreenNodeGameObject); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenNodeAdjustHeight", _m_GetNotchScreenNodeAdjustHeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIsHaveNotchScreenNodeGameObject", _m_GetIsHaveNotchScreenNodeGameObject); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheAnchoredPosition", _m_CacheAnchoredPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheAnchorMin", _m_CacheAnchorMin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheAnchorMax", _m_CacheAnchorMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheOffsetMax", _m_CacheOffsetMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CacheOffsetMin", _m_CacheOffsetMin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOffsetMax", _m_SetOffsetMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOffsetMin", _m_SetOffsetMin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnchoredPosition", _m_SetAnchoredPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSortingOrder", _m_SetSortingOrder); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEffect", _m_AddEffect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveEffect", _m_RemoveEffect); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionX", _g_get_PositionX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionY", _g_get_PositionY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PositionZ", _g_get_PositionZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectList", _g_get_EffectList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "NotchScreenNodeList", _g_get_NotchScreenNodeList); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EffectList", _s_set_EffectList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "NotchScreenNodeList", _s_set_NotchScreenNodeList); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UIHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UIHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - bool _init = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetInit( _init ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHasInitDefaultNotchScreenHeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHasInitDefaultNotchScreenHeight( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenNodeCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNotchScreenNodeCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenNodeGameObject(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetNotchScreenNodeGameObject( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNotchScreenNodeAdjustHeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetNotchScreenNodeAdjustHeight( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIsHaveNotchScreenNodeGameObject(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetIsHaveNotchScreenNodeGameObject( _index ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheAnchoredPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheAnchoredPosition( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheAnchorMin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheAnchorMin( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheAnchorMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheAnchorMax( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheOffsetMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheOffsetMax( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CacheOffsetMin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.CacheOffsetMin( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOffsetMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetOffsetMax( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOffsetMin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetOffsetMin( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnchoredPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _x = (float)LuaAPI.lua_tonumber(L, 3); - float _y = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetAnchoredPosition( _index, _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSortingOrder(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - int _uiOrder = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSortingOrder( _uiOrder ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddEffect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - BF.BaseSortingOrderHelper _helper = (BF.BaseSortingOrderHelper)translator.GetObject(L, 2, typeof(BF.BaseSortingOrderHelper)); - int _uiOrder = LuaAPI.xlua_tointeger(L, 3); - int _order = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.AddEffect( _helper, _uiOrder, _order ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveEffect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - - - - { - BF.BaseSortingOrderHelper _helper = (BF.BaseSortingOrderHelper)translator.GetObject(L, 2, typeof(BF.BaseSortingOrderHelper)); - - gen_to_be_invoked.RemoveEffect( _helper ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PositionZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PositionZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EffectList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.EffectList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_NotchScreenNodeList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.NotchScreenNodeList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EffectList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EffectList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_NotchScreenNodeList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UIHelper gen_to_be_invoked = (BF.UIHelper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.NotchScreenNodeList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UISpineHelperWrap.cs b/Assets/XLua/Gen/BF_UISpineHelperWrap.cs deleted file mode 100644 index ecda6f8d4..000000000 --- a/Assets/XLua/Gen/BF_UISpineHelperWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUISpineHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UISpineHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reload", _m_Reload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAnimationKeyFrameTime", _m_GetAnimationKeyFrameTime); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UISpineHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UISpineHelper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UISpineHelper gen_to_be_invoked = (BF.UISpineHelper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reload( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAnimationKeyFrameTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UISpineHelper gen_to_be_invoked = (BF.UISpineHelper)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetAnimationKeyFrameTime( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UITouchEventWrap.cs b/Assets/XLua/Gen/BF_UITouchEventWrap.cs deleted file mode 100644 index 63fd73db7..000000000 --- a/Assets/XLua/Gen/BF_UITouchEventWrap.cs +++ /dev/null @@ -1,459 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUITouchEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UITouchEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTouchEventListener", _m_AddTouchEventListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveEventListener", _m_RemoveEventListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShowClickAnimation", _m_SetShowClickAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShowClickAnimation", _m_GetShowClickAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTouchEnable", _m_SetTouchEnable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopTouchAnimation", _m_StopTouchAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerEnter", _m_OnPointerEnter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerExit", _m_OnPointerExit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCancel", _m_OnCancel); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsShowClickAnimation", _g_get_IsShowClickAnimation); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsShowClickAnimation", _s_set_IsShowClickAnimation); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "disableClickEvent", _g_get_disableClickEvent); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "disableClickEvent", _s_set_disableClickEvent); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UITouchEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UITouchEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTouchEventListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - System.Action _func = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddTouchEventListener( _func ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveEventListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveEventListener( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetShowClickAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - bool _isShow = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetShowClickAnimation( _isShow ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetShowClickAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetShowClickAnimation( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTouchEnable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - bool _enable = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetTouchEnable( _enable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopTouchAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopTouchAnimation( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerUp( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerEnter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerEnter( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerExit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerExit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCancel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnCancel( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsShowClickAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsShowClickAnimation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_disableClickEvent(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, BF.UITouchEvent.disableClickEvent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsShowClickAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UITouchEvent gen_to_be_invoked = (BF.UITouchEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.IsShowClickAnimation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_disableClickEvent(RealStatePtr L) - { - try { - - BF.UITouchEvent.disableClickEvent = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UVAnimationGraphicWrap.cs b/Assets/XLua/Gen/BF_UVAnimationGraphicWrap.cs deleted file mode 100644 index d3ebfafaa..000000000 --- a/Assets/XLua/Gen/BF_UVAnimationGraphicWrap.cs +++ /dev/null @@ -1,207 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUVAnimationGraphicWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.UVAnimationGraphic); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MainSprite", _g_get_MainSprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellAmount", _g_get_CellAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Speed", _g_get_Speed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MainSprite", _s_set_MainSprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellAmount", _s_set_CellAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Speed", _s_set_Speed); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.UVAnimationGraphic(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.UVAnimationGraphic constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MainSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MainSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CellAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.CellAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Speed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MainSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MainSprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CellAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CellAmount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BF.UVAnimationGraphic gen_to_be_invoked = (BF.UVAnimationGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Speed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_UtilsWrap.cs b/Assets/XLua/Gen/BF_UtilsWrap.cs deleted file mode 100644 index 473bdaab6..000000000 --- a/Assets/XLua/Gen/BF_UtilsWrap.cs +++ /dev/null @@ -1,781 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFUtilsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.Utils); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 26, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFreeChar", _m_GetFreeChar_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetConfigChar", _m_GetConfigChar_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsNull", _m_IsNull_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTransformPath", _m_GetTransformPath_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAssetPathByFullPath", _m_GetAssetPathByFullPath_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RectTransformScreenPointToLocalPointInRectangle", _m_RectTransformScreenPointToLocalPointInRectangle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RectangleContainsScreenPoint", _m_RectangleContainsScreenPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "KillDOTween", _m_KillDOTween_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetDOTweenTimeScale", _m_SetDOTweenTimeScale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NameToLayer", _m_NameToLayer_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLayoutAlignment", _m_SetLayoutAlignment_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TransformPoint2World", _m_TransformPoint2World_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TransformWorld2Point", _m_TransformWorld2Point_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIP", _m_GetIP_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStringConfigPathList", _m_GetStringConfigPathList_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RayCast", _m_RayCast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BKDRHash", _m_BKDRHash_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ParseHtmlString", _m_ParseHtmlString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCurrentAnimationHash", _m_GetCurrentAnimationHash_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetEnvironmentTickCount", _m_GetEnvironmentTickCount_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDataSecretKey", _m_GetDataSecretKey_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRewardNumber", _m_GetRewardNumber_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DOBFSliderValue", _m_DOBFSliderValue_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAndroidSignKeyHash", _m_GetAndroidSignKeyHash_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FORWARD_SLASH", BF.Utils.FORWARD_SLASH); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "BF.Utils does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFreeChar_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.Utils.GetFreeChar( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetConfigChar_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.Utils.GetConfigChar( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsNull_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Object _o = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - var gen_ret = BF.Utils.IsNull( _o ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTransformPath_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Transform _trans = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - UnityEngine.Transform _parentTrans = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - string _path = LuaAPI.lua_tostring(L, 3); - - BF.Utils.GetTransformPath( _trans, _parentTrans, ref _path ); - LuaAPI.lua_pushstring(L, _path); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAssetPathByFullPath_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _fullPath = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.Utils.GetAssetPathByFullPath( _fullPath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RectTransformScreenPointToLocalPointInRectangle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rt = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); - - var gen_ret = BF.Utils.RectTransformScreenPointToLocalPointInRectangle( _rt, _x, _y, _cam ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RectangleContainsScreenPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _rt = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Camera _cam = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); - - var gen_ret = BF.Utils.RectangleContainsScreenPoint( _rt, _x, _y, _cam ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_KillDOTween_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 1); - bool _complete = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = BF.Utils.KillDOTween( _id, _complete ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _id = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = BF.Utils.KillDOTween( _id ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.Utils.KillDOTween!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDOTweenTimeScale_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _id = LuaAPI.xlua_tointeger(L, 1); - float _timeScale = (float)LuaAPI.lua_tonumber(L, 2); - - BF.Utils.SetDOTweenTimeScale( _id, _timeScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NameToLayer_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.Utils.NameToLayer( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutAlignment_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.LayoutGroup _layout = (UnityEngine.UI.LayoutGroup)translator.GetObject(L, 1, typeof(UnityEngine.UI.LayoutGroup)); - int _enum_type = LuaAPI.xlua_tointeger(L, 2); - - BF.Utils.SetLayoutAlignment( _layout, _enum_type ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformPoint2World_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = BF.Utils.TransformPoint2World( _transform, _point ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformWorld2Point_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = BF.Utils.TransformWorld2Point( _transform, _point ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIP_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.Utils.GetIP( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStringConfigPathList_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = BF.Utils.GetStringConfigPathList( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RayCast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RaycastHit _raycastHit; - - var gen_ret = BF.Utils.RayCast( _ray, _distance, _layer, out _raycastHit ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _raycastHit); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BKDRHash_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.Utils.BKDRHash( _name ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ParseHtmlString_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _htmlString = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.Utils.ParseHtmlString( _htmlString ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentAnimationHash_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 1, typeof(UnityEngine.Animator)); - int _layer = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = BF.Utils.GetCurrentAnimationHash( _animator, _layer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Animator _animator = (UnityEngine.Animator)translator.GetObject(L, 1, typeof(UnityEngine.Animator)); - - var gen_ret = BF.Utils.GetCurrentAnimationHash( _animator ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.Utils.GetCurrentAnimationHash!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnvironmentTickCount_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.Utils.GetEnvironmentTickCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDataSecretKey_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.Utils.GetDataSecretKey( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRewardNumber_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _str = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BF.Utils.GetRewardNumber( _str ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBFSliderValue_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - BF.BFSlider _target = (BF.BFSlider)translator.GetObject(L, 1, typeof(BF.BFSlider)); - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = BF.Utils.DOBFSliderValue( _target, _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - BF.BFSlider _target = (BF.BFSlider)translator.GetObject(L, 1, typeof(BF.BFSlider)); - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = BF.Utils.DOBFSliderValue( _target, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BF.Utils.DOBFSliderValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAndroidSignKeyHash_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = BF.Utils.GetAndroidSignKeyHash( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BF_VerticalScrollRectOldWrap.cs b/Assets/XLua/Gen/BF_VerticalScrollRectOldWrap.cs deleted file mode 100644 index fb05f3bdc..000000000 --- a/Assets/XLua/Gen/BF_VerticalScrollRectOldWrap.cs +++ /dev/null @@ -1,141 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BFVerticalScrollRectOldWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BF.VerticalScrollRectOld); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshRealShowIndex", _m_RefreshRealShowIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsNotFull", _m_IsNotFull); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BF.VerticalScrollRectOld(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BF.VerticalScrollRectOld constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshRealShowIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.VerticalScrollRectOld gen_to_be_invoked = (BF.VerticalScrollRectOld)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshRealShowIndex( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsNotFull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BF.VerticalScrollRectOld gen_to_be_invoked = (BF.VerticalScrollRectOld)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsNotFull( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BestHTTP_Connections_HTTP2_HTTP2ResponseWrap.cs b/Assets/XLua/Gen/BestHTTP_Connections_HTTP2_HTTP2ResponseWrap.cs deleted file mode 100644 index 74dd6dd8d..000000000 --- a/Assets/XLua/Gen/BestHTTP_Connections_HTTP2_HTTP2ResponseWrap.cs +++ /dev/null @@ -1,116 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BestHTTPConnectionsHTTP2HTTP2ResponseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BestHTTP.Connections.HTTP2.HTTP2Response); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ExpectedContentLength", _g_get_ExpectedContentLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCompressed", _g_get_IsCompressed); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - BestHTTP.HTTPRequest _request = (BestHTTP.HTTPRequest)translator.GetObject(L, 2, typeof(BestHTTP.HTTPRequest)); - bool _isFromCache = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = new BestHTTP.Connections.HTTP2.HTTP2Response(_request, _isFromCache); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.Connections.HTTP2.HTTP2Response constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ExpectedContentLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Connections.HTTP2.HTTP2Response gen_to_be_invoked = (BestHTTP.Connections.HTTP2.HTTP2Response)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ExpectedContentLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsCompressed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Connections.HTTP2.HTTP2Response gen_to_be_invoked = (BestHTTP.Connections.HTTP2.HTTP2Response)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCompressed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BestHTTP_Forms_HTTPFormBaseWrap.cs b/Assets/XLua/Gen/BestHTTP_Forms_HTTPFormBaseWrap.cs deleted file mode 100644 index 0257b9085..000000000 --- a/Assets/XLua/Gen/BestHTTP_Forms_HTTPFormBaseWrap.cs +++ /dev/null @@ -1,367 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BestHTTPFormsHTTPFormBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BestHTTP.Forms.HTTPFormBase); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 5, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddBinaryData", _m_AddBinaryData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddField", _m_AddField); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyFrom", _m_CopyFrom); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PrepareRequest", _m_PrepareRequest); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetData", _m_GetData); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Fields", _g_get_Fields); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsEmpty", _g_get_IsEmpty); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsChanged", _g_get_IsChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HasBinary", _g_get_HasBinary); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HasLongValue", _g_get_HasLongValue); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Fields", _s_set_Fields); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BestHTTP.Forms.HTTPFormBase(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.Forms.HTTPFormBase constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddBinaryData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _content = LuaAPI.lua_tobytes(L, 3); - - gen_to_be_invoked.AddBinaryData( _fieldName, _content ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _content = LuaAPI.lua_tobytes(L, 3); - string _fileName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.AddBinaryData( _fieldName, _content, _fileName ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _content = LuaAPI.lua_tobytes(L, 3); - string _fileName = LuaAPI.lua_tostring(L, 4); - string _mimeType = LuaAPI.lua_tostring(L, 5); - - gen_to_be_invoked.AddBinaryData( _fieldName, _content, _fileName, _mimeType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.Forms.HTTPFormBase.AddBinaryData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddField(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.AddField( _fieldName, _value ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - System.Text.Encoding _e = (System.Text.Encoding)translator.GetObject(L, 4, typeof(System.Text.Encoding)); - - gen_to_be_invoked.AddField( _fieldName, _value, _e ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.Forms.HTTPFormBase.AddField!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyFrom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - - - - { - BestHTTP.Forms.HTTPFormBase _fields = (BestHTTP.Forms.HTTPFormBase)translator.GetObject(L, 2, typeof(BestHTTP.Forms.HTTPFormBase)); - - gen_to_be_invoked.CopyFrom( _fields ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PrepareRequest(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - - - - { - BestHTTP.HTTPRequest _request = (BestHTTP.HTTPRequest)translator.GetObject(L, 2, typeof(BestHTTP.HTTPRequest)); - - gen_to_be_invoked.PrepareRequest( _request ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetData( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Fields(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Fields); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsEmpty(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsEmpty); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HasBinary(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.HasBinary); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HasLongValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.HasLongValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Fields(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.Forms.HTTPFormBase gen_to_be_invoked = (BestHTTP.Forms.HTTPFormBase)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Fields = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/BestHTTP_Forms_HTTPUrlEncodedFormWrap.cs b/Assets/XLua/Gen/BestHTTP_Forms_HTTPUrlEncodedFormWrap.cs deleted file mode 100644 index 4567ad29c..000000000 --- a/Assets/XLua/Gen/BestHTTP_Forms_HTTPUrlEncodedFormWrap.cs +++ /dev/null @@ -1,168 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BestHTTPFormsHTTPUrlEncodedFormWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BestHTTP.Forms.HTTPUrlEncodedForm); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PrepareRequest", _m_PrepareRequest); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetData", _m_GetData); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EscapeString", _m_EscapeString_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new BestHTTP.Forms.HTTPUrlEncodedForm(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.Forms.HTTPUrlEncodedForm constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PrepareRequest(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.Forms.HTTPUrlEncodedForm gen_to_be_invoked = (BestHTTP.Forms.HTTPUrlEncodedForm)translator.FastGetCSObj(L, 1); - - - - { - BestHTTP.HTTPRequest _request = (BestHTTP.HTTPRequest)translator.GetObject(L, 2, typeof(BestHTTP.HTTPRequest)); - - gen_to_be_invoked.PrepareRequest( _request ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.Forms.HTTPUrlEncodedForm gen_to_be_invoked = (BestHTTP.Forms.HTTPUrlEncodedForm)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetData( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EscapeString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _originalString = LuaAPI.lua_tostring(L, 1); - - var gen_ret = BestHTTP.Forms.HTTPUrlEncodedForm.EscapeString( _originalString ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/BestHTTP_HTTPRequestWrap.cs b/Assets/XLua/Gen/BestHTTP_HTTPRequestWrap.cs deleted file mode 100644 index f7a5ae1d4..000000000 --- a/Assets/XLua/Gen/BestHTTP_HTTPRequestWrap.cs +++ /dev/null @@ -1,2341 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BestHTTPHTTPRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BestHTTP.HTTPRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 25, 52, 34); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddField", _m_AddField); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddBinaryData", _m_AddBinaryData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetForm", _m_SetForm); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFormFields", _m_GetFormFields); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearForm", _m_ClearForm); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHeader", _m_AddHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHeader", _m_SetHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHeader", _m_RemoveHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasHeader", _m_HasHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirstHeaderValue", _m_GetFirstHeaderValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHeaderValues", _m_GetHeaderValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveHeaders", _m_RemoveHeaders); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRangeHeader", _m_SetRangeHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnumerateHeaders", _m_EnumerateHeaders); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DumpHeaders", _m_DumpHeaders); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEntityBody", _m_GetEntityBody); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Abort", _m_Abort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveNext", _m_MoveNext); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CustomCertificationValidator", _e_CustomCertificationValidator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforeRedirection", _e_OnBeforeRedirection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforeHeaderSend", _e_OnBeforeHeaderSend); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Uri", _g_get_Uri); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MethodType", _g_get_MethodType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RawData", _g_get_RawData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UploadStream", _g_get_UploadStream); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DisposeUploadStream", _g_get_DisposeUploadStream); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UseUploadStreamLength", _g_get_UseUploadStreamLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsKeepAlive", _g_get_IsKeepAlive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DisableCache", _g_get_DisableCache); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CacheOnly", _g_get_CacheOnly); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StreamFragmentSize", _g_get_StreamFragmentSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StreamChunksImmediately", _g_get_StreamChunksImmediately); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ReadBufferSizeOverride", _g_get_ReadBufferSizeOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxFragmentQueueLength", _g_get_MaxFragmentQueueLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Callback", _g_get_Callback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "QueuedAt", _g_get_QueuedAt); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsConnectTimedOut", _g_get_IsConnectTimedOut); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ProcessingStarted", _g_get_ProcessingStarted); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsTimedOut", _g_get_IsTimedOut); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Retries", _g_get_Retries); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxRetries", _g_get_MaxRetries); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCancellationRequested", _g_get_IsCancellationRequested); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsRedirected", _g_get_IsRedirected); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RedirectUri", _g_get_RedirectUri); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurrentUri", _g_get_CurrentUri); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Response", _g_get_Response); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ProxyResponse", _g_get_ProxyResponse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Exception", _g_get_Exception); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Tag", _g_get_Tag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Credentials", _g_get_Credentials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HasProxy", _g_get_HasProxy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Proxy", _g_get_Proxy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxRedirects", _g_get_MaxRedirects); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UseAlternateSSL", _g_get_UseAlternateSSL); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCookiesEnabled", _g_get_IsCookiesEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Cookies", _g_get_Cookies); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "FormUsage", _g_get_FormUsage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "State", _g_get_State); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RedirectCount", _g_get_RedirectCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConnectTimeout", _g_get_ConnectTimeout); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timeout", _g_get_Timeout); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableTimoutForStreaming", _g_get_EnableTimoutForStreaming); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableSafeReadOnUnknownContentLength", _g_get_EnableSafeReadOnUnknownContentLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomCertificateVerifyer", _g_get_CustomCertificateVerifyer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomClientCredentialsProvider", _g_get_CustomClientCredentialsProvider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomTLSServerNameList", _g_get_CustomTLSServerNameList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Context", _g_get_Context); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timing", _g_get_Timing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Current", _g_get_Current); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnUploadProgress", _g_get_OnUploadProgress); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnStreamingData", _g_get_OnStreamingData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnHeadersReceived", _g_get_OnHeadersReceived); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnDownloadProgress", _g_get_OnDownloadProgress); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Uri", _s_set_Uri); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MethodType", _s_set_MethodType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "RawData", _s_set_RawData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UploadStream", _s_set_UploadStream); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "DisposeUploadStream", _s_set_DisposeUploadStream); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UseUploadStreamLength", _s_set_UseUploadStreamLength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsKeepAlive", _s_set_IsKeepAlive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "DisableCache", _s_set_DisableCache); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CacheOnly", _s_set_CacheOnly); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "StreamFragmentSize", _s_set_StreamFragmentSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "StreamChunksImmediately", _s_set_StreamChunksImmediately); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ReadBufferSizeOverride", _s_set_ReadBufferSizeOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MaxFragmentQueueLength", _s_set_MaxFragmentQueueLength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Callback", _s_set_Callback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MaxRetries", _s_set_MaxRetries); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Tag", _s_set_Tag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Credentials", _s_set_Credentials); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Proxy", _s_set_Proxy); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MaxRedirects", _s_set_MaxRedirects); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UseAlternateSSL", _s_set_UseAlternateSSL); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsCookiesEnabled", _s_set_IsCookiesEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Cookies", _s_set_Cookies); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "FormUsage", _s_set_FormUsage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConnectTimeout", _s_set_ConnectTimeout); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Timeout", _s_set_Timeout); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableTimoutForStreaming", _s_set_EnableTimoutForStreaming); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableSafeReadOnUnknownContentLength", _s_set_EnableSafeReadOnUnknownContentLength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CustomCertificateVerifyer", _s_set_CustomCertificateVerifyer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CustomClientCredentialsProvider", _s_set_CustomClientCredentialsProvider); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CustomTLSServerNameList", _s_set_CustomTLSServerNameList); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnUploadProgress", _s_set_OnUploadProgress); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnStreamingData", _s_set_OnStreamingData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnHeadersReceived", _s_set_OnHeadersReceived); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnDownloadProgress", _s_set_OnDownloadProgress); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 1, 1); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EOL", BestHTTP.HTTPRequest.EOL); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MethodNames", BestHTTP.HTTPRequest.MethodNames); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "UploadChunkSize", _g_get_UploadChunkSize); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "UploadChunkSize", _s_set_UploadChunkSize); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - - var gen_ret = new BestHTTP.HTTPRequest(_uri); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - BestHTTP.OnRequestFinishedDelegate _callback = translator.GetDelegate(L, 3); - - var gen_ret = new BestHTTP.HTTPRequest(_uri, _callback); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - bool _isKeepAlive = LuaAPI.lua_toboolean(L, 3); - BestHTTP.OnRequestFinishedDelegate _callback = translator.GetDelegate(L, 4); - - var gen_ret = new BestHTTP.HTTPRequest(_uri, _isKeepAlive, _callback); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - bool _isKeepAlive = LuaAPI.lua_toboolean(L, 3); - bool _disableCache = LuaAPI.lua_toboolean(L, 4); - BestHTTP.OnRequestFinishedDelegate _callback = translator.GetDelegate(L, 5); - - var gen_ret = new BestHTTP.HTTPRequest(_uri, _isKeepAlive, _disableCache, _callback); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - BestHTTP.HTTPMethods _methodType;translator.Get(L, 3, out _methodType); - - var gen_ret = new BestHTTP.HTTPRequest(_uri, _methodType); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - BestHTTP.HTTPMethods _methodType;translator.Get(L, 3, out _methodType); - BestHTTP.OnRequestFinishedDelegate _callback = translator.GetDelegate(L, 4); - - var gen_ret = new BestHTTP.HTTPRequest(_uri, _methodType, _callback); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - BestHTTP.HTTPMethods _methodType;translator.Get(L, 3, out _methodType); - bool _isKeepAlive = LuaAPI.lua_toboolean(L, 4); - BestHTTP.OnRequestFinishedDelegate _callback = translator.GetDelegate(L, 5); - - var gen_ret = new BestHTTP.HTTPRequest(_uri, _methodType, _isKeepAlive, _callback); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && translator.Assignable(L, 6)) - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - BestHTTP.HTTPMethods _methodType;translator.Get(L, 3, out _methodType); - bool _isKeepAlive = LuaAPI.lua_toboolean(L, 4); - bool _disableCache = LuaAPI.lua_toboolean(L, 5); - BestHTTP.OnRequestFinishedDelegate _callback = translator.GetDelegate(L, 6); - - var gen_ret = new BestHTTP.HTTPRequest(_uri, _methodType, _isKeepAlive, _disableCache, _callback); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddField(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.AddField( _fieldName, _value ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 4)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - System.Text.Encoding _e = (System.Text.Encoding)translator.GetObject(L, 4, typeof(System.Text.Encoding)); - - gen_to_be_invoked.AddField( _fieldName, _value, _e ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest.AddField!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddBinaryData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _content = LuaAPI.lua_tobytes(L, 3); - - gen_to_be_invoked.AddBinaryData( _fieldName, _content ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _content = LuaAPI.lua_tobytes(L, 3); - string _fileName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.AddBinaryData( _fieldName, _content, _fileName ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - string _fieldName = LuaAPI.lua_tostring(L, 2); - byte[] _content = LuaAPI.lua_tobytes(L, 3); - string _fileName = LuaAPI.lua_tostring(L, 4); - string _mimeType = LuaAPI.lua_tostring(L, 5); - - gen_to_be_invoked.AddBinaryData( _fieldName, _content, _fileName, _mimeType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest.AddBinaryData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetForm(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - BestHTTP.Forms.HTTPFormBase _form = (BestHTTP.Forms.HTTPFormBase)translator.GetObject(L, 2, typeof(BestHTTP.Forms.HTTPFormBase)); - - gen_to_be_invoked.SetForm( _form ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFormFields(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetFormFields( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearForm(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearForm( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.AddHeader( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.SetHeader( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveHeader( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasHeader( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFirstHeaderValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFirstHeaderValue( _name ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHeaderValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetHeaderValues( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveHeaders(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveHeaders( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRangeHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2))) - { - long _firstBytePos = LuaAPI.lua_toint64(L, 2); - - gen_to_be_invoked.SetRangeHeader( _firstBytePos ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2))&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isint64(L, 3))) - { - long _firstBytePos = LuaAPI.lua_toint64(L, 2); - long _lastBytePos = LuaAPI.lua_toint64(L, 3); - - gen_to_be_invoked.SetRangeHeader( _firstBytePos, _lastBytePos ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest.SetRangeHeader!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnumerateHeaders(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BestHTTP.OnHeaderEnumerationDelegate _callback = translator.GetDelegate(L, 2); - - gen_to_be_invoked.EnumerateHeaders( _callback ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - BestHTTP.OnHeaderEnumerationDelegate _callback = translator.GetDelegate(L, 2); - bool _callBeforeSendCallback = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.EnumerateHeaders( _callback, _callBeforeSendCallback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest.EnumerateHeaders!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DumpHeaders(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DumpHeaders( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEntityBody(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEntityBody( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Send(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Send( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Abort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Abort( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveNext(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.MoveNext( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Uri(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Uri); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MethodType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MethodType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RawData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.RawData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UploadStream(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UploadStream); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DisposeUploadStream(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.DisposeUploadStream); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UseUploadStreamLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.UseUploadStreamLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsKeepAlive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsKeepAlive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DisableCache(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.DisableCache); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CacheOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.CacheOnly); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StreamFragmentSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.StreamFragmentSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StreamChunksImmediately(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.StreamChunksImmediately); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ReadBufferSizeOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ReadBufferSizeOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MaxFragmentQueueLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.MaxFragmentQueueLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Callback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Callback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_QueuedAt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.QueuedAt); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsConnectTimedOut(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsConnectTimedOut); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ProcessingStarted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ProcessingStarted); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsTimedOut(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsTimedOut); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Retries(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Retries); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MaxRetries(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.MaxRetries); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsCancellationRequested(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCancellationRequested); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsRedirected(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsRedirected); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RedirectUri(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RedirectUri); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CurrentUri(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CurrentUri); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Response(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Response); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ProxyResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ProxyResponse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Exception(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Exception); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Tag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Credentials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Credentials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HasProxy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.HasProxy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Proxy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Proxy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MaxRedirects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.MaxRedirects); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UseAlternateSSL(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.UseAlternateSSL); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsCookiesEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCookiesEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Cookies(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Cookies); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FormUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.FormUsage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_State(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.State); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RedirectCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.RedirectCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ConnectTimeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ConnectTimeout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Timeout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableTimoutForStreaming(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableTimoutForStreaming); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableSafeReadOnUnknownContentLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableSafeReadOnUnknownContentLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomCertificateVerifyer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.CustomCertificateVerifyer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomClientCredentialsProvider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.CustomClientCredentialsProvider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomTLSServerNameList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CustomTLSServerNameList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Context(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Context); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Timing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Current(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Current); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UploadChunkSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, BestHTTP.HTTPRequest.UploadChunkSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnUploadProgress(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnUploadProgress); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnStreamingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnStreamingData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnHeadersReceived(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnHeadersReceived); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OnDownloadProgress(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OnDownloadProgress); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Uri(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MethodType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - BestHTTP.HTTPMethods gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.MethodType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_RawData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.RawData = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UploadStream(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UploadStream = (System.IO.Stream)translator.GetObject(L, 2, typeof(System.IO.Stream)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DisposeUploadStream(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.DisposeUploadStream = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UseUploadStreamLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UseUploadStreamLength = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsKeepAlive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.IsKeepAlive = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DisableCache(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.DisableCache = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CacheOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CacheOnly = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_StreamFragmentSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.StreamFragmentSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_StreamChunksImmediately(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.StreamChunksImmediately = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ReadBufferSizeOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ReadBufferSizeOverride = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MaxFragmentQueueLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MaxFragmentQueueLength = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Callback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Callback = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MaxRetries(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MaxRetries = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Tag = translator.GetObject(L, 2, typeof(object)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Credentials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Credentials = (BestHTTP.Authentication.Credentials)translator.GetObject(L, 2, typeof(BestHTTP.Authentication.Credentials)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Proxy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Proxy = (BestHTTP.Proxy)translator.GetObject(L, 2, typeof(BestHTTP.Proxy)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MaxRedirects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MaxRedirects = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UseAlternateSSL(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UseAlternateSSL = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsCookiesEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.IsCookiesEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Cookies(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Cookies = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_FormUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - BestHTTP.Forms.HTTPFormUsage gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.FormUsage = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ConnectTimeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - System.TimeSpan gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.ConnectTimeout = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Timeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - System.TimeSpan gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.Timeout = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableTimoutForStreaming(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableTimoutForStreaming = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableSafeReadOnUnknownContentLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableSafeReadOnUnknownContentLength = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CustomCertificateVerifyer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CustomCertificateVerifyer = (BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.ICertificateVerifyer)translator.GetObject(L, 2, typeof(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.ICertificateVerifyer)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CustomClientCredentialsProvider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CustomClientCredentialsProvider = (BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.IClientCredentialsProvider)translator.GetObject(L, 2, typeof(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.IClientCredentialsProvider)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CustomTLSServerNameList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CustomTLSServerNameList = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UploadChunkSize(RealStatePtr L) - { - try { - - BestHTTP.HTTPRequest.UploadChunkSize = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OnUploadProgress(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OnUploadProgress = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OnStreamingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OnStreamingData = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OnHeadersReceived(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OnHeadersReceived = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OnDownloadProgress(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OnDownloadProgress = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_CustomCertificationValidator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - System.Func gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Func!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.CustomCertificationValidator += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.CustomCertificationValidator -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest.CustomCertificationValidator!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBeforeRedirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - BestHTTP.OnBeforeRedirectionDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need BestHTTP.OnBeforeRedirectionDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBeforeRedirection += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBeforeRedirection -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest.OnBeforeRedirection!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBeforeHeaderSend(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - BestHTTP.HTTPRequest gen_to_be_invoked = (BestHTTP.HTTPRequest)translator.FastGetCSObj(L, 1); - BestHTTP.OnBeforeHeaderSendDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need BestHTTP.OnBeforeHeaderSendDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBeforeHeaderSend += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBeforeHeaderSend -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPRequest.OnBeforeHeaderSend!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/BestHTTP_HTTPResponseWrap.cs b/Assets/XLua/Gen/BestHTTP_HTTPResponseWrap.cs deleted file mode 100644 index d8ca48eeb..000000000 --- a/Assets/XLua/Gen/BestHTTP_HTTPResponseWrap.cs +++ /dev/null @@ -1,675 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class BestHTTPHTTPResponseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(BestHTTP.HTTPResponse); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 18, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Receive", _m_Receive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHeader", _m_AddHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHeaderValues", _m_GetHeaderValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirstHeaderValue", _m_GetFirstHeaderValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasHeaderWithValue", _m_HasHeaderWithValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasHeader", _m_HasHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VersionMajor", _g_get_VersionMajor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VersionMinor", _g_get_VersionMinor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "StatusCode", _g_get_StatusCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsSuccess", _g_get_IsSuccess); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Message", _g_get_Message); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsStreamed", _g_get_IsStreamed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsFromCache", _g_get_IsFromCache); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CacheFileInfo", _g_get_CacheFileInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCacheOnly", _g_get_IsCacheOnly); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsProxyResponse", _g_get_IsProxyResponse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Headers", _g_get_Headers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsUpgraded", _g_get_IsUpgraded); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Cookies", _g_get_Cookies); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DataAsText", _g_get_DataAsText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DataAsTexture2D", _g_get_DataAsTexture2D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsClosedManually", _g_get_IsClosedManually); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Context", _g_get_Context); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 1); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MinReadBufferSize", _g_get_MinReadBufferSize); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MinReadBufferSize", _s_set_MinReadBufferSize); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - BestHTTP.HTTPRequest _request = (BestHTTP.HTTPRequest)translator.GetObject(L, 2, typeof(BestHTTP.HTTPRequest)); - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 3, typeof(System.IO.Stream)); - bool _isStreamed = LuaAPI.lua_toboolean(L, 4); - bool _isFromCache = LuaAPI.lua_toboolean(L, 5); - bool _isProxyResponse = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new BestHTTP.HTTPResponse(_request, _stream, _isStreamed, _isFromCache, _isProxyResponse); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - BestHTTP.HTTPRequest _request = (BestHTTP.HTTPRequest)translator.GetObject(L, 2, typeof(BestHTTP.HTTPRequest)); - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 3, typeof(System.IO.Stream)); - bool _isStreamed = LuaAPI.lua_toboolean(L, 4); - bool _isFromCache = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = new BestHTTP.HTTPResponse(_request, _stream, _isStreamed, _isFromCache); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPResponse constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Receive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int _forceReadRawContentLength = LuaAPI.xlua_tointeger(L, 2); - bool _readPayloadData = LuaAPI.lua_toboolean(L, 3); - bool _sendUpgradedEvent = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.Receive( _forceReadRawContentLength, _readPayloadData, _sendUpgradedEvent ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _forceReadRawContentLength = LuaAPI.xlua_tointeger(L, 2); - bool _readPayloadData = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.Receive( _forceReadRawContentLength, _readPayloadData ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _forceReadRawContentLength = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.Receive( _forceReadRawContentLength ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.Receive( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.HTTPResponse.Receive!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.AddHeader( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHeaderValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetHeaderValues( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFirstHeaderValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFirstHeaderValue( _name ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasHeaderWithValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - - { - string _headerName = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.HasHeaderWithValue( _headerName, _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - - { - string _headerName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasHeader( _headerName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetRange( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VersionMajor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.VersionMajor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VersionMinor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.VersionMinor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_StatusCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.StatusCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsSuccess(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsSuccess); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Message); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsStreamed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsStreamed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsFromCache(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsFromCache); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CacheFileInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CacheFileInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsCacheOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCacheOnly); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsProxyResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsProxyResponse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Headers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Headers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsUpgraded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsUpgraded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Cookies(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Cookies); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DataAsText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.DataAsText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DataAsTexture2D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.DataAsTexture2D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsClosedManually(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsClosedManually); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Context(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - BestHTTP.HTTPResponse gen_to_be_invoked = (BestHTTP.HTTPResponse)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Context); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MinReadBufferSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, BestHTTP.HTTPResponse.MinReadBufferSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MinReadBufferSize(RealStatePtr L) - { - try { - - BestHTTP.HTTPResponse.MinReadBufferSize = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/CameraAdjustWrap.cs b/Assets/XLua/Gen/CameraAdjustWrap.cs deleted file mode 100644 index 14e60a086..000000000 --- a/Assets/XLua/Gen/CameraAdjustWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class CameraAdjustWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(CameraAdjust); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "logicalScreenWidth", _g_get_logicalScreenWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "logicalScreenHeight", _g_get_logicalScreenHeight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "logicalScreenWidth", _s_set_logicalScreenWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "logicalScreenHeight", _s_set_logicalScreenHeight); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new CameraAdjust(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to CameraAdjust constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logicalScreenWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CameraAdjust gen_to_be_invoked = (CameraAdjust)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.logicalScreenWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logicalScreenHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CameraAdjust gen_to_be_invoked = (CameraAdjust)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.logicalScreenHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logicalScreenWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CameraAdjust gen_to_be_invoked = (CameraAdjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.logicalScreenWidth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logicalScreenHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CameraAdjust gen_to_be_invoked = (CameraAdjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.logicalScreenHeight = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/CloudControlWrap.cs b/Assets/XLua/Gen/CloudControlWrap.cs deleted file mode 100644 index 8fd22077f..000000000 --- a/Assets/XLua/Gen/CloudControlWrap.cs +++ /dev/null @@ -1,239 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class CloudControlWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(CloudControl); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEnable", _m_OnEnable); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_CloudMap", _g_get__CloudMap); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_CloudColor", _g_get__CloudColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_Size", _g_get__Size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_Speed", _g_get__Speed); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_CloudMap", _s_set__CloudMap); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_CloudColor", _s_set__CloudColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_Size", _s_set__Size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_Speed", _s_set__Speed); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new CloudControl(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to CloudControl constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEnable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnEnable( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__CloudMap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked._CloudMap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__CloudColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked._CloudColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__Size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked._Size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__Speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked._Speed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__CloudMap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._CloudMap = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__CloudColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked._CloudColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__Size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked._Size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__Speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - CloudControl gen_to_be_invoked = (CloudControl)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked._Speed = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_ABSSequentiableWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_ABSSequentiableWrap.cs deleted file mode 100644 index cac5056fc..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_ABSSequentiableWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreABSSequentiableWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.ABSSequentiable); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.ABSSequentiable does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenComponentWrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_DOTweenComponentWrap.cs deleted file mode 100644 index 3a69e5c62..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_DOTweenComponentWrap.cs +++ /dev/null @@ -1,175 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreDOTweenComponentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.DOTweenComponent); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnApplicationPause", _m_OnApplicationPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCapacity", _m_SetCapacity); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inspectorUpdater", _g_get_inspectorUpdater); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inspectorUpdater", _s_set_inspectorUpdater); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new DG.Tweening.Core.DOTweenComponent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.DOTweenComponent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnApplicationPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.DOTweenComponent gen_to_be_invoked = (DG.Tweening.Core.DOTweenComponent)translator.FastGetCSObj(L, 1); - - - - { - bool _pauseStatus = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.OnApplicationPause( _pauseStatus ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCapacity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.DOTweenComponent gen_to_be_invoked = (DG.Tweening.Core.DOTweenComponent)translator.FastGetCSObj(L, 1); - - - - { - int _tweenersCapacity = LuaAPI.xlua_tointeger(L, 2); - int _sequencesCapacity = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.SetCapacity( _tweenersCapacity, _sequencesCapacity ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inspectorUpdater(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenComponent gen_to_be_invoked = (DG.Tweening.Core.DOTweenComponent)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.inspectorUpdater); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inspectorUpdater(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.DOTweenComponent gen_to_be_invoked = (DG.Tweening.Core.DOTweenComponent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.inspectorUpdater = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_System_Single_System_Single_DG_Tweening_Plugins_Options_FloatOptions_Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_System_Single_System_Single_DG_Tweening_Plugins_Options_FloatOptions_Wrap.cs deleted file mode 100644 index dfec0c335..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_System_Single_System_Single_DG_Tweening_Plugins_Options_FloatOptions_Wrap.cs +++ /dev/null @@ -1,1500 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreTweenerCore_3_SystemSingleSystemSingleDGTweeningPluginsOptionsFloatOptions_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.TweenerCore); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOptions", _m_SetOptions); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startValue", _g_get_startValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endValue", _g_get_endValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeValue", _g_get_changeValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "plugOptions", _g_get_plugOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "getter", _g_get_getter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "setter", _g_get_setter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startValue", _s_set_startValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endValue", _s_set_endValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "changeValue", _s_set_changeValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "plugOptions", _s_set_plugOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "getter", _s_set_getter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "setter", _s_set_setter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.TweenerCore does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _newStartValue = (float)LuaAPI.lua_tonumber(L, 2); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _newStartValue = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _newEndValue = (float)LuaAPI.lua_tonumber(L, 2); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _newEndValue = (float)LuaAPI.lua_tonumber(L, 2); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _newEndValue = (float)LuaAPI.lua_tonumber(L, 2); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _newEndValue = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _newStartValue = (float)LuaAPI.lua_tonumber(L, 2); - float _newEndValue = (float)LuaAPI.lua_tonumber(L, 3); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _newStartValue = (float)LuaAPI.lua_tonumber(L, 2); - float _newEndValue = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - bool _snapping = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetOptions( _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.endValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.changeValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.plugOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.getter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.setter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startValue = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.endValue = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.changeValue = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - DG.Tweening.Plugins.Options.FloatOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.plugOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.getter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.setter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Color_UnityEngine_Color_DG_Tweening_Plugins_Options_ColorOptions_Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Color_UnityEngine_Color_DG_Tweening_Plugins_Options_ColorOptions_Wrap.cs deleted file mode 100644 index 4f29895cd..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Color_UnityEngine_Color_DG_Tweening_Plugins_Options_ColorOptions_Wrap.cs +++ /dev/null @@ -1,1539 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreTweenerCore_3_UnityEngineColorUnityEngineColorDGTweeningPluginsOptionsColorOptions_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.TweenerCore); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOptions", _m_SetOptions); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startValue", _g_get_startValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endValue", _g_get_endValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeValue", _g_get_changeValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "plugOptions", _g_get_plugOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "getter", _g_get_getter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "setter", _g_get_setter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startValue", _s_set_startValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endValue", _s_set_endValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "changeValue", _s_set_changeValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "plugOptions", _s_set_plugOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "getter", _s_set_getter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "setter", _s_set_setter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.TweenerCore does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color _newStartValue;translator.Get(L, 2, out _newStartValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color _newStartValue;translator.Get(L, 2, out _newStartValue); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color _newEndValue;translator.Get(L, 2, out _newEndValue); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color _newEndValue;translator.Get(L, 2, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Color _newEndValue;translator.Get(L, 3, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Color _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Color _newEndValue;translator.Get(L, 3, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _fromAlphaValue = (float)LuaAPI.lua_tonumber(L, 2); - bool _setImmediately = LuaAPI.lua_toboolean(L, 3); - bool _isRelative = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.From( _fromAlphaValue, _setImmediately, _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _fromAlphaValue = (float)LuaAPI.lua_tonumber(L, 2); - bool _setImmediately = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.From( _fromAlphaValue, _setImmediately ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _fromAlphaValue = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.From( _fromAlphaValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - bool _alphaOnly = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetOptions( _alphaOnly ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.startValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.endValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.changeValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.plugOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.getter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.setter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.endValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.changeValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - DG.Tweening.Plugins.Options.ColorOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.plugOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.getter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.setter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Quaternion_UnityEngine_Vector3_DG_Tweening_Plugins_Options_QuaternionOptions_Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Quaternion_UnityEngine_Vector3_DG_Tweening_Plugins_Options_QuaternionOptions_Wrap.cs deleted file mode 100644 index b65042e86..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Quaternion_UnityEngine_Vector3_DG_Tweening_Plugins_Options_QuaternionOptions_Wrap.cs +++ /dev/null @@ -1,1517 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreTweenerCore_3_UnityEngineQuaternionUnityEngineVector3DGTweeningPluginsOptionsQuaternionOptions_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.TweenerCore); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOptions", _m_SetOptions); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startValue", _g_get_startValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endValue", _g_get_endValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeValue", _g_get_changeValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "plugOptions", _g_get_plugOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "getter", _g_get_getter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "setter", _g_get_setter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startValue", _s_set_startValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endValue", _s_set_endValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "changeValue", _s_set_changeValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "plugOptions", _s_set_plugOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "getter", _s_set_getter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "setter", _s_set_setter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.TweenerCore does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Vector3 _newEndValue;translator.Get(L, 3, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Vector3 _newEndValue;translator.Get(L, 3, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _useShortest360Route = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetOptions( _useShortest360Route ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetOptions( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetOptions!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.startValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.endValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.changeValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.plugOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.getter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.setter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.endValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.changeValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - DG.Tweening.Plugins.Options.QuaternionOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.plugOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.getter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.setter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector2_UnityEngine_Vector2_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector2_UnityEngine_Vector2_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs deleted file mode 100644 index 78cb83795..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector2_UnityEngine_Vector2_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs +++ /dev/null @@ -1,1530 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreTweenerCore_3_UnityEngineVector2UnityEngineVector2DGTweeningPluginsOptionsVectorOptions_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.TweenerCore); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOptions", _m_SetOptions); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startValue", _g_get_startValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endValue", _g_get_endValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeValue", _g_get_changeValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "plugOptions", _g_get_plugOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "getter", _g_get_getter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "setter", _g_get_setter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startValue", _s_set_startValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endValue", _s_set_endValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "changeValue", _s_set_changeValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "plugOptions", _s_set_plugOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "getter", _s_set_getter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "setter", _s_set_setter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.TweenerCore does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _newStartValue;translator.Get(L, 2, out _newStartValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _newStartValue;translator.Get(L, 2, out _newStartValue); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _newEndValue;translator.Get(L, 2, out _newEndValue); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _newEndValue;translator.Get(L, 2, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Vector2 _newEndValue;translator.Get(L, 3, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Vector2 _newEndValue;translator.Get(L, 3, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _snapping = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetOptions( _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 2, out _axisConstraint); - bool _snapping = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetOptions( _axisConstraint, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 2, out _axisConstraint); - - var gen_ret = gen_to_be_invoked.SetOptions( _axisConstraint ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetOptions!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.startValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.endValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.changeValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.plugOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.getter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.setter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.endValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.changeValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - DG.Tweening.Plugins.Options.VectorOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.plugOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.getter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.setter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_DG_Tweening_Plugins_Core_PathCore_Path_DG_Tweening_Plugins_Options_PathOptions_Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_DG_Tweening_Plugins_Core_PathCore_Path_DG_Tweening_Plugins_Options_PathOptions_Wrap.cs deleted file mode 100644 index 83df06aca..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_DG_Tweening_Plugins_Core_PathCore_Path_DG_Tweening_Plugins_Options_PathOptions_Wrap.cs +++ /dev/null @@ -1,1719 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreTweenerCore_3_UnityEngineVector3DGTweeningPluginsCorePathCorePathDGTweeningPluginsOptionsPathOptions_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.TweenerCore); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOptions", _m_SetOptions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLookAt", _m_SetLookAt); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startValue", _g_get_startValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endValue", _g_get_endValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeValue", _g_get_changeValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "plugOptions", _g_get_plugOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "getter", _g_get_getter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "setter", _g_get_setter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startValue", _s_set_startValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endValue", _s_set_endValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "changeValue", _s_set_changeValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "plugOptions", _s_set_plugOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "getter", _s_set_getter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "setter", _s_set_setter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.TweenerCore does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newStartValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newStartValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newEndValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newEndValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newEndValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newEndValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newStartValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - DG.Tweening.Plugins.Core.PathCore.Path _newEndValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 3, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - DG.Tweening.Plugins.Core.PathCore.Path _newStartValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - DG.Tweening.Plugins.Core.PathCore.Path _newEndValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 3, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - DG.Tweening.AxisConstraint _lockPosition;translator.Get(L, 2, out _lockPosition); - DG.Tweening.AxisConstraint _lockRotation;translator.Get(L, 3, out _lockRotation); - - var gen_ret = gen_to_be_invoked.SetOptions( _lockPosition, _lockRotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.AxisConstraint _lockPosition;translator.Get(L, 2, out _lockPosition); - - var gen_ret = gen_to_be_invoked.SetOptions( _lockPosition ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - bool _closePath = LuaAPI.lua_toboolean(L, 2); - DG.Tweening.AxisConstraint _lockPosition;translator.Get(L, 3, out _lockPosition); - DG.Tweening.AxisConstraint _lockRotation;translator.Get(L, 4, out _lockRotation); - - var gen_ret = gen_to_be_invoked.SetOptions( _closePath, _lockPosition, _lockRotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - bool _closePath = LuaAPI.lua_toboolean(L, 2); - DG.Tweening.AxisConstraint _lockPosition;translator.Get(L, 3, out _lockPosition); - - var gen_ret = gen_to_be_invoked.SetOptions( _closePath, _lockPosition ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _closePath = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetOptions( _closePath ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetOptions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLookAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _lookAhead = (float)LuaAPI.lua_tonumber(L, 2); - bool _stableZRotation = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAhead, _stableZRotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _lookAtPosition;translator.Get(L, 2, out _lookAtPosition); - bool _stableZRotation = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtPosition, _stableZRotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Transform _lookAtTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - bool _stableZRotation = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtTransform, _stableZRotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)) - { - float _lookAhead = (float)LuaAPI.lua_tonumber(L, 2); - System.Nullable _forwardDirection;translator.Get(L, 3, out _forwardDirection); - System.Nullable _up;translator.Get(L, 4, out _up); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAhead, _forwardDirection, _up ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - float _lookAhead = (float)LuaAPI.lua_tonumber(L, 2); - System.Nullable _forwardDirection;translator.Get(L, 3, out _forwardDirection); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAhead, _forwardDirection ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _lookAhead = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAhead ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Vector3 _lookAtPosition;translator.Get(L, 2, out _lookAtPosition); - System.Nullable _forwardDirection;translator.Get(L, 3, out _forwardDirection); - System.Nullable _up;translator.Get(L, 4, out _up); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtPosition, _forwardDirection, _up ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Vector3 _lookAtPosition;translator.Get(L, 2, out _lookAtPosition); - System.Nullable _forwardDirection;translator.Get(L, 3, out _forwardDirection); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtPosition, _forwardDirection ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _lookAtPosition;translator.Get(L, 2, out _lookAtPosition); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtPosition ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Transform _lookAtTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - System.Nullable _forwardDirection;translator.Get(L, 3, out _forwardDirection); - System.Nullable _up;translator.Get(L, 4, out _up); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtTransform, _forwardDirection, _up ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Transform _lookAtTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - System.Nullable _forwardDirection;translator.Get(L, 3, out _forwardDirection); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtTransform, _forwardDirection ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _lookAtTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = gen_to_be_invoked.SetLookAt( _lookAtTransform ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLookAt!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.startValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.endValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.changeValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.plugOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.getter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.setter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.endValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.changeValue = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - DG.Tweening.Plugins.Options.PathOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.plugOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.getter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.setter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs deleted file mode 100644 index b4c6db383..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3_DG_Tweening_Plugins_Options_VectorOptions_Wrap.cs +++ /dev/null @@ -1,1566 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreTweenerCore_3_UnityEngineVector3UnityEngineVector3DGTweeningPluginsOptionsVectorOptions_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.TweenerCore); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOptions", _m_SetOptions); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startValue", _g_get_startValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endValue", _g_get_endValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeValue", _g_get_changeValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "plugOptions", _g_get_plugOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "getter", _g_get_getter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "setter", _g_get_setter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startValue", _s_set_startValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endValue", _s_set_endValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "changeValue", _s_set_changeValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "plugOptions", _s_set_plugOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "getter", _s_set_getter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "setter", _s_set_setter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.TweenerCore does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _newEndValue;translator.Get(L, 2, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Vector3 _newEndValue;translator.Get(L, 3, out _newEndValue); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _newStartValue;translator.Get(L, 2, out _newStartValue); - UnityEngine.Vector3 _newEndValue;translator.Get(L, 3, out _newEndValue); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _fromValue = (float)LuaAPI.lua_tonumber(L, 2); - bool _setImmediately = LuaAPI.lua_toboolean(L, 3); - bool _isRelative = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.From( _fromValue, _setImmediately, _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _fromValue = (float)LuaAPI.lua_tonumber(L, 2); - bool _setImmediately = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.From( _fromValue, _setImmediately ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _fromValue = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.From( _fromValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _snapping = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetOptions( _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 2, out _axisConstraint); - bool _snapping = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetOptions( _axisConstraint, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 2, out _axisConstraint); - - var gen_ret = gen_to_be_invoked.SetOptions( _axisConstraint ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetOptions!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.startValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.endValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.changeValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.plugOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.getter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.setter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.endValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.changeValue = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - DG.Tweening.Plugins.Options.VectorOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.plugOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.getter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.setter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3___DG_Tweening_Plugins_Options_Vector3ArrayOptions_Wrap.cs b/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3___DG_Tweening_Plugins_Options_Vector3ArrayOptions_Wrap.cs deleted file mode 100644 index 076d1d39a..000000000 --- a/Assets/XLua/Gen/DG_Tweening_Core_TweenerCore_3_UnityEngine_Vector3_UnityEngine_Vector3___DG_Tweening_Plugins_Options_Vector3ArrayOptions_Wrap.cs +++ /dev/null @@ -1,1527 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningCoreTweenerCore_3_UnityEngineVector3UnityEngineVector3__DGTweeningPluginsOptionsVector3ArrayOptions_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Core.TweenerCore); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOptions", _m_SetOptions); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startValue", _g_get_startValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endValue", _g_get_endValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "changeValue", _g_get_changeValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "plugOptions", _g_get_plugOptions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "getter", _g_get_getter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "setter", _g_get_setter); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startValue", _s_set_startValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endValue", _s_set_endValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "changeValue", _s_set_changeValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "plugOptions", _s_set_plugOptions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "getter", _s_set_getter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "setter", _s_set_setter); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Core.TweenerCore does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3[] _newStartValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _newStartValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3[] _newEndValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3[] _newEndValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3[] _newEndValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _newEndValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3[] _newStartValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - UnityEngine.Vector3[] _newEndValue = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[])); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3[] _newStartValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - UnityEngine.Vector3[] _newEndValue = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[])); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _snapping = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetOptions( _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 2, out _axisConstraint); - bool _snapping = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetOptions( _axisConstraint, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 2, out _axisConstraint); - - var gen_ret = gen_to_be_invoked.SetOptions( _axisConstraint ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Core.TweenerCore.SetOptions!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.startValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.endValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.changeValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.plugOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.getter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.setter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.endValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_changeValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.changeValue = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_plugOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - DG.Tweening.Plugins.Options.Vector3ArrayOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.plugOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_getter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.getter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_setter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Core.TweenerCore gen_to_be_invoked = (DG.Tweening.Core.TweenerCore)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.setter = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstructionWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstructionWrap.cs deleted file mode 100644 index dbf3ea4f2..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstructionWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenCYInstructionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenCYInstruction); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenCYInstruction does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForCompletionWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForCompletionWrap.cs deleted file mode 100644 index 78abd4ede..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForCompletionWrap.cs +++ /dev/null @@ -1,100 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenCYInstructionWaitForCompletionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenCYInstruction.WaitForCompletion); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - DG.Tweening.Tween _tween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = new DG.Tweening.DOTweenCYInstruction.WaitForCompletion(_tween); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTweenCYInstruction.WaitForCompletion constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.DOTweenCYInstruction.WaitForCompletion gen_to_be_invoked = (DG.Tweening.DOTweenCYInstruction.WaitForCompletion)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForElapsedLoopsWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForElapsedLoopsWrap.cs deleted file mode 100644 index 3dbb9fc35..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForElapsedLoopsWrap.cs +++ /dev/null @@ -1,101 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenCYInstructionWaitForElapsedLoopsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Tween _tween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - int _elapsedLoops = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops(_tween, _elapsedLoops); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops gen_to_be_invoked = (DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForKillWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForKillWrap.cs deleted file mode 100644 index 500c956a0..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForKillWrap.cs +++ /dev/null @@ -1,100 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenCYInstructionWaitForKillWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenCYInstruction.WaitForKill); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - DG.Tweening.Tween _tween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = new DG.Tweening.DOTweenCYInstruction.WaitForKill(_tween); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTweenCYInstruction.WaitForKill constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.DOTweenCYInstruction.WaitForKill gen_to_be_invoked = (DG.Tweening.DOTweenCYInstruction.WaitForKill)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForPositionWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForPositionWrap.cs deleted file mode 100644 index df7d67e89..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForPositionWrap.cs +++ /dev/null @@ -1,101 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenCYInstructionWaitForPositionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenCYInstruction.WaitForPosition); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Tween _tween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - float _position = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new DG.Tweening.DOTweenCYInstruction.WaitForPosition(_tween, _position); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTweenCYInstruction.WaitForPosition constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.DOTweenCYInstruction.WaitForPosition gen_to_be_invoked = (DG.Tweening.DOTweenCYInstruction.WaitForPosition)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForRewindWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForRewindWrap.cs deleted file mode 100644 index 40c2d49f9..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForRewindWrap.cs +++ /dev/null @@ -1,100 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenCYInstructionWaitForRewindWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenCYInstruction.WaitForRewind); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - DG.Tweening.Tween _tween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = new DG.Tweening.DOTweenCYInstruction.WaitForRewind(_tween); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTweenCYInstruction.WaitForRewind constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.DOTweenCYInstruction.WaitForRewind gen_to_be_invoked = (DG.Tweening.DOTweenCYInstruction.WaitForRewind)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForStartWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForStartWrap.cs deleted file mode 100644 index 2e5b8890f..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenCYInstruction_WaitForStartWrap.cs +++ /dev/null @@ -1,100 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenCYInstructionWaitForStartWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenCYInstruction.WaitForStart); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepWaiting", _g_get_keepWaiting); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - DG.Tweening.Tween _tween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = new DG.Tweening.DOTweenCYInstruction.WaitForStart(_tween); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTweenCYInstruction.WaitForStart constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepWaiting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.DOTweenCYInstruction.WaitForStart gen_to_be_invoked = (DG.Tweening.DOTweenCYInstruction.WaitForStart)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleAudioWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenModuleAudioWrap.cs deleted file mode 100644 index eb750de1d..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleAudioWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenModuleAudioWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenModuleAudio); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenModuleAudio does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleSpriteWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenModuleSpriteWrap.cs deleted file mode 100644 index 1d125524a..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleSpriteWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenModuleSpriteWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenModuleSprite); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenModuleSprite does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUIWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUIWrap.cs deleted file mode 100644 index 62dcd4905..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUIWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenModuleUIWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenModuleUI); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenModuleUI does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUI_UtilsWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUI_UtilsWrap.cs deleted file mode 100644 index 315ca1c23..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUI_UtilsWrap.cs +++ /dev/null @@ -1,96 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenModuleUIUtilsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenModuleUI.Utils); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SwitchToRectTransform", _m_SwitchToRectTransform_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenModuleUI.Utils does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SwitchToRectTransform_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RectTransform _from = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.RectTransform _to = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - var gen_ret = DG.Tweening.DOTweenModuleUI.Utils.SwitchToRectTransform( _from, _to ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUnityVersionWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUnityVersionWrap.cs deleted file mode 100644 index 5b2b79086..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUnityVersionWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenModuleUnityVersionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenModuleUnityVersion); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenModuleUnityVersion does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtilsWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtilsWrap.cs deleted file mode 100644 index 9efd167b3..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtilsWrap.cs +++ /dev/null @@ -1,91 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenModuleUtilsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenModuleUtils); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenModuleUtils does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - DG.Tweening.DOTweenModuleUtils.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtils_PhysicsWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtils_PhysicsWrap.cs deleted file mode 100644 index 0388fc7fd..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenModuleUtils_PhysicsWrap.cs +++ /dev/null @@ -1,186 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenModuleUtilsPhysicsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTweenModuleUtils.Physics); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetOrientationOnPath", _m_SetOrientationOnPath_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HasRigidbody2D", _m_HasRigidbody2D_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HasRigidbody", _m_HasRigidbody_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateDOTweenPathTween", _m_CreateDOTweenPathTween_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOTweenModuleUtils.Physics does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOrientationOnPath_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.Plugins.Options.PathOptions _options;translator.Get(L, 1, out _options); - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - UnityEngine.Quaternion _newRot;translator.Get(L, 3, out _newRot); - UnityEngine.Transform _trans = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform)); - - DG.Tweening.DOTweenModuleUtils.Physics.SetOrientationOnPath( _options, _t, _newRot, _trans ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasRigidbody2D_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Component _target = (UnityEngine.Component)translator.GetObject(L, 1, typeof(UnityEngine.Component)); - - var gen_ret = DG.Tweening.DOTweenModuleUtils.Physics.HasRigidbody2D( _target ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasRigidbody_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Component _target = (UnityEngine.Component)translator.GetObject(L, 1, typeof(UnityEngine.Component)); - - var gen_ret = DG.Tweening.DOTweenModuleUtils.Physics.HasRigidbody( _target ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateDOTweenPathTween_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.MonoBehaviour _target = (UnityEngine.MonoBehaviour)translator.GetObject(L, 1, typeof(UnityEngine.MonoBehaviour)); - bool _tweenRigidbody = LuaAPI.lua_toboolean(L, 2); - bool _isLocal = LuaAPI.lua_toboolean(L, 3); - DG.Tweening.Plugins.Core.PathCore.Path _path = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 4, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _duration = (float)LuaAPI.lua_tonumber(L, 5); - DG.Tweening.PathMode _pathMode;translator.Get(L, 6, out _pathMode); - - var gen_ret = DG.Tweening.DOTweenModuleUtils.Physics.CreateDOTweenPathTween( _target, _tweenRigidbody, _isLocal, _path, _duration, _pathMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOTweenWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOTweenWrap.cs deleted file mode 100644 index 4f021da79..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOTweenWrap.cs +++ /dev/null @@ -1,2652 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOTweenWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOTween); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 45, 21, 21); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetTweensCapacity", _m_SetTweensCapacity_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Clear", _m_Clear_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearCachedTweens", _m_ClearCachedTweens_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Validate", _m_Validate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ManualUpdate", _m_ManualUpdate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "To", _m_To_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToAxis", _m_ToAxis_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToAlpha", _m_ToAlpha_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Punch", _m_Punch_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Shake", _m_Shake_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToArray", _m_ToArray_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Sequence", _m_Sequence_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CompleteAll", _m_CompleteAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Complete", _m_Complete_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FlipAll", _m_FlipAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Flip", _m_Flip_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GotoAll", _m_GotoAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Goto", _m_Goto_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "KillAll", _m_KillAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Kill", _m_Kill_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PauseAll", _m_PauseAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Pause", _m_Pause_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayAll", _m_PlayAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Play", _m_Play_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayBackwardsAll", _m_PlayBackwardsAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayBackwards", _m_PlayBackwards_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayForwardAll", _m_PlayForwardAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayForward", _m_PlayForward_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RestartAll", _m_RestartAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Restart", _m_Restart_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RewindAll", _m_RewindAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Rewind", _m_Rewind_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothRewindAll", _m_SmoothRewindAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothRewind", _m_SmoothRewind_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TogglePauseAll", _m_TogglePauseAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TogglePause", _m_TogglePause_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsTweening", _m_IsTweening_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TotalPlayingTweens", _m_TotalPlayingTweens_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayingTweens", _m_PlayingTweens_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PausedTweens", _m_PausedTweens_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TweensById", _m_TweensById_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TweensByTarget", _m_TweensByTarget_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Version", DG.Tweening.DOTween.Version); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "logBehaviour", _g_get_logBehaviour); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "debugStoreTargetId", _g_get_debugStoreTargetId); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "useSafeMode", _g_get_useSafeMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "nestedTweenFailureBehaviour", _g_get_nestedTweenFailureBehaviour); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "showUnityEditorReport", _g_get_showUnityEditorReport); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "timeScale", _g_get_timeScale); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "useSmoothDeltaTime", _g_get_useSmoothDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxSmoothUnscaledTime", _g_get_maxSmoothUnscaledTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "onWillLog", _g_get_onWillLog); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "drawGizmos", _g_get_drawGizmos); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "debugMode", _g_get_debugMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultUpdateType", _g_get_defaultUpdateType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultTimeScaleIndependent", _g_get_defaultTimeScaleIndependent); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultAutoPlay", _g_get_defaultAutoPlay); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultAutoKill", _g_get_defaultAutoKill); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultLoopType", _g_get_defaultLoopType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultRecyclable", _g_get_defaultRecyclable); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultEaseType", _g_get_defaultEaseType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultEaseOvershootOrAmplitude", _g_get_defaultEaseOvershootOrAmplitude); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultEasePeriod", _g_get_defaultEasePeriod); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "logBehaviour", _s_set_logBehaviour); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "debugStoreTargetId", _s_set_debugStoreTargetId); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "useSafeMode", _s_set_useSafeMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "nestedTweenFailureBehaviour", _s_set_nestedTweenFailureBehaviour); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "showUnityEditorReport", _s_set_showUnityEditorReport); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "timeScale", _s_set_timeScale); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "useSmoothDeltaTime", _s_set_useSmoothDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maxSmoothUnscaledTime", _s_set_maxSmoothUnscaledTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "onWillLog", _s_set_onWillLog); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "drawGizmos", _s_set_drawGizmos); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "debugMode", _s_set_debugMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultUpdateType", _s_set_defaultUpdateType); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultTimeScaleIndependent", _s_set_defaultTimeScaleIndependent); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultAutoPlay", _s_set_defaultAutoPlay); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultAutoKill", _s_set_defaultAutoKill); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultLoopType", _s_set_defaultLoopType); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultRecyclable", _s_set_defaultRecyclable); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultEaseType", _s_set_defaultEaseType); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultEaseOvershootOrAmplitude", _s_set_defaultEaseOvershootOrAmplitude); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultEasePeriod", _s_set_defaultEasePeriod); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "instance", _s_set_instance); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new DG.Tweening.DOTween(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)) - { - System.Nullable _recycleAllByDefault;translator.Get(L, 1, out _recycleAllByDefault); - System.Nullable _useSafeMode;translator.Get(L, 2, out _useSafeMode); - System.Nullable _logBehaviour;translator.Get(L, 3, out _logBehaviour); - - var gen_ret = DG.Tweening.DOTween.Init( _recycleAllByDefault, _useSafeMode, _logBehaviour ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)) - { - System.Nullable _recycleAllByDefault;translator.Get(L, 1, out _recycleAllByDefault); - System.Nullable _useSafeMode;translator.Get(L, 2, out _useSafeMode); - - var gen_ret = DG.Tweening.DOTween.Init( _recycleAllByDefault, _useSafeMode ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Nullable _recycleAllByDefault;translator.Get(L, 1, out _recycleAllByDefault); - - var gen_ret = DG.Tweening.DOTween.Init( _recycleAllByDefault ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = DG.Tweening.DOTween.Init( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Init!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTweensCapacity_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _tweenersCapacity = LuaAPI.xlua_tointeger(L, 1); - int _sequencesCapacity = LuaAPI.xlua_tointeger(L, 2); - - DG.Tweening.DOTween.SetTweensCapacity( _tweenersCapacity, _sequencesCapacity ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _destroy = LuaAPI.lua_toboolean(L, 1); - - DG.Tweening.DOTween.Clear( _destroy ); - - - - return 0; - } - if(gen_param_count == 0) - { - - DG.Tweening.DOTween.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Clear!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCachedTweens_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - DG.Tweening.DOTween.ClearCachedTweens( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Validate_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.Validate( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ManualUpdate_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 1); - float _unscaledDeltaTime = (float)LuaAPI.lua_tonumber(L, 2); - - DG.Tweening.DOTween.ManualUpdate( _deltaTime, _unscaledDeltaTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_To_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 1); - float _startValue = (float)LuaAPI.lua_tonumber(L, 2); - float _endValue = (float)LuaAPI.lua_tonumber(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _setter, _startValue, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _endValue = (float)LuaAPI.lua_tonumber(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - double _endValue = LuaAPI.lua_tonumber(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - int _endValue = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - uint _endValue = LuaAPI.xlua_touint(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isint64(L, 3))&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - long _endValue = LuaAPI.lua_toint64(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isuint64(L, 3))&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - ulong _endValue = LuaAPI.lua_touint64(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - string _endValue = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector2 _endValue;translator.Get(L, 3, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector3 _endValue;translator.Get(L, 3, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector4 _endValue;translator.Get(L, 3, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector3 _endValue;translator.Get(L, 3, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Color _endValue;translator.Get(L, 3, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Rect _endValue;translator.Get(L, 3, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.RectOffset _endValue = (UnityEngine.RectOffset)translator.GetObject(L, 3, typeof(UnityEngine.RectOffset)); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.To( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.To!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToAxis_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _endValue = (float)LuaAPI.lua_tonumber(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 5, out _axisConstraint); - - var gen_ret = DG.Tweening.DOTween.ToAxis( _getter, _setter, _endValue, _duration, _axisConstraint ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _endValue = (float)LuaAPI.lua_tonumber(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.ToAxis( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.ToAxis!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToAlpha_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _endValue = (float)LuaAPI.lua_tonumber(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.ToAlpha( _getter, _setter, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Punch_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = DG.Tweening.DOTween.Punch( _getter, _setter, _direction, _duration, _vibrato, _elasticity ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = DG.Tweening.DOTween.Punch( _getter, _setter, _direction, _duration, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.Punch( _getter, _setter, _direction, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Punch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Shake_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 8&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - float _strength = (float)LuaAPI.lua_tonumber(L, 4); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - float _randomness = (float)LuaAPI.lua_tonumber(L, 6); - bool _ignoreZAxis = LuaAPI.lua_toboolean(L, 7); - bool _fadeOut = LuaAPI.lua_toboolean(L, 8); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength, _vibrato, _randomness, _ignoreZAxis, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - float _strength = (float)LuaAPI.lua_tonumber(L, 4); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - float _randomness = (float)LuaAPI.lua_tonumber(L, 6); - bool _ignoreZAxis = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength, _vibrato, _randomness, _ignoreZAxis ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - float _strength = (float)LuaAPI.lua_tonumber(L, 4); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - float _randomness = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - float _strength = (float)LuaAPI.lua_tonumber(L, 4); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - float _strength = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _strength;translator.Get(L, 4, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - float _randomness = (float)LuaAPI.lua_tonumber(L, 6); - bool _fadeOut = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _strength;translator.Get(L, 4, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - float _randomness = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _strength;translator.Get(L, 4, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _strength;translator.Get(L, 4, out _strength); - - var gen_ret = DG.Tweening.DOTween.Shake( _getter, _setter, _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Shake!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - DG.Tweening.Core.DOGetter _getter = translator.GetDelegate>(L, 1); - DG.Tweening.Core.DOSetter _setter = translator.GetDelegate>(L, 2); - UnityEngine.Vector3[] _endValues = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[])); - float[] _durations = (float[])translator.GetObject(L, 4, typeof(float[])); - - var gen_ret = DG.Tweening.DOTween.ToArray( _getter, _setter, _endValues, _durations ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sequence_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = DG.Tweening.DOTween.Sequence( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompleteAll_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _withCallbacks = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = DG.Tweening.DOTween.CompleteAll( _withCallbacks ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = DG.Tweening.DOTween.CompleteAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.CompleteAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Complete_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - bool _withCallbacks = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.Complete( _targetOrId, _withCallbacks ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Complete( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Complete!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FlipAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.FlipAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Flip_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Flip( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GotoAll_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 1); - bool _andPlay = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.GotoAll( _to, _andPlay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = DG.Tweening.DOTween.GotoAll( _to ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.GotoAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Goto_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - bool _andPlay = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = DG.Tweening.DOTween.Goto( _targetOrId, _to, _andPlay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = DG.Tweening.DOTween.Goto( _targetOrId, _to ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Goto!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_KillAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _complete = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = DG.Tweening.DOTween.KillAll( _complete ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = DG.Tweening.DOTween.KillAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count >= 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable(L, 2))) - { - bool _complete = LuaAPI.lua_toboolean(L, 1); - object[] _idsOrTargetsToExclude = translator.GetParams(L, 2); - - var gen_ret = DG.Tweening.DOTween.KillAll( _complete, _idsOrTargetsToExclude ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.KillAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Kill_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - bool _complete = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.Kill( _targetOrId, _complete ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Kill( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Kill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PauseAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.PauseAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Pause( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.PlayAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Play( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - object _id = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Play( _target, _id ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Play!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayBackwardsAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.PlayBackwardsAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayBackwards_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.PlayBackwards( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - object _id = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.PlayBackwards( _target, _id ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.PlayBackwards!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayForwardAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.PlayForwardAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayForward_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.PlayForward( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - object _id = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.PlayForward( _target, _id ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.PlayForward!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RestartAll_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = DG.Tweening.DOTween.RestartAll( _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = DG.Tweening.DOTween.RestartAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.RestartAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Restart_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - float _changeDelayTo = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = DG.Tweening.DOTween.Restart( _targetOrId, _includeDelay, _changeDelayTo ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.Restart( _targetOrId, _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Restart( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - object _id = translator.GetObject(L, 2, typeof(object)); - bool _includeDelay = LuaAPI.lua_toboolean(L, 3); - float _changeDelayTo = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = DG.Tweening.DOTween.Restart( _target, _id, _includeDelay, _changeDelayTo ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - object _id = translator.GetObject(L, 2, typeof(object)); - bool _includeDelay = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = DG.Tweening.DOTween.Restart( _target, _id, _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - object _id = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Restart( _target, _id ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Restart!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RewindAll_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = DG.Tweening.DOTween.RewindAll( _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = DG.Tweening.DOTween.RewindAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.RewindAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rewind_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.Rewind( _targetOrId, _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.Rewind( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.Rewind!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothRewindAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.SmoothRewindAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothRewind_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.SmoothRewind( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TogglePauseAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.TogglePauseAll( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TogglePause_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.TogglePause( _targetOrId ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTweening_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - bool _alsoCheckIfIsPlaying = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.IsTweening( _targetOrId, _alsoCheckIfIsPlaying ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _targetOrId = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.IsTweening( _targetOrId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.IsTweening!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TotalPlayingTweens_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = DG.Tweening.DOTween.TotalPlayingTweens( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayingTweens_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fillableList = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = DG.Tweening.DOTween.PlayingTweens( _fillableList ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = DG.Tweening.DOTween.PlayingTweens( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.PlayingTweens!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PausedTweens_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _fillableList = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = DG.Tweening.DOTween.PausedTweens( _fillableList ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = DG.Tweening.DOTween.PausedTweens( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.PausedTweens!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TweensById_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - object _id = translator.GetObject(L, 1, typeof(object)); - bool _playingOnly = LuaAPI.lua_toboolean(L, 2); - System.Collections.Generic.List _fillableList = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = DG.Tweening.DOTween.TweensById( _id, _playingOnly, _fillableList ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _id = translator.GetObject(L, 1, typeof(object)); - bool _playingOnly = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.TweensById( _id, _playingOnly ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _id = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.TweensById( _id ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.TweensById!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TweensByTarget_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - bool _playingOnly = LuaAPI.lua_toboolean(L, 2); - System.Collections.Generic.List _fillableList = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = DG.Tweening.DOTween.TweensByTarget( _target, _playingOnly, _fillableList ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - bool _playingOnly = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = DG.Tweening.DOTween.TweensByTarget( _target, _playingOnly ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _target = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = DG.Tweening.DOTween.TweensByTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOTween.TweensByTarget!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushDGTweeningLogBehaviour(L, DG.Tweening.DOTween.logBehaviour); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_debugStoreTargetId(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.debugStoreTargetId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSafeMode(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.useSafeMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nestedTweenFailureBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, DG.Tweening.DOTween.nestedTweenFailureBehaviour); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showUnityEditorReport(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.showUnityEditorReport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeScale(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, DG.Tweening.DOTween.timeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSmoothDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.useSmoothDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxSmoothUnscaledTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, DG.Tweening.DOTween.maxSmoothUnscaledTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onWillLog(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, DG.Tweening.DOTween.onWillLog); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drawGizmos(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.drawGizmos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_debugMode(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.debugMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultUpdateType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushDGTweeningUpdateType(L, DG.Tweening.DOTween.defaultUpdateType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTimeScaleIndependent(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.defaultTimeScaleIndependent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultAutoPlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushDGTweeningAutoPlay(L, DG.Tweening.DOTween.defaultAutoPlay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultAutoKill(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.defaultAutoKill); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultLoopType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushDGTweeningLoopType(L, DG.Tweening.DOTween.defaultLoopType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultRecyclable(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, DG.Tweening.DOTween.defaultRecyclable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultEaseType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushDGTweeningEase(L, DG.Tweening.DOTween.defaultEaseType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultEaseOvershootOrAmplitude(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, DG.Tweening.DOTween.defaultEaseOvershootOrAmplitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultEasePeriod(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, DG.Tweening.DOTween.defaultEasePeriod); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, DG.Tweening.DOTween.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.LogBehaviour gen_value;translator.Get(L, 1, out gen_value); - DG.Tweening.DOTween.logBehaviour = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_debugStoreTargetId(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.debugStoreTargetId = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSafeMode(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.useSafeMode = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_nestedTweenFailureBehaviour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.Core.Enums.NestedTweenFailureBehaviour gen_value;translator.Get(L, 1, out gen_value); - DG.Tweening.DOTween.nestedTweenFailureBehaviour = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showUnityEditorReport(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.showUnityEditorReport = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeScale(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.timeScale = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSmoothDeltaTime(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.useSmoothDeltaTime = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxSmoothUnscaledTime(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.maxSmoothUnscaledTime = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onWillLog(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.DOTween.onWillLog = translator.GetDelegate>(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drawGizmos(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.drawGizmos = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_debugMode(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.debugMode = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultUpdateType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.UpdateType gen_value;translator.Get(L, 1, out gen_value); - DG.Tweening.DOTween.defaultUpdateType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultTimeScaleIndependent(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.defaultTimeScaleIndependent = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultAutoPlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.AutoPlay gen_value;translator.Get(L, 1, out gen_value); - DG.Tweening.DOTween.defaultAutoPlay = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultAutoKill(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.defaultAutoKill = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultLoopType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.LoopType gen_value;translator.Get(L, 1, out gen_value); - DG.Tweening.DOTween.defaultLoopType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultRecyclable(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.defaultRecyclable = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultEaseType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.Ease gen_value;translator.Get(L, 1, out gen_value); - DG.Tweening.DOTween.defaultEaseType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultEaseOvershootOrAmplitude(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.defaultEaseOvershootOrAmplitude = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultEasePeriod(RealStatePtr L) - { - try { - - DG.Tweening.DOTween.defaultEasePeriod = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - DG.Tweening.DOTween.instance = (DG.Tweening.Core.DOTweenComponent)translator.GetObject(L, 1, typeof(DG.Tweening.Core.DOTweenComponent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_DOVirtualWrap.cs b/Assets/XLua/Gen/DG_Tweening_DOVirtualWrap.cs deleted file mode 100644 index 0f3e01514..000000000 --- a/Assets/XLua/Gen/DG_Tweening_DOVirtualWrap.cs +++ /dev/null @@ -1,224 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningDOVirtualWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.DOVirtual); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Float", _m_Float_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EasedValue", _m_EasedValue_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DelayedCall", _m_DelayedCall_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.DOVirtual does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Float_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _from = (float)LuaAPI.lua_tonumber(L, 1); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.TweenCallback _onVirtualUpdate = translator.GetDelegate>(L, 4); - - var gen_ret = DG.Tweening.DOVirtual.Float( _from, _to, _duration, _onVirtualUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EasedValue_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - float _from = (float)LuaAPI.lua_tonumber(L, 1); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - float _lifetimePercentage = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.Ease _easeType;translator.Get(L, 4, out _easeType); - - var gen_ret = DG.Tweening.DOVirtual.EasedValue( _from, _to, _lifetimePercentage, _easeType ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - float _from = (float)LuaAPI.lua_tonumber(L, 1); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - float _lifetimePercentage = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.AnimationCurve _easeCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 4, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = DG.Tweening.DOVirtual.EasedValue( _from, _to, _lifetimePercentage, _easeCurve ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _from = (float)LuaAPI.lua_tonumber(L, 1); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - float _lifetimePercentage = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.Ease _easeType;translator.Get(L, 4, out _easeType); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = DG.Tweening.DOVirtual.EasedValue( _from, _to, _lifetimePercentage, _easeType, _overshoot ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - float _from = (float)LuaAPI.lua_tonumber(L, 1); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - float _lifetimePercentage = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.Ease _easeType;translator.Get(L, 4, out _easeType); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 5); - float _period = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = DG.Tweening.DOVirtual.EasedValue( _from, _to, _lifetimePercentage, _easeType, _amplitude, _period ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOVirtual.EasedValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DelayedCall_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 1); - DG.Tweening.TweenCallback _callback = translator.GetDelegate(L, 2); - bool _ignoreTimeScale = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = DG.Tweening.DOVirtual.DelayedCall( _delay, _callback, _ignoreTimeScale ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 1); - DG.Tweening.TweenCallback _callback = translator.GetDelegate(L, 2); - - var gen_ret = DG.Tweening.DOVirtual.DelayedCall( _delay, _callback ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.DOVirtual.DelayedCall!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_EaseFactoryWrap.cs b/Assets/XLua/Gen/DG_Tweening_EaseFactoryWrap.cs deleted file mode 100644 index 07409f456..000000000 --- a/Assets/XLua/Gen/DG_Tweening_EaseFactoryWrap.cs +++ /dev/null @@ -1,152 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningEaseFactoryWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.EaseFactory); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "StopMotion", _m_StopMotion_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new DG.Tweening.EaseFactory(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.EaseFactory constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopMotion_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _motionFps = LuaAPI.xlua_tointeger(L, 1); - System.Nullable _ease;translator.Get(L, 2, out _ease); - - var gen_ret = DG.Tweening.EaseFactory.StopMotion( _motionFps, _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _motionFps = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = DG.Tweening.EaseFactory.StopMotion( _motionFps ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _motionFps = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = DG.Tweening.EaseFactory.StopMotion( _motionFps, _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _motionFps = LuaAPI.xlua_tointeger(L, 1); - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = DG.Tweening.EaseFactory.StopMotion( _motionFps, _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.EaseFactory.StopMotion!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_SequenceWrap.cs b/Assets/XLua/Gen/DG_Tweening_SequenceWrap.cs deleted file mode 100644 index a1a1c8c6c..000000000 --- a/Assets/XLua/Gen/DG_Tweening_SequenceWrap.cs +++ /dev/null @@ -1,1250 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningSequenceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Sequence); - Utils.BeginObjectRegister(type, L, translator, 0, 32, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Append", _m_Append); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Prepend", _m_Prepend); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Join", _m_Join); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AppendInterval", _m_AppendInterval); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PrependInterval", _m_PrependInterval); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AppendCallback", _m_AppendCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PrependCallback", _m_PrependCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertCallback", _m_InsertCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Sequence does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Append(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.Append( _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Prepend(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.Prepend( _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Join(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.Join( _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - float _atPosition = (float)LuaAPI.lua_tonumber(L, 2); - DG.Tweening.Tween _t = (DG.Tweening.Tween)translator.GetObject(L, 3, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.Insert( _atPosition, _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendInterval(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - float _interval = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AppendInterval( _interval ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PrependInterval(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - float _interval = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.PrependInterval( _interval ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _callback = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.AppendCallback( _callback ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PrependCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _callback = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.PrependCallback( _callback ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - - { - float _atPosition = (float)LuaAPI.lua_tonumber(L, 2); - DG.Tweening.TweenCallback _callback = translator.GetDelegate(L, 3); - - var gen_ret = gen_to_be_invoked.InsertCallback( _atPosition, _callback ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Sequence.SetSpeedBased!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_ShortcutExtensionsWrap.cs b/Assets/XLua/Gen/DG_Tweening_ShortcutExtensionsWrap.cs deleted file mode 100644 index 1b824f2f1..000000000 --- a/Assets/XLua/Gen/DG_Tweening_ShortcutExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningShortcutExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.ShortcutExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.ShortcutExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_TweenExtensionsWrap.cs b/Assets/XLua/Gen/DG_Tweening_TweenExtensionsWrap.cs deleted file mode 100644 index e16ae09b2..000000000 --- a/Assets/XLua/Gen/DG_Tweening_TweenExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningTweenExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.TweenExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.TweenExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_TweenParamsWrap.cs b/Assets/XLua/Gen/DG_Tweening_TweenParamsWrap.cs deleted file mode 100644 index 645ae5543..000000000 --- a/Assets/XLua/Gen/DG_Tweening_TweenParamsWrap.cs +++ /dev/null @@ -1,804 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningTweenParamsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.TweenParams); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Params", DG.Tweening.TweenParams.Params); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new DG.Tweening.TweenParams(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Clear( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - object _id = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _id ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - System.Nullable _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - System.Nullable _overshootOrAmplitude;translator.Get(L, 3, out _overshootOrAmplitude); - System.Nullable _period;translator.Get(L, 4, out _period); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshootOrAmplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - System.Nullable _overshootOrAmplitude;translator.Get(L, 3, out _overshootOrAmplitude); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshootOrAmplitude ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.TweenParams gen_to_be_invoked = (DG.Tweening.TweenParams)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.TweenParams.SetSpeedBased!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_TweenSettingsExtensionsWrap.cs b/Assets/XLua/Gen/DG_Tweening_TweenSettingsExtensionsWrap.cs deleted file mode 100644 index 61a15d8d4..000000000 --- a/Assets/XLua/Gen/DG_Tweening_TweenSettingsExtensionsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningTweenSettingsExtensionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.TweenSettingsExtensions); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.TweenSettingsExtensions does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_TweenWrap.cs b/Assets/XLua/Gen/DG_Tweening_TweenWrap.cs deleted file mode 100644 index a6dfd7cb2..000000000 --- a/Assets/XLua/Gen/DG_Tweening_TweenWrap.cs +++ /dev/null @@ -1,3075 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using BF;using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningTweenWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Tween); - Utils.BeginObjectRegister(type, L, translator, 0, 65, 23, 18); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIntId", _m_SetIntId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WaitForCompletion", _m_WaitForCompletion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WaitForRewind", _m_WaitForRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WaitForKill", _m_WaitForKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WaitForElapsedLoops", _m_WaitForElapsedLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WaitForPosition", _m_WaitForPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WaitForStart", _m_WaitForStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsyncWaitForCompletion", _m_AsyncWaitForCompletion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsyncWaitForRewind", _m_AsyncWaitForRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsyncWaitForKill", _m_AsyncWaitForKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsyncWaitForElapsedLoops", _m_AsyncWaitForElapsedLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsyncWaitForPosition", _m_AsyncWaitForPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsyncWaitForStart", _m_AsyncWaitForStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Complete", _m_Complete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Flip", _m_Flip); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceInit", _m_ForceInit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Goto", _m_Goto); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Kill", _m_Kill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayBackwards", _m_PlayBackwards); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayForward", _m_PlayForward); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Restart", _m_Restart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rewind", _m_Rewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SmoothRewind", _m_SmoothRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TogglePause", _m_TogglePause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoWaypoint", _m_GotoWaypoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompletedLoops", _m_CompletedLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Delay", _m_Delay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ElapsedDelay", _m_ElapsedDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Duration", _m_Duration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Elapsed", _m_Elapsed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ElapsedPercentage", _m_ElapsedPercentage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ElapsedDirectionalPercentage", _m_ElapsedDirectionalPercentage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsActive", _m_IsActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBackwards", _m_IsBackwards); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsComplete", _m_IsComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInitialized", _m_IsInitialized); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPlaying", _m_IsPlaying); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Loops", _m_Loops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PathGetPoint", _m_PathGetPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PathGetDrawPoints", _m_PathGetDrawPoints); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PathLength", _m_PathLength); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOTimeScale", _m_DOTimeScale); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isRelative", _g_get_isRelative); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "active", _g_get_active); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fullPosition", _g_get_fullPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasLoops", _g_get_hasLoops); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playedOnce", _g_get_playedOnce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeScale", _g_get_timeScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isBackwards", _g_get_isBackwards); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stringId", _g_get_stringId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "intId", _g_get_intId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "target", _g_get_target); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onPlay", _g_get_onPlay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onPause", _g_get_onPause); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onRewind", _g_get_onRewind); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onUpdate", _g_get_onUpdate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onStepComplete", _g_get_onStepComplete); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onComplete", _g_get_onComplete); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onKill", _g_get_onKill); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onWaypointChange", _g_get_onWaypointChange); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "easeOvershootOrAmplitude", _g_get_easeOvershootOrAmplitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "easePeriod", _g_get_easePeriod); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugTargetId", _g_get_debugTargetId); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fullPosition", _s_set_fullPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeScale", _s_set_timeScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isBackwards", _s_set_isBackwards); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "id", _s_set_id); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stringId", _s_set_stringId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "intId", _s_set_intId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "target", _s_set_target); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onPlay", _s_set_onPlay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onPause", _s_set_onPause); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onRewind", _s_set_onRewind); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onUpdate", _s_set_onUpdate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onStepComplete", _s_set_onStepComplete); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onComplete", _s_set_onComplete); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onKill", _s_set_onKill); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onWaypointChange", _s_set_onWaypointChange); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "easeOvershootOrAmplitude", _s_set_easeOvershootOrAmplitude); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "easePeriod", _s_set_easePeriod); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "debugTargetId", _s_set_debugTargetId); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Tween does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIntId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetIntId( _id ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WaitForCompletion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.WaitForCompletion( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _returnCustomYieldInstruction = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.WaitForCompletion( _returnCustomYieldInstruction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.WaitForCompletion!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WaitForRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.WaitForRewind( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _returnCustomYieldInstruction = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.WaitForRewind( _returnCustomYieldInstruction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.WaitForRewind!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WaitForKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.WaitForKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _returnCustomYieldInstruction = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.WaitForKill( _returnCustomYieldInstruction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.WaitForKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WaitForElapsedLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _elapsedLoops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.WaitForElapsedLoops( _elapsedLoops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _elapsedLoops = LuaAPI.xlua_tointeger(L, 2); - bool _returnCustomYieldInstruction = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.WaitForElapsedLoops( _elapsedLoops, _returnCustomYieldInstruction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.WaitForElapsedLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WaitForPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _position = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.WaitForPosition( _position ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _position = (float)LuaAPI.lua_tonumber(L, 2); - bool _returnCustomYieldInstruction = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.WaitForPosition( _position, _returnCustomYieldInstruction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.WaitForPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WaitForStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.WaitForStart( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _returnCustomYieldInstruction = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.WaitForStart( _returnCustomYieldInstruction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.WaitForStart!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsyncWaitForCompletion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsyncWaitForCompletion( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsyncWaitForRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsyncWaitForRewind( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsyncWaitForKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsyncWaitForKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsyncWaitForElapsedLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - int _elapsedLoops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.AsyncWaitForElapsedLoops( _elapsedLoops ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsyncWaitForPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - float _position = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AsyncWaitForPosition( _position ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsyncWaitForStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsyncWaitForStart( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Complete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Complete( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withCallbacks = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Complete( _withCallbacks ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.Complete!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Flip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Flip( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceInit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ForceInit( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Goto(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 2); - bool _andPlay = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Goto( _to, _andPlay ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Goto( _to ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.Goto!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Kill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _complete = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Kill( _complete ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.Kill( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.Kill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayBackwards(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.PlayBackwards( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayForward(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.PlayForward( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Restart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - float _changeDelayTo = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Restart( _includeDelay, _changeDelayTo ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Restart( _includeDelay ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.Restart( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.Restart!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Rewind( _includeDelay ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.Rewind( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.Rewind!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SmoothRewind( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TogglePause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TogglePause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GotoWaypoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _waypointIndex = LuaAPI.xlua_tointeger(L, 2); - bool _andPlay = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.GotoWaypoint( _waypointIndex, _andPlay ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _waypointIndex = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.GotoWaypoint( _waypointIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.GotoWaypoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompletedLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.CompletedLoops( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Delay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Delay( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ElapsedDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ElapsedDelay( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Duration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeLoops = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.Duration( _includeLoops ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.Duration( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.Duration!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Elapsed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeLoops = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.Elapsed( _includeLoops ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.Elapsed( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.Elapsed!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ElapsedPercentage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeLoops = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.ElapsedPercentage( _includeLoops ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ElapsedPercentage( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.ElapsedPercentage!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ElapsedDirectionalPercentage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ElapsedDirectionalPercentage( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsActive( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsBackwards(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsBackwards( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsComplete( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsInitialized(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsInitialized( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsPlaying(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsPlaying( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Loops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Loops( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PathGetPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - float _pathPercentage = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.PathGetPoint( _pathPercentage ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PathGetDrawPoints(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _subdivisionsXSegment = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.PathGetDrawPoints( _subdivisionsXSegment ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.PathGetDrawPoints( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.PathGetDrawPoints!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PathLength(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.PathLength( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tween.SetSpeedBased!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOTimeScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOTimeScale( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isRelative(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isRelative); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_active(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.active); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fullPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fullPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasLoops(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasLoops); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playedOnce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playedOnce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.timeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isBackwards(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isBackwards); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stringId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.stringId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_intId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.intId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_target(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.target); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onPlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onPlay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onPause(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onPause); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onRewind(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onRewind); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onUpdate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onUpdate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onStepComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onStepComplete); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onComplete); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onKill(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onKill); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onWaypointChange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onWaypointChange); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_easeOvershootOrAmplitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.easeOvershootOrAmplitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_easePeriod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.easePeriod); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_debugTargetId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.debugTargetId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fullPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fullPosition = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.timeScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isBackwards(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isBackwards = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.id = translator.GetObject(L, 2, typeof(object)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stringId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stringId = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_intId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.intId = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_target(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.target = translator.GetObject(L, 2, typeof(object)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onPlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onPlay = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onPause(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onPause = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onRewind(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onRewind = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onUpdate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onUpdate = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onStepComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onStepComplete = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onComplete = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onKill(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onKill = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onWaypointChange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onWaypointChange = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_easeOvershootOrAmplitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.easeOvershootOrAmplitude = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_easePeriod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.easePeriod = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_debugTargetId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - DG.Tweening.Tween gen_to_be_invoked = (DG.Tweening.Tween)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.debugTargetId = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/DG_Tweening_TweenerWrap.cs b/Assets/XLua/Gen/DG_Tweening_TweenerWrap.cs deleted file mode 100644 index 525753890..000000000 --- a/Assets/XLua/Gen/DG_Tweening_TweenerWrap.cs +++ /dev/null @@ -1,1187 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class DGTweeningTweenerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(DG.Tweening.Tweener); - Utils.BeginObjectRegister(type, L, translator, 0, 27, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeStartValue", _m_ChangeStartValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeEndValue", _m_ChangeEndValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChangeValues", _m_ChangeValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoKill", _m_SetAutoKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLink", _m_SetLink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLoops", _m_SetLoops); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEase", _m_SetEase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRecyclable", _m_SetRecyclable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUpdate", _m_SetUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStart", _m_OnStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlay", _m_OnPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPause", _m_OnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewind", _m_OnRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdate", _m_OnUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStepComplete", _m_OnStepComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnComplete", _m_OnComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnKill", _m_OnKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnWaypointChange", _m_OnWaypointChange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAs", _m_SetAs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "From", _m_From); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDelay", _m_SetDelay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRelative", _m_SetRelative); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpeedBased", _m_SetSpeedBased); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "DG.Tweening.Tweener does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeStartValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeStartValue( _newStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.ChangeStartValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeEndValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapStartValue = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration, _snapStartValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _newEndValue = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeEndValue( _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.ChangeEndValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - float _newDuration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue, _newDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _newStartValue = translator.GetObject(L, 2, typeof(object)); - object _newEndValue = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.ChangeValues( _newStartValue, _newEndValue ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.ChangeValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Pause( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Play( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetAutoKill( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _autoKillOnCompletion = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetAutoKill( _autoKillOnCompletion ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetAutoKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _intId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _intId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _objectId = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetId( _objectId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stringId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _stringId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - DG.Tweening.LinkBehaviour _behaviour;translator.Get(L, 3, out _behaviour); - - var gen_ret = gen_to_be_invoked.SetLink( _gameObject, _behaviour ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetLink!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.SetTarget( _target ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLoops(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _loops = LuaAPI.xlua_tointeger(L, 2); - DG.Tweening.LoopType _loopType;translator.Get(L, 3, out _loopType); - - var gen_ret = gen_to_be_invoked.SetLoops( _loops, _loopType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetLoops!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - - var gen_ret = gen_to_be_invoked.SetEase( _ease ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _animCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.SetEase( _animCurve ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.EaseFunction _customEase = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.SetEase( _customEase ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _overshoot = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _overshoot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - DG.Tweening.Ease _ease;translator.Get(L, 2, out _ease); - float _amplitude = (float)LuaAPI.lua_tonumber(L, 3); - float _period = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.SetEase( _ease, _amplitude, _period ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetEase!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRecyclable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRecyclable( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _recyclable = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRecyclable( _recyclable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetRecyclable!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetUpdate( _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.UpdateType _updateType;translator.Get(L, 2, out _updateType); - bool _isIndependentUpdate = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetUpdate( _updateType, _isIndependentUpdate ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStart( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPlay( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnPause( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnRewind( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnUpdate( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnStepComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnStepComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnComplete( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate(L, 2); - - var gen_ret = gen_to_be_invoked.OnKill( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnWaypointChange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.TweenCallback _action = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.OnWaypointChange( _action ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.Tween _asTween = (DG.Tweening.Tween)translator.GetObject(L, 2, typeof(DG.Tweening.Tween)); - - var gen_ret = gen_to_be_invoked.SetAs( _asTween ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - DG.Tweening.TweenParams _tweenParams = (DG.Tweening.TweenParams)translator.GetObject(L, 2, typeof(DG.Tweening.TweenParams)); - - var gen_ret = gen_to_be_invoked.SetAs( _tweenParams ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetAs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_From(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.From( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.From( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.From!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDelay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.SetDelay( _delay, _asPrependedIntervalIfSequence ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetDelay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRelative(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetRelative( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isRelative = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetRelative( _isRelative ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetRelative!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpeedBased(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - DG.Tweening.Tweener gen_to_be_invoked = (DG.Tweening.Tweener)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.SetSpeedBased( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isSpeedBased = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.SetSpeedBased( _isSpeedBased ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to DG.Tweening.Tweener.SetSpeedBased!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DelegatesGensBridge.cs b/Assets/XLua/Gen/DelegatesGensBridge.cs deleted file mode 100644 index af6ef9428..000000000 --- a/Assets/XLua/Gen/DelegatesGensBridge.cs +++ /dev/null @@ -1,3838 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using System; - - -namespace XLua -{ - public partial class DelegateBridge : DelegateBridgeBase - { - - public void __Gen_Delegate_Imp0() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp1(int p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp2(int p0, string p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.lua_pushstring(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp3(string p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushstring(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp4(bool p0, string p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushboolean(L, p0); - LuaAPI.lua_pushstring(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp5(UnityEngine.Vector2 p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushUnityEngineVector2(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp6(UnityEngine.GameObject p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp7(int p0, int p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.xlua_pushinteger(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp8(bool p0, int p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushboolean(L, p0); - LuaAPI.xlua_pushinteger(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp9(bool p0, UnityEngine.Purchasing.Product[] p1, string p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.lua_pushboolean(L, p0); - translator.Push(L, p1); - LuaAPI.lua_pushstring(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp10(bool p0, UnityEngine.Purchasing.Product p1, string p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.lua_pushboolean(L, p0); - translator.Push(L, p1); - LuaAPI.lua_pushstring(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.Color __Gen_Delegate_Imp11() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.Color __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp12(UnityEngine.Color p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushUnityEngineColor(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.Vector2 __Gen_Delegate_Imp13() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.Vector2 __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp14(UnityEngine.Camera p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp15(UnityEngine.LogType p0, object p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.PushAny(L, p1); - - PCall(L, 2, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.Vector3 __Gen_Delegate_Imp16() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.Vector3 __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp17(UnityEngine.Vector3 p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushUnityEngineVector3(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.Quaternion __Gen_Delegate_Imp18() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.Quaternion __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp19(UnityEngine.Quaternion p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushUnityEngineQuaternion(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public float __Gen_Delegate_Imp20() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - float __gen_ret = (float)LuaAPI.lua_tonumber(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp21(float p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushnumber(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp22(BestHTTP.HTTPRequest p0, long p1, long p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - LuaAPI.lua_pushint64(L, p1); - LuaAPI.lua_pushint64(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp23(BestHTTP.HTTPRequest p0, BestHTTP.HTTPResponse p1, byte[] p2, int p3) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - LuaAPI.lua_pushstring(L, p2); - LuaAPI.xlua_pushinteger(L, p3); - - PCall(L, 4, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp24(BestHTTP.HTTPRequest p0, BestHTTP.HTTPResponse p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp25(string p0, string p1, System.Action p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.lua_pushstring(L, p0); - LuaAPI.lua_pushstring(L, p1); - translator.Push(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp26(int p0, System.Action p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.xlua_pushinteger(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp27(int p0, System.Action p1, System.Action p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.xlua_pushinteger(L, p0); - translator.Push(L, p1); - translator.Push(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp28(int p0, float p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.lua_pushnumber(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp29(long p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushint64(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public byte[] __Gen_Delegate_Imp30(ref string p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushstring(L, p0); - - PCall(L, 1, 2, errFunc); - - p0 = LuaAPI.lua_tostring(L, errFunc + 2); - - byte[] __gen_ret = LuaAPI.lua_tobytes(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp31(bool p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushboolean(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp32(int p0, uint p1, uint p2, byte[] p3) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.xlua_pushuint(L, p1); - LuaAPI.xlua_pushuint(L, p2); - LuaAPI.lua_pushstring(L, p3); - - PCall(L, 4, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp33(int p0, int p1, string p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.xlua_pushinteger(L, p1); - LuaAPI.lua_pushstring(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp34(UnityEngine.Texture2D p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp35(string p0, UnityEngine.Object p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.lua_pushstring(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp36(BF.AssetBundleObject p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp37(uint p0, int p1, byte[] p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushuint(L, p0); - LuaAPI.xlua_pushinteger(L, p1); - LuaAPI.lua_pushstring(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp38(BF.ISocketChannel p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushAny(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp39(string p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushstring(L, p0); - - PCall(L, 1, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public string __Gen_Delegate_Imp40() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - string __gen_ret = LuaAPI.lua_tostring(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp41(int p0, float p1, float p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.lua_pushnumber(L, p1); - LuaAPI.lua_pushnumber(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp42(float p0, float p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushnumber(L, p0); - LuaAPI.lua_pushnumber(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp43(int p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - - PCall(L, 1, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public System.Collections.Generic.List __Gen_Delegate_Imp44(int p0, int p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.xlua_pushinteger(L, p1); - - PCall(L, 2, 1, errFunc); - - - System.Collections.Generic.List __gen_ret = (System.Collections.Generic.List)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.List)); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.Texture2D __Gen_Delegate_Imp45() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.Texture2D __gen_ret = (UnityEngine.Texture2D)translator.GetObject(L, errFunc + 1, typeof(UnityEngine.Texture2D)); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public System.Collections.Generic.List __Gen_Delegate_Imp46() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - System.Collections.Generic.List __gen_ret = (System.Collections.Generic.List)translator.GetObject(L, errFunc + 1, typeof(System.Collections.Generic.List)); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp47(IronSourceAdInfo p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp48(IronSourceError p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp49(IronSourceImpressionData p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp50(IronSourcePlacement p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp51(string p0, IronSourceError p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.lua_pushstring(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp52(System.Collections.Generic.Dictionary p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp53(IronSourceError p0, IronSourceAdInfo p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp54(IronSourcePlacement p0, IronSourceAdInfo p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public string __Gen_Delegate_Imp55(System.DateTime p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 1, errFunc); - - - string __gen_ret = LuaAPI.lua_tostring(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp56(com.adjust.sdk.AdjustAttribution p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp57(com.adjust.sdk.AdjustEventSuccess p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp58(com.adjust.sdk.AdjustEventFailure p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp59(com.adjust.sdk.AdjustSessionSuccess p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp60(com.adjust.sdk.AdjustSessionFailure p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp61(int p0, string p1, bool p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.lua_pushstring(L, p1); - LuaAPI.lua_pushboolean(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp62(Http.ResultInfo p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp63(System.IAsyncResult p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushAny(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp64(object p0, System.EventArgs p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushAny(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp65(int p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - - PCall(L, 1, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp66(int p0, int p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.xlua_pushinteger(L, p1); - - PCall(L, 2, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp67(float p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushnumber(L, p0); - - PCall(L, 1, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp68(float p0, float p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushnumber(L, p0); - LuaAPI.lua_pushnumber(L, p1); - - PCall(L, 2, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp69(string p0, string p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushstring(L, p0); - LuaAPI.lua_pushstring(L, p1); - - PCall(L, 2, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp70(TMPro.TMP_FontAsset p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp71(TMPro.TMP_FontAsset p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp72(TMPro.TMP_FontAsset p0, TMPro.TMP_FontAsset p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp73(UnityEngine.Camera p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp74(UnityEngine.Camera p0, UnityEngine.Camera p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp75(System.Collections.Generic.List p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp76(System.Collections.Generic.List p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp77(System.Collections.Generic.List p0, System.Collections.Generic.List p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp78(BF.BFFinger p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp79(BF.BFFinger p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp80(BF.BFFinger p0, BF.BFFinger p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp81(UnityEngine.RectTransform p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp82(UnityEngine.Playables.PlayableDirector p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp83(string p0, bool p1, string p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushstring(L, p0); - LuaAPI.lua_pushboolean(L, p1); - LuaAPI.lua_pushstring(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp84(string p0, string p1, UnityEngine.LogType p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.lua_pushstring(L, p0); - LuaAPI.lua_pushstring(L, p1); - translator.Push(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp85() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp86(float[] p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp87(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.LoadSceneMode p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp88(UnityEngine.SceneManagement.Scene p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp89(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.Scene p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp90(UnityEngine.AsyncOperation p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp91(UnityEngine.SpriteRenderer p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp92(UnityEngine.Video.VideoPlayer p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp93(UnityEngine.Video.VideoPlayer p0, string p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - LuaAPI.lua_pushstring(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp94(UnityEngine.Video.VideoPlayer p0, double p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - LuaAPI.lua_pushnumber(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp95(UnityEngine.Video.VideoPlayer p0, long p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - LuaAPI.lua_pushint64(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp96(UnityEngine.Font p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp97(UnityEngine.ReflectionProbe p0, UnityEngine.ReflectionProbe.ReflectionProbeEvent p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp98(UnityEngine.Cubemap p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp99(UnityEngine.Texture p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp100(UnityEngine.PhysicsScene p0, Unity.Collections.NativeArray p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public char __Gen_Delegate_Imp101(string p0, int p1, char p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushstring(L, p0); - LuaAPI.xlua_pushinteger(L, p1); - LuaAPI.xlua_pushinteger(L, p2); - - PCall(L, 3, 1, errFunc); - - - char __gen_ret = (char)LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp102(Spine.TrackEntry p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp103(Spine.TrackEntry p0, Spine.Event p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp104(UnityEngine.Mesh p0, UnityEngine.Material p1, UnityEngine.Texture p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - translator.Push(L, p2); - - PCall(L, 3, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp105(int p0, UnityEngine.Mesh[] p1, UnityEngine.Material[] p2, UnityEngine.Texture[] p3) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.xlua_pushinteger(L, p0); - translator.Push(L, p1); - translator.Push(L, p2); - translator.Push(L, p3); - - PCall(L, 4, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp106(Spine.Unity.SkeletonGraphic p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp107(Spine.Unity.SkeletonRendererInstruction p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp108(Spine.Unity.ISkeletonAnimation p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushAny(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp109(Spine.Unity.MeshGeneratorBuffers p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp110(Spine.Unity.SkeletonRenderer p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp111(TMPro.TMP_TextInfo p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public TMPro.TMP_FontAsset __Gen_Delegate_Imp112(int p0, string p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.lua_pushstring(L, p1); - - PCall(L, 2, 1, errFunc); - - - TMPro.TMP_FontAsset __gen_ret = (TMPro.TMP_FontAsset)translator.GetObject(L, errFunc + 1, typeof(TMPro.TMP_FontAsset)); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public TMPro.TMP_SpriteAsset __Gen_Delegate_Imp113(int p0, string p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.xlua_pushinteger(L, p0); - LuaAPI.lua_pushstring(L, p1); - - PCall(L, 2, 1, errFunc); - - - TMPro.TMP_SpriteAsset __gen_ret = (TMPro.TMP_SpriteAsset)translator.GetObject(L, errFunc + 1, typeof(TMPro.TMP_SpriteAsset)); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public double __Gen_Delegate_Imp114() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - double __gen_ret = LuaAPI.lua_tonumber(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp115(double p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushnumber(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public int __Gen_Delegate_Imp116() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - int __gen_ret = LuaAPI.xlua_tointeger(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public uint __Gen_Delegate_Imp117() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - uint __gen_ret = LuaAPI.xlua_touint(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp118(uint p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.xlua_pushuint(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public long __Gen_Delegate_Imp119() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - long __gen_ret = LuaAPI.lua_toint64(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public ulong __Gen_Delegate_Imp120() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - - PCall(L, 0, 1, errFunc); - - - ulong __gen_ret = LuaAPI.lua_touint64(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp121(ulong p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushuint64(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.Vector4 __Gen_Delegate_Imp122() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.Vector4 __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp123(UnityEngine.Vector4 p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushUnityEngineVector4(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.Rect __Gen_Delegate_Imp124() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.Rect __gen_ret;translator.Get(L, errFunc + 1, out __gen_ret); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp125(UnityEngine.Rect p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public UnityEngine.RectOffset __Gen_Delegate_Imp126() - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - - PCall(L, 0, 1, errFunc); - - - UnityEngine.RectOffset __gen_ret = (UnityEngine.RectOffset)translator.GetObject(L, errFunc + 1, typeof(UnityEngine.RectOffset)); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp127(UnityEngine.RectOffset p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public float __Gen_Delegate_Imp128(float p0, float p1, float p2, float p3) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - - LuaAPI.lua_pushnumber(L, p0); - LuaAPI.lua_pushnumber(L, p1); - LuaAPI.lua_pushnumber(L, p2); - LuaAPI.lua_pushnumber(L, p3); - - PCall(L, 4, 1, errFunc); - - - float __gen_ret = (float)LuaAPI.lua_tonumber(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp129(BestHTTP.HTTPRequest p0, System.Security.Cryptography.X509Certificates.X509Certificate p1, System.Security.Cryptography.X509Certificates.X509Chain p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - translator.Push(L, p2); - - PCall(L, 3, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public bool __Gen_Delegate_Imp130(BestHTTP.HTTPRequest p0, BestHTTP.HTTPResponse p1, System.Uri p2) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - translator.Push(L, p1); - translator.Push(L, p2); - - PCall(L, 3, 1, errFunc); - - - bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); - LuaAPI.lua_settop(L, errFunc - 1); - return __gen_ret; -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp131(BestHTTP.HTTPRequest p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp132(string p0, System.Collections.Generic.List p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - LuaAPI.lua_pushstring(L, p0); - translator.Push(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp133(System.Collections.Generic.List p0) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - - static DelegateBridge() - { - Gen_Flag = true; - } - - public override Delegate GetDelegateByType(Type type) - { - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp0); - } - - if (type == typeof(DG.Tweening.TweenCallback)) - { - return new DG.Tweening.TweenCallback(__Gen_Delegate_Imp0); - } - - if (type == typeof(UnityEngine.Application.LowMemoryCallback)) - { - return new UnityEngine.Application.LowMemoryCallback(__Gen_Delegate_Imp0); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp0); - } - - if (type == typeof(UnityEngine.Canvas.WillRenderCanvases)) - { - return new UnityEngine.Canvas.WillRenderCanvases(__Gen_Delegate_Imp0); - } - - if (type == typeof(UnityEngine.Font.FontTextureRebuildCallback)) - { - return new UnityEngine.Font.FontTextureRebuildCallback(__Gen_Delegate_Imp0); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp1); - } - - if (type == typeof(DG.Tweening.TweenCallback)) - { - return new DG.Tweening.TweenCallback(__Gen_Delegate_Imp1); - } - - if (type == typeof(UnityEngine.AudioClip.PCMSetPositionCallback)) - { - return new UnityEngine.AudioClip.PCMSetPositionCallback(__Gen_Delegate_Imp1); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp1); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp1); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp2); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp3); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp3); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp3); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp4); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp5); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp5); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp5); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp6); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp7); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp8); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp9); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp10); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp11); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp12); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp13); - } - - if (type == typeof(UnityEngine.Camera.CameraCallback)) - { - return new UnityEngine.Camera.CameraCallback(__Gen_Delegate_Imp14); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp14); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp15); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp16); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp17); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp18); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp19); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp20); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp21); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp21); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp21); - } - - if (type == typeof(DG.Tweening.TweenCallback)) - { - return new DG.Tweening.TweenCallback(__Gen_Delegate_Imp21); - } - - if (type == typeof(BestHTTP.OnUploadProgressDelegate)) - { - return new BestHTTP.OnUploadProgressDelegate(__Gen_Delegate_Imp22); - } - - if (type == typeof(BestHTTP.OnDownloadProgressDelegate)) - { - return new BestHTTP.OnDownloadProgressDelegate(__Gen_Delegate_Imp22); - } - - if (type == typeof(BestHTTP.OnStreamingDataDelegate)) - { - return new BestHTTP.OnStreamingDataDelegate(__Gen_Delegate_Imp23); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp24); - } - - if (type == typeof(BestHTTP.OnRequestFinishedDelegate)) - { - return new BestHTTP.OnRequestFinishedDelegate(__Gen_Delegate_Imp24); - } - - if (type == typeof(System.Action>)) - { - return new System.Action>(__Gen_Delegate_Imp25); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp26); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp27); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp28); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp29); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp29); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp29); - } - - if (type == typeof(XLua.LuaEnv.CustomLoader)) - { - return new XLua.LuaEnv.CustomLoader(__Gen_Delegate_Imp30); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp31); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp32); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp33); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp34); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp35); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp36); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp37); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp38); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp39); - } - - if (type == typeof(System.Predicate)) - { - return new System.Predicate(__Gen_Delegate_Imp39); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp40); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp40); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp41); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp42); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp43); - } - - if (type == typeof(System.Func>)) - { - return new System.Func>(__Gen_Delegate_Imp44); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp45); - } - - if (type == typeof(System.Func>)) - { - return new System.Func>(__Gen_Delegate_Imp46); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp47); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp48); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp49); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp50); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp51); - } - - if (type == typeof(System.Action>)) - { - return new System.Action>(__Gen_Delegate_Imp52); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp53); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp54); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp55); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp56); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp57); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp58); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp59); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp60); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp61); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp62); - } - - if (type == typeof(System.AsyncCallback)) - { - return new System.AsyncCallback(__Gen_Delegate_Imp63); - } - - if (type == typeof(System.EventHandler)) - { - return new System.EventHandler(__Gen_Delegate_Imp64); - } - - if (type == typeof(System.Predicate)) - { - return new System.Predicate(__Gen_Delegate_Imp65); - } - - if (type == typeof(System.Comparison)) - { - return new System.Comparison(__Gen_Delegate_Imp66); - } - - if (type == typeof(System.Predicate)) - { - return new System.Predicate(__Gen_Delegate_Imp67); - } - - if (type == typeof(System.Comparison)) - { - return new System.Comparison(__Gen_Delegate_Imp68); - } - - if (type == typeof(System.Comparison)) - { - return new System.Comparison(__Gen_Delegate_Imp69); - } - - if (type == typeof(System.Predicate)) - { - return new System.Predicate(__Gen_Delegate_Imp70); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp71); - } - - if (type == typeof(System.Comparison)) - { - return new System.Comparison(__Gen_Delegate_Imp72); - } - - if (type == typeof(System.Predicate)) - { - return new System.Predicate(__Gen_Delegate_Imp73); - } - - if (type == typeof(System.Comparison)) - { - return new System.Comparison(__Gen_Delegate_Imp74); - } - - if (type == typeof(System.Predicate>)) - { - return new System.Predicate>(__Gen_Delegate_Imp75); - } - - if (type == typeof(System.Action>)) - { - return new System.Action>(__Gen_Delegate_Imp76); - } - - if (type == typeof(System.Comparison>)) - { - return new System.Comparison>(__Gen_Delegate_Imp77); - } - - if (type == typeof(System.Predicate)) - { - return new System.Predicate(__Gen_Delegate_Imp78); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp79); - } - - if (type == typeof(System.Comparison)) - { - return new System.Comparison(__Gen_Delegate_Imp80); - } - - if (type == typeof(UnityEngine.RectTransform.ReapplyDrivenProperties)) - { - return new UnityEngine.RectTransform.ReapplyDrivenProperties(__Gen_Delegate_Imp81); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp82); - } - - if (type == typeof(UnityEngine.Application.AdvertisingIdentifierCallback)) - { - return new UnityEngine.Application.AdvertisingIdentifierCallback(__Gen_Delegate_Imp83); - } - - if (type == typeof(UnityEngine.Application.LogCallback)) - { - return new UnityEngine.Application.LogCallback(__Gen_Delegate_Imp84); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp85); - } - - if (type == typeof(UnityEngine.AudioClip.PCMReaderCallback)) - { - return new UnityEngine.AudioClip.PCMReaderCallback(__Gen_Delegate_Imp86); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp87); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp88); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp89); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp90); - } - - if (type == typeof(UnityEngine.Events.UnityAction)) - { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp91); - } - - if (type == typeof(UnityEngine.Video.VideoPlayer.EventHandler)) - { - return new UnityEngine.Video.VideoPlayer.EventHandler(__Gen_Delegate_Imp92); - } - - if (type == typeof(UnityEngine.Video.VideoPlayer.ErrorEventHandler)) - { - return new UnityEngine.Video.VideoPlayer.ErrorEventHandler(__Gen_Delegate_Imp93); - } - - if (type == typeof(UnityEngine.Video.VideoPlayer.TimeEventHandler)) - { - return new UnityEngine.Video.VideoPlayer.TimeEventHandler(__Gen_Delegate_Imp94); - } - - if (type == typeof(UnityEngine.Video.VideoPlayer.FrameReadyEventHandler)) - { - return new UnityEngine.Video.VideoPlayer.FrameReadyEventHandler(__Gen_Delegate_Imp95); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp96); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp97); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp98); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp99); - } - - if (type == typeof(System.Action>)) - { - return new System.Action>(__Gen_Delegate_Imp100); - } - - if (type == typeof(UnityEngine.UI.InputField.OnValidateInput)) - { - return new UnityEngine.UI.InputField.OnValidateInput(__Gen_Delegate_Imp101); - } - - if (type == typeof(TMPro.TMP_InputField.OnValidateInput)) - { - return new TMPro.TMP_InputField.OnValidateInput(__Gen_Delegate_Imp101); - } - - if (type == typeof(Spine.AnimationState.TrackEntryDelegate)) - { - return new Spine.AnimationState.TrackEntryDelegate(__Gen_Delegate_Imp102); - } - - if (type == typeof(Spine.AnimationState.TrackEntryEventDelegate)) - { - return new Spine.AnimationState.TrackEntryEventDelegate(__Gen_Delegate_Imp103); - } - - if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle)) - { - return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle(__Gen_Delegate_Imp104); - } - - if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple)) - { - return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple(__Gen_Delegate_Imp105); - } - - if (type == typeof(Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate)) - { - return new Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate(__Gen_Delegate_Imp106); - } - - if (type == typeof(Spine.Unity.SkeletonGraphic.InstructionDelegate)) - { - return new Spine.Unity.SkeletonGraphic.InstructionDelegate(__Gen_Delegate_Imp107); - } - - if (type == typeof(Spine.Unity.SkeletonRenderer.InstructionDelegate)) - { - return new Spine.Unity.SkeletonRenderer.InstructionDelegate(__Gen_Delegate_Imp107); - } - - if (type == typeof(Spine.Unity.ISkeletonAnimationDelegate)) - { - return new Spine.Unity.ISkeletonAnimationDelegate(__Gen_Delegate_Imp108); - } - - if (type == typeof(Spine.Unity.UpdateBonesDelegate)) - { - return new Spine.Unity.UpdateBonesDelegate(__Gen_Delegate_Imp108); - } - - if (type == typeof(Spine.Unity.MeshGeneratorDelegate)) - { - return new Spine.Unity.MeshGeneratorDelegate(__Gen_Delegate_Imp109); - } - - if (type == typeof(Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate)) - { - return new Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate(__Gen_Delegate_Imp110); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp111); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp112); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp113); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp114); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp115); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp116); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp117); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp118); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp119); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp120); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp121); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp122); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp123); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp124); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp125); - } - - if (type == typeof(DG.Tweening.Core.DOGetter)) - { - return new DG.Tweening.Core.DOGetter(__Gen_Delegate_Imp126); - } - - if (type == typeof(DG.Tweening.Core.DOSetter)) - { - return new DG.Tweening.Core.DOSetter(__Gen_Delegate_Imp127); - } - - if (type == typeof(DG.Tweening.EaseFunction)) - { - return new DG.Tweening.EaseFunction(__Gen_Delegate_Imp128); - } - - if (type == typeof(System.Func)) - { - return new System.Func(__Gen_Delegate_Imp129); - } - - if (type == typeof(BestHTTP.OnBeforeRedirectionDelegate)) - { - return new BestHTTP.OnBeforeRedirectionDelegate(__Gen_Delegate_Imp130); - } - - if (type == typeof(BestHTTP.OnBeforeHeaderSendDelegate)) - { - return new BestHTTP.OnBeforeHeaderSendDelegate(__Gen_Delegate_Imp131); - } - - if (type == typeof(BestHTTP.OnHeaderEnumerationDelegate)) - { - return new BestHTTP.OnHeaderEnumerationDelegate(__Gen_Delegate_Imp132); - } - - if (type == typeof(System.Action>)) - { - return new System.Action>(__Gen_Delegate_Imp133); - } - - return null; - } - } - -} \ No newline at end of file diff --git a/Assets/XLua/Gen/EnumWrap.cs b/Assets/XLua/Gen/EnumWrap.cs deleted file mode 100644 index ffea43631..000000000 --- a/Assets/XLua/Gen/EnumWrap.cs +++ /dev/null @@ -1,5685 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - - public class AdFormatWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(AdFormat), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(AdFormat), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(AdFormat), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RewardedVideo", AdFormat.RewardedVideo); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Interstitial", AdFormat.Interstitial); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Banner", AdFormat.Banner); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(AdFormat), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushAdFormat(L, (AdFormat)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "RewardedVideo")) - { - translator.PushAdFormat(L, AdFormat.RewardedVideo); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Interstitial")) - { - translator.PushAdFormat(L, AdFormat.Interstitial); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Banner")) - { - translator.PushAdFormat(L, AdFormat.Banner); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for AdFormat!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for AdFormat! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class IronSourceBannerPositionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(IronSourceBannerPosition), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(IronSourceBannerPosition), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(IronSourceBannerPosition), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TOP", IronSourceBannerPosition.TOP); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BOTTOM", IronSourceBannerPosition.BOTTOM); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(IronSourceBannerPosition), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushIronSourceBannerPosition(L, (IronSourceBannerPosition)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "TOP")) - { - translator.PushIronSourceBannerPosition(L, IronSourceBannerPosition.TOP); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "BOTTOM")) - { - translator.PushIronSourceBannerPosition(L, IronSourceBannerPosition.BOTTOM); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for IronSourceBannerPosition!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for IronSourceBannerPosition! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UIImageSheetAnimationAnimationTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UIImageSheetAnimation.AnimationType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UIImageSheetAnimation.AnimationType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UIImageSheetAnimation.AnimationType), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WholeSheet", UIImageSheetAnimation.AnimationType.WholeSheet); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SingleRow", UIImageSheetAnimation.AnimationType.SingleRow); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UIImageSheetAnimation.AnimationType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUIImageSheetAnimationAnimationType(L, (UIImageSheetAnimation.AnimationType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "WholeSheet")) - { - translator.PushUIImageSheetAnimationAnimationType(L, UIImageSheetAnimation.AnimationType.WholeSheet); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "SingleRow")) - { - translator.PushUIImageSheetAnimationAnimationType(L, UIImageSheetAnimation.AnimationType.SingleRow); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UIImageSheetAnimation.AnimationType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UIImageSheetAnimation.AnimationType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UIImageSheetAnimationTimeTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UIImageSheetAnimation.TimeType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UIImageSheetAnimation.TimeType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UIImageSheetAnimation.TimeType), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LifeTime", UIImageSheetAnimation.TimeType.LifeTime); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FPS", UIImageSheetAnimation.TimeType.FPS); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UIImageSheetAnimation.TimeType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUIImageSheetAnimationTimeType(L, (UIImageSheetAnimation.TimeType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "LifeTime")) - { - translator.PushUIImageSheetAnimationTimeType(L, UIImageSheetAnimation.TimeType.LifeTime); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FPS")) - { - translator.PushUIImageSheetAnimationTimeType(L, UIImageSheetAnimation.TimeType.FPS); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UIImageSheetAnimation.TimeType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UIImageSheetAnimation.TimeType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UIImageSheetAnimationStartFrameTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UIImageSheetAnimation.StartFrameType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UIImageSheetAnimation.StartFrameType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UIImageSheetAnimation.StartFrameType), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Constant", UIImageSheetAnimation.StartFrameType.Constant); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RandomBetweenTwoConstants", UIImageSheetAnimation.StartFrameType.RandomBetweenTwoConstants); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UIImageSheetAnimation.StartFrameType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUIImageSheetAnimationStartFrameType(L, (UIImageSheetAnimation.StartFrameType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Constant")) - { - translator.PushUIImageSheetAnimationStartFrameType(L, UIImageSheetAnimation.StartFrameType.Constant); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "RandomBetweenTwoConstants")) - { - translator.PushUIImageSheetAnimationStartFrameType(L, UIImageSheetAnimation.StartFrameType.RandomBetweenTwoConstants); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UIImageSheetAnimation.StartFrameType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UIImageSheetAnimation.StartFrameType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class SystemReflectionBindingFlagsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(System.Reflection.BindingFlags), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(System.Reflection.BindingFlags), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(System.Reflection.BindingFlags), L, null, 22, 0, 0); - - Utils.RegisterEnumType(L, typeof(System.Reflection.BindingFlags)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(System.Reflection.BindingFlags), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushSystemReflectionBindingFlags(L, (System.Reflection.BindingFlags)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(System.Reflection.BindingFlags), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(System.Reflection.BindingFlags) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for System.Reflection.BindingFlags! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class SystemDayOfWeekWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(System.DayOfWeek), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(System.DayOfWeek), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(System.DayOfWeek), L, null, 8, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sunday", System.DayOfWeek.Sunday); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Monday", System.DayOfWeek.Monday); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tuesday", System.DayOfWeek.Tuesday); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Wednesday", System.DayOfWeek.Wednesday); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Thursday", System.DayOfWeek.Thursday); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Friday", System.DayOfWeek.Friday); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Saturday", System.DayOfWeek.Saturday); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(System.DayOfWeek), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushSystemDayOfWeek(L, (System.DayOfWeek)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Sunday")) - { - translator.PushSystemDayOfWeek(L, System.DayOfWeek.Sunday); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Monday")) - { - translator.PushSystemDayOfWeek(L, System.DayOfWeek.Monday); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Tuesday")) - { - translator.PushSystemDayOfWeek(L, System.DayOfWeek.Tuesday); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Wednesday")) - { - translator.PushSystemDayOfWeek(L, System.DayOfWeek.Wednesday); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Thursday")) - { - translator.PushSystemDayOfWeek(L, System.DayOfWeek.Thursday); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Friday")) - { - translator.PushSystemDayOfWeek(L, System.DayOfWeek.Friday); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Saturday")) - { - translator.PushSystemDayOfWeek(L, System.DayOfWeek.Saturday); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for System.DayOfWeek!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for System.DayOfWeek! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class SystemNetNetworkInformationIPStatusWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(System.Net.NetworkInformation.IPStatus), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(System.Net.NetworkInformation.IPStatus), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(System.Net.NetworkInformation.IPStatus), L, null, 25, 0, 0); - - Utils.RegisterEnumType(L, typeof(System.Net.NetworkInformation.IPStatus)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(System.Net.NetworkInformation.IPStatus), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushSystemNetNetworkInformationIPStatus(L, (System.Net.NetworkInformation.IPStatus)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(System.Net.NetworkInformation.IPStatus), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(System.Net.NetworkInformation.IPStatus) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for System.Net.NetworkInformation.IPStatus! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineCameraGateFitModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Camera.GateFitMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Camera.GateFitMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Camera.GateFitMode), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.Camera.GateFitMode.Vertical); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.Camera.GateFitMode.Horizontal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fill", UnityEngine.Camera.GateFitMode.Fill); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Overscan", UnityEngine.Camera.GateFitMode.Overscan); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.Camera.GateFitMode.None); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Camera.GateFitMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineCameraGateFitMode(L, (UnityEngine.Camera.GateFitMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical")) - { - translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Vertical); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal")) - { - translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Horizontal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Fill")) - { - translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Fill); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Overscan")) - { - translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.Overscan); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushUnityEngineCameraGateFitMode(L, UnityEngine.Camera.GateFitMode.None); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.GateFitMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.GateFitMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineCameraStereoscopicEyeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.Camera.StereoscopicEye.Left); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.Camera.StereoscopicEye.Right); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Camera.StereoscopicEye), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineCameraStereoscopicEye(L, (UnityEngine.Camera.StereoscopicEye)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Left")) - { - translator.PushUnityEngineCameraStereoscopicEye(L, UnityEngine.Camera.StereoscopicEye.Left); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Right")) - { - translator.PushUnityEngineCameraStereoscopicEye(L, UnityEngine.Camera.StereoscopicEye.Right); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.StereoscopicEye!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.StereoscopicEye! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineCameraMonoOrStereoscopicEyeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.Camera.MonoOrStereoscopicEye.Left); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.Camera.MonoOrStereoscopicEye.Right); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Mono", UnityEngine.Camera.MonoOrStereoscopicEye.Mono); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, (UnityEngine.Camera.MonoOrStereoscopicEye)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Left")) - { - translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Left); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Right")) - { - translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Right); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Mono")) - { - translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, UnityEngine.Camera.MonoOrStereoscopicEye.Mono); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.MonoOrStereoscopicEye!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.MonoOrStereoscopicEye! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineCameraFieldOfViewAxisWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.Camera.FieldOfViewAxis.Vertical); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.Camera.FieldOfViewAxis.Horizontal); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Camera.FieldOfViewAxis), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineCameraFieldOfViewAxis(L, (UnityEngine.Camera.FieldOfViewAxis)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical")) - { - translator.PushUnityEngineCameraFieldOfViewAxis(L, UnityEngine.Camera.FieldOfViewAxis.Vertical); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal")) - { - translator.PushUnityEngineCameraFieldOfViewAxis(L, UnityEngine.Camera.FieldOfViewAxis.Horizontal); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.FieldOfViewAxis!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.FieldOfViewAxis! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineCameraRenderRequestModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, null, 15, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.Camera.RenderRequestMode.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ObjectId", UnityEngine.Camera.RenderRequestMode.ObjectId); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Depth", UnityEngine.Camera.RenderRequestMode.Depth); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VertexNormal", UnityEngine.Camera.RenderRequestMode.VertexNormal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WorldPosition", UnityEngine.Camera.RenderRequestMode.WorldPosition); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EntityId", UnityEngine.Camera.RenderRequestMode.EntityId); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BaseColor", UnityEngine.Camera.RenderRequestMode.BaseColor); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SpecularColor", UnityEngine.Camera.RenderRequestMode.SpecularColor); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Metallic", UnityEngine.Camera.RenderRequestMode.Metallic); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Emission", UnityEngine.Camera.RenderRequestMode.Emission); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Normal", UnityEngine.Camera.RenderRequestMode.Normal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Smoothness", UnityEngine.Camera.RenderRequestMode.Smoothness); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Occlusion", UnityEngine.Camera.RenderRequestMode.Occlusion); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DiffuseColor", UnityEngine.Camera.RenderRequestMode.DiffuseColor); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Camera.RenderRequestMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineCameraRenderRequestMode(L, (UnityEngine.Camera.RenderRequestMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ObjectId")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.ObjectId); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Depth")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Depth); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "VertexNormal")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.VertexNormal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "WorldPosition")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.WorldPosition); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "EntityId")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.EntityId); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "BaseColor")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.BaseColor); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "SpecularColor")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.SpecularColor); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Metallic")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Metallic); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Emission")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Emission); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Normal")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Normal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Smoothness")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Smoothness); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Occlusion")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.Occlusion); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "DiffuseColor")) - { - translator.PushUnityEngineCameraRenderRequestMode(L, UnityEngine.Camera.RenderRequestMode.DiffuseColor); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.RenderRequestMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.RenderRequestMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineCameraRenderRequestOutputSpaceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, null, 11, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ScreenSpace", UnityEngine.Camera.RenderRequestOutputSpace.ScreenSpace); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV0", UnityEngine.Camera.RenderRequestOutputSpace.UV0); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV1", UnityEngine.Camera.RenderRequestOutputSpace.UV1); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV2", UnityEngine.Camera.RenderRequestOutputSpace.UV2); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV3", UnityEngine.Camera.RenderRequestOutputSpace.UV3); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV4", UnityEngine.Camera.RenderRequestOutputSpace.UV4); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV5", UnityEngine.Camera.RenderRequestOutputSpace.UV5); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV6", UnityEngine.Camera.RenderRequestOutputSpace.UV6); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV7", UnityEngine.Camera.RenderRequestOutputSpace.UV7); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UV8", UnityEngine.Camera.RenderRequestOutputSpace.UV8); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Camera.RenderRequestOutputSpace), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, (UnityEngine.Camera.RenderRequestOutputSpace)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "ScreenSpace")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.ScreenSpace); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV0")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV0); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV1")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV1); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV2")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV2); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV3")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV3); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV4")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV4); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV5")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV5); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV6")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV6); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV7")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV7); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UV8")) - { - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, UnityEngine.Camera.RenderRequestOutputSpace.UV8); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.RenderRequestOutputSpace!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.RenderRequestOutputSpace! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineCameraSceneViewFilterModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Off", UnityEngine.Camera.SceneViewFilterMode.Off); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ShowFiltered", UnityEngine.Camera.SceneViewFilterMode.ShowFiltered); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Camera.SceneViewFilterMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineCameraSceneViewFilterMode(L, (UnityEngine.Camera.SceneViewFilterMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Off")) - { - translator.PushUnityEngineCameraSceneViewFilterMode(L, UnityEngine.Camera.SceneViewFilterMode.Off); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ShowFiltered")) - { - translator.PushUnityEngineCameraSceneViewFilterMode(L, UnityEngine.Camera.SceneViewFilterMode.ShowFiltered); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Camera.SceneViewFilterMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Camera.SceneViewFilterMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRenderingLightShadowResolutionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FromQualitySettings", UnityEngine.Rendering.LightShadowResolution.FromQualitySettings); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Low", UnityEngine.Rendering.LightShadowResolution.Low); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Medium", UnityEngine.Rendering.LightShadowResolution.Medium); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "High", UnityEngine.Rendering.LightShadowResolution.High); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VeryHigh", UnityEngine.Rendering.LightShadowResolution.VeryHigh); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Rendering.LightShadowResolution), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRenderingLightShadowResolution(L, (UnityEngine.Rendering.LightShadowResolution)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "FromQualitySettings")) - { - translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.FromQualitySettings); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Low")) - { - translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.Low); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Medium")) - { - translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.Medium); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "High")) - { - translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.High); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "VeryHigh")) - { - translator.PushUnityEngineRenderingLightShadowResolution(L, UnityEngine.Rendering.LightShadowResolution.VeryHigh); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Rendering.LightShadowResolution!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Rendering.LightShadowResolution! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRenderTextureFormatWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.RenderTextureFormat), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.RenderTextureFormat), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.RenderTextureFormat), L, null, 29, 0, 0); - - Utils.RegisterEnumType(L, typeof(UnityEngine.RenderTextureFormat)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.RenderTextureFormat), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRenderTextureFormat(L, (UnityEngine.RenderTextureFormat)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(UnityEngine.RenderTextureFormat), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.RenderTextureFormat) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RenderTextureFormat! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRenderTextureReadWriteWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.RenderTextureReadWrite), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.RenderTextureReadWrite), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.RenderTextureReadWrite), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Default", UnityEngine.RenderTextureReadWrite.Default); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Linear", UnityEngine.RenderTextureReadWrite.Linear); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "sRGB", UnityEngine.RenderTextureReadWrite.sRGB); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.RenderTextureReadWrite), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRenderTextureReadWrite(L, (UnityEngine.RenderTextureReadWrite)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Default")) - { - translator.PushUnityEngineRenderTextureReadWrite(L, UnityEngine.RenderTextureReadWrite.Default); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Linear")) - { - translator.PushUnityEngineRenderTextureReadWrite(L, UnityEngine.RenderTextureReadWrite.Linear); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "sRGB")) - { - translator.PushUnityEngineRenderTextureReadWrite(L, UnityEngine.RenderTextureReadWrite.sRGB); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RenderTextureReadWrite!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RenderTextureReadWrite! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRigidbodyConstraintsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.RigidbodyConstraints), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.RigidbodyConstraints), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.RigidbodyConstraints), L, null, 11, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.RigidbodyConstraints.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePositionX", UnityEngine.RigidbodyConstraints.FreezePositionX); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePositionY", UnityEngine.RigidbodyConstraints.FreezePositionY); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePositionZ", UnityEngine.RigidbodyConstraints.FreezePositionZ); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotationX", UnityEngine.RigidbodyConstraints.FreezeRotationX); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotationY", UnityEngine.RigidbodyConstraints.FreezeRotationY); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotationZ", UnityEngine.RigidbodyConstraints.FreezeRotationZ); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezePosition", UnityEngine.RigidbodyConstraints.FreezePosition); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeRotation", UnityEngine.RigidbodyConstraints.FreezeRotation); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FreezeAll", UnityEngine.RigidbodyConstraints.FreezeAll); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.RigidbodyConstraints), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRigidbodyConstraints(L, (UnityEngine.RigidbodyConstraints)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePositionX")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePositionX); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePositionY")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePositionY); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePositionZ")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePositionZ); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotationX")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotationX); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotationY")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotationY); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotationZ")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotationZ); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezePosition")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezePosition); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeRotation")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeRotation); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FreezeAll")) - { - translator.PushUnityEngineRigidbodyConstraints(L, UnityEngine.RigidbodyConstraints.FreezeAll); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RigidbodyConstraints!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RigidbodyConstraints! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineTransparencySortModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.TransparencySortMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.TransparencySortMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.TransparencySortMode), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Default", UnityEngine.TransparencySortMode.Default); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Perspective", UnityEngine.TransparencySortMode.Perspective); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Orthographic", UnityEngine.TransparencySortMode.Orthographic); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CustomAxis", UnityEngine.TransparencySortMode.CustomAxis); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.TransparencySortMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineTransparencySortMode(L, (UnityEngine.TransparencySortMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Default")) - { - translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.Default); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Perspective")) - { - translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.Perspective); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Orthographic")) - { - translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.Orthographic); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CustomAxis")) - { - translator.PushUnityEngineTransparencySortMode(L, UnityEngine.TransparencySortMode.CustomAxis); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.TransparencySortMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.TransparencySortMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRectTransformAxisWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.RectTransform.Axis), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.RectTransform.Axis), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.RectTransform.Axis), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.RectTransform.Axis.Horizontal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.RectTransform.Axis.Vertical); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.RectTransform.Axis), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRectTransformAxis(L, (UnityEngine.RectTransform.Axis)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal")) - { - translator.PushUnityEngineRectTransformAxis(L, UnityEngine.RectTransform.Axis.Horizontal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical")) - { - translator.PushUnityEngineRectTransformAxis(L, UnityEngine.RectTransform.Axis.Vertical); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RectTransform.Axis!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RectTransform.Axis! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRectTransformEdgeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.RectTransform.Edge), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.RectTransform.Edge), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.RectTransform.Edge), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.RectTransform.Edge.Left); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.RectTransform.Edge.Right); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.RectTransform.Edge.Top); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.RectTransform.Edge.Bottom); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.RectTransform.Edge), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRectTransformEdge(L, (UnityEngine.RectTransform.Edge)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Left")) - { - translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Left); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Right")) - { - translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Right); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Top")) - { - translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Top); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom")) - { - translator.PushUnityEngineRectTransformEdge(L, UnityEngine.RectTransform.Edge.Bottom); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.RectTransform.Edge!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RectTransform.Edge! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineAnimatorCullingModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.AnimatorCullingMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.AnimatorCullingMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.AnimatorCullingMode), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AlwaysAnimate", UnityEngine.AnimatorCullingMode.AlwaysAnimate); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CullUpdateTransforms", UnityEngine.AnimatorCullingMode.CullUpdateTransforms); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CullCompletely", UnityEngine.AnimatorCullingMode.CullCompletely); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.AnimatorCullingMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineAnimatorCullingMode(L, (UnityEngine.AnimatorCullingMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "AlwaysAnimate")) - { - translator.PushUnityEngineAnimatorCullingMode(L, UnityEngine.AnimatorCullingMode.AlwaysAnimate); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CullUpdateTransforms")) - { - translator.PushUnityEngineAnimatorCullingMode(L, UnityEngine.AnimatorCullingMode.CullUpdateTransforms); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CullCompletely")) - { - translator.PushUnityEngineAnimatorCullingMode(L, UnityEngine.AnimatorCullingMode.CullCompletely); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.AnimatorCullingMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.AnimatorCullingMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineSystemLanguageWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.SystemLanguage), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.SystemLanguage), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.SystemLanguage), L, null, 45, 0, 0); - - Utils.RegisterEnumType(L, typeof(UnityEngine.SystemLanguage)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.SystemLanguage), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineSystemLanguage(L, (UnityEngine.SystemLanguage)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(UnityEngine.SystemLanguage), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.SystemLanguage) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.SystemLanguage! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRenderingShadowCastingModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Off", UnityEngine.Rendering.ShadowCastingMode.Off); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "On", UnityEngine.Rendering.ShadowCastingMode.On); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TwoSided", UnityEngine.Rendering.ShadowCastingMode.TwoSided); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ShadowsOnly", UnityEngine.Rendering.ShadowCastingMode.ShadowsOnly); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Rendering.ShadowCastingMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRenderingShadowCastingMode(L, (UnityEngine.Rendering.ShadowCastingMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Off")) - { - translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.Off); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "On")) - { - translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.On); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TwoSided")) - { - translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.TwoSided); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ShadowsOnly")) - { - translator.PushUnityEngineRenderingShadowCastingMode(L, UnityEngine.Rendering.ShadowCastingMode.ShadowsOnly); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Rendering.ShadowCastingMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Rendering.ShadowCastingMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineTexture2DEXRFlagsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.Texture2D.EXRFlags.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OutputAsFloat", UnityEngine.Texture2D.EXRFlags.OutputAsFloat); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressZIP", UnityEngine.Texture2D.EXRFlags.CompressZIP); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressRLE", UnityEngine.Texture2D.EXRFlags.CompressRLE); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CompressPIZ", UnityEngine.Texture2D.EXRFlags.CompressPIZ); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Texture2D.EXRFlags), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineTexture2DEXRFlags(L, (UnityEngine.Texture2D.EXRFlags)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "OutputAsFloat")) - { - translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.OutputAsFloat); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressZIP")) - { - translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressZIP); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressRLE")) - { - translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressRLE); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CompressPIZ")) - { - translator.PushUnityEngineTexture2DEXRFlags(L, UnityEngine.Texture2D.EXRFlags.CompressPIZ); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Texture2D.EXRFlags!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Texture2D.EXRFlags! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineKeyCodeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.KeyCode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.KeyCode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.KeyCode), L, null, 329, 0, 0); - - Utils.RegisterEnumType(L, typeof(UnityEngine.KeyCode)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.KeyCode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineKeyCode(L, (UnityEngine.KeyCode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(UnityEngine.KeyCode), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.KeyCode) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.KeyCode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineNetworkReachabilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.NetworkReachability), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.NetworkReachability), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.NetworkReachability), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotReachable", UnityEngine.NetworkReachability.NotReachable); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ReachableViaCarrierDataNetwork", UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ReachableViaLocalAreaNetwork", UnityEngine.NetworkReachability.ReachableViaLocalAreaNetwork); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.NetworkReachability), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineNetworkReachability(L, (UnityEngine.NetworkReachability)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "NotReachable")) - { - translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.NotReachable); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ReachableViaCarrierDataNetwork")) - { - translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.ReachableViaCarrierDataNetwork); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ReachableViaLocalAreaNetwork")) - { - translator.PushUnityEngineNetworkReachability(L, UnityEngine.NetworkReachability.ReachableViaLocalAreaNetwork); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.NetworkReachability!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.NetworkReachability! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRuntimePlatformWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.RuntimePlatform), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.RuntimePlatform), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.RuntimePlatform), L, null, 49, 0, 0); - - Utils.RegisterEnumType(L, typeof(UnityEngine.RuntimePlatform)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.RuntimePlatform), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRuntimePlatform(L, (UnityEngine.RuntimePlatform)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(UnityEngine.RuntimePlatform), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(UnityEngine.RuntimePlatform) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.RuntimePlatform! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineRenderingCompareFunctionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Rendering.CompareFunction), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Rendering.CompareFunction), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Rendering.CompareFunction), L, null, 10, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Disabled", UnityEngine.Rendering.CompareFunction.Disabled); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Never", UnityEngine.Rendering.CompareFunction.Never); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Less", UnityEngine.Rendering.CompareFunction.Less); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Equal", UnityEngine.Rendering.CompareFunction.Equal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LessEqual", UnityEngine.Rendering.CompareFunction.LessEqual); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Greater", UnityEngine.Rendering.CompareFunction.Greater); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotEqual", UnityEngine.Rendering.CompareFunction.NotEqual); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GreaterEqual", UnityEngine.Rendering.CompareFunction.GreaterEqual); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Always", UnityEngine.Rendering.CompareFunction.Always); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Rendering.CompareFunction), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineRenderingCompareFunction(L, (UnityEngine.Rendering.CompareFunction)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Disabled")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Disabled); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Never")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Never); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Less")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Less); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Equal")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Equal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "LessEqual")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.LessEqual); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Greater")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Greater); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "NotEqual")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.NotEqual); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "GreaterEqual")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.GreaterEqual); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Always")) - { - translator.PushUnityEngineRenderingCompareFunction(L, UnityEngine.Rendering.CompareFunction.Always); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Rendering.CompareFunction!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Rendering.CompareFunction! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineTextAnchorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.TextAnchor), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.TextAnchor), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.TextAnchor), L, null, 10, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperLeft", UnityEngine.TextAnchor.UpperLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperCenter", UnityEngine.TextAnchor.UpperCenter); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperRight", UnityEngine.TextAnchor.UpperRight); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MiddleLeft", UnityEngine.TextAnchor.MiddleLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MiddleCenter", UnityEngine.TextAnchor.MiddleCenter); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MiddleRight", UnityEngine.TextAnchor.MiddleRight); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerLeft", UnityEngine.TextAnchor.LowerLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerCenter", UnityEngine.TextAnchor.LowerCenter); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerRight", UnityEngine.TextAnchor.LowerRight); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.TextAnchor), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineTextAnchor(L, (UnityEngine.TextAnchor)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "UpperLeft")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.UpperLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UpperCenter")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.UpperCenter); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UpperRight")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.UpperRight); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "MiddleLeft")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.MiddleLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "MiddleCenter")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.MiddleCenter); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "MiddleRight")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.MiddleRight); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerLeft")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.LowerLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerCenter")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.LowerCenter); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerRight")) - { - translator.PushUnityEngineTextAnchor(L, UnityEngine.TextAnchor.LowerRight); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.TextAnchor!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.TextAnchor! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineBatteryStatusWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.BatteryStatus), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.BatteryStatus), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.BatteryStatus), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Unknown", UnityEngine.BatteryStatus.Unknown); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Charging", UnityEngine.BatteryStatus.Charging); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Discharging", UnityEngine.BatteryStatus.Discharging); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NotCharging", UnityEngine.BatteryStatus.NotCharging); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Full", UnityEngine.BatteryStatus.Full); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.BatteryStatus), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineBatteryStatus(L, (UnityEngine.BatteryStatus)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Unknown")) - { - translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Unknown); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Charging")) - { - translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Charging); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Discharging")) - { - translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Discharging); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "NotCharging")) - { - translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.NotCharging); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Full")) - { - translator.PushUnityEngineBatteryStatus(L, UnityEngine.BatteryStatus.Full); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.BatteryStatus!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.BatteryStatus! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIGraphicRaycasterBlockingObjectsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.GraphicRaycaster.BlockingObjects.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TwoD", UnityEngine.UI.GraphicRaycaster.BlockingObjects.TwoD); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ThreeD", UnityEngine.UI.GraphicRaycaster.BlockingObjects.ThreeD); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "All", UnityEngine.UI.GraphicRaycaster.BlockingObjects.All); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, (UnityEngine.UI.GraphicRaycaster.BlockingObjects)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TwoD")) - { - translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.TwoD); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ThreeD")) - { - translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.ThreeD); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "All")) - { - translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, UnityEngine.UI.GraphicRaycaster.BlockingObjects.All); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GraphicRaycaster.BlockingObjects!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GraphicRaycaster.BlockingObjects! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIImageTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Type), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Type), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Type), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Simple", UnityEngine.UI.Image.Type.Simple); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sliced", UnityEngine.UI.Image.Type.Sliced); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tiled", UnityEngine.UI.Image.Type.Tiled); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Filled", UnityEngine.UI.Image.Type.Filled); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Type), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIImageType(L, (UnityEngine.UI.Image.Type)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Simple")) - { - translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Simple); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Sliced")) - { - translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Sliced); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Tiled")) - { - translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Tiled); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Filled")) - { - translator.PushUnityEngineUIImageType(L, UnityEngine.UI.Image.Type.Filled); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Type!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Type! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIImageFillMethodWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.FillMethod), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.UI.Image.FillMethod.Horizontal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.UI.Image.FillMethod.Vertical); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial90", UnityEngine.UI.Image.FillMethod.Radial90); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial180", UnityEngine.UI.Image.FillMethod.Radial180); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Radial360", UnityEngine.UI.Image.FillMethod.Radial360); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Image.FillMethod), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIImageFillMethod(L, (UnityEngine.UI.Image.FillMethod)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal")) - { - translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Horizontal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical")) - { - translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Vertical); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial90")) - { - translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial90); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial180")) - { - translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial180); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Radial360")) - { - translator.PushUnityEngineUIImageFillMethod(L, UnityEngine.UI.Image.FillMethod.Radial360); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.FillMethod!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.FillMethod! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIImageOriginHorizontalWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.OriginHorizontal.Left); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.OriginHorizontal.Right); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Image.OriginHorizontal), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIImageOriginHorizontal(L, (UnityEngine.UI.Image.OriginHorizontal)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Left")) - { - translator.PushUnityEngineUIImageOriginHorizontal(L, UnityEngine.UI.Image.OriginHorizontal.Left); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Right")) - { - translator.PushUnityEngineUIImageOriginHorizontal(L, UnityEngine.UI.Image.OriginHorizontal.Right); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.OriginHorizontal!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.OriginHorizontal! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIImageOriginVerticalWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.OriginVertical.Bottom); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.OriginVertical.Top); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Image.OriginVertical), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIImageOriginVertical(L, (UnityEngine.UI.Image.OriginVertical)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom")) - { - translator.PushUnityEngineUIImageOriginVertical(L, UnityEngine.UI.Image.OriginVertical.Bottom); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Top")) - { - translator.PushUnityEngineUIImageOriginVertical(L, UnityEngine.UI.Image.OriginVertical.Top); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.OriginVertical!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.OriginVertical! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIImageOrigin90Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin90), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomLeft", UnityEngine.UI.Image.Origin90.BottomLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopLeft", UnityEngine.UI.Image.Origin90.TopLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopRight", UnityEngine.UI.Image.Origin90.TopRight); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomRight", UnityEngine.UI.Image.Origin90.BottomRight); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin90), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIImageOrigin90(L, (UnityEngine.UI.Image.Origin90)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "BottomLeft")) - { - translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.BottomLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TopLeft")) - { - translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.TopLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TopRight")) - { - translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.TopRight); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "BottomRight")) - { - translator.PushUnityEngineUIImageOrigin90(L, UnityEngine.UI.Image.Origin90.BottomRight); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin90!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin90! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIImageOrigin180Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin180), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.Origin180.Bottom); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.Origin180.Left); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.Origin180.Top); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.Origin180.Right); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin180), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIImageOrigin180(L, (UnityEngine.UI.Image.Origin180)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom")) - { - translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Bottom); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Left")) - { - translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Left); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Top")) - { - translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Top); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Right")) - { - translator.PushUnityEngineUIImageOrigin180(L, UnityEngine.UI.Image.Origin180.Right); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin180!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin180! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIImageOrigin360Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Image.Origin360), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Bottom", UnityEngine.UI.Image.Origin360.Bottom); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", UnityEngine.UI.Image.Origin360.Right); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Top", UnityEngine.UI.Image.Origin360.Top); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", UnityEngine.UI.Image.Origin360.Left); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Image.Origin360), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIImageOrigin360(L, (UnityEngine.UI.Image.Origin360)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Bottom")) - { - translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Bottom); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Right")) - { - translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Right); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Top")) - { - translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Top); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Left")) - { - translator.PushUnityEngineUIImageOrigin360(L, UnityEngine.UI.Image.Origin360.Left); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Image.Origin360!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Image.Origin360! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIInputFieldContentTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.ContentType), L, null, 11, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", UnityEngine.UI.InputField.ContentType.Standard); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Autocorrected", UnityEngine.UI.InputField.ContentType.Autocorrected); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IntegerNumber", UnityEngine.UI.InputField.ContentType.IntegerNumber); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DecimalNumber", UnityEngine.UI.InputField.ContentType.DecimalNumber); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", UnityEngine.UI.InputField.ContentType.Alphanumeric); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", UnityEngine.UI.InputField.ContentType.Name); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", UnityEngine.UI.InputField.ContentType.EmailAddress); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", UnityEngine.UI.InputField.ContentType.Password); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Pin", UnityEngine.UI.InputField.ContentType.Pin); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Custom", UnityEngine.UI.InputField.ContentType.Custom); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.ContentType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIInputFieldContentType(L, (UnityEngine.UI.InputField.ContentType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Standard")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Standard); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Autocorrected")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Autocorrected); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "IntegerNumber")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.IntegerNumber); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "DecimalNumber")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.DecimalNumber); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Alphanumeric); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Name")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Name); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.EmailAddress); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Password")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Password); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Pin")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Pin); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Custom")) - { - translator.PushUnityEngineUIInputFieldContentType(L, UnityEngine.UI.InputField.ContentType.Custom); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.ContentType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.ContentType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIInputFieldInputTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.InputType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", UnityEngine.UI.InputField.InputType.Standard); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoCorrect", UnityEngine.UI.InputField.InputType.AutoCorrect); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", UnityEngine.UI.InputField.InputType.Password); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.InputType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIInputFieldInputType(L, (UnityEngine.UI.InputField.InputType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Standard")) - { - translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.Standard); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoCorrect")) - { - translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.AutoCorrect); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Password")) - { - translator.PushUnityEngineUIInputFieldInputType(L, UnityEngine.UI.InputField.InputType.Password); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.InputType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.InputType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIInputFieldCharacterValidationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, null, 7, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.InputField.CharacterValidation.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Integer", UnityEngine.UI.InputField.CharacterValidation.Integer); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Decimal", UnityEngine.UI.InputField.CharacterValidation.Decimal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", UnityEngine.UI.InputField.CharacterValidation.Alphanumeric); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", UnityEngine.UI.InputField.CharacterValidation.Name); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", UnityEngine.UI.InputField.CharacterValidation.EmailAddress); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.CharacterValidation), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIInputFieldCharacterValidation(L, (UnityEngine.UI.InputField.CharacterValidation)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Integer")) - { - translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Integer); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Decimal")) - { - translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Decimal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric")) - { - translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Alphanumeric); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Name")) - { - translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.Name); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress")) - { - translator.PushUnityEngineUIInputFieldCharacterValidation(L, UnityEngine.UI.InputField.CharacterValidation.EmailAddress); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.CharacterValidation!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.CharacterValidation! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIInputFieldLineTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.InputField.LineType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SingleLine", UnityEngine.UI.InputField.LineType.SingleLine); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineSubmit", UnityEngine.UI.InputField.LineType.MultiLineSubmit); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineNewline", UnityEngine.UI.InputField.LineType.MultiLineNewline); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.InputField.LineType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIInputFieldLineType(L, (UnityEngine.UI.InputField.LineType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "SingleLine")) - { - translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.SingleLine); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineSubmit")) - { - translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.MultiLineSubmit); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineNewline")) - { - translator.PushUnityEngineUIInputFieldLineType(L, UnityEngine.UI.InputField.LineType.MultiLineNewline); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.InputField.LineType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.InputField.LineType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIScrollRectMovementTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Unrestricted", UnityEngine.UI.ScrollRect.MovementType.Unrestricted); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Elastic", UnityEngine.UI.ScrollRect.MovementType.Elastic); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Clamped", UnityEngine.UI.ScrollRect.MovementType.Clamped); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.ScrollRect.MovementType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIScrollRectMovementType(L, (UnityEngine.UI.ScrollRect.MovementType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Unrestricted")) - { - translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Unrestricted); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Elastic")) - { - translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Elastic); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Clamped")) - { - translator.PushUnityEngineUIScrollRectMovementType(L, UnityEngine.UI.ScrollRect.MovementType.Clamped); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.ScrollRect.MovementType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.ScrollRect.MovementType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIScrollRectScrollbarVisibilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Permanent", UnityEngine.UI.ScrollRect.ScrollbarVisibility.Permanent); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHide", UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHide); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHideAndExpandViewport", UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, (UnityEngine.UI.ScrollRect.ScrollbarVisibility)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Permanent")) - { - translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.Permanent); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHide")) - { - translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHide); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHideAndExpandViewport")) - { - translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.ScrollRect.ScrollbarVisibility!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.ScrollRect.ScrollbarVisibility! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUISliderDirectionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Slider.Direction), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LeftToRight", UnityEngine.UI.Slider.Direction.LeftToRight); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RightToLeft", UnityEngine.UI.Slider.Direction.RightToLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BottomToTop", UnityEngine.UI.Slider.Direction.BottomToTop); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopToBottom", UnityEngine.UI.Slider.Direction.TopToBottom); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Slider.Direction), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUISliderDirection(L, (UnityEngine.UI.Slider.Direction)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "LeftToRight")) - { - translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.LeftToRight); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "RightToLeft")) - { - translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.RightToLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "BottomToTop")) - { - translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.BottomToTop); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TopToBottom")) - { - translator.PushUnityEngineUISliderDirection(L, UnityEngine.UI.Slider.Direction.TopToBottom); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Slider.Direction!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Slider.Direction! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIToggleToggleTransitionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", UnityEngine.UI.Toggle.ToggleTransition.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fade", UnityEngine.UI.Toggle.ToggleTransition.Fade); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.Toggle.ToggleTransition), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIToggleToggleTransition(L, (UnityEngine.UI.Toggle.ToggleTransition)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushUnityEngineUIToggleToggleTransition(L, UnityEngine.UI.Toggle.ToggleTransition.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Fade")) - { - translator.PushUnityEngineUIToggleToggleTransition(L, UnityEngine.UI.Toggle.ToggleTransition.Fade); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.Toggle.ToggleTransition!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.Toggle.ToggleTransition! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIGridLayoutGroupCornerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperLeft", UnityEngine.UI.GridLayoutGroup.Corner.UpperLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UpperRight", UnityEngine.UI.GridLayoutGroup.Corner.UpperRight); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerLeft", UnityEngine.UI.GridLayoutGroup.Corner.LowerLeft); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LowerRight", UnityEngine.UI.GridLayoutGroup.Corner.LowerRight); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Corner), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIGridLayoutGroupCorner(L, (UnityEngine.UI.GridLayoutGroup.Corner)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "UpperLeft")) - { - translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.UpperLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UpperRight")) - { - translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.UpperRight); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerLeft")) - { - translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.LowerLeft); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "LowerRight")) - { - translator.PushUnityEngineUIGridLayoutGroupCorner(L, UnityEngine.UI.GridLayoutGroup.Corner.LowerRight); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Corner!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Corner! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIGridLayoutGroupAxisWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Horizontal", UnityEngine.UI.GridLayoutGroup.Axis.Horizontal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Vertical", UnityEngine.UI.GridLayoutGroup.Axis.Vertical); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Axis), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIGridLayoutGroupAxis(L, (UnityEngine.UI.GridLayoutGroup.Axis)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Horizontal")) - { - translator.PushUnityEngineUIGridLayoutGroupAxis(L, UnityEngine.UI.GridLayoutGroup.Axis.Horizontal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Vertical")) - { - translator.PushUnityEngineUIGridLayoutGroupAxis(L, UnityEngine.UI.GridLayoutGroup.Axis.Vertical); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Axis!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Axis! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEngineUIGridLayoutGroupConstraintWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Flexible", UnityEngine.UI.GridLayoutGroup.Constraint.Flexible); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FixedColumnCount", UnityEngine.UI.GridLayoutGroup.Constraint.FixedColumnCount); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FixedRowCount", UnityEngine.UI.GridLayoutGroup.Constraint.FixedRowCount); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEngineUIGridLayoutGroupConstraint(L, (UnityEngine.UI.GridLayoutGroup.Constraint)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Flexible")) - { - translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.Flexible); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FixedColumnCount")) - { - translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.FixedColumnCount); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FixedRowCount")) - { - translator.PushUnityEngineUIGridLayoutGroupConstraint(L, UnityEngine.UI.GridLayoutGroup.Constraint.FixedRowCount); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.UI.GridLayoutGroup.Constraint!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.UI.GridLayoutGroup.Constraint! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class SpineUnityBoneFollowerAxisOrientationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, null, 3, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "XAxis", Spine.Unity.BoneFollower.AxisOrientation.XAxis); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "YAxis", Spine.Unity.BoneFollower.AxisOrientation.YAxis); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(Spine.Unity.BoneFollower.AxisOrientation), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushSpineUnityBoneFollowerAxisOrientation(L, (Spine.Unity.BoneFollower.AxisOrientation)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "XAxis")) - { - translator.PushSpineUnityBoneFollowerAxisOrientation(L, Spine.Unity.BoneFollower.AxisOrientation.XAxis); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "YAxis")) - { - translator.PushSpineUnityBoneFollowerAxisOrientation(L, Spine.Unity.BoneFollower.AxisOrientation.YAxis); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for Spine.Unity.BoneFollower.AxisOrientation!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for Spine.Unity.BoneFollower.AxisOrientation! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class SpineUnitySkeletonGraphicLayoutModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", Spine.Unity.SkeletonGraphic.LayoutMode.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WidthControlsHeight", Spine.Unity.SkeletonGraphic.LayoutMode.WidthControlsHeight); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HeightControlsWidth", Spine.Unity.SkeletonGraphic.LayoutMode.HeightControlsWidth); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FitInParent", Spine.Unity.SkeletonGraphic.LayoutMode.FitInParent); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EnvelopeParent", Spine.Unity.SkeletonGraphic.LayoutMode.EnvelopeParent); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, (Spine.Unity.SkeletonGraphic.LayoutMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "WidthControlsHeight")) - { - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.WidthControlsHeight); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "HeightControlsWidth")) - { - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.HeightControlsWidth); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FitInParent")) - { - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.FitInParent); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "EnvelopeParent")) - { - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, Spine.Unity.SkeletonGraphic.LayoutMode.EnvelopeParent); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for Spine.Unity.SkeletonGraphic.LayoutMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for Spine.Unity.SkeletonGraphic.LayoutMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class TMProTextAlignmentOptionsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(TMPro.TextAlignmentOptions), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(TMPro.TextAlignmentOptions), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(TMPro.TextAlignmentOptions), L, null, 38, 0, 0); - - Utils.RegisterEnumType(L, typeof(TMPro.TextAlignmentOptions)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(TMPro.TextAlignmentOptions), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushTMProTextAlignmentOptions(L, (TMPro.TextAlignmentOptions)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(TMPro.TextAlignmentOptions), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(TMPro.TextAlignmentOptions) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TextAlignmentOptions! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class TMProTMP_InputFieldContentTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.ContentType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.ContentType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.ContentType), L, null, 11, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", TMPro.TMP_InputField.ContentType.Standard); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Autocorrected", TMPro.TMP_InputField.ContentType.Autocorrected); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IntegerNumber", TMPro.TMP_InputField.ContentType.IntegerNumber); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DecimalNumber", TMPro.TMP_InputField.ContentType.DecimalNumber); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", TMPro.TMP_InputField.ContentType.Alphanumeric); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", TMPro.TMP_InputField.ContentType.Name); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", TMPro.TMP_InputField.ContentType.EmailAddress); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", TMPro.TMP_InputField.ContentType.Password); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Pin", TMPro.TMP_InputField.ContentType.Pin); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Custom", TMPro.TMP_InputField.ContentType.Custom); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(TMPro.TMP_InputField.ContentType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushTMProTMP_InputFieldContentType(L, (TMPro.TMP_InputField.ContentType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Standard")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Standard); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Autocorrected")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Autocorrected); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "IntegerNumber")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.IntegerNumber); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "DecimalNumber")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.DecimalNumber); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Alphanumeric); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Name")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Name); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.EmailAddress); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Password")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Password); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Pin")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Pin); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Custom")) - { - translator.PushTMProTMP_InputFieldContentType(L, TMPro.TMP_InputField.ContentType.Custom); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.ContentType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.ContentType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class TMProTMP_InputFieldInputTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.InputType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.InputType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.InputType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Standard", TMPro.TMP_InputField.InputType.Standard); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoCorrect", TMPro.TMP_InputField.InputType.AutoCorrect); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Password", TMPro.TMP_InputField.InputType.Password); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(TMPro.TMP_InputField.InputType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushTMProTMP_InputFieldInputType(L, (TMPro.TMP_InputField.InputType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Standard")) - { - translator.PushTMProTMP_InputFieldInputType(L, TMPro.TMP_InputField.InputType.Standard); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoCorrect")) - { - translator.PushTMProTMP_InputFieldInputType(L, TMPro.TMP_InputField.InputType.AutoCorrect); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Password")) - { - translator.PushTMProTMP_InputFieldInputType(L, TMPro.TMP_InputField.InputType.Password); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.InputType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.InputType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class TMProTMP_InputFieldCharacterValidationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, null, 10, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", TMPro.TMP_InputField.CharacterValidation.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Digit", TMPro.TMP_InputField.CharacterValidation.Digit); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Integer", TMPro.TMP_InputField.CharacterValidation.Integer); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Decimal", TMPro.TMP_InputField.CharacterValidation.Decimal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Alphanumeric", TMPro.TMP_InputField.CharacterValidation.Alphanumeric); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Name", TMPro.TMP_InputField.CharacterValidation.Name); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Regex", TMPro.TMP_InputField.CharacterValidation.Regex); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EmailAddress", TMPro.TMP_InputField.CharacterValidation.EmailAddress); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CustomValidator", TMPro.TMP_InputField.CharacterValidation.CustomValidator); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(TMPro.TMP_InputField.CharacterValidation), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, (TMPro.TMP_InputField.CharacterValidation)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Digit")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Digit); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Integer")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Integer); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Decimal")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Decimal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Alphanumeric")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Alphanumeric); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Name")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Name); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Regex")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.Regex); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "EmailAddress")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.EmailAddress); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CustomValidator")) - { - translator.PushTMProTMP_InputFieldCharacterValidation(L, TMPro.TMP_InputField.CharacterValidation.CustomValidator); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.CharacterValidation!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.CharacterValidation! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class TMProTMP_InputFieldLineTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(TMPro.TMP_InputField.LineType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(TMPro.TMP_InputField.LineType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(TMPro.TMP_InputField.LineType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SingleLine", TMPro.TMP_InputField.LineType.SingleLine); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineSubmit", TMPro.TMP_InputField.LineType.MultiLineSubmit); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MultiLineNewline", TMPro.TMP_InputField.LineType.MultiLineNewline); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(TMPro.TMP_InputField.LineType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushTMProTMP_InputFieldLineType(L, (TMPro.TMP_InputField.LineType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "SingleLine")) - { - translator.PushTMProTMP_InputFieldLineType(L, TMPro.TMP_InputField.LineType.SingleLine); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineSubmit")) - { - translator.PushTMProTMP_InputFieldLineType(L, TMPro.TMP_InputField.LineType.MultiLineSubmit); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "MultiLineNewline")) - { - translator.PushTMProTMP_InputFieldLineType(L, TMPro.TMP_InputField.LineType.MultiLineNewline); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for TMPro.TMP_InputField.LineType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for TMPro.TMP_InputField.LineType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class ThinkingAnalyticsThinkingAnalyticsAPITATimeZoneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, null, 8, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Local", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Local); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UTC", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.UTC); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Asia_Shanghai", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Shanghai); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Asia_Tokyo", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Tokyo); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "America_Los_Angeles", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_Los_Angeles); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "America_New_York", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_New_York); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Other", ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Other); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, (ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Local")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Local); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UTC")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.UTC); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Asia_Shanghai")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Shanghai); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Asia_Tokyo")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Asia_Tokyo); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "America_Los_Angeles")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_Los_Angeles); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "America_New_York")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.America_New_York); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Other")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone.Other); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class ThinkingAnalyticsThinkingAnalyticsAPITAModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NORMAL", ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.NORMAL); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEBUG", ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEBUG_ONLY", ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG_ONLY); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, (ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "NORMAL")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.NORMAL); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "DEBUG")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "DEBUG_ONLY")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode.DEBUG_ONLY); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class ThinkingAnalyticsThinkingAnalyticsAPINetworkTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEFAULT", ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.DEFAULT); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WIFI", ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.WIFI); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ALL", ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.ALL); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, (ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "DEFAULT")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.DEFAULT); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "WIFI")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.WIFI); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ALL")) - { - translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType.ALL); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningAutoPlayWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.AutoPlay), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.AutoPlay), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.AutoPlay), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", DG.Tweening.AutoPlay.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoPlaySequences", DG.Tweening.AutoPlay.AutoPlaySequences); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoPlayTweeners", DG.Tweening.AutoPlay.AutoPlayTweeners); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "All", DG.Tweening.AutoPlay.All); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.AutoPlay), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningAutoPlay(L, (DG.Tweening.AutoPlay)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoPlaySequences")) - { - translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.AutoPlaySequences); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoPlayTweeners")) - { - translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.AutoPlayTweeners); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "All")) - { - translator.PushDGTweeningAutoPlay(L, DG.Tweening.AutoPlay.All); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.AutoPlay!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.AutoPlay! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningAxisConstraintWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.AxisConstraint), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.AxisConstraint), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.AxisConstraint), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", DG.Tweening.AxisConstraint.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "X", DG.Tweening.AxisConstraint.X); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Y", DG.Tweening.AxisConstraint.Y); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Z", DG.Tweening.AxisConstraint.Z); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "W", DG.Tweening.AxisConstraint.W); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.AxisConstraint), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningAxisConstraint(L, (DG.Tweening.AxisConstraint)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "X")) - { - translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.X); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Y")) - { - translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.Y); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Z")) - { - translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.Z); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "W")) - { - translator.PushDGTweeningAxisConstraint(L, DG.Tweening.AxisConstraint.W); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.AxisConstraint!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.AxisConstraint! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningEaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.Ease), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.Ease), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.Ease), L, null, 39, 0, 0); - - Utils.RegisterEnumType(L, typeof(DG.Tweening.Ease)); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.Ease), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningEase(L, (DG.Tweening.Ease)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - try - { - translator.TranslateToEnumToTop(L, typeof(DG.Tweening.Ease), 1); - } - catch (System.Exception e) - { - return LuaAPI.luaL_error(L, "cast to " + typeof(DG.Tweening.Ease) + " exception:" + e); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.Ease! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningLogBehaviourWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.LogBehaviour), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.LogBehaviour), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.LogBehaviour), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Default", DG.Tweening.LogBehaviour.Default); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Verbose", DG.Tweening.LogBehaviour.Verbose); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ErrorsOnly", DG.Tweening.LogBehaviour.ErrorsOnly); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.LogBehaviour), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningLogBehaviour(L, (DG.Tweening.LogBehaviour)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Default")) - { - translator.PushDGTweeningLogBehaviour(L, DG.Tweening.LogBehaviour.Default); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Verbose")) - { - translator.PushDGTweeningLogBehaviour(L, DG.Tweening.LogBehaviour.Verbose); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ErrorsOnly")) - { - translator.PushDGTweeningLogBehaviour(L, DG.Tweening.LogBehaviour.ErrorsOnly); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.LogBehaviour!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.LogBehaviour! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningLoopTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.LoopType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.LoopType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.LoopType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Restart", DG.Tweening.LoopType.Restart); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Yoyo", DG.Tweening.LoopType.Yoyo); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Incremental", DG.Tweening.LoopType.Incremental); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.LoopType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningLoopType(L, (DG.Tweening.LoopType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Restart")) - { - translator.PushDGTweeningLoopType(L, DG.Tweening.LoopType.Restart); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Yoyo")) - { - translator.PushDGTweeningLoopType(L, DG.Tweening.LoopType.Yoyo); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Incremental")) - { - translator.PushDGTweeningLoopType(L, DG.Tweening.LoopType.Incremental); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.LoopType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.LoopType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningPathModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.PathMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.PathMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.PathMode), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Ignore", DG.Tweening.PathMode.Ignore); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Full3D", DG.Tweening.PathMode.Full3D); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TopDown2D", DG.Tweening.PathMode.TopDown2D); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sidescroller2D", DG.Tweening.PathMode.Sidescroller2D); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.PathMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningPathMode(L, (DG.Tweening.PathMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Ignore")) - { - translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.Ignore); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Full3D")) - { - translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.Full3D); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TopDown2D")) - { - translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.TopDown2D); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Sidescroller2D")) - { - translator.PushDGTweeningPathMode(L, DG.Tweening.PathMode.Sidescroller2D); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.PathMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.PathMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningPathTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.PathType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.PathType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.PathType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Linear", DG.Tweening.PathType.Linear); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CatmullRom", DG.Tweening.PathType.CatmullRom); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CubicBezier", DG.Tweening.PathType.CubicBezier); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.PathType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningPathType(L, (DG.Tweening.PathType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Linear")) - { - translator.PushDGTweeningPathType(L, DG.Tweening.PathType.Linear); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CatmullRom")) - { - translator.PushDGTweeningPathType(L, DG.Tweening.PathType.CatmullRom); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "CubicBezier")) - { - translator.PushDGTweeningPathType(L, DG.Tweening.PathType.CubicBezier); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.PathType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.PathType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningRotateModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.RotateMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.RotateMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.RotateMode), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fast", DG.Tweening.RotateMode.Fast); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "FastBeyond360", DG.Tweening.RotateMode.FastBeyond360); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WorldAxisAdd", DG.Tweening.RotateMode.WorldAxisAdd); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LocalAxisAdd", DG.Tweening.RotateMode.LocalAxisAdd); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.RotateMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningRotateMode(L, (DG.Tweening.RotateMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Fast")) - { - translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.Fast); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "FastBeyond360")) - { - translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.FastBeyond360); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "WorldAxisAdd")) - { - translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.WorldAxisAdd); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "LocalAxisAdd")) - { - translator.PushDGTweeningRotateMode(L, DG.Tweening.RotateMode.LocalAxisAdd); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.RotateMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.RotateMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningScrambleModeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.ScrambleMode), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.ScrambleMode), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.ScrambleMode), L, null, 7, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "None", DG.Tweening.ScrambleMode.None); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "All", DG.Tweening.ScrambleMode.All); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Uppercase", DG.Tweening.ScrambleMode.Uppercase); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Lowercase", DG.Tweening.ScrambleMode.Lowercase); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Numerals", DG.Tweening.ScrambleMode.Numerals); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Custom", DG.Tweening.ScrambleMode.Custom); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.ScrambleMode), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningScrambleMode(L, (DG.Tweening.ScrambleMode)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "None")) - { - translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.None); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "All")) - { - translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.All); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Uppercase")) - { - translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Uppercase); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Lowercase")) - { - translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Lowercase); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Numerals")) - { - translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Numerals); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Custom")) - { - translator.PushDGTweeningScrambleMode(L, DG.Tweening.ScrambleMode.Custom); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.ScrambleMode!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.ScrambleMode! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningTweenTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.TweenType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.TweenType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.TweenType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Tweener", DG.Tweening.TweenType.Tweener); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Sequence", DG.Tweening.TweenType.Sequence); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Callback", DG.Tweening.TweenType.Callback); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.TweenType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningTweenType(L, (DG.Tweening.TweenType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Tweener")) - { - translator.PushDGTweeningTweenType(L, DG.Tweening.TweenType.Tweener); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Sequence")) - { - translator.PushDGTweeningTweenType(L, DG.Tweening.TweenType.Sequence); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Callback")) - { - translator.PushDGTweeningTweenType(L, DG.Tweening.TweenType.Callback); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.TweenType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.TweenType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class DGTweeningUpdateTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(DG.Tweening.UpdateType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(DG.Tweening.UpdateType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(DG.Tweening.UpdateType), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Normal", DG.Tweening.UpdateType.Normal); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Late", DG.Tweening.UpdateType.Late); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fixed", DG.Tweening.UpdateType.Fixed); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Manual", DG.Tweening.UpdateType.Manual); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(DG.Tweening.UpdateType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushDGTweeningUpdateType(L, (DG.Tweening.UpdateType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Normal")) - { - translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Normal); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Late")) - { - translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Late); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Fixed")) - { - translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Fixed); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Manual")) - { - translator.PushDGTweeningUpdateType(L, DG.Tweening.UpdateType.Manual); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for DG.Tweening.UpdateType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for DG.Tweening.UpdateType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class HttpRequestStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(Http.RequestState), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(Http.RequestState), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(Http.RequestState), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Success", Http.RequestState.Success); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Aborted", Http.RequestState.Aborted); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Fail", Http.RequestState.Fail); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ConnectionTimedOut", Http.RequestState.ConnectionTimedOut); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TimedOut", Http.RequestState.TimedOut); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(Http.RequestState), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushHttpRequestState(L, (Http.RequestState)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Success")) - { - translator.PushHttpRequestState(L, Http.RequestState.Success); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Aborted")) - { - translator.PushHttpRequestState(L, Http.RequestState.Aborted); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Fail")) - { - translator.PushHttpRequestState(L, Http.RequestState.Fail); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ConnectionTimedOut")) - { - translator.PushHttpRequestState(L, Http.RequestState.ConnectionTimedOut); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TimedOut")) - { - translator.PushHttpRequestState(L, Http.RequestState.TimedOut); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for Http.RequestState!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for Http.RequestState! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class UnityEnginePurchasingProductTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(UnityEngine.Purchasing.ProductType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(UnityEngine.Purchasing.ProductType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(UnityEngine.Purchasing.ProductType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Consumable", UnityEngine.Purchasing.ProductType.Consumable); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NonConsumable", UnityEngine.Purchasing.ProductType.NonConsumable); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Subscription", UnityEngine.Purchasing.ProductType.Subscription); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(UnityEngine.Purchasing.ProductType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushUnityEnginePurchasingProductType(L, (UnityEngine.Purchasing.ProductType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Consumable")) - { - translator.PushUnityEnginePurchasingProductType(L, UnityEngine.Purchasing.ProductType.Consumable); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "NonConsumable")) - { - translator.PushUnityEnginePurchasingProductType(L, UnityEngine.Purchasing.ProductType.NonConsumable); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Subscription")) - { - translator.PushUnityEnginePurchasingProductType(L, UnityEngine.Purchasing.ProductType.Subscription); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for UnityEngine.Purchasing.ProductType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for UnityEngine.Purchasing.ProductType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class BFBFSliderFillDirectionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(BF.BFSlider.FillDirection), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(BF.BFSlider.FillDirection), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(BF.BFSlider.FillDirection), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Right", BF.BFSlider.FillDirection.Right); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Left", BF.BFSlider.FillDirection.Left); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Up", BF.BFSlider.FillDirection.Up); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Down", BF.BFSlider.FillDirection.Down); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(BF.BFSlider.FillDirection), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushBFBFSliderFillDirection(L, (BF.BFSlider.FillDirection)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Right")) - { - translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Right); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Left")) - { - translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Left); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Up")) - { - translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Up); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Down")) - { - translator.PushBFBFSliderFillDirection(L, BF.BFSlider.FillDirection.Down); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for BF.BFSlider.FillDirection!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for BF.BFSlider.FillDirection! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class BFScrollRectBaseOldMovementTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Unrestricted", BF.ScrollRectBaseOld.MovementType.Unrestricted); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Elastic", BF.ScrollRectBaseOld.MovementType.Elastic); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Clamped", BF.ScrollRectBaseOld.MovementType.Clamped); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(BF.ScrollRectBaseOld.MovementType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushBFScrollRectBaseOldMovementType(L, (BF.ScrollRectBaseOld.MovementType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Unrestricted")) - { - translator.PushBFScrollRectBaseOldMovementType(L, BF.ScrollRectBaseOld.MovementType.Unrestricted); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Elastic")) - { - translator.PushBFScrollRectBaseOldMovementType(L, BF.ScrollRectBaseOld.MovementType.Elastic); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Clamped")) - { - translator.PushBFScrollRectBaseOldMovementType(L, BF.ScrollRectBaseOld.MovementType.Clamped); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for BF.ScrollRectBaseOld.MovementType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for BF.ScrollRectBaseOld.MovementType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class BFScrollRectBaseOldScrollbarVisibilityWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, null, 4, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Permanent", BF.ScrollRectBaseOld.ScrollbarVisibility.Permanent); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHide", BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHide); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AutoHideAndExpandViewport", BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHideAndExpandViewport); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushBFScrollRectBaseOldScrollbarVisibility(L, (BF.ScrollRectBaseOld.ScrollbarVisibility)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Permanent")) - { - translator.PushBFScrollRectBaseOldScrollbarVisibility(L, BF.ScrollRectBaseOld.ScrollbarVisibility.Permanent); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHide")) - { - translator.PushBFScrollRectBaseOldScrollbarVisibility(L, BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHide); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "AutoHideAndExpandViewport")) - { - translator.PushBFScrollRectBaseOldScrollbarVisibility(L, BF.ScrollRectBaseOld.ScrollbarVisibility.AutoHideAndExpandViewport); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for BF.ScrollRectBaseOld.ScrollbarVisibility!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for BF.ScrollRectBaseOld.ScrollbarVisibility! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class BFNetServiceTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(BF.NetServiceType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(BF.NetServiceType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(BF.NetServiceType), L, null, 5, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Invalid", BF.NetServiceType.Invalid); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "TCPService", BF.NetServiceType.TCPService); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UDPService", BF.NetServiceType.UDPService); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WebsocketService", BF.NetServiceType.WebsocketService); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(BF.NetServiceType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushBFNetServiceType(L, (BF.NetServiceType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Invalid")) - { - translator.PushBFNetServiceType(L, BF.NetServiceType.Invalid); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "TCPService")) - { - translator.PushBFNetServiceType(L, BF.NetServiceType.TCPService); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "UDPService")) - { - translator.PushBFNetServiceType(L, BF.NetServiceType.UDPService); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "WebsocketService")) - { - translator.PushBFNetServiceType(L, BF.NetServiceType.WebsocketService); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for BF.NetServiceType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for BF.NetServiceType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class BFNetIncomingMessageTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(BF.NetIncomingMessageType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(BF.NetIncomingMessageType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(BF.NetIncomingMessageType), L, null, 8, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Error", BF.NetIncomingMessageType.Error); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "StatusChange", BF.NetIncomingMessageType.StatusChange); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Data", BF.NetIncomingMessageType.Data); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DebugMessage", BF.NetIncomingMessageType.DebugMessage); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WarningMessage", BF.NetIncomingMessageType.WarningMessage); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ErrorMessage", BF.NetIncomingMessageType.ErrorMessage); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HeartBeatMessage", BF.NetIncomingMessageType.HeartBeatMessage); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(BF.NetIncomingMessageType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushBFNetIncomingMessageType(L, (BF.NetIncomingMessageType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Error")) - { - translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.Error); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "StatusChange")) - { - translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.StatusChange); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Data")) - { - translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.Data); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "DebugMessage")) - { - translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.DebugMessage); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "WarningMessage")) - { - translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.WarningMessage); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "ErrorMessage")) - { - translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.ErrorMessage); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "HeartBeatMessage")) - { - translator.PushBFNetIncomingMessageType(L, BF.NetIncomingMessageType.HeartBeatMessage); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for BF.NetIncomingMessageType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for BF.NetIncomingMessageType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class BFTouchEventTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(BF.TouchEventType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(BF.TouchEventType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(BF.TouchEventType), L, null, 7, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Down", BF.TouchEventType.Down); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Touching", BF.TouchEventType.Touching); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Up", BF.TouchEventType.Up); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Hit", BF.TouchEventType.Hit); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Slide", BF.TouchEventType.Slide); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Dead", BF.TouchEventType.Dead); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(BF.TouchEventType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushBFTouchEventType(L, (BF.TouchEventType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "Down")) - { - translator.PushBFTouchEventType(L, BF.TouchEventType.Down); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Touching")) - { - translator.PushBFTouchEventType(L, BF.TouchEventType.Touching); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Up")) - { - translator.PushBFTouchEventType(L, BF.TouchEventType.Up); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Hit")) - { - translator.PushBFTouchEventType(L, BF.TouchEventType.Hit); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Slide")) - { - translator.PushBFTouchEventType(L, BF.TouchEventType.Slide); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "Dead")) - { - translator.PushBFTouchEventType(L, BF.TouchEventType.Dead); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for BF.TouchEventType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for BF.TouchEventType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - - public class BFSelectEventTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - Utils.BeginObjectRegister(typeof(BF.SelectEventType), L, translator, 0, 0, 0, 0); - Utils.EndObjectRegister(typeof(BF.SelectEventType), L, translator, null, null, null, null, null); - - Utils.BeginClassRegister(typeof(BF.SelectEventType), L, null, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnSelect", BF.SelectEventType.OnSelect); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnLongSelected", BF.SelectEventType.OnLongSelected); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnDeselect", BF.SelectEventType.OnDeselect); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnLongDeselect", BF.SelectEventType.OnLongDeselect); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OnSelectHit", BF.SelectEventType.OnSelectHit); - - - Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); - - Utils.EndClassRegister(typeof(BF.SelectEventType), L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CastFrom(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaTypes lua_type = LuaAPI.lua_type(L, 1); - if (lua_type == LuaTypes.LUA_TNUMBER) - { - translator.PushBFSelectEventType(L, (BF.SelectEventType)LuaAPI.xlua_tointeger(L, 1)); - } - - else if(lua_type == LuaTypes.LUA_TSTRING) - { - - if (LuaAPI.xlua_is_eq_str(L, 1, "OnSelect")) - { - translator.PushBFSelectEventType(L, BF.SelectEventType.OnSelect); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "OnLongSelected")) - { - translator.PushBFSelectEventType(L, BF.SelectEventType.OnLongSelected); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "OnDeselect")) - { - translator.PushBFSelectEventType(L, BF.SelectEventType.OnDeselect); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "OnLongDeselect")) - { - translator.PushBFSelectEventType(L, BF.SelectEventType.OnLongDeselect); - } - else if (LuaAPI.xlua_is_eq_str(L, 1, "OnSelectHit")) - { - translator.PushBFSelectEventType(L, BF.SelectEventType.OnSelectHit); - } - else - { - return LuaAPI.luaL_error(L, "invalid string for BF.SelectEventType!"); - } - - } - - else - { - return LuaAPI.luaL_error(L, "invalid lua type for BF.SelectEventType! Expect number or string, got + " + lua_type); - } - - return 1; - } - } - -} \ No newline at end of file diff --git a/Assets/XLua/Gen/FBWindowsA2UNotificationsManagerWrap.cs b/Assets/XLua/Gen/FBWindowsA2UNotificationsManagerWrap.cs deleted file mode 100644 index 7efb5165a..000000000 --- a/Assets/XLua/Gen/FBWindowsA2UNotificationsManagerWrap.cs +++ /dev/null @@ -1,298 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsA2UNotificationsManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsA2UNotificationsManager); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScheduleButton", _m_ScheduleButton); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TitleText", _g_get_TitleText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BodyText", _g_get_BodyText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MediaText", _g_get_MediaText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PayloadText", _g_get_PayloadText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TimeIntervalText", _g_get_TimeIntervalText); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TitleText", _s_set_TitleText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "BodyText", _s_set_BodyText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MediaText", _s_set_MediaText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PayloadText", _s_set_PayloadText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TimeIntervalText", _s_set_TimeIntervalText); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsA2UNotificationsManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsA2UNotificationsManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScheduleButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ScheduleButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TitleText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TitleText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BodyText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.BodyText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MediaText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MediaText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PayloadText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PayloadText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TimeIntervalText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TimeIntervalText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TitleText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TitleText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_BodyText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.BodyText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MediaText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MediaText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PayloadText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PayloadText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TimeIntervalText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsA2UNotificationsManager gen_to_be_invoked = (FBWindowsA2UNotificationsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TimeIntervalText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsADSManagerWrap.cs b/Assets/XLua/Gen/FBWindowsADSManagerWrap.cs deleted file mode 100644 index 8107151a2..000000000 --- a/Assets/XLua/Gen/FBWindowsADSManagerWrap.cs +++ /dev/null @@ -1,405 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsADSManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsADSManager); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadRewardedVideo", _m_LoadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowRewardedVideo", _m_ShowRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadInterstitialAd", _m_LoadInterstitialAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowInterstitialAd", _m_ShowInterstitialAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnButtonLoadInterstitialAd", _m_OnButtonLoadInterstitialAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnButtonShowInterstitialAd", _m_OnButtonShowInterstitialAd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnButtonLoadRewardedVideo", _m_OnButtonLoadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnButtonShowRewardedVideo", _m_OnButtonShowRewardedVideo); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InputInterstitialAd", _g_get_InputInterstitialAd); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InputRewardedVideo", _g_get_InputRewardedVideo); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "InputInterstitialAd", _s_set_InputInterstitialAd); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "InputRewardedVideo", _s_set_InputRewardedVideo); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsADSManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsADSManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - string _placementID = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.LoadRewardedVideo( _placementID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - string _placementID = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.ShowRewardedVideo( _placementID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadInterstitialAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - string _placementID = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.LoadInterstitialAd( _placementID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowInterstitialAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - string _placementID = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.ShowInterstitialAd( _placementID ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnButtonLoadInterstitialAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnButtonLoadInterstitialAd( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnButtonShowInterstitialAd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnButtonShowInterstitialAd( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnButtonLoadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnButtonLoadRewardedVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnButtonShowRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnButtonShowRewardedVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InputInterstitialAd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.InputInterstitialAd); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InputRewardedVideo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.InputRewardedVideo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_InputInterstitialAd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.InputInterstitialAd = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_InputRewardedVideo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsADSManager gen_to_be_invoked = (FBWindowsADSManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.InputRewardedVideo = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsExampleTabsManagerWrap.cs b/Assets/XLua/Gen/FBWindowsExampleTabsManagerWrap.cs deleted file mode 100644 index 1e1715bf8..000000000 --- a/Assets/XLua/Gen/FBWindowsExampleTabsManagerWrap.cs +++ /dev/null @@ -1,144 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsExampleTabsManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsExampleTabsManager); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowTab", _m_ShowTab); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sections", _g_get_sections); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sections", _s_set_sections); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsExampleTabsManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsExampleTabsManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ShowTab(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsExampleTabsManager gen_to_be_invoked = (FBWindowsExampleTabsManager)translator.FastGetCSObj(L, 1); - - - - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ShowTab( _id ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sections(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsExampleTabsManager gen_to_be_invoked = (FBWindowsExampleTabsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sections); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sections(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsExampleTabsManager gen_to_be_invoked = (FBWindowsExampleTabsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sections = (UnityEngine.GameObject[])translator.GetObject(L, 2, typeof(UnityEngine.GameObject[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsFriendsManagerWrap.cs b/Assets/XLua/Gen/FBWindowsFriendsManagerWrap.cs deleted file mode 100644 index 6e7101f88..000000000 --- a/Assets/XLua/Gen/FBWindowsFriendsManagerWrap.cs +++ /dev/null @@ -1,233 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsFriendsManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsFriendsManager); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_OpenReceivedInvitations", _m_Button_OpenReceivedInvitations); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_GetFriendFinderInvitations", _m_Button_GetFriendFinderInvitations); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ReceivedInvitationsPanelTransform", _g_get_ReceivedInvitationsPanelTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShowReceivedInvitation", _g_get_ShowReceivedInvitation); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ReceivedInvitationsPanelTransform", _s_set_ReceivedInvitationsPanelTransform); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ShowReceivedInvitation", _s_set_ShowReceivedInvitation); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsFriendsManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsFriendsManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_OpenReceivedInvitations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_OpenReceivedInvitations( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_GetFriendFinderInvitations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_GetFriendFinderInvitations( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ReceivedInvitationsPanelTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ReceivedInvitationsPanelTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ShowReceivedInvitation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ShowReceivedInvitation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ReceivedInvitationsPanelTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ReceivedInvitationsPanelTransform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ShowReceivedInvitation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsFriendsManager gen_to_be_invoked = (FBWindowsFriendsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ShowReceivedInvitation = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsGraphAPIManagerWrap.cs b/Assets/XLua/Gen/FBWindowsGraphAPIManagerWrap.cs deleted file mode 100644 index 24c766e82..000000000 --- a/Assets/XLua/Gen/FBWindowsGraphAPIManagerWrap.cs +++ /dev/null @@ -1,295 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsGraphAPIManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsGraphAPIManager); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphAPI", _m_GraphAPI); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGraphAPiVersion", _m_SetGraphAPiVersion); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "QueryText", _g_get_QueryText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "QueryType", _g_get_QueryType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "GraphAPIVersionText", _g_get_GraphAPIVersionText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "GraphAPIVersion", _g_get_GraphAPIVersion); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "QueryText", _s_set_QueryText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "QueryType", _s_set_QueryType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "GraphAPIVersionText", _s_set_GraphAPIVersionText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "GraphAPIVersion", _s_set_GraphAPIVersion); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsGraphAPIManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsGraphAPIManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphAPI(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphAPI( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGraphAPiVersion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetGraphAPiVersion( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_QueryText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.QueryText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_QueryType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.QueryType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_GraphAPIVersionText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.GraphAPIVersionText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_GraphAPIVersion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.GraphAPIVersion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_QueryText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.QueryText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_QueryType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.QueryType = (UnityEngine.UI.Dropdown)translator.GetObject(L, 2, typeof(UnityEngine.UI.Dropdown)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_GraphAPIVersionText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.GraphAPIVersionText = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_GraphAPIVersion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsGraphAPIManager gen_to_be_invoked = (FBWindowsGraphAPIManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.GraphAPIVersion = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsInitManagerWrap.cs b/Assets/XLua/Gen/FBWindowsInitManagerWrap.cs deleted file mode 100644 index 8ed78d1c8..000000000 --- a/Assets/XLua/Gen/FBWindowsInitManagerWrap.cs +++ /dev/null @@ -1,143 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsInitManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsInitManager); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitButton", _m_InitButton); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsInitManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsInitManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InitButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsInitManager gen_to_be_invoked = (FBWindowsInitManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.InitButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsInitManager gen_to_be_invoked = (FBWindowsInitManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsInitManager gen_to_be_invoked = (FBWindowsInitManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsLoginManagerWrap.cs b/Assets/XLua/Gen/FBWindowsLoginManagerWrap.cs deleted file mode 100644 index d2bb27705..000000000 --- a/Assets/XLua/Gen/FBWindowsLoginManagerWrap.cs +++ /dev/null @@ -1,348 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsLoginManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsLoginManager); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogInReadButton", _m_LogInReadButton); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogInPublishButton", _m_LogInPublishButton); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogOutButton", _m_LogOutButton); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentProfile", _m_GetCurrentProfile); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUserLocale", _m_GetUserLocale); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Permissions", _g_get_Permissions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UserImage", _g_get_UserImage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UserName", _g_get_UserName); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Permissions", _s_set_Permissions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UserImage", _s_set_UserImage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UserName", _s_set_UserName); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsLoginManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsLoginManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogInReadButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LogInReadButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogInPublishButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LogInPublishButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogOutButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LogOutButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentProfile(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GetCurrentProfile( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetUserLocale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GetUserLocale( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Permissions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Permissions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UserImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UserImage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UserName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UserName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Permissions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Permissions = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UserImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UserImage = (UnityEngine.UI.RawImage)translator.GetObject(L, 2, typeof(UnityEngine.UI.RawImage)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UserName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLoginManager gen_to_be_invoked = (FBWindowsLoginManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UserName = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsLogsManagerWrap.cs b/Assets/XLua/Gen/FBWindowsLogsManagerWrap.cs deleted file mode 100644 index df959440a..000000000 --- a/Assets/XLua/Gen/FBWindowsLogsManagerWrap.cs +++ /dev/null @@ -1,261 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsLogsManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsLogsManager); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DebugLog", _m_DebugLog); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DebugErrorLog", _m_DebugErrorLog); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DebugWarningLog", _m_DebugWarningLog); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DebugClean", _m_DebugClean); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LogText", _g_get_LogText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScrollView", _g_get_ScrollView); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "LogText", _s_set_LogText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScrollView", _s_set_ScrollView); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsLogsManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsLogsManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DebugLog(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - - - - { - string _message = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.DebugLog( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DebugErrorLog(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - - - - { - string _message = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.DebugErrorLog( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DebugWarningLog(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - - - - { - string _message = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.DebugWarningLog( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DebugClean(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.DebugClean( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LogText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.LogText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScrollView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ScrollView); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LogText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.LogText = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ScrollView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsLogsManager gen_to_be_invoked = (FBWindowsLogsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ScrollView = (UnityEngine.UI.ScrollRect)translator.GetObject(L, 2, typeof(UnityEngine.UI.ScrollRect)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsPhysicalGamepadManagerWrap.cs b/Assets/XLua/Gen/FBWindowsPhysicalGamepadManagerWrap.cs deleted file mode 100644 index 69cdd735c..000000000 --- a/Assets/XLua/Gen/FBWindowsPhysicalGamepadManagerWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsPhysicalGamepadManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsPhysicalGamepadManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "displayGamepadInputText", _g_get_displayGamepadInputText); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "displayGamepadInputText", _s_set_displayGamepadInputText); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsPhysicalGamepadManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsPhysicalGamepadManager constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_displayGamepadInputText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPhysicalGamepadManager gen_to_be_invoked = (FBWindowsPhysicalGamepadManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.displayGamepadInputText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_displayGamepadInputText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPhysicalGamepadManager gen_to_be_invoked = (FBWindowsPhysicalGamepadManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.displayGamepadInputText = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsPurchaseManagerWrap.cs b/Assets/XLua/Gen/FBWindowsPurchaseManagerWrap.cs deleted file mode 100644 index 55068dfa4..000000000 --- a/Assets/XLua/Gen/FBWindowsPurchaseManagerWrap.cs +++ /dev/null @@ -1,264 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsPurchaseManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsPurchaseManager); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCatalogButton", _m_GetCatalogButton); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPurchases", _m_GetPurchases); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ProductGameObject", _g_get_ProductGameObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CatalogPanelTarnsform", _g_get_CatalogPanelTarnsform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PurchasesPanelTarnsform", _g_get_PurchasesPanelTarnsform); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ProductGameObject", _s_set_ProductGameObject); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CatalogPanelTarnsform", _s_set_CatalogPanelTarnsform); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PurchasesPanelTarnsform", _s_set_PurchasesPanelTarnsform); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsPurchaseManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsPurchaseManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCatalogButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GetCatalogButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPurchases(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GetPurchases( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ProductGameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ProductGameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CatalogPanelTarnsform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CatalogPanelTarnsform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PurchasesPanelTarnsform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PurchasesPanelTarnsform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ProductGameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ProductGameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CatalogPanelTarnsform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CatalogPanelTarnsform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PurchasesPanelTarnsform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsPurchaseManager gen_to_be_invoked = (FBWindowsPurchaseManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PurchasesPanelTarnsform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsShareManagerWrap.cs b/Assets/XLua/Gen/FBWindowsShareManagerWrap.cs deleted file mode 100644 index 27d4fdf05..000000000 --- a/Assets/XLua/Gen/FBWindowsShareManagerWrap.cs +++ /dev/null @@ -1,388 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsShareManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsShareManager); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 8, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_UploadImage", _m_Button_UploadImage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_UploadVideo", _m_Button_UploadVideo); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Caption", _g_get_Caption); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ImageFile", _g_get_ImageFile); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VideoFile", _g_get_VideoFile); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TravelID", _g_get_TravelID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShouldShowDialog", _g_get_ShouldShowDialog); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ImageUploadButton", _g_get_ImageUploadButton); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VideoUploadButton", _g_get_VideoUploadButton); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Caption", _s_set_Caption); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ImageFile", _s_set_ImageFile); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "VideoFile", _s_set_VideoFile); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TravelID", _s_set_TravelID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ShouldShowDialog", _s_set_ShouldShowDialog); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ImageUploadButton", _s_set_ImageUploadButton); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "VideoUploadButton", _s_set_VideoUploadButton); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsShareManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsShareManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_UploadImage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_UploadImage( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_UploadVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_UploadVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Caption(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Caption); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ImageFile(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ImageFile); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VideoFile(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.VideoFile); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TravelID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TravelID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ShouldShowDialog(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ShouldShowDialog); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ImageUploadButton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ImageUploadButton); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VideoUploadButton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.VideoUploadButton); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Caption(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Caption = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ImageFile(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ImageFile = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_VideoFile(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.VideoFile = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TravelID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TravelID = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ShouldShowDialog(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ShouldShowDialog = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ImageUploadButton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ImageUploadButton = (UnityEngine.UI.Button)translator.GetObject(L, 2, typeof(UnityEngine.UI.Button)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_VideoUploadButton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsShareManager gen_to_be_invoked = (FBWindowsShareManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.VideoUploadButton = (UnityEngine.UI.Button)translator.GetObject(L, 2, typeof(UnityEngine.UI.Button)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsSoftKeyboardManagerWrap.cs b/Assets/XLua/Gen/FBWindowsSoftKeyboardManagerWrap.cs deleted file mode 100644 index 1379f991f..000000000 --- a/Assets/XLua/Gen/FBWindowsSoftKeyboardManagerWrap.cs +++ /dev/null @@ -1,143 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsSoftKeyboardManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsSoftKeyboardManager); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSoftKeyboardOpenButton", _m_SetSoftKeyboardOpenButton); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsSoftKeyboardManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsSoftKeyboardManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSoftKeyboardOpenButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsSoftKeyboardManager gen_to_be_invoked = (FBWindowsSoftKeyboardManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetSoftKeyboardOpenButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsSoftKeyboardManager gen_to_be_invoked = (FBWindowsSoftKeyboardManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsSoftKeyboardManager gen_to_be_invoked = (FBWindowsSoftKeyboardManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsTournamentsManagerWrap.cs b/Assets/XLua/Gen/FBWindowsTournamentsManagerWrap.cs deleted file mode 100644 index 234fd0529..000000000 --- a/Assets/XLua/Gen/FBWindowsTournamentsManagerWrap.cs +++ /dev/null @@ -1,503 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsTournamentsManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsTournamentsManager); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 9, 9); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_CreateTournament", _m_Button_CreateTournament); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_PostSessionScore", _m_Button_PostSessionScore); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_PostTournamentScore", _m_Button_PostTournamentScore); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_ShareTournament", _m_Button_ShareTournament); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Button_GetTournament", _m_Button_GetTournament); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Title", _g_get_Title); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Image", _g_get_Image); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SortOrder", _g_get_SortOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScoreFormat", _g_get_ScoreFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InitialScore", _g_get_InitialScore); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Score", _g_get_Score); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShareData", _g_get_ShareData); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Title", _s_set_Title); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Image", _s_set_Image); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SortOrder", _s_set_SortOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScoreFormat", _s_set_ScoreFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Data", _s_set_Data); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "InitialScore", _s_set_InitialScore); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Score", _s_set_Score); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ShareData", _s_set_ShareData); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsTournamentsManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsTournamentsManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_CreateTournament(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_CreateTournament( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_PostSessionScore(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_PostSessionScore( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_PostTournamentScore(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_PostTournamentScore( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_ShareTournament(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_ShareTournament( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Button_GetTournament(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Button_GetTournament( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Title(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Title); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Image); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SortOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SortOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScoreFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ScoreFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InitialScore(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.InitialScore); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Score(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Score); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ShareData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ShareData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Title(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Title = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Image = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SortOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SortOrder = (UnityEngine.UI.Dropdown)translator.GetObject(L, 2, typeof(UnityEngine.UI.Dropdown)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ScoreFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ScoreFormat = (UnityEngine.UI.Dropdown)translator.GetObject(L, 2, typeof(UnityEngine.UI.Dropdown)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Data = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_InitialScore(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.InitialScore = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Score(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Score = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ShareData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsTournamentsManager gen_to_be_invoked = (FBWindowsTournamentsManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ShareData = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FBWindowsVirtualGamepadManagerWrap.cs b/Assets/XLua/Gen/FBWindowsVirtualGamepadManagerWrap.cs deleted file mode 100644 index 5cc95b60a..000000000 --- a/Assets/XLua/Gen/FBWindowsVirtualGamepadManagerWrap.cs +++ /dev/null @@ -1,174 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FBWindowsVirtualGamepadManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FBWindowsVirtualGamepadManager); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVirtualGamepadLayout", _m_SetVirtualGamepadLayout); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Logger", _g_get_Logger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "NewVirtualGamepadLayout", _g_get_NewVirtualGamepadLayout); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Logger", _s_set_Logger); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "NewVirtualGamepadLayout", _s_set_NewVirtualGamepadLayout); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FBWindowsVirtualGamepadManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FBWindowsVirtualGamepadManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVirtualGamepadLayout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FBWindowsVirtualGamepadManager gen_to_be_invoked = (FBWindowsVirtualGamepadManager)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetVirtualGamepadLayout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsVirtualGamepadManager gen_to_be_invoked = (FBWindowsVirtualGamepadManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Logger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_NewVirtualGamepadLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsVirtualGamepadManager gen_to_be_invoked = (FBWindowsVirtualGamepadManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.NewVirtualGamepadLayout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Logger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsVirtualGamepadManager gen_to_be_invoked = (FBWindowsVirtualGamepadManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Logger = (FBWindowsLogsManager)translator.GetObject(L, 2, typeof(FBWindowsLogsManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_NewVirtualGamepadLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FBWindowsVirtualGamepadManager gen_to_be_invoked = (FBWindowsVirtualGamepadManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.NewVirtualGamepadLayout = (UnityEngine.UI.InputField)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Facebook_MiniJSON_JsonWrap.cs b/Assets/XLua/Gen/Facebook_MiniJSON_JsonWrap.cs deleted file mode 100644 index ea2713440..000000000 --- a/Assets/XLua/Gen/Facebook_MiniJSON_JsonWrap.cs +++ /dev/null @@ -1,123 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FacebookMiniJSONJsonWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Facebook.MiniJSON.Json); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Deserialize", _m_Deserialize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Serialize", _m_Serialize_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "Facebook.MiniJSON.Json does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Deserialize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - - var gen_ret = Facebook.MiniJSON.Json.Deserialize( _json ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = Facebook.MiniJSON.Json.Serialize( _obj ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Facebook_MiniJSON_MiniJsonUtilWrap.cs b/Assets/XLua/Gen/Facebook_MiniJSON_MiniJsonUtilWrap.cs deleted file mode 100644 index 7ec5d95d5..000000000 --- a/Assets/XLua/Gen/Facebook_MiniJSON_MiniJsonUtilWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FacebookMiniJSONMiniJsonUtilWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Facebook.MiniJSON.MiniJsonUtil); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "Facebook.MiniJSON.MiniJsonUtil does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/FixRectWidthByStringWrap.cs b/Assets/XLua/Gen/FixRectWidthByStringWrap.cs deleted file mode 100644 index 0f42674dc..000000000 --- a/Assets/XLua/Gen/FixRectWidthByStringWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FixRectWidthByStringWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FixRectWidthByString); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minWidth", _s_set_minWidth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FixRectWidthByString(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FixRectWidthByString constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FixRectWidthByString gen_to_be_invoked = (FixRectWidthByString)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - FixRectWidthByString gen_to_be_invoked = (FixRectWidthByString)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minWidth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/FunctionRequestWrap.cs b/Assets/XLua/Gen/FunctionRequestWrap.cs deleted file mode 100644 index 55979fed4..000000000 --- a/Assets/XLua/Gen/FunctionRequestWrap.cs +++ /dev/null @@ -1,128 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class FunctionRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(FunctionRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new FunctionRequest(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to FunctionRequest constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - FunctionRequest gen_to_be_invoked = (FunctionRequest)translator.FastGetCSObj(L, 1); - - - - { - string _method = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Invoke( _method, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, FunctionRequest.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Http_HttpDebugWrap.cs b/Assets/XLua/Gen/Http_HttpDebugWrap.cs deleted file mode 100644 index 4be7f61c5..000000000 --- a/Assets/XLua/Gen/Http_HttpDebugWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class HttpHttpDebugWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Http.HttpDebug); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Log", _m_Log_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogError", _m_LogError_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogWarning", _m_LogWarning_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "Http.HttpDebug does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Log_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _msg = LuaAPI.lua_tostring(L, 1); - - Http.HttpDebug.Log( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogError_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _msg = LuaAPI.lua_tostring(L, 1); - - Http.HttpDebug.LogError( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogWarning_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _msg = LuaAPI.lua_tostring(L, 1); - - Http.HttpDebug.LogWarning( _msg ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Http_HttpManagerWrap.cs b/Assets/XLua/Gen/Http_HttpManagerWrap.cs deleted file mode 100644 index 0d24c5172..000000000 --- a/Assets/XLua/Gen/Http_HttpManagerWrap.cs +++ /dev/null @@ -1,410 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class HttpHttpManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Http.HttpManager); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetServerUrl", _m_SetServerUrl); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetToken", _m_SetToken); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetParseRevocableSession", _m_SetParseRevocableSession); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetParseApplicationId", _m_SetParseApplicationId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetParseClientKey", _m_SetParseClientKey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Get", _m_Get); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Post", _m_Post); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Put", _m_Put); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Delete", _m_Delete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Abort", _m_Abort); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Http.HttpManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Http.HttpManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetServerUrl(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetServerUrl( _url ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetToken(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _token = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetToken( _token ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetParseRevocableSession(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetParseRevocableSession( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetParseApplicationId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _appId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetParseApplicationId( _appId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetParseClientKey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetParseClientKey( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Get(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _id = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Get( _id ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.Get( _url, _complete ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Http.HttpManager.Get!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Post(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.Post( _url, _complete ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Put(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.Put( _url, _complete ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Delete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.Delete( _url, _complete ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Abort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.HttpManager gen_to_be_invoked = (Http.HttpManager)translator.FastGetCSObj(L, 1); - - - - { - string _id = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Abort( _id ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, Http.HttpManager.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Http_RequestDataWrap.cs b/Assets/XLua/Gen/Http_RequestDataWrap.cs deleted file mode 100644 index 9d9bd7078..000000000 --- a/Assets/XLua/Gen/Http_RequestDataWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class HttpRequestDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Http.RequestData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "code", _g_get_code); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "error", _g_get_error); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "code", _s_set_code); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "error", _s_set_error); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Http.RequestData(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Http.RequestData constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_code(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.RequestData gen_to_be_invoked = (Http.RequestData)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.code); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_error(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.RequestData gen_to_be_invoked = (Http.RequestData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.error); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_code(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.RequestData gen_to_be_invoked = (Http.RequestData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.code = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_error(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.RequestData gen_to_be_invoked = (Http.RequestData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.error = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Http_ResultInfoWrap.cs b/Assets/XLua/Gen/Http_ResultInfoWrap.cs deleted file mode 100644 index 38797111f..000000000 --- a/Assets/XLua/Gen/Http_ResultInfoWrap.cs +++ /dev/null @@ -1,209 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class HttpResultInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Http.ResultInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Id", _g_get_Id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Tag", _g_get_Tag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "State", _g_get_State); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Response", _g_get_Response); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Id", _s_set_Id); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Tag", _s_set_Tag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "State", _s_set_State); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Response", _s_set_Response); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Http.ResultInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Http.ResultInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Tag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_State(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - translator.PushHttpRequestState(L, gen_to_be_invoked.State); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Response(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Response); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Id = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Tag = translator.GetObject(L, 2, typeof(object)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_State(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - Http.RequestState gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.State = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Response(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.ResultInfo gen_to_be_invoked = (Http.ResultInfo)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Response = (BestHTTP.HTTPResponse)translator.GetObject(L, 2, typeof(BestHTTP.HTTPResponse)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Http_SingleHttpExtendsWrap.cs b/Assets/XLua/Gen/Http_SingleHttpExtendsWrap.cs deleted file mode 100644 index b65445f9e..000000000 --- a/Assets/XLua/Gen/Http_SingleHttpExtendsWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class HttpSingleHttpExtendsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Http.SingleHttpExtends); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "Http.SingleHttpExtends does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Http_SingleHttpWrap.cs b/Assets/XLua/Gen/Http_SingleHttpWrap.cs deleted file mode 100644 index e50980a56..000000000 --- a/Assets/XLua/Gen/Http_SingleHttpWrap.cs +++ /dev/null @@ -1,666 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using Http; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class HttpSingleHttpWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Http.SingleHttp); - Utils.BeginObjectRegister(type, L, translator, 0, 13, 5, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHeader", _m_AddHeader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddParameter", _m_AddParameter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceAbort", _m_ForceAbort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetId", _m_SetId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTag", _m_AddTag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCustomTimeout", _m_AddCustomTimeout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Timeout", _m_Timeout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConnectTimeout", _m_ConnectTimeout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "KeepAlive", _m_KeepAlive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisableCache", _m_DisableCache); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddToken", _m_AddToken); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRevocableSession", _m_AddRevocableSession); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Request", _g_get_Request); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Id", _g_get_Id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Tag", _g_get_Tag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Type", _g_get_Type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomTimeout", _g_get_CustomTimeout); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Id", _s_set_Id); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Tag", _s_set_Tag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Type", _s_set_Type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CustomTimeout", _s_set_CustomTimeout); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Http.SingleHttp(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Http.SingleHttp constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - BestHTTP.HTTPMethods _type;translator.Get(L, 1, out _type); - string _url = LuaAPI.lua_tostring(L, 2); - System.Action _callback = translator.GetDelegate>(L, 3); - - var gen_ret = Http.SingleHttp.Create( _type, _url, _callback ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddHeader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.AddHeader( _key, _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _body = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.AddParameter( _body ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - bool _isLastOne = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.AddParameter( _key, _value, _isLastOne ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.AddParameter( _key, _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Http.SingleHttp.AddParameter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceAbort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ForceAbort( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - string _id = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetId( _id ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - object _value = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.AddTag( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCustomTimeout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddCustomTimeout( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Timeout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - double _value = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Timeout( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConnectTimeout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - double _value = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.ConnectTimeout( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_KeepAlive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - bool _value = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.KeepAlive( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DisableCache(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - bool _value = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DisableCache( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Send(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Send( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddToken(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AddToken( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRevocableSession(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AddRevocableSession( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Request(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Request); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Tag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomTimeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CustomTimeout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Id = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Tag = translator.GetObject(L, 2, typeof(object)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - BestHTTP.HTTPMethods gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.Type = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CustomTimeout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Http.SingleHttp gen_to_be_invoked = (Http.SingleHttp)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CustomTimeout = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/IAPManagerWrap.cs b/Assets/XLua/Gen/IAPManagerWrap.cs deleted file mode 100644 index b52ae120a..000000000 --- a/Assets/XLua/Gen/IAPManagerWrap.cs +++ /dev/null @@ -1,629 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IAPManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IAPManager); - Utils.BeginObjectRegister(type, L, translator, 0, 13, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInitialized", _m_OnInitialized); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInitializeFailed", _m_OnInitializeFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Buy", _m_Buy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPurchaseFailed", _m_OnPurchaseFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessPurchase", _m_ProcessPurchase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConsumePurchase", _m_ConsumePurchase); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RestorePurchases", _m_RestorePurchases); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnalysisSubscriptionProduct", _m_AnalysisSubscriptionProduct); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInitialized", _m_IsInitialized); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoneyStrSale", _m_MoneyStrSale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoneySplit", _m_MoneySplit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalizedPrice", _m_GetLocalizedPrice); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initCallback", _g_get_initCallback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "buyCallback", _g_get_buyCallback); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initCallback", _s_set_initCallback); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "buyCallback", _s_set_buyCallback); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetProductIdById", _m_GetProductIdById_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "instance", _g_get_instance); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "instance", _s_set_instance); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IAPManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IAPManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _infos = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.Init( _infos ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnInitialized(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Purchasing.IStoreController _controller = (UnityEngine.Purchasing.IStoreController)translator.GetObject(L, 2, typeof(UnityEngine.Purchasing.IStoreController)); - UnityEngine.Purchasing.IExtensionProvider _extensions = (UnityEngine.Purchasing.IExtensionProvider)translator.GetObject(L, 3, typeof(UnityEngine.Purchasing.IExtensionProvider)); - - gen_to_be_invoked.OnInitialized( _controller, _extensions ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnInitializeFailed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Purchasing.InitializationFailureReason _error;translator.Get(L, 2, out _error); - - gen_to_be_invoked.OnInitializeFailed( _error ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - UnityEngine.Purchasing.InitializationFailureReason _error;translator.Get(L, 2, out _error); - string _message = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.OnInitializeFailed( _error, _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IAPManager.OnInitializeFailed!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Buy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - string _productId = LuaAPI.lua_tostring(L, 2); - string _payload = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.Buy( _productId, _payload ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPurchaseFailed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Purchasing.Product _pro = (UnityEngine.Purchasing.Product)translator.GetObject(L, 2, typeof(UnityEngine.Purchasing.Product)); - UnityEngine.Purchasing.PurchaseFailureReason _p;translator.Get(L, 3, out _p); - - gen_to_be_invoked.OnPurchaseFailed( _pro, _p ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Purchasing.Product _pro = (UnityEngine.Purchasing.Product)translator.GetObject(L, 2, typeof(UnityEngine.Purchasing.Product)); - UnityEngine.Purchasing.Extension.PurchaseFailureDescription _p = (UnityEngine.Purchasing.Extension.PurchaseFailureDescription)translator.GetObject(L, 3, typeof(UnityEngine.Purchasing.Extension.PurchaseFailureDescription)); - - gen_to_be_invoked.OnPurchaseFailed( _pro, _p ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IAPManager.OnPurchaseFailed!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ProcessPurchase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Purchasing.PurchaseEventArgs _e = (UnityEngine.Purchasing.PurchaseEventArgs)translator.GetObject(L, 2, typeof(UnityEngine.Purchasing.PurchaseEventArgs)); - - var gen_ret = gen_to_be_invoked.ProcessPurchase( _e ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConsumePurchase(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - string _productId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.ConsumePurchase( _productId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RestorePurchases(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - System.Action _callBack = translator.GetDelegate(L, 2); - - gen_to_be_invoked.RestorePurchases( _callBack ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AnalysisSubscriptionProduct(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Purchasing.Product[] _products = (UnityEngine.Purchasing.Product[])translator.GetObject(L, 2, typeof(UnityEngine.Purchasing.Product[])); - - var gen_ret = gen_to_be_invoked.AnalysisSubscriptionProduct( _products ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsInitialized(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsInitialized( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetProductIdById_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _id = LuaAPI.lua_tostring(L, 1); - - var gen_ret = IAPManager.GetProductIdById( _id ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoneyStrSale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - string _str = LuaAPI.lua_tostring(L, 2); - float _sale = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.MoneyStrSale( _str, _sale ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoneySplit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - string _str = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.MoneySplit( _str ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLocalizedPrice(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - - - - { - string _productId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetLocalizedPrice( _productId ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IAPManager.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.initCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_buyCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.buyCallback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IAPManager.instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_buyCallback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IAPManager gen_to_be_invoked = (IAPManager)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.buyCallback = translator.GetDelegate>(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - IAPManager.instance = (IAPManager)translator.GetObject(L, 1, typeof(IAPManager)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/IAPRequestWrap.cs b/Assets/XLua/Gen/IAPRequestWrap.cs deleted file mode 100644 index 66b317b3d..000000000 --- a/Assets/XLua/Gen/IAPRequestWrap.cs +++ /dev/null @@ -1,97 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IAPRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IAPRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IAPRequest(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IAPRequest constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IAPRequest.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IUnityBannerWrap.cs b/Assets/XLua/Gen/IUnityBannerWrap.cs deleted file mode 100644 index ef1143da5..000000000 --- a/Assets/XLua/Gen/IUnityBannerWrap.cs +++ /dev/null @@ -1,277 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityBannerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityBanner); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLoaded", _e_OnBannerAdLoaded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLeftApplication", _e_OnBannerAdLeftApplication); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdScreenDismissed", _e_OnBannerAdScreenDismissed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdScreenPresented", _e_OnBannerAdScreenPresented); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdClicked", _e_OnBannerAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLoadFailed", _e_OnBannerAdLoadFailed); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityBanner does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityBanner gen_to_be_invoked = (IUnityBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdLoaded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdLoaded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityBanner.OnBannerAdLoaded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdLeftApplication(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityBanner gen_to_be_invoked = (IUnityBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdLeftApplication += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdLeftApplication -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityBanner.OnBannerAdLeftApplication!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdScreenDismissed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityBanner gen_to_be_invoked = (IUnityBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdScreenDismissed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdScreenDismissed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityBanner.OnBannerAdScreenDismissed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdScreenPresented(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityBanner gen_to_be_invoked = (IUnityBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdScreenPresented += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdScreenPresented -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityBanner.OnBannerAdScreenPresented!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityBanner gen_to_be_invoked = (IUnityBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityBanner.OnBannerAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityBanner gen_to_be_invoked = (IUnityBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityBanner.OnBannerAdLoadFailed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityImpressionDataWrap.cs b/Assets/XLua/Gen/IUnityImpressionDataWrap.cs deleted file mode 100644 index 66fcc3a4e..000000000 --- a/Assets/XLua/Gen/IUnityImpressionDataWrap.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityImpressionDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityImpressionData); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnImpressionDataReady", _e_OnImpressionDataReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnImpressionSuccess", _e_OnImpressionSuccess); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityImpressionData does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnImpressionDataReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityImpressionData gen_to_be_invoked = (IUnityImpressionData)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnImpressionDataReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnImpressionDataReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityImpressionData.OnImpressionDataReady!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnImpressionSuccess(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityImpressionData gen_to_be_invoked = (IUnityImpressionData)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnImpressionSuccess += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnImpressionSuccess -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityImpressionData.OnImpressionSuccess!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityInitializationWrap.cs b/Assets/XLua/Gen/IUnityInitializationWrap.cs deleted file mode 100644 index 072efb8e4..000000000 --- a/Assets/XLua/Gen/IUnityInitializationWrap.cs +++ /dev/null @@ -1,102 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityInitializationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityInitialization); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSdkInitializationCompletedEvent", _e_OnSdkInitializationCompletedEvent); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityInitialization does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnSdkInitializationCompletedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInitialization gen_to_be_invoked = (IUnityInitialization)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnSdkInitializationCompletedEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnSdkInitializationCompletedEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInitialization.OnSdkInitializationCompletedEvent!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityInterstitialWrap.cs b/Assets/XLua/Gen/IUnityInterstitialWrap.cs deleted file mode 100644 index df683e6ed..000000000 --- a/Assets/XLua/Gen/IUnityInterstitialWrap.cs +++ /dev/null @@ -1,557 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityInterstitialWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityInterstitial); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowFailed", _e_OnInterstitialAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdLoadFailed", _e_OnInterstitialAdLoadFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdReady", _e_OnInterstitialAdReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdOpened", _e_OnInterstitialAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClosed", _e_OnInterstitialAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowSucceeded", _e_OnInterstitialAdShowSucceeded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClicked", _e_OnInterstitialAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdRewarded", _e_OnInterstitialAdRewarded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdReadyDemandOnly", _e_OnInterstitialAdReadyDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdOpenedDemandOnly", _e_OnInterstitialAdOpenedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClosedDemandOnly", _e_OnInterstitialAdClosedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdLoadFailedDemandOnly", _e_OnInterstitialAdLoadFailedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClickedDemandOnly", _e_OnInterstitialAdClickedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowFailedDemandOnly", _e_OnInterstitialAdShowFailedDemandOnly); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityInterstitial does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdLoadFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdReady!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdShowSucceeded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdShowSucceeded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdShowSucceeded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdShowSucceeded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdRewarded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdRewarded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdRewarded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdRewarded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdReadyDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdReadyDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdReadyDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdReadyDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdOpenedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdOpenedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdOpenedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdOpenedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClosedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClosedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClosedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdClosedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdLoadFailedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdLoadFailedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdLoadFailedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdLoadFailedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClickedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClickedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClickedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdClickedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdShowFailedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityInterstitial gen_to_be_invoked = (IUnityInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdShowFailedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdShowFailedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityInterstitial.OnInterstitialAdShowFailedDemandOnly!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityLevelPlayBannerWrap.cs b/Assets/XLua/Gen/IUnityLevelPlayBannerWrap.cs deleted file mode 100644 index 2d38bb5e6..000000000 --- a/Assets/XLua/Gen/IUnityLevelPlayBannerWrap.cs +++ /dev/null @@ -1,277 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityLevelPlayBannerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityLevelPlayBanner); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoaded", _e_OnAdLoaded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLeftApplication", _e_OnAdLeftApplication); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdScreenDismissed", _e_OnAdScreenDismissed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdScreenPresented", _e_OnAdScreenPresented); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityLevelPlayBanner does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayBanner gen_to_be_invoked = (IUnityLevelPlayBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoaded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoaded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayBanner.OnAdLoaded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLeftApplication(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayBanner gen_to_be_invoked = (IUnityLevelPlayBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLeftApplication += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLeftApplication -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayBanner.OnAdLeftApplication!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdScreenDismissed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayBanner gen_to_be_invoked = (IUnityLevelPlayBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdScreenDismissed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdScreenDismissed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayBanner.OnAdScreenDismissed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdScreenPresented(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayBanner gen_to_be_invoked = (IUnityLevelPlayBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdScreenPresented += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdScreenPresented -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayBanner.OnAdScreenPresented!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayBanner gen_to_be_invoked = (IUnityLevelPlayBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayBanner.OnAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayBanner gen_to_be_invoked = (IUnityLevelPlayBanner)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayBanner.OnAdLoadFailed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityLevelPlayInterstitialWrap.cs b/Assets/XLua/Gen/IUnityLevelPlayInterstitialWrap.cs deleted file mode 100644 index 3315c6854..000000000 --- a/Assets/XLua/Gen/IUnityLevelPlayInterstitialWrap.cs +++ /dev/null @@ -1,312 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityLevelPlayInterstitialWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityLevelPlayInterstitial); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowFailed", _e_OnAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdReady", _e_OnAdReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdOpened", _e_OnAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClosed", _e_OnAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowSucceeded", _e_OnAdShowSucceeded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityLevelPlayInterstitial does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayInterstitial gen_to_be_invoked = (IUnityLevelPlayInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayInterstitial.OnAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayInterstitial gen_to_be_invoked = (IUnityLevelPlayInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayInterstitial.OnAdLoadFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayInterstitial gen_to_be_invoked = (IUnityLevelPlayInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayInterstitial.OnAdReady!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayInterstitial gen_to_be_invoked = (IUnityLevelPlayInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayInterstitial.OnAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayInterstitial gen_to_be_invoked = (IUnityLevelPlayInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayInterstitial.OnAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdShowSucceeded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayInterstitial gen_to_be_invoked = (IUnityLevelPlayInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdShowSucceeded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdShowSucceeded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayInterstitial.OnAdShowSucceeded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayInterstitial gen_to_be_invoked = (IUnityLevelPlayInterstitial)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayInterstitial.OnAdClicked!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityLevelPlayRewardedVideoManualWrap.cs b/Assets/XLua/Gen/IUnityLevelPlayRewardedVideoManualWrap.cs deleted file mode 100644 index 335dc0cad..000000000 --- a/Assets/XLua/Gen/IUnityLevelPlayRewardedVideoManualWrap.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityLevelPlayRewardedVideoManualWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityLevelPlayRewardedVideoManual); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdReady", _e_OnAdReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityLevelPlayRewardedVideoManual does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideoManual gen_to_be_invoked = (IUnityLevelPlayRewardedVideoManual)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideoManual.OnAdReady!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideoManual gen_to_be_invoked = (IUnityLevelPlayRewardedVideoManual)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideoManual.OnAdLoadFailed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityLevelPlayRewardedVideoWrap.cs b/Assets/XLua/Gen/IUnityLevelPlayRewardedVideoWrap.cs deleted file mode 100644 index 2f31b17bc..000000000 --- a/Assets/XLua/Gen/IUnityLevelPlayRewardedVideoWrap.cs +++ /dev/null @@ -1,312 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityLevelPlayRewardedVideoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityLevelPlayRewardedVideo); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowFailed", _e_OnAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdOpened", _e_OnAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClosed", _e_OnAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdRewarded", _e_OnAdRewarded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdAvailable", _e_OnAdAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdUnavailable", _e_OnAdUnavailable); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityLevelPlayRewardedVideo does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideo gen_to_be_invoked = (IUnityLevelPlayRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideo.OnAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideo gen_to_be_invoked = (IUnityLevelPlayRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideo.OnAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideo gen_to_be_invoked = (IUnityLevelPlayRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideo.OnAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdRewarded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideo gen_to_be_invoked = (IUnityLevelPlayRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdRewarded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdRewarded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideo.OnAdRewarded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideo gen_to_be_invoked = (IUnityLevelPlayRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideo.OnAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdAvailable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideo gen_to_be_invoked = (IUnityLevelPlayRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdAvailable += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdAvailable -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideo.OnAdAvailable!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdUnavailable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityLevelPlayRewardedVideo gen_to_be_invoked = (IUnityLevelPlayRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdUnavailable += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdUnavailable -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityLevelPlayRewardedVideo.OnAdUnavailable!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityOfferwallWrap.cs b/Assets/XLua/Gen/IUnityOfferwallWrap.cs deleted file mode 100644 index 2dffefda6..000000000 --- a/Assets/XLua/Gen/IUnityOfferwallWrap.cs +++ /dev/null @@ -1,277 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityOfferwallWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityOfferwall); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallShowFailed", _e_OnOfferwallShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallOpened", _e_OnOfferwallOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallClosed", _e_OnOfferwallClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGetOfferwallCreditsFailed", _e_OnGetOfferwallCreditsFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallAdCredited", _e_OnOfferwallAdCredited); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallAvailable", _e_OnOfferwallAvailable); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityOfferwall does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityOfferwall gen_to_be_invoked = (IUnityOfferwall)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityOfferwall.OnOfferwallShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityOfferwall gen_to_be_invoked = (IUnityOfferwall)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityOfferwall.OnOfferwallOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityOfferwall gen_to_be_invoked = (IUnityOfferwall)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityOfferwall.OnOfferwallClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnGetOfferwallCreditsFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityOfferwall gen_to_be_invoked = (IUnityOfferwall)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnGetOfferwallCreditsFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnGetOfferwallCreditsFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityOfferwall.OnGetOfferwallCreditsFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallAdCredited(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityOfferwall gen_to_be_invoked = (IUnityOfferwall)translator.FastGetCSObj(L, 1); - System.Action> gen_delegate = translator.GetDelegate>>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action>!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallAdCredited += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallAdCredited -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityOfferwall.OnOfferwallAdCredited!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallAvailable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityOfferwall gen_to_be_invoked = (IUnityOfferwall)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallAvailable += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallAvailable -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityOfferwall.OnOfferwallAvailable!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityRewardedVideoManualWrap.cs b/Assets/XLua/Gen/IUnityRewardedVideoManualWrap.cs deleted file mode 100644 index 2f538a00f..000000000 --- a/Assets/XLua/Gen/IUnityRewardedVideoManualWrap.cs +++ /dev/null @@ -1,137 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityRewardedVideoManualWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityRewardedVideoManual); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdReady", _e_OnRewardedVideoAdReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadFailed", _e_OnRewardedVideoAdLoadFailed); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityRewardedVideoManual does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideoManual gen_to_be_invoked = (IUnityRewardedVideoManual)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideoManual.OnRewardedVideoAdReady!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideoManual gen_to_be_invoked = (IUnityRewardedVideoManual)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideoManual.OnRewardedVideoAdLoadFailed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnityRewardedVideoWrap.cs b/Assets/XLua/Gen/IUnityRewardedVideoWrap.cs deleted file mode 100644 index dbc964fc6..000000000 --- a/Assets/XLua/Gen/IUnityRewardedVideoWrap.cs +++ /dev/null @@ -1,592 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnityRewardedVideoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnityRewardedVideo); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdShowFailed", _e_OnRewardedVideoAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdOpened", _e_OnRewardedVideoAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClosed", _e_OnRewardedVideoAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdStarted", _e_OnRewardedVideoAdStarted); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdEnded", _e_OnRewardedVideoAdEnded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdRewarded", _e_OnRewardedVideoAdRewarded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClicked", _e_OnRewardedVideoAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAvailabilityChanged", _e_OnRewardedVideoAvailabilityChanged); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdOpenedDemandOnlyEvent", _e_OnRewardedVideoAdOpenedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClosedDemandOnlyEvent", _e_OnRewardedVideoAdClosedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadedDemandOnlyEvent", _e_OnRewardedVideoAdLoadedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdRewardedDemandOnlyEvent", _e_OnRewardedVideoAdRewardedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdShowFailedDemandOnlyEvent", _e_OnRewardedVideoAdShowFailedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClickedDemandOnlyEvent", _e_OnRewardedVideoAdClickedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadFailedDemandOnlyEvent", _e_OnRewardedVideoAdLoadFailedDemandOnlyEvent); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnityRewardedVideo does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdStarted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdStarted += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdStarted -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdStarted!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdEnded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdEnded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdEnded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdEnded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdRewarded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdRewarded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdRewarded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdRewarded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAvailabilityChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAvailabilityChanged += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAvailabilityChanged -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAvailabilityChanged!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdOpenedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdOpenedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdOpenedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdOpenedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClosedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClosedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClosedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdClosedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdLoadedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdLoadedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdLoadedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdLoadedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdRewardedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdRewardedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdRewardedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdRewardedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdShowFailedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdShowFailedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClickedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClickedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClickedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdClickedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdLoadFailedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnityRewardedVideo gen_to_be_invoked = (IUnityRewardedVideo)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnityRewardedVideo.OnRewardedVideoAdLoadFailedDemandOnlyEvent!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IUnitySegmentWrap.cs b/Assets/XLua/Gen/IUnitySegmentWrap.cs deleted file mode 100644 index 368e2661d..000000000 --- a/Assets/XLua/Gen/IUnitySegmentWrap.cs +++ /dev/null @@ -1,102 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IUnitySegmentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IUnitySegment); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSegmentRecieved", _e_OnSegmentRecieved); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IUnitySegment does not have a constructor!"); - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnSegmentRecieved(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IUnitySegment gen_to_be_invoked = (IUnitySegment)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnSegmentRecieved += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnSegmentRecieved -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IUnitySegment.OnSegmentRecieved!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceAdInfoWrap.cs b/Assets/XLua/Gen/IronSourceAdInfoWrap.cs deleted file mode 100644 index 1434d79e3..000000000 --- a/Assets/XLua/Gen/IronSourceAdInfoWrap.cs +++ /dev/null @@ -1,294 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceAdInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceAdInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 12, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "auctionId", _g_get_auctionId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adUnit", _g_get_adUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "country", _g_get_country); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ab", _g_get_ab); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "segmentName", _g_get_segmentName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adNetwork", _g_get_adNetwork); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "instanceName", _g_get_instanceName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "instanceId", _g_get_instanceId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "revenue", _g_get_revenue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "precision", _g_get_precision); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeRevenue", _g_get_lifetimeRevenue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "encryptedCPM", _g_get_encryptedCPM); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _json = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new IronSourceAdInfo(_json); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceAdInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_auctionId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.auctionId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.adUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_country(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.country); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ab(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ab); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_segmentName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.segmentName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adNetwork(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.adNetwork); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instanceName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.instanceName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instanceId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.instanceId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_revenue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.revenue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_precision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.precision); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifetimeRevenue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.lifetimeRevenue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_encryptedCPM(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceAdInfo gen_to_be_invoked = (IronSourceAdInfo)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.encryptedCPM); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceAdUnitsWrap.cs b/Assets/XLua/Gen/IronSourceAdUnitsWrap.cs deleted file mode 100644 index eddaf4247..000000000 --- a/Assets/XLua/Gen/IronSourceAdUnitsWrap.cs +++ /dev/null @@ -1,119 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceAdUnitsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceAdUnits); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 4, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "REWARDED_VIDEO", _g_get_REWARDED_VIDEO); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "INTERSTITIAL", _g_get_INTERSTITIAL); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "OFFERWALL", _g_get_OFFERWALL); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "BANNER", _g_get_BANNER); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IronSourceAdUnits does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_REWARDED_VIDEO(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, IronSourceAdUnits.REWARDED_VIDEO); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_INTERSTITIAL(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, IronSourceAdUnits.INTERSTITIAL); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OFFERWALL(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, IronSourceAdUnits.OFFERWALL); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BANNER(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, IronSourceAdUnits.BANNER); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceBannerEventsWrap.cs b/Assets/XLua/Gen/IronSourceBannerEventsWrap.cs deleted file mode 100644 index 6cfcd73f3..000000000 --- a/Assets/XLua/Gen/IronSourceBannerEventsWrap.cs +++ /dev/null @@ -1,264 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceBannerEventsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceBannerEvents); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadedEvent", _e_onAdLoadedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadFailedEvent", _e_onAdLoadFailedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClickedEvent", _e_onAdClickedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenPresentedEvent", _e_onAdScreenPresentedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenDismissedEvent", _e_onAdScreenDismissedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLeftApplicationEvent", _e_onAdLeftApplicationEvent); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceBannerEvents(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents constructor!"); - - } - - - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLoadedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdLoadedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdLoadedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLoadedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLoadFailedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdLoadFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdLoadFailedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLoadFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdClickedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdClickedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdClickedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdClickedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdScreenPresentedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdScreenPresentedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdScreenPresentedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdScreenPresentedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdScreenDismissedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdScreenDismissedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdScreenDismissedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdScreenDismissedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLeftApplicationEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdLeftApplicationEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdLeftApplicationEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLeftApplicationEvent!"); - } - - } -} diff --git a/Assets/XLua/Gen/IronSourceBannerSizeWrap.cs b/Assets/XLua/Gen/IronSourceBannerSizeWrap.cs deleted file mode 100644 index 56442e5de..000000000 --- a/Assets/XLua/Gen/IronSourceBannerSizeWrap.cs +++ /dev/null @@ -1,306 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceBannerSizeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceBannerSize); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAdaptive", _m_SetAdaptive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAdaptiveEnabled", _m_IsAdaptiveEnabled); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Description", _g_get_Description); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 4, 4); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "BANNER", _g_get_BANNER); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LARGE", _g_get_LARGE); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "RECTANGLE", _g_get_RECTANGLE); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SMART", _g_get_SMART); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "BANNER", _s_set_BANNER); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LARGE", _s_set_LARGE); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "RECTANGLE", _s_set_RECTANGLE); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SMART", _s_set_SMART); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new IronSourceBannerSize(_width, _height); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _description = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new IronSourceBannerSize(_description); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerSize constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAdaptive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceBannerSize gen_to_be_invoked = (IronSourceBannerSize)translator.FastGetCSObj(L, 1); - - - - { - bool _adaptive = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetAdaptive( _adaptive ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsAdaptiveEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceBannerSize gen_to_be_invoked = (IronSourceBannerSize)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsAdaptiveEnabled( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Description(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceBannerSize gen_to_be_invoked = (IronSourceBannerSize)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Description); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceBannerSize gen_to_be_invoked = (IronSourceBannerSize)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceBannerSize gen_to_be_invoked = (IronSourceBannerSize)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BANNER(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IronSourceBannerSize.BANNER); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LARGE(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IronSourceBannerSize.LARGE); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RECTANGLE(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IronSourceBannerSize.RECTANGLE); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SMART(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IronSourceBannerSize.SMART); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_BANNER(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - IronSourceBannerSize.BANNER = (IronSourceBannerSize)translator.GetObject(L, 1, typeof(IronSourceBannerSize)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LARGE(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - IronSourceBannerSize.LARGE = (IronSourceBannerSize)translator.GetObject(L, 1, typeof(IronSourceBannerSize)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_RECTANGLE(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - IronSourceBannerSize.RECTANGLE = (IronSourceBannerSize)translator.GetObject(L, 1, typeof(IronSourceBannerSize)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SMART(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - IronSourceBannerSize.SMART = (IronSourceBannerSize)translator.GetObject(L, 1, typeof(IronSourceBannerSize)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceConfigWrap.cs b/Assets/XLua/Gen/IronSourceConfigWrap.cs deleted file mode 100644 index 6b195ef51..000000000 --- a/Assets/XLua/Gen/IronSourceConfigWrap.cs +++ /dev/null @@ -1,213 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceConfigWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceConfig); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setLanguage", _m_setLanguage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setClientSideCallbacks", _m_setClientSideCallbacks); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRewardedVideoCustomParams", _m_setRewardedVideoCustomParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setOfferwallCustomParams", _m_setOfferwallCustomParams); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceConfig(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceConfig constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setLanguage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceConfig gen_to_be_invoked = (IronSourceConfig)translator.FastGetCSObj(L, 1); - - - - { - string _language = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setLanguage( _language ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setClientSideCallbacks(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceConfig gen_to_be_invoked = (IronSourceConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _status = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setClientSideCallbacks( _status ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setRewardedVideoCustomParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceConfig gen_to_be_invoked = (IronSourceConfig)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.Dictionary _rewardedVideoCustomParams = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setRewardedVideoCustomParams( _rewardedVideoCustomParams ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setOfferwallCustomParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceConfig gen_to_be_invoked = (IronSourceConfig)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.Dictionary _offerwallCustomParams = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setOfferwallCustomParams( _offerwallCustomParams ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IronSourceConfig.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceConstantsWrap.cs b/Assets/XLua/Gen/IronSourceConstantsWrap.cs deleted file mode 100644 index 05de6aadc..000000000 --- a/Assets/XLua/Gen/IronSourceConstantsWrap.cs +++ /dev/null @@ -1,107 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceConstantsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceConstants); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 41, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GET_INSTANCE_KEY", IronSourceConstants.GET_INSTANCE_KEY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ERROR_CODE", IronSourceConstants.ERROR_CODE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ERROR_DESCRIPTION", IronSourceConstants.ERROR_DESCRIPTION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INSTANCE_ID_KEY", IronSourceConstants.INSTANCE_ID_KEY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PLACEMENT_KEY", IronSourceConstants.PLACEMENT_KEY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EMPTY_STRING", IronSourceConstants.EMPTY_STRING); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "interstitialBridgeListenerClass", IronSourceConstants.interstitialBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LevelPlayinterstitialBridgeListenerClass", IronSourceConstants.LevelPlayinterstitialBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "rewardedVideoBridgeListenerClass", IronSourceConstants.rewardedVideoBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "rewardedVideoManualBridgeListenerClass", IronSourceConstants.rewardedVideoManualBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LevelPlayRewardedVideoBridgeListenerClass", IronSourceConstants.LevelPlayRewardedVideoBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LevelPlayRewardedVideoManualBridgeListenerClass", IronSourceConstants.LevelPlayRewardedVideoManualBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "bridgeClass", IronSourceConstants.bridgeClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "offerwallBridgeListenerClass", IronSourceConstants.offerwallBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "bannerBridgeListenerClass", IronSourceConstants.bannerBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LevelPlaybannerBridgeListenerClass", IronSourceConstants.LevelPlaybannerBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "segmentBridgeListenerClass", IronSourceConstants.segmentBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "impressionDataBridgeListenerClass", IronSourceConstants.impressionDataBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "initializeBridgeListenerClass", IronSourceConstants.initializeBridgeListenerClass); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_AUCTION_ID", IronSourceConstants.IMPRESSION_DATA_KEY_AUCTION_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_AD_UNIT", IronSourceConstants.IMPRESSION_DATA_KEY_AD_UNIT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_COUNTRY", IronSourceConstants.IMPRESSION_DATA_KEY_COUNTRY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_ABTEST", IronSourceConstants.IMPRESSION_DATA_KEY_ABTEST); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_SEGMENT_NAME", IronSourceConstants.IMPRESSION_DATA_KEY_SEGMENT_NAME); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_PLACEMENT", IronSourceConstants.IMPRESSION_DATA_KEY_PLACEMENT); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_AD_NETWORK", IronSourceConstants.IMPRESSION_DATA_KEY_AD_NETWORK); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_INSTANCE_NAME", IronSourceConstants.IMPRESSION_DATA_KEY_INSTANCE_NAME); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_INSTANCE_ID", IronSourceConstants.IMPRESSION_DATA_KEY_INSTANCE_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_REVENUE", IronSourceConstants.IMPRESSION_DATA_KEY_REVENUE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_PRECISION", IronSourceConstants.IMPRESSION_DATA_KEY_PRECISION); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_LIFETIME_REVENUE", IronSourceConstants.IMPRESSION_DATA_KEY_LIFETIME_REVENUE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_ENCRYPTED_CPM", IronSourceConstants.IMPRESSION_DATA_KEY_ENCRYPTED_CPM); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IMPRESSION_DATA_KEY_CONVERSION_VALUE", IronSourceConstants.IMPRESSION_DATA_KEY_CONVERSION_VALUE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GENDER_MALE", IronSourceConstants.GENDER_MALE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GENDER_FEMALE", IronSourceConstants.GENDER_FEMALE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GENDER_UNKNOWN", IronSourceConstants.GENDER_UNKNOWN); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IRONSOURCE_MEDIATION_SETTING_NAME", IronSourceConstants.IRONSOURCE_MEDIATION_SETTING_NAME); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IRONSOURCE_MEDIATED_NETWORK_SETTING_NAME", IronSourceConstants.IRONSOURCE_MEDIATED_NETWORK_SETTING_NAME); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IRONSOURCE_RESOURCES_PATH", IronSourceConstants.IRONSOURCE_RESOURCES_PATH); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IRONSOURCE_SKAN_ID_KEY", IronSourceConstants.IRONSOURCE_SKAN_ID_KEY); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IronSourceConstants does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceDemoScriptWrap.cs b/Assets/XLua/Gen/IronSourceDemoScriptWrap.cs deleted file mode 100644 index 05d81a2c7..000000000 --- a/Assets/XLua/Gen/IronSourceDemoScriptWrap.cs +++ /dev/null @@ -1,140 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceDemoScriptWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceDemoScript); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGUI", _m_OnGUI); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceDemoScript(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceDemoScript constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Start(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceDemoScript gen_to_be_invoked = (IronSourceDemoScript)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Start( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnGUI(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceDemoScript gen_to_be_invoked = (IronSourceDemoScript)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnGUI( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceErrorWrap.cs b/Assets/XLua/Gen/IronSourceErrorWrap.cs deleted file mode 100644 index 266c9db08..000000000 --- a/Assets/XLua/Gen/IronSourceErrorWrap.cs +++ /dev/null @@ -1,202 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceErrorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceError); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getErrorCode", _m_getErrorCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getDescription", _m_getDescription); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getCode", _m_getCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - int _errorCode = LuaAPI.xlua_tointeger(L, 2); - string _errorDescription = LuaAPI.lua_tostring(L, 3); - - var gen_ret = new IronSourceError(_errorCode, _errorDescription); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceError constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getErrorCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceError gen_to_be_invoked = (IronSourceError)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getErrorCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getDescription(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceError gen_to_be_invoked = (IronSourceError)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getDescription( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceError gen_to_be_invoked = (IronSourceError)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceError gen_to_be_invoked = (IronSourceError)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceEventsDispatcherWrap.cs b/Assets/XLua/Gen/IronSourceEventsDispatcherWrap.cs deleted file mode 100644 index 4735a6768..000000000 --- a/Assets/XLua/Gen/IronSourceEventsDispatcherWrap.cs +++ /dev/null @@ -1,244 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceEventsDispatcherWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceEventsDispatcher); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "removeFromParent", _m_removeFromParent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Awake", _m_Awake); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDisable", _m_OnDisable); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "executeAction", _m_executeAction_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "initialize", _m_initialize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "isCreated", _m_isCreated_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceEventsDispatcher(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEventsDispatcher constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_executeAction_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Action _action = translator.GetDelegate(L, 1); - - IronSourceEventsDispatcher.executeAction( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_removeFromParent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEventsDispatcher gen_to_be_invoked = (IronSourceEventsDispatcher)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.removeFromParent( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_initialize_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - IronSourceEventsDispatcher.initialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isCreated_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = IronSourceEventsDispatcher.isCreated( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Awake(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEventsDispatcher gen_to_be_invoked = (IronSourceEventsDispatcher)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Awake( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDisable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEventsDispatcher gen_to_be_invoked = (IronSourceEventsDispatcher)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnDisable( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceEventsWrap.cs b/Assets/XLua/Gen/IronSourceEventsWrap.cs deleted file mode 100644 index f1e393d3c..000000000 --- a/Assets/XLua/Gen/IronSourceEventsWrap.cs +++ /dev/null @@ -1,528 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceEventsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceEvents); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidFailToLoadWithError", _m_onConsentViewDidFailToLoadWithError); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidFailToShowWithError", _m_onConsentViewDidFailToShowWithError); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidAccept", _m_onConsentViewDidAccept); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidDismiss", _m_onConsentViewDidDismiss); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidLoadSuccess", _m_onConsentViewDidLoadSuccess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidShowSuccess", _m_onConsentViewDidShowSuccess); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 10, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "onImpressionDataReadyEvent", _e_onImpressionDataReadyEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onSdkInitializationCompletedEvent", _e_onSdkInitializationCompletedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onSegmentReceivedEvent", _e_onSegmentReceivedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToLoadWithErrorEvent", _e_onConsentViewDidFailToLoadWithErrorEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToShowWithErrorEvent", _e_onConsentViewDidFailToShowWithErrorEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidAcceptEvent", _e_onConsentViewDidAcceptEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidDismissEvent", _e_onConsentViewDidDismissEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidLoadSuccessEvent", _e_onConsentViewDidLoadSuccessEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidShowSuccessEvent", _e_onConsentViewDidShowSuccessEvent); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceEvents(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onConsentViewDidFailToLoadWithError(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1); - - - - { - string _args = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onConsentViewDidFailToLoadWithError( _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onConsentViewDidFailToShowWithError(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1); - - - - { - string _args = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onConsentViewDidFailToShowWithError( _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onConsentViewDidAccept(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onConsentViewDidAccept( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onConsentViewDidDismiss(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onConsentViewDidDismiss( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onConsentViewDidLoadSuccess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onConsentViewDidLoadSuccess( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onConsentViewDidShowSuccess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onConsentViewDidShowSuccess( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onImpressionDataReadyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onImpressionDataReadyEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onImpressionDataReadyEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onImpressionDataReadyEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onSdkInitializationCompletedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onSdkInitializationCompletedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onSdkInitializationCompletedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onSdkInitializationCompletedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onSegmentReceivedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onSegmentReceivedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onSegmentReceivedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onSegmentReceivedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onConsentViewDidFailToLoadWithErrorEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onConsentViewDidFailToLoadWithErrorEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onConsentViewDidFailToLoadWithErrorEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidFailToLoadWithErrorEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onConsentViewDidFailToShowWithErrorEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onConsentViewDidFailToShowWithErrorEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onConsentViewDidFailToShowWithErrorEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidFailToShowWithErrorEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onConsentViewDidAcceptEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onConsentViewDidAcceptEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onConsentViewDidAcceptEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidAcceptEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onConsentViewDidDismissEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onConsentViewDidDismissEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onConsentViewDidDismissEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidDismissEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onConsentViewDidLoadSuccessEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onConsentViewDidLoadSuccessEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onConsentViewDidLoadSuccessEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidLoadSuccessEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onConsentViewDidShowSuccessEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceEvents.onConsentViewDidShowSuccessEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onConsentViewDidShowSuccessEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidShowSuccessEvent!"); - } - - } -} diff --git a/Assets/XLua/Gen/IronSourceIAgentWrap.cs b/Assets/XLua/Gen/IronSourceIAgentWrap.cs deleted file mode 100644 index b0fe49459..000000000 --- a/Assets/XLua/Gen/IronSourceIAgentWrap.cs +++ /dev/null @@ -1,1490 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceIAgentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceIAgent); - Utils.BeginObjectRegister(type, L, translator, 0, 46, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "shouldTrackNetworkState", _m_shouldTrackNetworkState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDynamicUserId", _m_setDynamicUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdaptersDebug", _m_setAdaptersDebug); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setMetaData", _m_setMetaData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getConversionValue", _m_getConversionValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setManualLoadRewardedVideo", _m_setManualLoadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setNetworkData", _m_setNetworkData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPauseGame", _m_SetPauseGame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setUserId", _m_setUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "init", _m_init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "initISDemandOnly", _m_initISDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadRewardedVideo", _m_loadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showRewardedVideo", _m_showRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoAvailable", _m_isRewardedVideoAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoPlacementCapped", _m_isRewardedVideoPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getPlacementInfo", _m_getPlacementInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRewardedVideoServerParams", _m_setRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "clearRewardedVideoServerParams", _m_clearRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showISDemandOnlyRewardedVideo", _m_showISDemandOnlyRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadISDemandOnlyRewardedVideo", _m_loadISDemandOnlyRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isISDemandOnlyRewardedVideoAvailable", _m_isISDemandOnlyRewardedVideoAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadInterstitial", _m_loadInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showInterstitial", _m_showInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialReady", _m_isInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialPlacementCapped", _m_isInterstitialPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadISDemandOnlyInterstitial", _m_loadISDemandOnlyInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showISDemandOnlyInterstitial", _m_showISDemandOnlyInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isISDemandOnlyInterstitialReady", _m_isISDemandOnlyInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showOfferwall", _m_showOfferwall); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isOfferwallAvailable", _m_isOfferwallAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getOfferwallCredits", _m_getOfferwallCredits); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadBanner", _m_loadBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "destroyBanner", _m_destroyBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "displayBanner", _m_displayBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "hideBanner", _m_hideBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isBannerPlacementCapped", _m_isBannerPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSegment", _m_setSegment); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setConsent", _m_setConsent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadConsentViewWithType", _m_loadConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showConsentViewWithType", _m_showConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdRevenueData", _m_setAdRevenueData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "launchTestSuite", _m_launchTestSuite); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IronSourceIAgent does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetWaterfallConfiguration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - WaterfallConfiguration _waterfallConfiguration = (WaterfallConfiguration)translator.GetObject(L, 2, typeof(WaterfallConfiguration)); - AdFormat _adFormat;translator.Get(L, 3, out _adFormat); - - gen_to_be_invoked.SetWaterfallConfiguration( _waterfallConfiguration, _adFormat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onApplicationPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.onApplicationPause( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAdvertiserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getAdvertiserId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_validateIntegration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.validateIntegration( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_shouldTrackNetworkState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _track = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.shouldTrackNetworkState( _track ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDynamicUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _dynamicUserId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.setDynamicUserId( _dynamicUserId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdaptersDebug(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setAdaptersDebug( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setMetaData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setMetaData( _key, _value ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _key = LuaAPI.lua_tostring(L, 2); - string[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.setMetaData( _key, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceIAgent.setMetaData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getConversionValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getConversionValue( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setManualLoadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _isOn = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setManualLoadRewardedVideo( _isOn ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setNetworkData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _networkKey = LuaAPI.lua_tostring(L, 2); - string _networkData = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setNetworkData( _networkKey, _networkData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPauseGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetPauseGame( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _userId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setUserId( _userId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.init( _appKey ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - string[] _adUnits = translator.GetParams(L, 3); - - gen_to_be_invoked.init( _appKey, _adUnits ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceIAgent.init!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_initISDemandOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _appKey = LuaAPI.lua_tostring(L, 2); - string[] _adUnits = translator.GetParams(L, 3); - - gen_to_be_invoked.initISDemandOnly( _appKey, _adUnits ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadRewardedVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showRewardedVideo( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showRewardedVideo( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceIAgent.showRewardedVideo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isRewardedVideoAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isRewardedVideoAvailable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isRewardedVideoPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isRewardedVideoPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getPlacementInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.getPlacementInfo( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.Dictionary _parameters = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setRewardedVideoServerParams( _parameters ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_clearRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.clearRewardedVideoServerParams( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showISDemandOnlyRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showISDemandOnlyRewardedVideo( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadISDemandOnlyRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadISDemandOnlyRewardedVideo( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isISDemandOnlyRewardedVideoAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isISDemandOnlyRewardedVideoAvailable( _instanceId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadInterstitial( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showInterstitial( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showInterstitial( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceIAgent.showInterstitial!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isInterstitialReady( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isInterstitialPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isInterstitialPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadISDemandOnlyInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadISDemandOnlyInterstitial( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showISDemandOnlyInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showISDemandOnlyInterstitial( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isISDemandOnlyInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isISDemandOnlyInterstitialReady( _instanceId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showOfferwall(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showOfferwall( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showOfferwall( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceIAgent.showOfferwall!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isOfferwallAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isOfferwallAvailable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getOfferwallCredits(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.getOfferwallCredits( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.loadBanner( _size, _position ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - string _placementName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.loadBanner( _size, _position, _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceIAgent.loadBanner!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_destroyBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.destroyBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_displayBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.displayBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_hideBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.hideBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isBannerPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isBannerPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSegment(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - IronSourceSegment _segment = (IronSourceSegment)translator.GetObject(L, 2, typeof(IronSourceSegment)); - - gen_to_be_invoked.setSegment( _segment ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setConsent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _consent = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setConsent( _consent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdRevenueData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - string _dataSource = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _impressionData = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setAdRevenueData( _dataSource, _impressionData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_launchTestSuite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.launchTestSuite( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceImpressionDataWrap.cs b/Assets/XLua/Gen/IronSourceImpressionDataWrap.cs deleted file mode 100644 index 6e268061d..000000000 --- a/Assets/XLua/Gen/IronSourceImpressionDataWrap.cs +++ /dev/null @@ -1,339 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceImpressionDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceImpressionData); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 15, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "auctionId", _g_get_auctionId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adUnit", _g_get_adUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "country", _g_get_country); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ab", _g_get_ab); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "segmentName", _g_get_segmentName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "placement", _g_get_placement); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adNetwork", _g_get_adNetwork); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "instanceName", _g_get_instanceName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "instanceId", _g_get_instanceId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "revenue", _g_get_revenue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "precision", _g_get_precision); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeRevenue", _g_get_lifetimeRevenue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "encryptedCPM", _g_get_encryptedCPM); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "conversionValue", _g_get_conversionValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allData", _g_get_allData); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _json = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new IronSourceImpressionData(_json); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceImpressionData constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_auctionId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.auctionId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.adUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_country(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.country); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ab(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ab); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_segmentName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.segmentName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_placement(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.placement); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adNetwork(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.adNetwork); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instanceName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.instanceName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_instanceId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.instanceId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_revenue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.revenue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_precision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.precision); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifetimeRevenue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.lifetimeRevenue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_encryptedCPM(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.encryptedCPM); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_conversionValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.conversionValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceImpressionData gen_to_be_invoked = (IronSourceImpressionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.allData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceInitilizerWrap.cs b/Assets/XLua/Gen/IronSourceInitilizerWrap.cs deleted file mode 100644 index 2ca8846bc..000000000 --- a/Assets/XLua/Gen/IronSourceInitilizerWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceInitilizerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceInitilizer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceInitilizer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInitilizer constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceInterstitialEventsWrap.cs b/Assets/XLua/Gen/IronSourceInterstitialEventsWrap.cs deleted file mode 100644 index de449c58f..000000000 --- a/Assets/XLua/Gen/IronSourceInterstitialEventsWrap.cs +++ /dev/null @@ -1,294 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceInterstitialEventsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceInterstitialEvents); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdReadyEvent", _e_onAdReadyEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadFailedEvent", _e_onAdLoadFailedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdOpenedEvent", _e_onAdOpenedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClosedEvent", _e_onAdClosedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdShowSucceededEvent", _e_onAdShowSucceededEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdShowFailedEvent", _e_onAdShowFailedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClickedEvent", _e_onAdClickedEvent); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceInterstitialEvents(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents constructor!"); - - } - - - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdReadyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceInterstitialEvents.onAdReadyEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceInterstitialEvents.onAdReadyEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents.onAdReadyEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLoadFailedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceInterstitialEvents.onAdLoadFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceInterstitialEvents.onAdLoadFailedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents.onAdLoadFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdOpenedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceInterstitialEvents.onAdOpenedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceInterstitialEvents.onAdOpenedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents.onAdOpenedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdClosedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceInterstitialEvents.onAdClosedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceInterstitialEvents.onAdClosedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents.onAdClosedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdShowSucceededEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceInterstitialEvents.onAdShowSucceededEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceInterstitialEvents.onAdShowSucceededEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents.onAdShowSucceededEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdShowFailedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceInterstitialEvents.onAdShowFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceInterstitialEvents.onAdShowFailedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents.onAdShowFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdClickedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceInterstitialEvents.onAdClickedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceInterstitialEvents.onAdClickedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialEvents.onAdClickedEvent!"); - } - - } -} diff --git a/Assets/XLua/Gen/IronSourceJSON_JsonWrap.cs b/Assets/XLua/Gen/IronSourceJSON_JsonWrap.cs deleted file mode 100644 index 952158adb..000000000 --- a/Assets/XLua/Gen/IronSourceJSON_JsonWrap.cs +++ /dev/null @@ -1,123 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceJSONJsonWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceJSON.Json); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Deserialize", _m_Deserialize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Serialize", _m_Serialize_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IronSourceJSON.Json does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Deserialize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - - var gen_ret = IronSourceJSON.Json.Deserialize( _json ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = IronSourceJSON.Json.Serialize( _obj ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceMediationSettingsWrap.cs b/Assets/XLua/Gen/IronSourceMediationSettingsWrap.cs deleted file mode 100644 index db9dd3742..000000000 --- a/Assets/XLua/Gen/IronSourceMediationSettingsWrap.cs +++ /dev/null @@ -1,302 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceMediationSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceMediationSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AndroidAppKey", _g_get_AndroidAppKey); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IOSAppKey", _g_get_IOSAppKey); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableIronsourceSDKInitAPI", _g_get_EnableIronsourceSDKInitAPI); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AddIronsourceSkadnetworkID", _g_get_AddIronsourceSkadnetworkID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DeclareAD_IDPermission", _g_get_DeclareAD_IDPermission); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableAdapterDebug", _g_get_EnableAdapterDebug); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EnableIntegrationHelper", _g_get_EnableIntegrationHelper); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AndroidAppKey", _s_set_AndroidAppKey); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "IOSAppKey", _s_set_IOSAppKey); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableIronsourceSDKInitAPI", _s_set_EnableIronsourceSDKInitAPI); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AddIronsourceSkadnetworkID", _s_set_AddIronsourceSkadnetworkID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "DeclareAD_IDPermission", _s_set_DeclareAD_IDPermission); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableAdapterDebug", _s_set_EnableAdapterDebug); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EnableIntegrationHelper", _s_set_EnableIntegrationHelper); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IRONSOURCE_SETTINGS_ASSET_PATH", IronSourceMediationSettings.IRONSOURCE_SETTINGS_ASSET_PATH); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceMediationSettings(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceMediationSettings constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AndroidAppKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.AndroidAppKey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IOSAppKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.IOSAppKey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableIronsourceSDKInitAPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableIronsourceSDKInitAPI); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AddIronsourceSkadnetworkID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AddIronsourceSkadnetworkID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DeclareAD_IDPermission(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.DeclareAD_IDPermission); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableAdapterDebug(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableAdapterDebug); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EnableIntegrationHelper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.EnableIntegrationHelper); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AndroidAppKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AndroidAppKey = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IOSAppKey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.IOSAppKey = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableIronsourceSDKInitAPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableIronsourceSDKInitAPI = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AddIronsourceSkadnetworkID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AddIronsourceSkadnetworkID = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DeclareAD_IDPermission(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.DeclareAD_IDPermission = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableAdapterDebug(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableAdapterDebug = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EnableIntegrationHelper(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceMediationSettings gen_to_be_invoked = (IronSourceMediationSettings)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EnableIntegrationHelper = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourcePlacementWrap.cs b/Assets/XLua/Gen/IronSourcePlacementWrap.cs deleted file mode 100644 index 474d95d92..000000000 --- a/Assets/XLua/Gen/IronSourcePlacementWrap.cs +++ /dev/null @@ -1,203 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourcePlacementWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourcePlacement); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getRewardName", _m_getRewardName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getRewardAmount", _m_getRewardAmount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getPlacementName", _m_getPlacementName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - string _rewardName = LuaAPI.lua_tostring(L, 3); - int _rewardAmount = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new IronSourcePlacement(_placementName, _rewardName, _rewardAmount); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourcePlacement constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getRewardName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourcePlacement gen_to_be_invoked = (IronSourcePlacement)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getRewardName( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getRewardAmount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourcePlacement gen_to_be_invoked = (IronSourcePlacement)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getRewardAmount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getPlacementName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourcePlacement gen_to_be_invoked = (IronSourcePlacement)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getPlacementName( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourcePlacement gen_to_be_invoked = (IronSourcePlacement)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceRewardedVideoEventsWrap.cs b/Assets/XLua/Gen/IronSourceRewardedVideoEventsWrap.cs deleted file mode 100644 index bb51b0342..000000000 --- a/Assets/XLua/Gen/IronSourceRewardedVideoEventsWrap.cs +++ /dev/null @@ -1,354 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceRewardedVideoEventsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceRewardedVideoEvents); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 10, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdShowFailedEvent", _e_onAdShowFailedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdOpenedEvent", _e_onAdOpenedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClosedEvent", _e_onAdClosedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdRewardedEvent", _e_onAdRewardedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClickedEvent", _e_onAdClickedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdAvailableEvent", _e_onAdAvailableEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdUnavailableEvent", _e_onAdUnavailableEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadFailedEvent", _e_onAdLoadFailedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdReadyEvent", _e_onAdReadyEvent); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceRewardedVideoEvents(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents constructor!"); - - } - - - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdShowFailedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdShowFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdShowFailedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdShowFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdOpenedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdOpenedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdOpenedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdOpenedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdClosedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdClosedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdClosedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdClosedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdRewardedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdRewardedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdRewardedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdRewardedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdClickedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdClickedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdClickedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdClickedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdAvailableEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdAvailableEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdAvailableEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdAvailableEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdUnavailableEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdUnavailableEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdUnavailableEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdUnavailableEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLoadFailedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdLoadFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdLoadFailedEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdLoadFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdReadyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceRewardedVideoEvents.onAdReadyEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceRewardedVideoEvents.onAdReadyEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoEvents.onAdReadyEvent!"); - } - - } -} diff --git a/Assets/XLua/Gen/IronSourceSegmentAndroidWrap.cs b/Assets/XLua/Gen/IronSourceSegmentAndroidWrap.cs deleted file mode 100644 index 843a9fca7..000000000 --- a/Assets/XLua/Gen/IronSourceSegmentAndroidWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceSegmentAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceSegmentAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSegmentRecieved", _m_onSegmentRecieved); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSegmentRecieved", _e_OnSegmentRecieved); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceSegmentAndroid(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceSegmentAndroid constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onSegmentRecieved(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceSegmentAndroid gen_to_be_invoked = (IronSourceSegmentAndroid)translator.FastGetCSObj(L, 1); - - - - { - string _segmentName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onSegmentRecieved( _segmentName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnSegmentRecieved(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceSegmentAndroid gen_to_be_invoked = (IronSourceSegmentAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnSegmentRecieved += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnSegmentRecieved -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceSegmentAndroid.OnSegmentRecieved!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceSegmentWrap.cs b/Assets/XLua/Gen/IronSourceSegmentWrap.cs deleted file mode 100644 index 11e369ee2..000000000 --- a/Assets/XLua/Gen/IronSourceSegmentWrap.cs +++ /dev/null @@ -1,391 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceSegmentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceSegment); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 8, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setCustom", _m_setCustom); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getSegmentAsDict", _m_getSegmentAsDict); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "age", _g_get_age); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gender", _g_get_gender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "level", _g_get_level); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPaying", _g_get_isPaying); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "userCreationDate", _g_get_userCreationDate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "iapt", _g_get_iapt); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "segmentName", _g_get_segmentName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "customs", _g_get_customs); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "age", _s_set_age); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gender", _s_set_gender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "level", _s_set_level); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isPaying", _s_set_isPaying); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "userCreationDate", _s_set_userCreationDate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "iapt", _s_set_iapt); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "segmentName", _s_set_segmentName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "customs", _s_set_customs); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceSegment(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceSegment constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setCustom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setCustom( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getSegmentAsDict(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getSegmentAsDict( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_age(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.age); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.gender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_level(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.level); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPaying(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.isPaying); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_userCreationDate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.userCreationDate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_iapt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.iapt); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_segmentName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.segmentName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.customs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_age(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.age = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.gender = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_level(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.level = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isPaying(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isPaying = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_userCreationDate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.userCreationDate = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_iapt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.iapt = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_segmentName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.segmentName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_customs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - IronSourceSegment gen_to_be_invoked = (IronSourceSegment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.customs = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceUtilsWrap.cs b/Assets/XLua/Gen/IronSourceUtilsWrap.cs deleted file mode 100644 index 599857e71..000000000 --- a/Assets/XLua/Gen/IronSourceUtilsWrap.cs +++ /dev/null @@ -1,140 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceUtilsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceUtils); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getErrorFromErrorObject", _m_getErrorFromErrorObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getPlacementFromObject", _m_getPlacementFromObject_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new IronSourceUtils(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to IronSourceUtils constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getErrorFromErrorObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _descriptionObject = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = IronSourceUtils.getErrorFromErrorObject( _descriptionObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getPlacementFromObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _placementObject = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = IronSourceUtils.getPlacementFromObject( _placementObject ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceWrap.cs b/Assets/XLua/Gen/IronSourceWrap.cs deleted file mode 100644 index 7ed9015be..000000000 --- a/Assets/XLua/Gen/IronSourceWrap.cs +++ /dev/null @@ -1,1299 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class IronSourceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSource); - Utils.BeginObjectRegister(type, L, translator, 0, 36, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "shouldTrackNetworkState", _m_shouldTrackNetworkState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDynamicUserId", _m_setDynamicUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdaptersDebug", _m_setAdaptersDebug); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setMetaData", _m_setMetaData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getConversionValue", _m_getConversionValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setManualLoadRewardedVideo", _m_setManualLoadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setNetworkData", _m_setNetworkData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPauseGame", _m_SetPauseGame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setUserId", _m_setUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "init", _m_init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadRewardedVideo", _m_loadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showRewardedVideo", _m_showRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getPlacementInfo", _m_getPlacementInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoAvailable", _m_isRewardedVideoAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoPlacementCapped", _m_isRewardedVideoPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRewardedVideoServerParams", _m_setRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "clearRewardedVideoServerParams", _m_clearRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadInterstitial", _m_loadInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showInterstitial", _m_showInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialReady", _m_isInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialPlacementCapped", _m_isInterstitialPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadBanner", _m_loadBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "destroyBanner", _m_destroyBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "displayBanner", _m_displayBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "hideBanner", _m_hideBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isBannerPlacementCapped", _m_isBannerPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSegment", _m_setSegment); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setConsent", _m_setConsent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadConsentViewWithType", _m_loadConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showConsentViewWithType", _m_showConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdRevenueData", _m_setAdRevenueData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "launchTestSuite", _m_launchTestSuite); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 2, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "pluginVersion", _m_pluginVersion_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "unityVersion", _m_unityVersion_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "setUnsupportedPlatform", _m_setUnsupportedPlatform_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Agent", _g_get_Agent); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "UNITY_PLUGIN_VERSION", _g_get_UNITY_PLUGIN_VERSION); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "UNITY_PLUGIN_VERSION", _s_set_UNITY_PLUGIN_VERSION); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "IronSource does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_pluginVersion_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = IronSource.pluginVersion( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_unityVersion_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = IronSource.unityVersion( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setUnsupportedPlatform_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - IronSource.setUnsupportedPlatform( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetWaterfallConfiguration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - WaterfallConfiguration _waterfallConfiguration = (WaterfallConfiguration)translator.GetObject(L, 2, typeof(WaterfallConfiguration)); - AdFormat _adFormat;translator.Get(L, 3, out _adFormat); - - gen_to_be_invoked.SetWaterfallConfiguration( _waterfallConfiguration, _adFormat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onApplicationPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.onApplicationPause( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAdvertiserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getAdvertiserId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_validateIntegration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.validateIntegration( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_shouldTrackNetworkState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - bool _track = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.shouldTrackNetworkState( _track ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDynamicUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _dynamicUserId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.setDynamicUserId( _dynamicUserId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdaptersDebug(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setAdaptersDebug( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setMetaData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setMetaData( _key, _value ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _key = LuaAPI.lua_tostring(L, 2); - string[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.setMetaData( _key, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSource.setMetaData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getConversionValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getConversionValue( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setManualLoadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - bool _isOn = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setManualLoadRewardedVideo( _isOn ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setNetworkData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _networkKey = LuaAPI.lua_tostring(L, 2); - string _networkData = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setNetworkData( _networkKey, _networkData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPauseGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetPauseGame( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _userId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setUserId( _userId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.init( _appKey ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - string[] _adUnits = translator.GetParams(L, 3); - - gen_to_be_invoked.init( _appKey, _adUnits ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSource.init!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadRewardedVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showRewardedVideo( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showRewardedVideo( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSource.showRewardedVideo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getPlacementInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.getPlacementInfo( _placementName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isRewardedVideoAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isRewardedVideoAvailable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isRewardedVideoPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isRewardedVideoPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.Dictionary _parameters = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setRewardedVideoServerParams( _parameters ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_clearRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.clearRewardedVideoServerParams( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadInterstitial( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showInterstitial( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showInterstitial( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSource.showInterstitial!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isInterstitialReady( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isInterstitialPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isInterstitialPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.loadBanner( _size, _position ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - string _placementName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.loadBanner( _size, _position, _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to IronSource.loadBanner!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_destroyBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.destroyBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_displayBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.displayBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_hideBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.hideBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isBannerPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isBannerPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSegment(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - IronSourceSegment _segment = (IronSourceSegment)translator.GetObject(L, 2, typeof(IronSourceSegment)); - - gen_to_be_invoked.setSegment( _segment ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setConsent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - bool _consent = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setConsent( _consent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdRevenueData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - string _dataSource = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _impressionData = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setAdRevenueData( _dataSource, _impressionData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_launchTestSuite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.launchTestSuite( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Agent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, IronSource.Agent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UNITY_PLUGIN_VERSION(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, IronSource.UNITY_PLUGIN_VERSION); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UNITY_PLUGIN_VERSION(RealStatePtr L) - { - try { - - IronSource.UNITY_PLUGIN_VERSION = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/LuaAssetWrap.cs b/Assets/XLua/Gen/LuaAssetWrap.cs deleted file mode 100644 index 2d3f5b113..000000000 --- a/Assets/XLua/Gen/LuaAssetWrap.cs +++ /dev/null @@ -1,297 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class LuaAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(LuaAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDecodeBytes", _m_GetDecodeBytes); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "encode", _g_get_encode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "data", _g_get_data); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "encode", _s_set_encode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "data", _s_set_data); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 2); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Require", _m_Require_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LuaDecodeKey", _g_get_LuaDecodeKey); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LuaSearchingPaths", _g_get_LuaSearchingPaths); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LuaDecodeKey", _s_set_LuaDecodeKey); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LuaSearchingPaths", _s_set_LuaSearchingPaths); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new LuaAsset(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to LuaAsset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDecodeBytes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - LuaAsset gen_to_be_invoked = (LuaAsset)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDecodeBytes( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Require_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _luapath = LuaAPI.lua_tostring(L, 1); - - var gen_ret = LuaAsset.Require( ref _luapath ); - LuaAPI.lua_pushstring(L, gen_ret); - LuaAPI.lua_pushstring(L, _luapath); - - - - - return 2; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _luapath = LuaAPI.lua_tostring(L, 1); - string _search = LuaAPI.lua_tostring(L, 2); - int _retry = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = LuaAsset.Require( _luapath, _search, _retry ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _luapath = LuaAPI.lua_tostring(L, 1); - string _search = LuaAPI.lua_tostring(L, 2); - - var gen_ret = LuaAsset.Require( _luapath, _search ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _luapath = LuaAPI.lua_tostring(L, 1); - - var gen_ret = LuaAsset.Require( _luapath ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to LuaAsset.Require!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LuaDecodeKey(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, LuaAsset.LuaDecodeKey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LuaSearchingPaths(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, LuaAsset.LuaSearchingPaths); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_encode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - LuaAsset gen_to_be_invoked = (LuaAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.encode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - LuaAsset gen_to_be_invoked = (LuaAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LuaDecodeKey(RealStatePtr L) - { - try { - - LuaAsset.LuaDecodeKey = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_LuaSearchingPaths(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - LuaAsset.LuaSearchingPaths = (string[])translator.GetObject(L, 1, typeof(string[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_encode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - LuaAsset gen_to_be_invoked = (LuaAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.encode = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - LuaAsset gen_to_be_invoked = (LuaAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.data = LuaAPI.lua_tobytes(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/MonkeyPostWrap.cs b/Assets/XLua/Gen/MonkeyPostWrap.cs deleted file mode 100644 index aed3e044c..000000000 --- a/Assets/XLua/Gen/MonkeyPostWrap.cs +++ /dev/null @@ -1,361 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class MonkeyPostWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(MonkeyPost); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 8, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_material", _g_get__material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_threshold", _g_get__threshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_intensity", _g_get__intensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_soft", _g_get__soft); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_brightness", _g_get__brightness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_contrast", _g_get__contrast); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_saturation", _g_get__saturation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "_gamma", _g_get__gamma); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_material", _s_set__material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_threshold", _s_set__threshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_intensity", _s_set__intensity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_soft", _s_set__soft); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_brightness", _s_set__brightness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_contrast", _s_set__contrast); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_saturation", _s_set__saturation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "_gamma", _s_set__gamma); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new MonkeyPost(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to MonkeyPost constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Init( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked._material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__threshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked._threshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked._intensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__soft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked._soft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__brightness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked._brightness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__contrast(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked._contrast); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__saturation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked._saturation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get__gamma(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked._gamma); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__threshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._threshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._intensity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__soft(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._soft = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__brightness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._brightness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__contrast(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._contrast = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__saturation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - gen_to_be_invoked._saturation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set__gamma(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - MonkeyPost gen_to_be_invoked = (MonkeyPost)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked._gamma = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/PackUnpack.cs b/Assets/XLua/Gen/PackUnpack.cs deleted file mode 100644 index 432782a33..000000000 --- a/Assets/XLua/Gen/PackUnpack.cs +++ /dev/null @@ -1,542 +0,0 @@ -#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 static partial class CopyByValue - { - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Vector2 val) - { - val = new UnityEngine.Vector2(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "x")) - { - - translator.Get(L, top + 1, out val.x); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "y")) - { - - translator.Get(L, top + 1, out val.y); - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Vector2 field) - { - - if(!LuaAPI.xlua_pack_float2(buff, offset, field.x, field.y)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Vector2 field) - { - field = default(UnityEngine.Vector2); - - float x = default(float); - float y = default(float); - - if(!LuaAPI.xlua_unpack_float2(buff, offset, out x, out y)) - { - return false; - } - field.x = x; - field.y = y; - - - return true; - } - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Vector3 val) - { - val = new UnityEngine.Vector3(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "x")) - { - - translator.Get(L, top + 1, out val.x); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "y")) - { - - translator.Get(L, top + 1, out val.y); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "z")) - { - - translator.Get(L, top + 1, out val.z); - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Vector3 field) - { - - if(!LuaAPI.xlua_pack_float3(buff, offset, field.x, field.y, field.z)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Vector3 field) - { - field = default(UnityEngine.Vector3); - - float x = default(float); - float y = default(float); - float z = default(float); - - if(!LuaAPI.xlua_unpack_float3(buff, offset, out x, out y, out z)) - { - return false; - } - field.x = x; - field.y = y; - field.z = z; - - - return true; - } - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Vector4 val) - { - val = new UnityEngine.Vector4(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "x")) - { - - translator.Get(L, top + 1, out val.x); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "y")) - { - - translator.Get(L, top + 1, out val.y); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "z")) - { - - translator.Get(L, top + 1, out val.z); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "w")) - { - - translator.Get(L, top + 1, out val.w); - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Vector4 field) - { - - if(!LuaAPI.xlua_pack_float4(buff, offset, field.x, field.y, field.z, field.w)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Vector4 field) - { - field = default(UnityEngine.Vector4); - - float x = default(float); - float y = default(float); - float z = default(float); - float w = default(float); - - if(!LuaAPI.xlua_unpack_float4(buff, offset, out x, out y, out z, out w)) - { - return false; - } - field.x = x; - field.y = y; - field.z = z; - field.w = w; - - - return true; - } - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Color val) - { - val = new UnityEngine.Color(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "r")) - { - - translator.Get(L, top + 1, out val.r); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "g")) - { - - translator.Get(L, top + 1, out val.g); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "b")) - { - - translator.Get(L, top + 1, out val.b); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "a")) - { - - translator.Get(L, top + 1, out val.a); - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Color field) - { - - if(!LuaAPI.xlua_pack_float4(buff, offset, field.r, field.g, field.b, field.a)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Color field) - { - field = default(UnityEngine.Color); - - float r = default(float); - float g = default(float); - float b = default(float); - float a = default(float); - - if(!LuaAPI.xlua_unpack_float4(buff, offset, out r, out g, out b, out a)) - { - return false; - } - field.r = r; - field.g = g; - field.b = b; - field.a = a; - - - return true; - } - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Quaternion val) - { - val = new UnityEngine.Quaternion(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "x")) - { - - translator.Get(L, top + 1, out val.x); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "y")) - { - - translator.Get(L, top + 1, out val.y); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "z")) - { - - translator.Get(L, top + 1, out val.z); - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "w")) - { - - translator.Get(L, top + 1, out val.w); - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Quaternion field) - { - - if(!LuaAPI.xlua_pack_float4(buff, offset, field.x, field.y, field.z, field.w)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Quaternion field) - { - field = default(UnityEngine.Quaternion); - - float x = default(float); - float y = default(float); - float z = default(float); - float w = default(float); - - if(!LuaAPI.xlua_unpack_float4(buff, offset, out x, out y, out z, out w)) - { - return false; - } - field.x = x; - field.y = y; - field.z = z; - field.w = w; - - - return true; - } - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Ray val) - { - val = new UnityEngine.Ray(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "origin")) - { - - var origin = val.origin; - translator.Get(L, top + 1, out origin); - val.origin = origin; - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "direction")) - { - - var direction = val.direction; - translator.Get(L, top + 1, out direction); - val.direction = direction; - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Ray field) - { - - if(!Pack(buff, offset, field.origin)) - { - return false; - } - - if(!Pack(buff, offset + 12, field.direction)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Ray field) - { - field = default(UnityEngine.Ray); - - var origin = field.origin; - if(!UnPack(buff, offset, out origin)) - { - return false; - } - field.origin = origin; - - var direction = field.direction; - if(!UnPack(buff, offset + 12, out direction)) - { - return false; - } - field.direction = direction; - - return true; - } - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Bounds val) - { - val = new UnityEngine.Bounds(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "center")) - { - - var center = val.center; - translator.Get(L, top + 1, out center); - val.center = center; - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "extents")) - { - - var extents = val.extents; - translator.Get(L, top + 1, out extents); - val.extents = extents; - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Bounds field) - { - - if(!Pack(buff, offset, field.center)) - { - return false; - } - - if(!Pack(buff, offset + 12, field.extents)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Bounds field) - { - field = default(UnityEngine.Bounds); - - var center = field.center; - if(!UnPack(buff, offset, out center)) - { - return false; - } - field.center = center; - - var extents = field.extents; - if(!UnPack(buff, offset + 12, out extents)) - { - return false; - } - field.extents = extents; - - return true; - } - - - public static void UnPack(ObjectTranslator translator, RealStatePtr L, int idx, out UnityEngine.Ray2D val) - { - val = new UnityEngine.Ray2D(); - int top = LuaAPI.lua_gettop(L); - - if (Utils.LoadField(L, idx, "origin")) - { - - var origin = val.origin; - translator.Get(L, top + 1, out origin); - val.origin = origin; - - } - LuaAPI.lua_pop(L, 1); - - if (Utils.LoadField(L, idx, "direction")) - { - - var direction = val.direction; - translator.Get(L, top + 1, out direction); - val.direction = direction; - - } - LuaAPI.lua_pop(L, 1); - - } - - public static bool Pack(IntPtr buff, int offset, UnityEngine.Ray2D field) - { - - if(!Pack(buff, offset, field.origin)) - { - return false; - } - - if(!Pack(buff, offset + 8, field.direction)) - { - return false; - } - - return true; - } - public static bool UnPack(IntPtr buff, int offset, out UnityEngine.Ray2D field) - { - field = default(UnityEngine.Ray2D); - - var origin = field.origin; - if(!UnPack(buff, offset, out origin)) - { - return false; - } - field.origin = origin; - - var direction = field.direction; - if(!UnPack(buff, offset + 8, out direction)) - { - return false; - } - field.direction = direction; - - return true; - } - - } -} \ No newline at end of file diff --git a/Assets/XLua/Gen/ParticleUVAnimationWrap.cs b/Assets/XLua/Gen/ParticleUVAnimationWrap.cs deleted file mode 100644 index f60492971..000000000 --- a/Assets/XLua/Gen/ParticleUVAnimationWrap.cs +++ /dev/null @@ -1,237 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ParticleUVAnimationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ParticleUVAnimation); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "particle", _g_get_particle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texST", _g_get_texST); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "running", _g_get_running); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fps", _g_get_fps); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "particle", _s_set_particle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "texST", _s_set_texST); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "running", _s_set_running); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fps", _s_set_fps); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new ParticleUVAnimation(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ParticleUVAnimation constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_particle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.particle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texST(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.texST); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_running(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.running); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fps); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_particle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.particle = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_texST(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.texST = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_running(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.running = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fps = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/ProductInfoWrap.cs b/Assets/XLua/Gen/ProductInfoWrap.cs deleted file mode 100644 index 998c3f654..000000000 --- a/Assets/XLua/Gen/ProductInfoWrap.cs +++ /dev/null @@ -1,149 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ProductInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ProductInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "productId", _g_get_productId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "productId", _s_set_productId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(ProductInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ProductInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_productId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ProductInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.productId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ProductInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEnginePurchasingProductType(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_productId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ProductInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.productId = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ProductInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Purchasing.ProductType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.type = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Security_XXTEAWrap.cs b/Assets/XLua/Gen/Security_XXTEAWrap.cs deleted file mode 100644 index 85ba66a84..000000000 --- a/Assets/XLua/Gen/Security_XXTEAWrap.cs +++ /dev/null @@ -1,373 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SecurityXXTEAWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Security.XXTEA); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Encrypt", _m_Encrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EncryptToBase64String", _m_EncryptToBase64String_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Decrypt", _m_Decrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DecryptBase64String", _m_DecryptBase64String_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DecryptToString", _m_DecryptToString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DecryptBase64StringToString", _m_DecryptBase64StringToString_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "Security.XXTEA does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encrypt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.Encrypt( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.Encrypt( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.Encrypt( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.Encrypt( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Security.XXTEA.Encrypt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EncryptToBase64String_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.EncryptToBase64String( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.EncryptToBase64String( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.EncryptToBase64String( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.EncryptToBase64String( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Security.XXTEA.EncryptToBase64String!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Decrypt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.Decrypt( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.Decrypt( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Security.XXTEA.Decrypt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DecryptBase64String_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.DecryptBase64String( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.DecryptBase64String( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Security.XXTEA.DecryptBase64String!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DecryptToString_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.DecryptToString( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.DecryptToString( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Security.XXTEA.DecryptToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DecryptBase64StringToString_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - byte[] _key = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = Security.XXTEA.DecryptBase64StringToString( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _data = LuaAPI.lua_tostring(L, 1); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = Security.XXTEA.DecryptBase64StringToString( _data, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Security.XXTEA.DecryptBase64StringToString!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/SignInWithAppleTest_CallbacksWrap.cs b/Assets/XLua/Gen/SignInWithAppleTest_CallbacksWrap.cs deleted file mode 100644 index 8e419489d..000000000 --- a/Assets/XLua/Gen/SignInWithAppleTest_CallbacksWrap.cs +++ /dev/null @@ -1,140 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SignInWithAppleTest_CallbacksWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(SignInWithAppleTest_Callbacks); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ButtonPress", _m_ButtonPress); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CredentialButton", _m_CredentialButton); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new SignInWithAppleTest_Callbacks(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to SignInWithAppleTest_Callbacks constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ButtonPress(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - SignInWithAppleTest_Callbacks gen_to_be_invoked = (SignInWithAppleTest_Callbacks)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ButtonPress( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CredentialButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - SignInWithAppleTest_Callbacks gen_to_be_invoked = (SignInWithAppleTest_Callbacks)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CredentialButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/SignInWithAppleTest_EventSystemWrap.cs b/Assets/XLua/Gen/SignInWithAppleTest_EventSystemWrap.cs deleted file mode 100644 index 258cd1ecf..000000000 --- a/Assets/XLua/Gen/SignInWithAppleTest_EventSystemWrap.cs +++ /dev/null @@ -1,227 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SignInWithAppleTest_EventSystemWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(SignInWithAppleTest_EventSystem); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ButtonPress", _m_ButtonPress); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CredentialButton", _m_CredentialButton); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCredentialState", _m_OnCredentialState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnLogin", _m_OnLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnError", _m_OnError); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new SignInWithAppleTest_EventSystem(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to SignInWithAppleTest_EventSystem constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ButtonPress(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - SignInWithAppleTest_EventSystem gen_to_be_invoked = (SignInWithAppleTest_EventSystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ButtonPress( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CredentialButton(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - SignInWithAppleTest_EventSystem gen_to_be_invoked = (SignInWithAppleTest_EventSystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CredentialButton( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCredentialState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - SignInWithAppleTest_EventSystem gen_to_be_invoked = (SignInWithAppleTest_EventSystem)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs _args;translator.Get(L, 2, out _args); - - gen_to_be_invoked.OnCredentialState( _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - SignInWithAppleTest_EventSystem gen_to_be_invoked = (SignInWithAppleTest_EventSystem)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs _args;translator.Get(L, 2, out _args); - - gen_to_be_invoked.OnLogin( _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnError(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - SignInWithAppleTest_EventSystem gen_to_be_invoked = (SignInWithAppleTest_EventSystem)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs _args;translator.Get(L, 2, out _args); - - gen_to_be_invoked.OnError( _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_AnimationStateDataWrap.cs b/Assets/XLua/Gen/Spine_AnimationStateDataWrap.cs deleted file mode 100644 index 804d7d0fe..000000000 --- a/Assets/XLua/Gen/Spine_AnimationStateDataWrap.cs +++ /dev/null @@ -1,209 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineAnimationStateDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.AnimationStateData); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMix", _m_SetMix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMix", _m_GetMix); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonData", _g_get_SkeletonData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DefaultMix", _g_get_DefaultMix); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "DefaultMix", _s_set_DefaultMix); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - Spine.SkeletonData _skeletonData = (Spine.SkeletonData)translator.GetObject(L, 2, typeof(Spine.SkeletonData)); - - var gen_ret = new Spine.AnimationStateData(_skeletonData); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationStateData constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationStateData gen_to_be_invoked = (Spine.AnimationStateData)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _fromName = LuaAPI.lua_tostring(L, 2); - string _toName = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetMix( _fromName, _toName, _duration ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - Spine.Animation _from = (Spine.Animation)translator.GetObject(L, 2, typeof(Spine.Animation)); - Spine.Animation _to = (Spine.Animation)translator.GetObject(L, 3, typeof(Spine.Animation)); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetMix( _from, _to, _duration ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationStateData.SetMix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationStateData gen_to_be_invoked = (Spine.AnimationStateData)translator.FastGetCSObj(L, 1); - - - - { - Spine.Animation _from = (Spine.Animation)translator.GetObject(L, 2, typeof(Spine.Animation)); - Spine.Animation _to = (Spine.Animation)translator.GetObject(L, 3, typeof(Spine.Animation)); - - var gen_ret = gen_to_be_invoked.GetMix( _from, _to ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationStateData gen_to_be_invoked = (Spine.AnimationStateData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DefaultMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationStateData gen_to_be_invoked = (Spine.AnimationStateData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.DefaultMix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DefaultMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationStateData gen_to_be_invoked = (Spine.AnimationStateData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.DefaultMix = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairComparerWrap.cs b/Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairComparerWrap.cs deleted file mode 100644 index aae751612..000000000 --- a/Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairComparerWrap.cs +++ /dev/null @@ -1,85 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineAnimationStateDataAnimationPairComparerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.AnimationStateData.AnimationPairComparer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Instance", Spine.AnimationStateData.AnimationPairComparer.Instance); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.AnimationStateData.AnimationPairComparer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationStateData.AnimationPairComparer constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairWrap.cs b/Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairWrap.cs deleted file mode 100644 index 60cb68e5a..000000000 --- a/Assets/XLua/Gen/Spine_AnimationStateData_AnimationPairWrap.cs +++ /dev/null @@ -1,153 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineAnimationStateDataAnimationPairWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.AnimationStateData.AnimationPair); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "a1", _g_get_a1); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "a2", _g_get_a2); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - Spine.Animation _a1 = (Spine.Animation)translator.GetObject(L, 2, typeof(Spine.Animation)); - Spine.Animation _a2 = (Spine.Animation)translator.GetObject(L, 3, typeof(Spine.Animation)); - - var gen_ret = new Spine.AnimationStateData.AnimationPair(_a1, _a2); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(Spine.AnimationStateData.AnimationPair)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationStateData.AnimationPair constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationStateData.AnimationPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_a1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationStateData.AnimationPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.a1); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_a2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationStateData.AnimationPair gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.a2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_AnimationStateWrap.cs b/Assets/XLua/Gen/Spine_AnimationStateWrap.cs deleted file mode 100644 index b6dc2de66..000000000 --- a/Assets/XLua/Gen/Spine_AnimationStateWrap.cs +++ /dev/null @@ -1,900 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineAnimationStateWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.AnimationState); - Utils.BeginObjectRegister(type, L, translator, 0, 22, 3, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignEventSubscribersFrom", _m_AssignEventSubscribersFrom); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEventSubscribersFrom", _m_AddEventSubscribersFrom); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Apply", _m_Apply); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyEventTimelinesOnly", _m_ApplyEventTimelinesOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTracks", _m_ClearTracks); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTrack", _m_ClearTrack); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAnimation", _m_SetAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddAnimation", _m_AddAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEmptyAnimation", _m_SetEmptyAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEmptyAnimation", _m_AddEmptyAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEmptyAnimations", _m_SetEmptyAnimations); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearNext", _m_ClearNext); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrent", _m_GetCurrent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearListenerNotifications", _m_ClearListenerNotifications); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _e_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Interrupt", _e_Interrupt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "End", _e_End); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _e_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Complete", _e_Complete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Event", _e_Event); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TimeScale", _g_get_TimeScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Tracks", _g_get_Tracks); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TimeScale", _s_set_TimeScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Data", _s_set_Data); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - Spine.AnimationStateData _data = (Spine.AnimationStateData)translator.GetObject(L, 2, typeof(Spine.AnimationStateData)); - - var gen_ret = new Spine.AnimationState(_data); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AssignEventSubscribersFrom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - Spine.AnimationState _src = (Spine.AnimationState)translator.GetObject(L, 2, typeof(Spine.AnimationState)); - - gen_to_be_invoked.AssignEventSubscribersFrom( _src ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddEventSubscribersFrom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - Spine.AnimationState _src = (Spine.AnimationState)translator.GetObject(L, 2, typeof(Spine.AnimationState)); - - gen_to_be_invoked.AddEventSubscribersFrom( _src ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - float _delta = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Update( _delta ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Apply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - - var gen_ret = gen_to_be_invoked.Apply( _skeleton ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyEventTimelinesOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - bool _issueEvents = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.ApplyEventTimelinesOnly( _skeleton, _issueEvents ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - - var gen_ret = gen_to_be_invoked.ApplyEventTimelinesOnly( _skeleton ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.ApplyEventTimelinesOnly!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearTracks(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearTracks( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearTrack(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ClearTrack( _trackIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - string _animationName = LuaAPI.lua_tostring(L, 3); - bool _loop = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.SetAnimation( _trackIndex, _animationName, _loop ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - Spine.Animation _animation = (Spine.Animation)translator.GetObject(L, 3, typeof(Spine.Animation)); - bool _loop = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.SetAnimation( _trackIndex, _animation, _loop ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.SetAnimation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - string _animationName = LuaAPI.lua_tostring(L, 3); - bool _loop = LuaAPI.lua_toboolean(L, 4); - float _delay = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.AddAnimation( _trackIndex, _animationName, _loop, _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - Spine.Animation _animation = (Spine.Animation)translator.GetObject(L, 3, typeof(Spine.Animation)); - bool _loop = LuaAPI.lua_toboolean(L, 4); - float _delay = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.AddAnimation( _trackIndex, _animation, _loop, _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.AddAnimation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEmptyAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - float _mixDuration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetEmptyAnimation( _trackIndex, _mixDuration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddEmptyAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - float _mixDuration = (float)LuaAPI.lua_tonumber(L, 3); - float _delay = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.AddEmptyAnimation( _trackIndex, _mixDuration, _delay ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetEmptyAnimations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - float _mixDuration = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetEmptyAnimations( _mixDuration ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearNext(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - Spine.TrackEntry _entry = (Spine.TrackEntry)translator.GetObject(L, 2, typeof(Spine.TrackEntry)); - - gen_to_be_invoked.ClearNext( _entry ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - int _trackIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetCurrent( _trackIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearListenerNotifications(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearListenerNotifications( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TimeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.TimeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Tracks(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Tracks); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TimeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TimeScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Data = (Spine.AnimationStateData)translator.GetObject(L, 2, typeof(Spine.AnimationStateData)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Start(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Start += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Start -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.Start!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Interrupt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Interrupt += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Interrupt -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.Interrupt!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_End(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.End += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.End -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.End!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Dispose(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Dispose += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Dispose -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.Dispose!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Complete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Complete += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Complete -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.Complete!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Event(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.AnimationState gen_to_be_invoked = (Spine.AnimationState)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryEventDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryEventDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Event += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Event -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.AnimationState.Event!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/Spine_AnimationWrap.cs b/Assets/XLua/Gen/Spine_AnimationWrap.cs deleted file mode 100644 index f4d4a50bb..000000000 --- a/Assets/XLua/Gen/Spine_AnimationWrap.cs +++ /dev/null @@ -1,288 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineAnimationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Animation); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 3, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTimelines", _m_SetTimelines); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasTimeline", _m_HasTimeline); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Apply", _m_Apply); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timelines", _g_get_Timelines); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Duration", _g_get_Duration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Name", _g_get_Name); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Timelines", _s_set_Timelines); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Duration", _s_set_Duration); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable>(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _name = LuaAPI.lua_tostring(L, 2); - Spine.ExposedList _timelines = (Spine.ExposedList)translator.GetObject(L, 3, typeof(Spine.ExposedList)); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = new Spine.Animation(_name, _timelines, _duration); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Animation constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTimelines(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - - - - { - Spine.ExposedList _timelines = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - gen_to_be_invoked.SetTimelines( _timelines ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasTimeline(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - - - - { - string[] _propertyIds = (string[])translator.GetObject(L, 2, typeof(string[])); - - var gen_ret = gen_to_be_invoked.HasTimeline( _propertyIds ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Apply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - - - - { - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - float _lastTime = (float)LuaAPI.lua_tonumber(L, 3); - float _time = (float)LuaAPI.lua_tonumber(L, 4); - bool _loop = LuaAPI.lua_toboolean(L, 5); - Spine.ExposedList _events = (Spine.ExposedList)translator.GetObject(L, 6, typeof(Spine.ExposedList)); - float _alpha = (float)LuaAPI.lua_tonumber(L, 7); - Spine.MixBlend _blend;translator.Get(L, 8, out _blend); - Spine.MixDirection _direction;translator.Get(L, 9, out _direction); - - gen_to_be_invoked.Apply( _skeleton, _lastTime, _time, _loop, _events, _alpha, _blend, _direction ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timelines(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Timelines); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Timelines(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Timelines = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Animation gen_to_be_invoked = (Spine.Animation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Duration = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_MeshAttachmentWrap.cs b/Assets/XLua/Gen/Spine_MeshAttachmentWrap.cs deleted file mode 100644 index bb6d4518f..000000000 --- a/Assets/XLua/Gen/Spine_MeshAttachmentWrap.cs +++ /dev/null @@ -1,688 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineMeshAttachmentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.MeshAttachment); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 15, 15); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRegion", _m_UpdateRegion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeWorldVertices", _m_ComputeWorldVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "NewLinkedMesh", _m_NewLinkedMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Copy", _m_Copy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Region", _g_get_Region); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HullLength", _g_get_HullLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RegionUVs", _g_get_RegionUVs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UVs", _g_get_UVs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Triangles", _g_get_Triangles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "R", _g_get_R); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "G", _g_get_G); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "B", _g_get_B); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "A", _g_get_A); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Path", _g_get_Path); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Sequence", _g_get_Sequence); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ParentMesh", _g_get_ParentMesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Edges", _g_get_Edges); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Region", _s_set_Region); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HullLength", _s_set_HullLength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "RegionUVs", _s_set_RegionUVs); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UVs", _s_set_UVs); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Triangles", _s_set_Triangles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "R", _s_set_R); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "G", _s_set_G); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "B", _s_set_B); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "A", _s_set_A); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Path", _s_set_Path); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Sequence", _s_set_Sequence); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ParentMesh", _s_set_ParentMesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Edges", _s_set_Edges); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Height", _s_set_Height); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new Spine.MeshAttachment(_name); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.MeshAttachment constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateRegion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateRegion( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputeWorldVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - float[] _worldVertices = (float[])translator.GetObject(L, 5, typeof(float[])); - int _offset = LuaAPI.xlua_tointeger(L, 6); - int _stride = LuaAPI.xlua_tointeger(L, 7); - - gen_to_be_invoked.ComputeWorldVertices( _slot, _start, _count, _worldVertices, _offset, _stride ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - float[] _worldVertices = (float[])translator.GetObject(L, 5, typeof(float[])); - int _offset = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.ComputeWorldVertices( _slot, _start, _count, _worldVertices, _offset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.MeshAttachment.ComputeWorldVertices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NewLinkedMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.NewLinkedMesh( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Copy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Copy( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Region(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Region); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HullLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.HullLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RegionUVs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RegionUVs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UVs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UVs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Triangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Triangles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.R); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.G); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.B); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.A); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Path(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Path); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Sequence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Sequence); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ParentMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.ParentMesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Edges(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Edges); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Region(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Region = (Spine.TextureRegion)translator.GetObject(L, 2, typeof(Spine.TextureRegion)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HullLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HullLength = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_RegionUVs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.RegionUVs = (float[])translator.GetObject(L, 2, typeof(float[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UVs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UVs = (float[])translator.GetObject(L, 2, typeof(float[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Triangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.R = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.G = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.B = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.A = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Path(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Path = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Sequence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Sequence = (Spine.Sequence)translator.GetObject(L, 2, typeof(Spine.Sequence)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ParentMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ParentMesh = (Spine.MeshAttachment)translator.GetObject(L, 2, typeof(Spine.MeshAttachment)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Edges(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Edges = (int[])translator.GetObject(L, 2, typeof(int[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.MeshAttachment gen_to_be_invoked = (Spine.MeshAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_RegionAttachmentWrap.cs b/Assets/XLua/Gen/Spine_RegionAttachmentWrap.cs deleted file mode 100644 index 39b327dd1..000000000 --- a/Assets/XLua/Gen/Spine_RegionAttachmentWrap.cs +++ /dev/null @@ -1,671 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineRegionAttachmentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.RegionAttachment); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 16, 14); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRegion", _m_UpdateRegion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeWorldVertices", _m_ComputeWorldVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Copy", _m_Copy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "X", _g_get_X); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Y", _g_get_Y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Rotation", _g_get_Rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleX", _g_get_ScaleX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleY", _g_get_ScaleY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "R", _g_get_R); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "G", _g_get_G); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "B", _g_get_B); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "A", _g_get_A); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Path", _g_get_Path); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Region", _g_get_Region); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Offset", _g_get_Offset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UVs", _g_get_UVs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Sequence", _g_get_Sequence); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "X", _s_set_X); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Y", _s_set_Y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Rotation", _s_set_Rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleX", _s_set_ScaleX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleY", _s_set_ScaleY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Height", _s_set_Height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "R", _s_set_R); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "G", _s_set_G); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "B", _s_set_B); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "A", _s_set_A); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Path", _s_set_Path); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Region", _s_set_Region); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Sequence", _s_set_Sequence); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 9, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BLX", Spine.RegionAttachment.BLX); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BLY", Spine.RegionAttachment.BLY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ULX", Spine.RegionAttachment.ULX); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ULY", Spine.RegionAttachment.ULY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "URX", Spine.RegionAttachment.URX); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "URY", Spine.RegionAttachment.URY); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BRX", Spine.RegionAttachment.BRX); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BRY", Spine.RegionAttachment.BRY); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new Spine.RegionAttachment(_name); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - Spine.RegionAttachment _other = (Spine.RegionAttachment)translator.GetObject(L, 2, typeof(Spine.RegionAttachment)); - - var gen_ret = new Spine.RegionAttachment(_other); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.RegionAttachment constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateRegion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateRegion( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputeWorldVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot)); - float[] _worldVertices = (float[])translator.GetObject(L, 3, typeof(float[])); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _stride = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.ComputeWorldVertices( _slot, _worldVertices, _offset, _stride ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot)); - float[] _worldVertices = (float[])translator.GetObject(L, 3, typeof(float[])); - int _offset = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.ComputeWorldVertices( _slot, _worldVertices, _offset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.RegionAttachment.ComputeWorldVertices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Copy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Copy( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_X(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.X); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScaleX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ScaleX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScaleY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ScaleY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.R); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.G); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.B); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.A); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Path(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Path); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Region(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Region); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Offset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Offset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UVs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UVs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Sequence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Sequence); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_X(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.X = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Y = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Rotation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ScaleX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ScaleX = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ScaleY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ScaleY = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.R = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.G = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.B = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.A = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Path(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Path = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Region(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Region = (Spine.TextureRegion)translator.GetObject(L, 2, typeof(Spine.TextureRegion)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Sequence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.RegionAttachment gen_to_be_invoked = (Spine.RegionAttachment)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Sequence = (Spine.Sequence)translator.GetObject(L, 2, typeof(Spine.Sequence)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_SkeletonDataWrap.cs b/Assets/XLua/Gen/Spine_SkeletonDataWrap.cs deleted file mode 100644 index 2ac2f4084..000000000 --- a/Assets/XLua/Gen/Spine_SkeletonDataWrap.cs +++ /dev/null @@ -1,1002 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineSkeletonDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.SkeletonData); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 21, 19); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindBone", _m_FindBone); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSlot", _m_FindSlot); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSkin", _m_FindSkin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindEvent", _m_FindEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAnimation", _m_FindAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIkConstraint", _m_FindIkConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindTransformConstraint", _m_FindTransformConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPathConstraint", _m_FindPathConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPhysicsConstraint", _m_FindPhysicsConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Name", _g_get_Name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Bones", _g_get_Bones); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Slots", _g_get_Slots); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skins", _g_get_Skins); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DefaultSkin", _g_get_DefaultSkin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Events", _g_get_Events); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Animations", _g_get_Animations); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IkConstraints", _g_get_IkConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TransformConstraints", _g_get_TransformConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PathConstraints", _g_get_PathConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsConstraints", _g_get_PhysicsConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "X", _g_get_X); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Y", _g_get_Y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Width", _g_get_Width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Height", _g_get_Height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ReferenceScale", _g_get_ReferenceScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Version", _g_get_Version); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Hash", _g_get_Hash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ImagesPath", _g_get_ImagesPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AudioPath", _g_get_AudioPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Fps", _g_get_Fps); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Name", _s_set_Name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Skins", _s_set_Skins); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "DefaultSkin", _s_set_DefaultSkin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Events", _s_set_Events); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Animations", _s_set_Animations); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "IkConstraints", _s_set_IkConstraints); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TransformConstraints", _s_set_TransformConstraints); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PathConstraints", _s_set_PathConstraints); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsConstraints", _s_set_PhysicsConstraints); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "X", _s_set_X); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Y", _s_set_Y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Width", _s_set_Width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Height", _s_set_Height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ReferenceScale", _s_set_ReferenceScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Version", _s_set_Version); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Hash", _s_set_Hash); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ImagesPath", _s_set_ImagesPath); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AudioPath", _s_set_AudioPath); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Fps", _s_set_Fps); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.SkeletonData(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.SkeletonData constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindBone(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _boneName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindBone( _boneName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSlot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _slotName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindSlot( _slotName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSkin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _skinName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindSkin( _skinName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _eventDataName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindEvent( _eventDataName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _animationName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindAnimation( _animationName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIkConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindIkConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindTransformConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindTransformConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindPathConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindPathConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindPhysicsConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindPhysicsConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Bones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Bones); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Slots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Slots); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Skins(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Skins); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DefaultSkin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.DefaultSkin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Events(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Events); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Animations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Animations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IkConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.IkConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TransformConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TransformConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PathConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PathConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PhysicsConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_X(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.X); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ReferenceScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ReferenceScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Hash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Hash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ImagesPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ImagesPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AudioPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.AudioPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Fps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Fps); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Skins(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Skins = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_DefaultSkin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.DefaultSkin = (Spine.Skin)translator.GetObject(L, 2, typeof(Spine.Skin)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Events(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Events = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Animations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Animations = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IkConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.IkConstraints = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TransformConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TransformConstraints = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PathConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PathConstraints = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PhysicsConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PhysicsConstraints = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_X(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.X = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Y = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Width = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Height = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ReferenceScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ReferenceScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Version = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Hash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Hash = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ImagesPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ImagesPath = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AudioPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AudioPath = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Fps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.SkeletonData gen_to_be_invoked = (Spine.SkeletonData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Fps = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_SkeletonWrap.cs b/Assets/XLua/Gen/Spine_SkeletonWrap.cs deleted file mode 100644 index c3b64a8be..000000000 --- a/Assets/XLua/Gen/Spine_SkeletonWrap.cs +++ /dev/null @@ -1,1201 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineSkeletonWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Skeleton); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 20, 10); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateCache", _m_UpdateCache); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWorldTransform", _m_UpdateWorldTransform); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PhysicsTranslate", _m_PhysicsTranslate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PhysicsRotate", _m_PhysicsRotate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetToSetupPose", _m_SetToSetupPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBonesToSetupPose", _m_SetBonesToSetupPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSlotsToSetupPose", _m_SetSlotsToSetupPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindBone", _m_FindBone); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSlot", _m_FindSlot); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSkin", _m_SetSkin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAttachment", _m_GetAttachment); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAttachment", _m_SetAttachment); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIkConstraint", _m_FindIkConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindTransformConstraint", _m_FindTransformConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPathConstraint", _m_FindPathConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPhysicsConstraint", _m_FindPhysicsConstraint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBounds", _m_GetBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Bones", _g_get_Bones); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateCacheList", _g_get_UpdateCacheList); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Slots", _g_get_Slots); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DrawOrder", _g_get_DrawOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IkConstraints", _g_get_IkConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PathConstraints", _g_get_PathConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsConstraints", _g_get_PhysicsConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TransformConstraints", _g_get_TransformConstraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skin", _g_get_Skin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "R", _g_get_R); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "G", _g_get_G); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "B", _g_get_B); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "A", _g_get_A); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "X", _g_get_X); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Y", _g_get_Y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleX", _g_get_ScaleX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScaleY", _g_get_ScaleY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Time", _g_get_Time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RootBone", _g_get_RootBone); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Skin", _s_set_Skin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "R", _s_set_R); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "G", _s_set_G); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "B", _s_set_B); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "A", _s_set_A); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "X", _s_set_X); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Y", _s_set_Y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleX", _s_set_ScaleX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ScaleY", _s_set_ScaleY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Time", _s_set_Time); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - Spine.SkeletonData _data = (Spine.SkeletonData)translator.GetObject(L, 2, typeof(Spine.SkeletonData)); - - var gen_ret = new Spine.Skeleton(_data); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - - var gen_ret = new Spine.Skeleton(_skeleton); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Skeleton constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateCache(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateCache( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateWorldTransform(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - Spine.Skeleton.Physics _physics;translator.Get(L, 2, out _physics); - - gen_to_be_invoked.UpdateWorldTransform( _physics ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - Spine.Skeleton.Physics _physics;translator.Get(L, 2, out _physics); - Spine.Bone _parent = (Spine.Bone)translator.GetObject(L, 3, typeof(Spine.Bone)); - - gen_to_be_invoked.UpdateWorldTransform( _physics, _parent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Skeleton.UpdateWorldTransform!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PhysicsTranslate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.PhysicsTranslate( _x, _y ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PhysicsRotate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _degrees = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.PhysicsRotate( _x, _y, _degrees ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - float _delta = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Update( _delta ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetToSetupPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetToSetupPose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBonesToSetupPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetBonesToSetupPose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSlotsToSetupPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetSlotsToSetupPose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindBone(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - string _boneName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindBone( _boneName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSlot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - string _slotName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindSlot( _slotName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSkin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _skinName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetSkin( _skinName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - Spine.Skin _newSkin = (Spine.Skin)translator.GetObject(L, 2, typeof(Spine.Skin)); - - gen_to_be_invoked.SetSkin( _newSkin ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Skeleton.SetSkin!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAttachment(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - int _slotIndex = LuaAPI.xlua_tointeger(L, 2); - string _attachmentName = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.GetAttachment( _slotIndex, _attachmentName ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _slotName = LuaAPI.lua_tostring(L, 2); - string _attachmentName = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.GetAttachment( _slotName, _attachmentName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Skeleton.GetAttachment!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAttachment(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - string _slotName = LuaAPI.lua_tostring(L, 2); - string _attachmentName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.SetAttachment( _slotName, _attachmentName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIkConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindIkConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindTransformConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindTransformConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindPathConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindPathConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindPhysicsConstraint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - string _constraintName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindPhysicsConstraint( _constraintName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - float _x; - float _y; - float _width; - float _height; - float[] _vertexBuffer = (float[])translator.GetObject(L, 2, typeof(float[])); - Spine.SkeletonClipping _clipper = (Spine.SkeletonClipping)translator.GetObject(L, 3, typeof(Spine.SkeletonClipping)); - - gen_to_be_invoked.GetBounds( out _x, out _y, out _width, out _height, ref _vertexBuffer, _clipper ); - LuaAPI.lua_pushnumber(L, _x); - - LuaAPI.lua_pushnumber(L, _y); - - LuaAPI.lua_pushnumber(L, _width); - - LuaAPI.lua_pushnumber(L, _height); - - translator.Push(L, _vertexBuffer); - - - - - return 5; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - float _x; - float _y; - float _width; - float _height; - float[] _vertexBuffer = (float[])translator.GetObject(L, 2, typeof(float[])); - - gen_to_be_invoked.GetBounds( out _x, out _y, out _width, out _height, ref _vertexBuffer ); - LuaAPI.lua_pushnumber(L, _x); - - LuaAPI.lua_pushnumber(L, _y); - - LuaAPI.lua_pushnumber(L, _width); - - LuaAPI.lua_pushnumber(L, _height); - - translator.Push(L, _vertexBuffer); - - - - - return 5; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Skeleton.GetBounds!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Bones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Bones); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UpdateCacheList(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UpdateCacheList); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Slots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Slots); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DrawOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.DrawOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IkConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.IkConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PathConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PathConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PhysicsConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TransformConstraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TransformConstraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Skin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Skin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.R); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.G); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.B); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.A); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_X(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.X); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScaleX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ScaleX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScaleY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ScaleY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RootBone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.RootBone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Skin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Skin = (Spine.Skin)translator.GetObject(L, 2, typeof(Spine.Skin)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.R = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.G = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.B = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.A = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_X(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.X = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Y = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ScaleX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ScaleX = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ScaleY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ScaleY = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Skeleton gen_to_be_invoked = (Spine.Skeleton)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Time = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_SlotWrap.cs b/Assets/XLua/Gen/Spine_SlotWrap.cs deleted file mode 100644 index 51b94b7a1..000000000 --- a/Assets/XLua/Gen/Spine_SlotWrap.cs +++ /dev/null @@ -1,595 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineSlotWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Slot); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 14, 11); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClampColor", _m_ClampColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClampSecondColor", _m_ClampSecondColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetToSetupPose", _m_SetToSetupPose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Data", _g_get_Data); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Bone", _g_get_Bone); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skeleton", _g_get_Skeleton); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "R", _g_get_R); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "G", _g_get_G); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "B", _g_get_B); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "A", _g_get_A); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "R2", _g_get_R2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "G2", _g_get_G2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "B2", _g_get_B2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HasSecondColor", _g_get_HasSecondColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Attachment", _g_get_Attachment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SequenceIndex", _g_get_SequenceIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Deform", _g_get_Deform); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "R", _s_set_R); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "G", _s_set_G); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "B", _s_set_B); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "A", _s_set_A); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "R2", _s_set_R2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "G2", _s_set_G2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "B2", _s_set_B2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HasSecondColor", _s_set_HasSecondColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Attachment", _s_set_Attachment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SequenceIndex", _s_set_SequenceIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Deform", _s_set_Deform); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - Spine.SlotData _data = (Spine.SlotData)translator.GetObject(L, 2, typeof(Spine.SlotData)); - Spine.Bone _bone = (Spine.Bone)translator.GetObject(L, 3, typeof(Spine.Bone)); - - var gen_ret = new Spine.Slot(_data, _bone); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - Spine.Slot _slot = (Spine.Slot)translator.GetObject(L, 2, typeof(Spine.Slot)); - Spine.Bone _bone = (Spine.Bone)translator.GetObject(L, 3, typeof(Spine.Bone)); - - var gen_ret = new Spine.Slot(_slot, _bone); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Slot constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClampColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClampColor( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClampSecondColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClampSecondColor( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetToSetupPose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetToSetupPose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Data(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Data); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Bone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Bone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Skeleton); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.R); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.G); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.B); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.A); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_R2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.R2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_G2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.G2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_B2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.B2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HasSecondColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.HasSecondColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Attachment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Attachment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SequenceIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.SequenceIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Deform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Deform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_R(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.R = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_G(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.G = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_B(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.B = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_A(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.A = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_R2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.R2 = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_G2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.G2 = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_B2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.B2 = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HasSecondColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HasSecondColor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Attachment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Attachment = (Spine.Attachment)translator.GetObject(L, 2, typeof(Spine.Attachment)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SequenceIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SequenceIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Deform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Slot gen_to_be_invoked = (Spine.Slot)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Deform = (Spine.ExposedList)translator.GetObject(L, 2, typeof(Spine.ExposedList)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_TrackEntryWrap.cs b/Assets/XLua/Gen/Spine_TrackEntryWrap.cs deleted file mode 100644 index 1a75979e7..000000000 --- a/Assets/XLua/Gen/Spine_TrackEntryWrap.cs +++ /dev/null @@ -1,1222 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineTrackEntryWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.TrackEntry); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 32, 19); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMixDuration", _m_SetMixDuration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetRotationDirections", _m_ResetRotationDirections); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AllowImmediateQueue", _m_AllowImmediateQueue); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _e_Start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Interrupt", _e_Interrupt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "End", _e_End); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _e_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Complete", _e_Complete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Event", _e_Event); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TrackIndex", _g_get_TrackIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Animation", _g_get_Animation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Loop", _g_get_Loop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Delay", _g_get_Delay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TrackTime", _g_get_TrackTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TrackEnd", _g_get_TrackEnd); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TrackComplete", _g_get_TrackComplete); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationStart", _g_get_AnimationStart); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationEnd", _g_get_AnimationEnd); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationLast", _g_get_AnimationLast); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationTime", _g_get_AnimationTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TimeScale", _g_get_TimeScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Alpha", _g_get_Alpha); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "InterruptAlpha", _g_get_InterruptAlpha); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventThreshold", _g_get_EventThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AlphaAttachmentThreshold", _g_get_AlphaAttachmentThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixAttachmentThreshold", _g_get_MixAttachmentThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixDrawOrderThreshold", _g_get_MixDrawOrderThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Next", _g_get_Next); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Previous", _g_get_Previous); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "WasApplied", _g_get_WasApplied); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsNextReady", _g_get_IsNextReady); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsComplete", _g_get_IsComplete); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixTime", _g_get_MixTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixDuration", _g_get_MixDuration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixBlend", _g_get_MixBlend); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixingFrom", _g_get_MixingFrom); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MixingTo", _g_get_MixingTo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HoldPrevious", _g_get_HoldPrevious); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Reverse", _g_get_Reverse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShortestRotation", _g_get_ShortestRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsEmptyAnimation", _g_get_IsEmptyAnimation); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Loop", _s_set_Loop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Delay", _s_set_Delay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TrackTime", _s_set_TrackTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TrackEnd", _s_set_TrackEnd); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnimationStart", _s_set_AnimationStart); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnimationEnd", _s_set_AnimationEnd); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnimationLast", _s_set_AnimationLast); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "TimeScale", _s_set_TimeScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Alpha", _s_set_Alpha); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EventThreshold", _s_set_EventThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AlphaAttachmentThreshold", _s_set_AlphaAttachmentThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixAttachmentThreshold", _s_set_MixAttachmentThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixDrawOrderThreshold", _s_set_MixDrawOrderThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixTime", _s_set_MixTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixDuration", _s_set_MixDuration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "MixBlend", _s_set_MixBlend); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "HoldPrevious", _s_set_HoldPrevious); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Reverse", _s_set_Reverse); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ShortestRotation", _s_set_ShortestRotation); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.TrackEntry(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.TrackEntry constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMixDuration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - - - - { - float _mixDuration = (float)LuaAPI.lua_tonumber(L, 2); - float _delay = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetMixDuration( _mixDuration, _delay ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetRotationDirections(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetRotationDirections( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AllowImmediateQueue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AllowImmediateQueue( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TrackIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TrackIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Animation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Animation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Loop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Delay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Delay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TrackTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.TrackTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TrackEnd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.TrackEnd); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TrackComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.TrackComplete); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationStart(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AnimationStart); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationEnd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AnimationEnd); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationLast(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AnimationLast); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AnimationTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TimeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.TimeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Alpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_InterruptAlpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.InterruptAlpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EventThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.EventThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AlphaAttachmentThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AlphaAttachmentThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MixAttachmentThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.MixAttachmentThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MixDrawOrderThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.MixDrawOrderThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Next(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Next); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Previous(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Previous); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_WasApplied(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.WasApplied); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsNextReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsNextReady); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsComplete); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MixTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.MixTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MixDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.MixDuration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MixBlend(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MixBlend); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MixingFrom(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MixingFrom); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MixingTo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MixingTo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HoldPrevious(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.HoldPrevious); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Reverse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Reverse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ShortestRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ShortestRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsEmptyAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsEmptyAnimation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Loop = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Delay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Delay = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TrackTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TrackTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TrackEnd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TrackEnd = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AnimationStart(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AnimationStart = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AnimationEnd(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AnimationEnd = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AnimationLast(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AnimationLast = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_TimeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.TimeScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Alpha = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EventThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EventThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AlphaAttachmentThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AlphaAttachmentThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MixAttachmentThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MixAttachmentThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MixDrawOrderThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MixDrawOrderThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MixTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MixTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MixDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.MixDuration = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_MixBlend(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - Spine.MixBlend gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.MixBlend = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_HoldPrevious(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.HoldPrevious = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Reverse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Reverse = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ShortestRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ShortestRotation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Start(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Start += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Start -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.TrackEntry.Start!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Interrupt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Interrupt += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Interrupt -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.TrackEntry.Interrupt!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_End(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.End += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.End -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.TrackEntry.End!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Dispose(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Dispose += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Dispose -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.TrackEntry.Dispose!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Complete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Complete += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Complete -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.TrackEntry.Complete!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Event(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.TrackEntry gen_to_be_invoked = (Spine.TrackEntry)translator.FastGetCSObj(L, 1); - Spine.AnimationState.TrackEntryEventDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.AnimationState.TrackEntryEventDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Event += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Event -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.TrackEntry.Event!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_BoneFollowerGraphicWrap.cs b/Assets/XLua/Gen/Spine_Unity_BoneFollowerGraphicWrap.cs deleted file mode 100644 index 79bb837dc..000000000 --- a/Assets/XLua/Gen/Spine_Unity_BoneFollowerGraphicWrap.cs +++ /dev/null @@ -1,602 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnityBoneFollowerGraphicWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.BoneFollowerGraphic); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 13, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBone", _m_SetBone); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Awake", _m_Awake); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonGraphic", _g_get_SkeletonGraphic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeletonGraphic", _g_get_skeletonGraphic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initializeOnAwake", _g_get_initializeOnAwake); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneName", _g_get_boneName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followBoneRotation", _g_get_followBoneRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followSkeletonFlip", _g_get_followSkeletonFlip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followLocalScale", _g_get_followLocalScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followParentWorldScale", _g_get_followParentWorldScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followXYPosition", _g_get_followXYPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followZPosition", _g_get_followZPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maintainedAxisOrientation", _g_get_maintainedAxisOrientation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bone", _g_get_bone); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "valid", _g_get_valid); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SkeletonGraphic", _s_set_SkeletonGraphic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonGraphic", _s_set_skeletonGraphic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initializeOnAwake", _s_set_initializeOnAwake); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneName", _s_set_boneName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followBoneRotation", _s_set_followBoneRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followSkeletonFlip", _s_set_followSkeletonFlip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followLocalScale", _s_set_followLocalScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followParentWorldScale", _s_set_followParentWorldScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followXYPosition", _s_set_followXYPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followZPosition", _s_set_followZPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maintainedAxisOrientation", _s_set_maintainedAxisOrientation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bone", _s_set_bone); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "valid", _s_set_valid); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.BoneFollowerGraphic(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.BoneFollowerGraphic constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBone(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetBone( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Awake(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Awake( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Initialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Initialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonGraphic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeletonGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skeletonGraphic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initializeOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.initializeOnAwake); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.boneName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followBoneRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followBoneRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followSkeletonFlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followSkeletonFlip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followLocalScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followLocalScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followParentWorldScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followParentWorldScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followXYPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followXYPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followZPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followZPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maintainedAxisOrientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - translator.PushSpineUnityBoneFollowerAxisOrientation(L, gen_to_be_invoked.maintainedAxisOrientation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_valid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.valid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SkeletonGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SkeletonGraphic = (Spine.Unity.SkeletonGraphic)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonGraphic)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeletonGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skeletonGraphic = (Spine.Unity.SkeletonGraphic)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonGraphic)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initializeOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initializeOnAwake = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.boneName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followBoneRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followBoneRotation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followSkeletonFlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followSkeletonFlip = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followLocalScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followLocalScale = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followParentWorldScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followParentWorldScale = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followXYPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followXYPosition = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followZPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followZPosition = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maintainedAxisOrientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.BoneFollower.AxisOrientation gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maintainedAxisOrientation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bone = (Spine.Bone)translator.GetObject(L, 2, typeof(Spine.Bone)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_valid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollowerGraphic gen_to_be_invoked = (Spine.Unity.BoneFollowerGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.valid = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_BoneFollowerWrap.cs b/Assets/XLua/Gen/Spine_Unity_BoneFollowerWrap.cs deleted file mode 100644 index 31435a694..000000000 --- a/Assets/XLua/Gen/Spine_Unity_BoneFollowerWrap.cs +++ /dev/null @@ -1,631 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnityBoneFollowerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.BoneFollower); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 13, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBone", _m_SetBone); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Awake", _m_Awake); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HandleRebuildRenderer", _m_HandleRebuildRenderer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonRenderer", _g_get_SkeletonRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeletonRenderer", _g_get_skeletonRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneName", _g_get_boneName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followXYPosition", _g_get_followXYPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followZPosition", _g_get_followZPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followBoneRotation", _g_get_followBoneRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followSkeletonFlip", _g_get_followSkeletonFlip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followLocalScale", _g_get_followLocalScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "followParentWorldScale", _g_get_followParentWorldScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maintainedAxisOrientation", _g_get_maintainedAxisOrientation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initializeOnAwake", _g_get_initializeOnAwake); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "valid", _g_get_valid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bone", _g_get_bone); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "SkeletonRenderer", _s_set_SkeletonRenderer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonRenderer", _s_set_skeletonRenderer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneName", _s_set_boneName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followXYPosition", _s_set_followXYPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followZPosition", _s_set_followZPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followBoneRotation", _s_set_followBoneRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followSkeletonFlip", _s_set_followSkeletonFlip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followLocalScale", _s_set_followLocalScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "followParentWorldScale", _s_set_followParentWorldScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maintainedAxisOrientation", _s_set_maintainedAxisOrientation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initializeOnAwake", _s_set_initializeOnAwake); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "valid", _s_set_valid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bone", _s_set_bone); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.BoneFollower(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.BoneFollower constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBone(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SetBone( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Awake(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Awake( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HandleRebuildRenderer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - - - - { - Spine.Unity.SkeletonRenderer _skeletonRenderer = (Spine.Unity.SkeletonRenderer)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonRenderer)); - - gen_to_be_invoked.HandleRebuildRenderer( _skeletonRenderer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Initialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Initialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeletonRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skeletonRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.boneName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followXYPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followXYPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followZPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followZPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followBoneRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followBoneRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followSkeletonFlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followSkeletonFlip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followLocalScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followLocalScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_followParentWorldScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.followParentWorldScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maintainedAxisOrientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - translator.PushSpineUnityBoneFollowerAxisOrientation(L, gen_to_be_invoked.maintainedAxisOrientation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initializeOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.initializeOnAwake); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_valid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.valid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_SkeletonRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.SkeletonRenderer = (Spine.Unity.SkeletonRenderer)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonRenderer)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeletonRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skeletonRenderer = (Spine.Unity.SkeletonRenderer)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonRenderer)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.boneName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followXYPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followXYPosition = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followZPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followZPosition = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followBoneRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followBoneRotation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followSkeletonFlip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followSkeletonFlip = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followLocalScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followLocalScale = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_followParentWorldScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.followParentWorldScale = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maintainedAxisOrientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - Spine.Unity.BoneFollower.AxisOrientation gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maintainedAxisOrientation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initializeOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initializeOnAwake = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_valid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.valid = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.BoneFollower gen_to_be_invoked = (Spine.Unity.BoneFollower)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bone = (Spine.Bone)translator.GetObject(L, 2, typeof(Spine.Bone)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs b/Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs deleted file mode 100644 index 47ce458d9..000000000 --- a/Assets/XLua/Gen/Spine_Unity_MeshGeneratorWrap.cs +++ /dev/null @@ -1,804 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnityMeshGeneratorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.MeshGenerator); - Utils.BeginObjectRegister(type, L, translator, 0, 13, 6, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SubmeshIndexCount", _m_SubmeshIndexCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Begin", _m_Begin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSubmesh", _m_AddSubmesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildMesh", _m_BuildMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildMeshWithArrays", _m_BuildMeshWithArrays); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScaleVertexData", _m_ScaleVertexData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScaleAndOffsetVertexData", _m_ScaleAndOffsetVertexData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMeshBounds", _m_GetMeshBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FillVertexData", _m_FillVertexData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FillLateVertexData", _m_FillLateVertexData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FillTriangles", _m_FillTriangles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnsureVertexCapacity", _m_EnsureVertexCapacity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UV2", _g_get_UV2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UV3", _g_get_UV3); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VertexCount", _g_get_VertexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Buffers", _g_get_Buffers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonClipping", _g_get_SkeletonClipping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "settings", _g_get_settings); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "settings", _s_set_settings); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateSingleSubmeshInstruction", _m_GenerateSingleSubmeshInstruction_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RequiresMultipleSubmeshesByDrawOrder", _m_RequiresMultipleSubmeshesByDrawOrder_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateSkeletonRendererInstruction", _m_GenerateSkeletonRendererInstruction_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryReplaceMaterials", _m_TryReplaceMaterials_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FillMeshLocal", _m_FillMeshLocal_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.MeshGenerator(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.MeshGenerator constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SubmeshIndexCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SubmeshIndexCount( _submeshIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateSingleSubmeshInstruction_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - Spine.Unity.SkeletonRendererInstruction _instructionOutput = (Spine.Unity.SkeletonRendererInstruction)translator.GetObject(L, 1, typeof(Spine.Unity.SkeletonRendererInstruction)); - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - - Spine.Unity.MeshGenerator.GenerateSingleSubmeshInstruction( _instructionOutput, _skeleton, _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RequiresMultipleSubmeshesByDrawOrder_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 1, typeof(Spine.Skeleton)); - - var gen_ret = Spine.Unity.MeshGenerator.RequiresMultipleSubmeshesByDrawOrder( _skeleton ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateSkeletonRendererInstruction_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - Spine.Unity.SkeletonRendererInstruction _instructionOutput = (Spine.Unity.SkeletonRendererInstruction)translator.GetObject(L, 1, typeof(Spine.Unity.SkeletonRendererInstruction)); - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - System.Collections.Generic.Dictionary _customSlotMaterials = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - System.Collections.Generic.List _separatorSlots = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - bool _generateMeshOverride = LuaAPI.lua_toboolean(L, 5); - bool _immutableTriangles = LuaAPI.lua_toboolean(L, 6); - - Spine.Unity.MeshGenerator.GenerateSkeletonRendererInstruction( _instructionOutput, _skeleton, _customSlotMaterials, _separatorSlots, _generateMeshOverride, _immutableTriangles ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - Spine.Unity.SkeletonRendererInstruction _instructionOutput = (Spine.Unity.SkeletonRendererInstruction)translator.GetObject(L, 1, typeof(Spine.Unity.SkeletonRendererInstruction)); - Spine.Skeleton _skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - System.Collections.Generic.Dictionary _customSlotMaterials = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - System.Collections.Generic.List _separatorSlots = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - bool _generateMeshOverride = LuaAPI.lua_toboolean(L, 5); - - Spine.Unity.MeshGenerator.GenerateSkeletonRendererInstruction( _instructionOutput, _skeleton, _customSlotMaterials, _separatorSlots, _generateMeshOverride ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.MeshGenerator.GenerateSkeletonRendererInstruction!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryReplaceMaterials_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - Spine.ExposedList _workingSubmeshInstructions = (Spine.ExposedList)translator.GetObject(L, 1, typeof(Spine.ExposedList)); - System.Collections.Generic.Dictionary _customMaterialOverride = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - Spine.Unity.MeshGenerator.TryReplaceMaterials( _workingSubmeshInstructions, _customMaterialOverride ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Begin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Begin( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSubmesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - Spine.Unity.SubmeshInstruction _instruction;translator.Get(L, 2, out _instruction); - bool _updateTriangles = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.AddSubmesh( _instruction, _updateTriangles ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - Spine.Unity.SubmeshInstruction _instruction;translator.Get(L, 2, out _instruction); - - gen_to_be_invoked.AddSubmesh( _instruction ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.MeshGenerator.AddSubmesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - Spine.Unity.SkeletonRendererInstruction _instruction = (Spine.Unity.SkeletonRendererInstruction)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonRendererInstruction)); - bool _updateTriangles = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.BuildMesh( _instruction, _updateTriangles ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildMeshWithArrays(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - Spine.Unity.SkeletonRendererInstruction _instruction = (Spine.Unity.SkeletonRendererInstruction)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonRendererInstruction)); - bool _updateTriangles = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.BuildMeshWithArrays( _instruction, _updateTriangles ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScaleVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - float _scale = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.ScaleVertexData( _scale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScaleAndOffsetVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - float _scale = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _offset2D;translator.Get(L, 3, out _offset2D); - - gen_to_be_invoked.ScaleAndOffsetVertexData( _scale, _offset2D ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMeshBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetMeshBounds( ); - translator.PushUnityEngineBounds(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FillVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.FillVertexData( _mesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FillLateVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.FillLateVertexData( _mesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FillTriangles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.FillTriangles( _mesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnsureVertexCapacity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - int _minimumVertexCount = LuaAPI.xlua_tointeger(L, 2); - bool _inlcudeTintBlack = LuaAPI.lua_toboolean(L, 3); - bool _includeTangents = LuaAPI.lua_toboolean(L, 4); - bool _includeNormals = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.EnsureVertexCapacity( _minimumVertexCount, _inlcudeTintBlack, _includeTangents, _includeNormals ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int _minimumVertexCount = LuaAPI.xlua_tointeger(L, 2); - bool _inlcudeTintBlack = LuaAPI.lua_toboolean(L, 3); - bool _includeTangents = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.EnsureVertexCapacity( _minimumVertexCount, _inlcudeTintBlack, _includeTangents ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _minimumVertexCount = LuaAPI.xlua_tointeger(L, 2); - bool _inlcudeTintBlack = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.EnsureVertexCapacity( _minimumVertexCount, _inlcudeTintBlack ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _minimumVertexCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.EnsureVertexCapacity( _minimumVertexCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.MeshGenerator.EnsureVertexCapacity!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FillMeshLocal_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - Spine.RegionAttachment _regionAttachment = (Spine.RegionAttachment)translator.GetObject(L, 2, typeof(Spine.RegionAttachment)); - - Spine.Unity.MeshGenerator.FillMeshLocal( _mesh, _regionAttachment ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - Spine.MeshAttachment _meshAttachment = (Spine.MeshAttachment)translator.GetObject(L, 2, typeof(Spine.MeshAttachment)); - Spine.SkeletonData _skeletonData = (Spine.SkeletonData)translator.GetObject(L, 3, typeof(Spine.SkeletonData)); - - Spine.Unity.MeshGenerator.FillMeshLocal( _mesh, _meshAttachment, _skeletonData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.MeshGenerator.FillMeshLocal!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UV2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UV2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UV3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UV3); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.VertexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Buffers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Buffers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonClipping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_settings(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.settings); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_settings(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator gen_to_be_invoked = (Spine.Unity.MeshGenerator)translator.FastGetCSObj(L, 1); - Spine.Unity.MeshGenerator.Settings gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.settings = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs b/Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs deleted file mode 100644 index c26dc918c..000000000 --- a/Assets/XLua/Gen/Spine_Unity_MeshGenerator_SettingsWrap.cs +++ /dev/null @@ -1,359 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnityMeshGeneratorSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.MeshGenerator.Settings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useClipping", _g_get_useClipping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zSpacing", _g_get_zSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tintBlack", _g_get_tintBlack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvasGroupCompatible", _g_get_canvasGroupCompatible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pmaVertexColors", _g_get_pmaVertexColors); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "addNormals", _g_get_addNormals); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "calculateTangents", _g_get_calculateTangents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "immutableTriangles", _g_get_immutableTriangles); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useClipping", _s_set_useClipping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zSpacing", _s_set_zSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tintBlack", _s_set_tintBlack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "canvasGroupCompatible", _s_set_canvasGroupCompatible); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pmaVertexColors", _s_set_pmaVertexColors); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "addNormals", _s_set_addNormals); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "calculateTangents", _s_set_calculateTangents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "immutableTriangles", _s_set_immutableTriangles); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Default", _g_get_Default); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(Spine.Unity.MeshGenerator.Settings)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.MeshGenerator.Settings constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Default(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, Spine.Unity.MeshGenerator.Settings.Default); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useClipping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tintBlack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.tintBlack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canvasGroupCompatible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canvasGroupCompatible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pmaVertexColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.pmaVertexColors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_addNormals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.addNormals); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_calculateTangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.calculateTangents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_immutableTriangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.immutableTriangles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useClipping = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tintBlack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.tintBlack = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_canvasGroupCompatible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.canvasGroupCompatible = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pmaVertexColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pmaVertexColors = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_addNormals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.addNormals = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_calculateTangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.calculateTangents = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_immutableTriangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.MeshGenerator.Settings gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.immutableTriangles = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs deleted file mode 100644 index 047231081..000000000 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonAnimationWrap.cs +++ /dev/null @@ -1,764 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnitySkeletonAnimationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.SkeletonAnimation); - Utils.BeginObjectRegister(type, L, translator, 0, 12, 7, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearState", _m_ClearState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyAnimation", _m_ApplyAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AfterAnimationApplied", _m_AfterAnimationApplied); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameVisible", _m_OnBecameVisible); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAnimationRebuild", _e_OnAnimationRebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BeforeApply", _e_BeforeApply); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateLocal", _e_UpdateLocal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWorld", _e_UpdateWorld); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateComplete", _e_UpdateComplete); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationState", _g_get_AnimationState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateTiming", _g_get_UpdateTiming); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnscaledTime", _g_get_UnscaledTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationName", _g_get_AnimationName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "state", _g_get_state); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeScale", _g_get_timeScale); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateTiming", _s_set_UpdateTiming); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UnscaledTime", _s_set_UnscaledTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AnimationName", _s_set_AnimationName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "state", _s_set_state); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "loop", _s_set_loop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeScale", _s_set_timeScale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddToGameObject", _m_AddToGameObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NewSkeletonAnimationGameObject", _m_NewSkeletonAnimationGameObject_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.SkeletonAnimation(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddToGameObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - Spine.Unity.SkeletonDataAsset _skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonDataAsset)); - bool _quiet = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = Spine.Unity.SkeletonAnimation.AddToGameObject( _gameObject, _skeletonDataAsset, _quiet ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - Spine.Unity.SkeletonDataAsset _skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonDataAsset)); - - var gen_ret = Spine.Unity.SkeletonAnimation.AddToGameObject( _gameObject, _skeletonDataAsset ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.AddToGameObject!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NewSkeletonAnimationGameObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - Spine.Unity.SkeletonDataAsset _skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 1, typeof(Spine.Unity.SkeletonDataAsset)); - bool _quiet = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = Spine.Unity.SkeletonAnimation.NewSkeletonAnimationGameObject( _skeletonDataAsset, _quiet ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - Spine.Unity.SkeletonDataAsset _skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 1, typeof(Spine.Unity.SkeletonDataAsset)); - - var gen_ret = Spine.Unity.SkeletonAnimation.NewSkeletonAnimationGameObject( _skeletonDataAsset ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.NewSkeletonAnimationGameObject!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearState( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Initialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _overwrite = LuaAPI.lua_toboolean(L, 2); - bool _quiet = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Initialize( _overwrite, _quiet ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _overwrite = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Initialize( _overwrite ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.Initialize!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - - - - { - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Update( _deltaTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ApplyAnimation( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AfterAnimationApplied(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AfterAnimationApplied( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBecameVisible(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnBecameVisible( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.AnimationState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UpdateTiming(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UpdateTiming); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.UnscaledTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.AnimationName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_state(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.state); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.timeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UpdateTiming(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateTiming gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.UpdateTiming = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UnscaledTime = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AnimationName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AnimationName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_state(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.state = (Spine.AnimationState)translator.GetObject(L, 2, typeof(Spine.AnimationState)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.loop = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.timeScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAnimationRebuild(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - Spine.Unity.ISkeletonAnimationDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.ISkeletonAnimationDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAnimationRebuild += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAnimationRebuild -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.OnAnimationRebuild!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_BeforeApply(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.BeforeApply += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.BeforeApply -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.BeforeApply!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_UpdateLocal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.UpdateLocal += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.UpdateLocal -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.UpdateLocal!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_UpdateWorld(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.UpdateWorld += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.UpdateWorld -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.UpdateWorld!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_UpdateComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonAnimation gen_to_be_invoked = (Spine.Unity.SkeletonAnimation)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.UpdateComplete += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.UpdateComplete -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonAnimation.UpdateComplete!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs deleted file mode 100644 index a311d2280..000000000 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonDataAssetWrap.cs +++ /dev/null @@ -1,674 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnitySkeletonDataAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.SkeletonDataAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 12, 11); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetupRuntimeBlendModeMaterials", _m_SetupRuntimeBlendModeMaterials); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAnimationStateData", _m_GetAnimationStateData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkeletonData", _m_GetSkeletonData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FillStateData", _m_FillStateData); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsLoaded", _g_get_IsLoaded); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasAssets", _g_get_atlasAssets); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeletonJSON", _g_get_skeletonJSON); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isUpgradingBlendModeMaterials", _g_get_isUpgradingBlendModeMaterials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blendModeMaterials", _g_get_blendModeMaterials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeletonDataModifiers", _g_get_skeletonDataModifiers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fromAnimation", _g_get_fromAnimation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "toAnimation", _g_get_toAnimation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultMix", _g_get_defaultMix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "controller", _g_get_controller); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlasAssets", _s_set_atlasAssets); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonJSON", _s_set_skeletonJSON); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isUpgradingBlendModeMaterials", _s_set_isUpgradingBlendModeMaterials); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "blendModeMaterials", _s_set_blendModeMaterials); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonDataModifiers", _s_set_skeletonDataModifiers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fromAnimation", _s_set_fromAnimation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "toAnimation", _s_set_toAnimation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "duration", _s_set_duration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultMix", _s_set_defaultMix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "controller", _s_set_controller); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateRuntimeInstance", _m_CreateRuntimeInstance_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.SkeletonDataAsset(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonDataAsset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateRuntimeInstance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.TextAsset _skeletonDataFile = (UnityEngine.TextAsset)translator.GetObject(L, 1, typeof(UnityEngine.TextAsset)); - Spine.Unity.AtlasAssetBase _atlasAsset = (Spine.Unity.AtlasAssetBase)translator.GetObject(L, 2, typeof(Spine.Unity.AtlasAssetBase)); - bool _initialize = LuaAPI.lua_toboolean(L, 3); - float _scale = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = Spine.Unity.SkeletonDataAsset.CreateRuntimeInstance( _skeletonDataFile, _atlasAsset, _initialize, _scale ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.TextAsset _skeletonDataFile = (UnityEngine.TextAsset)translator.GetObject(L, 1, typeof(UnityEngine.TextAsset)); - Spine.Unity.AtlasAssetBase _atlasAsset = (Spine.Unity.AtlasAssetBase)translator.GetObject(L, 2, typeof(Spine.Unity.AtlasAssetBase)); - bool _initialize = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = Spine.Unity.SkeletonDataAsset.CreateRuntimeInstance( _skeletonDataFile, _atlasAsset, _initialize ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.TextAsset _skeletonDataFile = (UnityEngine.TextAsset)translator.GetObject(L, 1, typeof(UnityEngine.TextAsset)); - Spine.Unity.AtlasAssetBase[] _atlasAssets = (Spine.Unity.AtlasAssetBase[])translator.GetObject(L, 2, typeof(Spine.Unity.AtlasAssetBase[])); - bool _initialize = LuaAPI.lua_toboolean(L, 3); - float _scale = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = Spine.Unity.SkeletonDataAsset.CreateRuntimeInstance( _skeletonDataFile, _atlasAssets, _initialize, _scale ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.TextAsset _skeletonDataFile = (UnityEngine.TextAsset)translator.GetObject(L, 1, typeof(UnityEngine.TextAsset)); - Spine.Unity.AtlasAssetBase[] _atlasAssets = (Spine.Unity.AtlasAssetBase[])translator.GetObject(L, 2, typeof(Spine.Unity.AtlasAssetBase[])); - bool _initialize = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = Spine.Unity.SkeletonDataAsset.CreateRuntimeInstance( _skeletonDataFile, _atlasAssets, _initialize ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonDataAsset.CreateRuntimeInstance!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetupRuntimeBlendModeMaterials(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - - - - { - bool _applyAdditiveMaterial = LuaAPI.lua_toboolean(L, 2); - Spine.Unity.BlendModeMaterials.TemplateMaterials _templateMaterials = (Spine.Unity.BlendModeMaterials.TemplateMaterials)translator.GetObject(L, 3, typeof(Spine.Unity.BlendModeMaterials.TemplateMaterials)); - - gen_to_be_invoked.SetupRuntimeBlendModeMaterials( _applyAdditiveMaterial, _templateMaterials ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAnimationStateData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAnimationStateData( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSkeletonData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - - - - { - bool _quiet = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.GetSkeletonData( _quiet ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FillStateData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _quiet = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.FillStateData( _quiet ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.FillStateData( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonDataAsset.FillStateData!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsLoaded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasAssets(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.atlasAssets); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeletonJSON(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skeletonJSON); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isUpgradingBlendModeMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isUpgradingBlendModeMaterials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blendModeMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.blendModeMaterials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeletonDataModifiers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skeletonDataModifiers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fromAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fromAnimation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_toAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.toAnimation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.defaultMix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_controller(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.controller); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_atlasAssets(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.atlasAssets = (Spine.Unity.AtlasAssetBase[])translator.GetObject(L, 2, typeof(Spine.Unity.AtlasAssetBase[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeletonJSON(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skeletonJSON = (UnityEngine.TextAsset)translator.GetObject(L, 2, typeof(UnityEngine.TextAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isUpgradingBlendModeMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isUpgradingBlendModeMaterials = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_blendModeMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.blendModeMaterials = (Spine.Unity.BlendModeMaterials)translator.GetObject(L, 2, typeof(Spine.Unity.BlendModeMaterials)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeletonDataModifiers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skeletonDataModifiers = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fromAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fromAnimation = (string[])translator.GetObject(L, 2, typeof(string[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_toAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.toAnimation = (string[])translator.GetObject(L, 2, typeof(string[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.duration = (float[])translator.GetObject(L, 2, typeof(float[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultMix = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_controller(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonDataAsset gen_to_be_invoked = (Spine.Unity.SkeletonDataAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.controller = (UnityEngine.RuntimeAnimatorController)translator.GetObject(L, 2, typeof(UnityEngine.RuntimeAnimatorController)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs deleted file mode 100644 index 32e761f81..000000000 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs +++ /dev/null @@ -1,2337 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnitySkeletonGraphicWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.SkeletonGraphic); - Utils.BeginObjectRegister(type, L, translator, 0, 33, 44, 28); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyTransformMovementToPhysics", _m_ApplyTransformMovementToPhysics); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyAnimation", _m_ApplyAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AfterAnimationApplied", _m_AfterAnimationApplied); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameVisible", _m_OnBecameVisible); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameInvisible", _m_OnBecameInvisible); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReapplySeparatorSlotNames", _m_ReapplySeparatorSlotNames); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPosition", _m_ResetLastPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastRotation", _m_ResetLastRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPositionAndRotation", _m_ResetLastPositionAndRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLastMesh", _m_GetLastMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MatchRectTransformWithBounds", _m_MatchRectTransformWithBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimRenderers", _m_TrimRenderers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PrepareInstructionsAndRenderers", _m_PrepareInstructionsAndRenderers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMesh", _m_UpdateMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshToInstructions", _m_UpdateMeshToInstructions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasMultipleSubmeshInstructions", _m_HasMultipleSubmeshInstructions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScaledPivotOffset", _m_SetScaledPivotOffset); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignMeshOverrideSingleRenderer", _e_AssignMeshOverrideSingleRenderer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignMeshOverrideMultipleRenderers", _e_AssignMeshOverrideMultipleRenderers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRebuild", _e_OnRebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInstructionsPrepared", _e_OnInstructionsPrepared); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMeshAndMaterialsUpdated", _e_OnMeshAndMaterialsUpdated); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAnimationRebuild", _e_OnAnimationRebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BeforeApply", _e_BeforeApply); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateLocal", _e_UpdateLocal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWorld", _e_UpdateWorld); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateComplete", _e_UpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPostProcessVertices", _e_OnPostProcessVertices); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonDataAsset", _g_get_SkeletonDataAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshScale", _g_get_MeshScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshOffset", _g_get_MeshOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateMode", _g_get_UpdateMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SeparatorParts", _g_get_SeparatorParts); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomTextureOverride", _g_get_CustomTextureOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomMaterialOverride", _g_get_CustomMaterialOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OverrideTexture", _g_get_OverrideTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skeleton", _g_get_Skeleton); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonData", _g_get_SkeletonData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsValid", _g_get_IsValid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnimationState", _g_get_AnimationState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsPositionInheritanceFactor", _g_get_PhysicsPositionInheritanceFactor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsRotationInheritanceFactor", _g_get_PhysicsRotationInheritanceFactor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsMovementRelativeTo", _g_get_PhysicsMovementRelativeTo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshGenerator", _g_get_MeshGenerator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonClipping", _g_get_SkeletonClipping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MeshesMultipleCanvasRenderers", _g_get_MeshesMultipleCanvasRenderers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaterialsMultipleCanvasRenderers", _g_get_MaterialsMultipleCanvasRenderers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TexturesMultipleCanvasRenderers", _g_get_TexturesMultipleCanvasRenderers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateTiming", _g_get_UpdateTiming); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnscaledTime", _g_get_UnscaledTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeletonDataAsset", _g_get_skeletonDataAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "additiveMaterial", _g_get_additiveMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyMaterial", _g_get_multiplyMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "screenMaterial", _g_get_screenMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialSkinName", _g_get_initialSkinName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialFlipX", _g_get_initialFlipX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialFlipY", _g_get_initialFlipY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startingAnimation", _g_get_startingAnimation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startingLoop", _g_get_startingLoop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeScale", _g_get_timeScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeze", _g_get_freeze); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutScaleMode", _g_get_layoutScaleMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateWhenInvisible", _g_get_updateWhenInvisible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowMultipleCanvasRenderers", _g_get_allowMultipleCanvasRenderers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvasRenderers", _g_get_canvasRenderers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separatorSlots", _g_get_separatorSlots); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableSeparatorSlots", _g_get_enableSeparatorSlots); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateSeparatorPartLocation", _g_get_updateSeparatorPartLocation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateSeparatorPartScale", _g_get_updateSeparatorPartScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "disableMeshAssignmentOnOverride", _g_get_disableMeshAssignmentOnOverride); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateMode", _s_set_UpdateMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OverrideTexture", _s_set_OverrideTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Skeleton", _s_set_Skeleton); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsPositionInheritanceFactor", _s_set_PhysicsPositionInheritanceFactor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsRotationInheritanceFactor", _s_set_PhysicsRotationInheritanceFactor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsMovementRelativeTo", _s_set_PhysicsMovementRelativeTo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateTiming", _s_set_UpdateTiming); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UnscaledTime", _s_set_UnscaledTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonDataAsset", _s_set_skeletonDataAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "additiveMaterial", _s_set_additiveMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyMaterial", _s_set_multiplyMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "screenMaterial", _s_set_screenMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialSkinName", _s_set_initialSkinName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialFlipX", _s_set_initialFlipX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialFlipY", _s_set_initialFlipY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startingAnimation", _s_set_startingAnimation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startingLoop", _s_set_startingLoop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeScale", _s_set_timeScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "freeze", _s_set_freeze); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layoutScaleMode", _s_set_layoutScaleMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateWhenInvisible", _s_set_updateWhenInvisible); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowMultipleCanvasRenderers", _s_set_allowMultipleCanvasRenderers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "canvasRenderers", _s_set_canvasRenderers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableSeparatorSlots", _s_set_enableSeparatorSlots); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateSeparatorPartLocation", _s_set_updateSeparatorPartLocation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateSeparatorPartScale", _s_set_updateSeparatorPartScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "disableMeshAssignmentOnOverride", _s_set_disableMeshAssignmentOnOverride); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NewSkeletonGraphicGameObject", _m_NewSkeletonGraphicGameObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddSkeletonGraphicComponent", _m_AddSkeletonGraphicComponent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetRectTransformSize", _m_SetRectTransformSize_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SeparatorPartGameObjectName", Spine.Unity.SkeletonGraphic.SeparatorPartGameObjectName); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.SkeletonGraphic(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NewSkeletonGraphicGameObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - Spine.Unity.SkeletonDataAsset _skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 1, typeof(Spine.Unity.SkeletonDataAsset)); - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - - var gen_ret = Spine.Unity.SkeletonGraphic.NewSkeletonGraphicGameObject( _skeletonDataAsset, _parent, _material ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSkeletonGraphicComponent_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - Spine.Unity.SkeletonDataAsset _skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonDataAsset)); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - - var gen_ret = Spine.Unity.SkeletonGraphic.AddSkeletonGraphicComponent( _gameObject, _skeletonDataAsset, _material ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _update;translator.Get(L, 2, out _update); - - gen_to_be_invoked.Rebuild( _update ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Update( _deltaTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.Update!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyTransformMovementToPhysics(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ApplyTransformMovementToPhysics( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ApplyAnimation( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AfterAnimationApplied(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AfterAnimationApplied( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBecameVisible(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnBecameVisible( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBecameInvisible(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnBecameInvisible( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReapplySeparatorSlotNames(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ReapplySeparatorSlotNames( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetLastPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetLastPosition( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetLastRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetLastRotation( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetLastPositionAndRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetLastPositionAndRotation( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetLastMesh( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MatchRectTransformWithBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.MatchRectTransformWithBounds( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRectTransformSize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.UI.Graphic _target = (UnityEngine.UI.Graphic)translator.GetObject(L, 1, typeof(UnityEngine.UI.Graphic)); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - - Spine.Unity.SkeletonGraphic.SetRectTransformSize( _target, _size ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.RectTransform _targetRectTransform = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform)); - UnityEngine.Vector2 _size;translator.Get(L, 2, out _size); - - Spine.Unity.SkeletonGraphic.SetRectTransformSize( _targetRectTransform, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.SetRectTransformSize!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimRenderers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimRenderers( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Initialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - bool _overwrite = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Initialize( _overwrite ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PrepareInstructionsAndRenderers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _isInRebuild = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.PrepareInstructionsAndRenderers( _isInRebuild ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.PrepareInstructionsAndRenderers( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.PrepareInstructionsAndRenderers!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateMesh( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateMeshToInstructions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateMeshToInstructions( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasMultipleSubmeshInstructions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.HasMultipleSubmeshInstructions( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetScaledPivotOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _pivotOffsetScaled;translator.Get(L, 2, out _pivotOffsetScaled); - - gen_to_be_invoked.SetScaledPivotOffset( _pivotOffsetScaled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonDataAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonDataAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MeshScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.MeshScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MeshOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.MeshOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UpdateMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SeparatorParts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SeparatorParts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomTextureOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CustomTextureOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomMaterialOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CustomMaterialOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OverrideTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.OverrideTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Skeleton); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsValid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsValid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnimationState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.AnimationState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsPositionInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.PhysicsPositionInheritanceFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsRotationInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PhysicsRotationInheritanceFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsMovementRelativeTo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PhysicsMovementRelativeTo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MeshGenerator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MeshGenerator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonClipping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MeshesMultipleCanvasRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MeshesMultipleCanvasRenderers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MaterialsMultipleCanvasRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.MaterialsMultipleCanvasRenderers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TexturesMultipleCanvasRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.TexturesMultipleCanvasRenderers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UpdateTiming(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UpdateTiming); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.UnscaledTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeletonDataAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skeletonDataAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_additiveMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.additiveMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.multiplyMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_screenMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.screenMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initialSkinName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.initialSkinName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initialFlipX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.initialFlipX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initialFlipY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.initialFlipY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startingAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.startingAnimation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startingLoop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.startingLoop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.timeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_freeze(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.freeze); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutScaleMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, gen_to_be_invoked.layoutScaleMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateWhenInvisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.updateWhenInvisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowMultipleCanvasRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowMultipleCanvasRenderers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canvasRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.canvasRenderers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separatorSlots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.separatorSlots); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableSeparatorSlots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableSeparatorSlots); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateSeparatorPartLocation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.updateSeparatorPartLocation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateSeparatorPartScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.updateSeparatorPartScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_disableMeshAssignmentOnOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.disableMeshAssignmentOnOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.UpdateMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OverrideTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OverrideTexture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PhysicsPositionInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.PhysicsPositionInheritanceFactor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PhysicsRotationInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PhysicsRotationInheritanceFactor = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PhysicsMovementRelativeTo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PhysicsMovementRelativeTo = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UpdateTiming(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateTiming gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.UpdateTiming = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.UnscaledTime = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeletonDataAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonDataAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_additiveMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.additiveMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.multiplyMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_screenMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.screenMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initialSkinName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initialSkinName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initialFlipX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initialFlipX = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initialFlipY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initialFlipY = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startingAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startingAnimation = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startingLoop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startingLoop = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.timeScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_freeze(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.freeze = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layoutScaleMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonGraphic.LayoutMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.layoutScaleMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateWhenInvisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.updateWhenInvisible = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowMultipleCanvasRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowMultipleCanvasRenderers = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_canvasRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.canvasRenderers = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableSeparatorSlots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableSeparatorSlots = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateSeparatorPartLocation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.updateSeparatorPartLocation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateSeparatorPartScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.updateSeparatorPartScale = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_disableMeshAssignmentOnOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.disableMeshAssignmentOnOverride = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_AssignMeshOverrideSingleRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.AssignMeshOverrideSingleRenderer += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.AssignMeshOverrideSingleRenderer -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.AssignMeshOverrideSingleRenderer!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_AssignMeshOverrideMultipleRenderers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.AssignMeshOverrideMultipleRenderers += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.AssignMeshOverrideMultipleRenderers -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.AssignMeshOverrideMultipleRenderers!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRebuild(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRebuild += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRebuild -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.OnRebuild!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInstructionsPrepared(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonGraphic.InstructionDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonGraphic.InstructionDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInstructionsPrepared += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInstructionsPrepared -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.OnInstructionsPrepared!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnMeshAndMaterialsUpdated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnMeshAndMaterialsUpdated += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnMeshAndMaterialsUpdated -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.OnMeshAndMaterialsUpdated!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAnimationRebuild(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.ISkeletonAnimationDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.ISkeletonAnimationDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAnimationRebuild += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAnimationRebuild -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.OnAnimationRebuild!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_BeforeApply(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.BeforeApply += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.BeforeApply -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.BeforeApply!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_UpdateLocal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.UpdateLocal += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.UpdateLocal -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.UpdateLocal!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_UpdateWorld(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.UpdateWorld += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.UpdateWorld -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.UpdateWorld!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_UpdateComplete(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateBonesDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.UpdateBonesDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.UpdateComplete += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.UpdateComplete -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.UpdateComplete!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnPostProcessVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - Spine.Unity.MeshGeneratorDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.MeshGeneratorDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnPostProcessVertices += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnPostProcessVertices -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonGraphic.OnPostProcessVertices!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs deleted file mode 100644 index 0c5087d43..000000000 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonRendererWrap.cs +++ /dev/null @@ -1,1566 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnitySkeletonRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.SkeletonRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 30, 24); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPosition", _m_ResetLastPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastRotation", _m_ResetLastRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLastPositionAndRotation", _m_ResetLastPositionAndRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshSettings", _m_SetMeshSettings); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Awake", _m_Awake); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearState", _m_ClearState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnsureMeshGeneratorCapacity", _m_EnsureMeshGeneratorCapacity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyTransformMovementToPhysics", _m_ApplyTransformMovementToPhysics); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdate", _m_LateUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LateUpdateMesh", _m_LateUpdateMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameVisible", _m_OnBecameVisible); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBecameInvisible", _m_OnBecameInvisible); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAndApplySeparatorSlots", _m_FindAndApplySeparatorSlots); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReapplySeparatorSlotNames", _m_ReapplySeparatorSlotNames); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GenerateMeshOverride", _e_GenerateMeshOverride); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPostProcessVertices", _e_OnPostProcessVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRebuild", _e_OnRebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMeshAndMaterialsUpdated", _e_OnMeshAndMaterialsUpdated); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UpdateMode", _g_get_UpdateMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomMaterialOverride", _g_get_CustomMaterialOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CustomSlotMaterials", _g_get_CustomSlotMaterials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonClipping", _g_get_SkeletonClipping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Skeleton", _g_get_Skeleton); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsPositionInheritanceFactor", _g_get_PhysicsPositionInheritanceFactor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsRotationInheritanceFactor", _g_get_PhysicsRotationInheritanceFactor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PhysicsMovementRelativeTo", _g_get_PhysicsMovementRelativeTo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SkeletonDataAsset", _g_get_SkeletonDataAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeletonDataAsset", _g_get_skeletonDataAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialSkinName", _g_get_initialSkinName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialFlipX", _g_get_initialFlipX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialFlipY", _g_get_initialFlipY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateWhenInvisible", _g_get_updateWhenInvisible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separatorSlots", _g_get_separatorSlots); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zSpacing", _g_get_zSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useClipping", _g_get_useClipping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "immutableTriangles", _g_get_immutableTriangles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pmaVertexColors", _g_get_pmaVertexColors); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clearStateOnDisable", _g_get_clearStateOnDisable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tintBlack", _g_get_tintBlack); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "singleSubmesh", _g_get_singleSubmesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fixDrawOrder", _g_get_fixDrawOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "addNormals", _g_get_addNormals); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "calculateTangents", _g_get_calculateTangents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskInteraction", _g_get_maskInteraction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskMaterials", _g_get_maskMaterials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "disableRenderingOnOverride", _g_get_disableRenderingOnOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "valid", _g_get_valid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skeleton", _g_get_skeleton); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "UpdateMode", _s_set_UpdateMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsPositionInheritanceFactor", _s_set_PhysicsPositionInheritanceFactor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsRotationInheritanceFactor", _s_set_PhysicsRotationInheritanceFactor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "PhysicsMovementRelativeTo", _s_set_PhysicsMovementRelativeTo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeletonDataAsset", _s_set_skeletonDataAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialSkinName", _s_set_initialSkinName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialFlipX", _s_set_initialFlipX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialFlipY", _s_set_initialFlipY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateWhenInvisible", _s_set_updateWhenInvisible); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zSpacing", _s_set_zSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useClipping", _s_set_useClipping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "immutableTriangles", _s_set_immutableTriangles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pmaVertexColors", _s_set_pmaVertexColors); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clearStateOnDisable", _s_set_clearStateOnDisable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tintBlack", _s_set_tintBlack); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "singleSubmesh", _s_set_singleSubmesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fixDrawOrder", _s_set_fixDrawOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "addNormals", _s_set_addNormals); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "calculateTangents", _s_set_calculateTangents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskInteraction", _s_set_maskInteraction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskMaterials", _s_set_maskMaterials); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "disableRenderingOnOverride", _s_set_disableRenderingOnOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "valid", _s_set_valid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skeleton", _s_set_skeleton); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "STENCIL_COMP_PARAM_ID", Spine.Unity.SkeletonRenderer.STENCIL_COMP_PARAM_ID); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "STENCIL_COMP_MASKINTERACTION_NONE", Spine.Unity.SkeletonRenderer.STENCIL_COMP_MASKINTERACTION_NONE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "STENCIL_COMP_MASKINTERACTION_VISIBLE_INSIDE", Spine.Unity.SkeletonRenderer.STENCIL_COMP_MASKINTERACTION_VISIBLE_INSIDE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "STENCIL_COMP_MASKINTERACTION_VISIBLE_OUTSIDE", Spine.Unity.SkeletonRenderer.STENCIL_COMP_MASKINTERACTION_VISIBLE_OUTSIDE); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SUBMESH_DUMMY_PARAM_ID", Spine.Unity.SkeletonRenderer.SUBMESH_DUMMY_PARAM_ID); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.SkeletonRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetLastPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetLastPosition( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetLastRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetLastRotation( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetLastPositionAndRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetLastPositionAndRotation( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshSettings(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - Spine.Unity.MeshGenerator.Settings _settings;translator.Get(L, 2, out _settings); - - gen_to_be_invoked.SetMeshSettings( _settings ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Awake(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Awake( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearState( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnsureMeshGeneratorCapacity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _minimumVertexCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.EnsureMeshGeneratorCapacity( _minimumVertexCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Initialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _overwrite = LuaAPI.lua_toboolean(L, 2); - bool _quiet = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Initialize( _overwrite, _quiet ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _overwrite = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Initialize( _overwrite ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer.Initialize!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyTransformMovementToPhysics(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ApplyTransformMovementToPhysics( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LateUpdateMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LateUpdateMesh( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBecameVisible(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnBecameVisible( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBecameInvisible(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnBecameInvisible( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAndApplySeparatorSlots(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - string _startsWith = LuaAPI.lua_tostring(L, 2); - bool _clearExistingSeparators = LuaAPI.lua_toboolean(L, 3); - bool _updateStringArray = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.FindAndApplySeparatorSlots( _startsWith, _clearExistingSeparators, _updateStringArray ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _startsWith = LuaAPI.lua_tostring(L, 2); - bool _clearExistingSeparators = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.FindAndApplySeparatorSlots( _startsWith, _clearExistingSeparators ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _startsWith = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.FindAndApplySeparatorSlots( _startsWith ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - System.Func _slotNamePredicate = translator.GetDelegate>(L, 2); - bool _clearExistingSeparators = LuaAPI.lua_toboolean(L, 3); - bool _updateStringArray = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.FindAndApplySeparatorSlots( _slotNamePredicate, _clearExistingSeparators, _updateStringArray ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Func _slotNamePredicate = translator.GetDelegate>(L, 2); - bool _clearExistingSeparators = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.FindAndApplySeparatorSlots( _slotNamePredicate, _clearExistingSeparators ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Func _slotNamePredicate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.FindAndApplySeparatorSlots( _slotNamePredicate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer.FindAndApplySeparatorSlots!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReapplySeparatorSlotNames(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ReapplySeparatorSlotNames( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.UpdateMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomMaterialOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CustomMaterialOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CustomSlotMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.CustomSlotMaterials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonClipping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Skeleton); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsPositionInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.PhysicsPositionInheritanceFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsRotationInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.PhysicsRotationInheritanceFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PhysicsMovementRelativeTo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.PhysicsMovementRelativeTo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SkeletonDataAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.SkeletonDataAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeletonDataAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skeletonDataAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initialSkinName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.initialSkinName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initialFlipX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.initialFlipX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initialFlipY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.initialFlipY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateWhenInvisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.updateWhenInvisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separatorSlots(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.separatorSlots); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useClipping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_immutableTriangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.immutableTriangles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pmaVertexColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.pmaVertexColors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clearStateOnDisable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.clearStateOnDisable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tintBlack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.tintBlack); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_singleSubmesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.singleSubmesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fixDrawOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.fixDrawOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_addNormals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.addNormals); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_calculateTangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.calculateTangents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.maskInteraction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.maskMaterials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_disableRenderingOnOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.disableRenderingOnOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_valid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.valid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skeleton); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_UpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.UpdateMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PhysicsPositionInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.PhysicsPositionInheritanceFactor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PhysicsRotationInheritanceFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PhysicsRotationInheritanceFactor = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_PhysicsMovementRelativeTo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.PhysicsMovementRelativeTo = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeletonDataAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skeletonDataAsset = (Spine.Unity.SkeletonDataAsset)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonDataAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initialSkinName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initialSkinName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initialFlipX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initialFlipX = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initialFlipY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initialFlipY = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateWhenInvisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - Spine.Unity.UpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.updateWhenInvisible = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.zSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useClipping = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_immutableTriangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.immutableTriangles = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pmaVertexColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pmaVertexColors = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clearStateOnDisable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clearStateOnDisable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tintBlack(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tintBlack = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_singleSubmesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.singleSubmesh = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fixDrawOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fixDrawOrder = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_addNormals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.addNormals = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_calculateTangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.calculateTangents = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteMaskInteraction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maskInteraction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maskMaterials = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.GetObject(L, 2, typeof(Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_disableRenderingOnOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.disableRenderingOnOverride = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_valid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.valid = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skeleton(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skeleton = (Spine.Skeleton)translator.GetObject(L, 2, typeof(Spine.Skeleton)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_GenerateMeshOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonRenderer.InstructionDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonRenderer.InstructionDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.GenerateMeshOverride += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.GenerateMeshOverride -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer.GenerateMeshOverride!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnPostProcessVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - Spine.Unity.MeshGeneratorDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.MeshGeneratorDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnPostProcessVertices += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnPostProcessVertices -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer.OnPostProcessVertices!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRebuild(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRebuild += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRebuild -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer.OnRebuild!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnMeshAndMaterialsUpdated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - Spine.Unity.SkeletonRenderer gen_to_be_invoked = (Spine.Unity.SkeletonRenderer)translator.FastGetCSObj(L, 1); - Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnMeshAndMaterialsUpdated += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnMeshAndMaterialsUpdated -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer.OnMeshAndMaterialsUpdated!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/Spine_Unity_SkeletonRenderer_SpriteMaskInteractionMaterialsWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonRenderer_SpriteMaskInteractionMaterialsWrap.cs deleted file mode 100644 index e8f3fb5fd..000000000 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonRenderer_SpriteMaskInteractionMaterialsWrap.cs +++ /dev/null @@ -1,192 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SpineUnitySkeletonRendererSpriteMaskInteractionMaterialsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnyMaterialCreated", _g_get_AnyMaterialCreated); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialsMaskDisabled", _g_get_materialsMaskDisabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialsInsideMask", _g_get_materialsInsideMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialsOutsideMask", _g_get_materialsOutsideMask); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialsMaskDisabled", _s_set_materialsMaskDisabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialsInsideMask", _s_set_materialsInsideMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialsOutsideMask", _s_set_materialsOutsideMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AnyMaterialCreated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials gen_to_be_invoked = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AnyMaterialCreated); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialsMaskDisabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials gen_to_be_invoked = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.materialsMaskDisabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialsInsideMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials gen_to_be_invoked = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.materialsInsideMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialsOutsideMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials gen_to_be_invoked = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.materialsOutsideMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialsMaskDisabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials gen_to_be_invoked = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.materialsMaskDisabled = (UnityEngine.Material[])translator.GetObject(L, 2, typeof(UnityEngine.Material[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialsInsideMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials gen_to_be_invoked = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.materialsInsideMask = (UnityEngine.Material[])translator.GetObject(L, 2, typeof(UnityEngine.Material[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialsOutsideMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials gen_to_be_invoked = (Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.materialsOutsideMask = (UnityEngine.Material[])translator.GetObject(L, 2, typeof(UnityEngine.Material[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/StorageRequestWrap.cs b/Assets/XLua/Gen/StorageRequestWrap.cs deleted file mode 100644 index 50a835d6d..000000000 --- a/Assets/XLua/Gen/StorageRequestWrap.cs +++ /dev/null @@ -1,306 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class StorageRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(StorageRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Write", _m_Write); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Read", _m_Read); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Delete", _m_Delete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Batch", _m_Batch); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new StorageRequest(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to StorageRequest constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Write(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - StorageRequest gen_to_be_invoked = (StorageRequest)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.Write( _key, _body ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Write( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to StorageRequest.Write!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Read(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - StorageRequest gen_to_be_invoked = (StorageRequest)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Read( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - StorageRequest gen_to_be_invoked = (StorageRequest)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.Update( _key, _body ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Update( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to StorageRequest.Update!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Delete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - StorageRequest gen_to_be_invoked = (StorageRequest)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Delete( _key ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _key = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.Delete( _key, _complete ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 4)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _deleteKeys = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.Delete( _key, _deleteKeys, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to StorageRequest.Delete!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Batch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - StorageRequest gen_to_be_invoked = (StorageRequest)translator.FastGetCSObj(L, 1); - - - - { - string _body = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.Batch( _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, StorageRequest.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Collections_Generic_List_1_BF_BFFinger_Wrap.cs b/Assets/XLua/Gen/System_Collections_Generic_List_1_BF_BFFinger_Wrap.cs deleted file mode 100644 index 47001060c..000000000 --- a/Assets/XLua/Gen/System_Collections_Generic_List_1_BF_BFFinger_Wrap.cs +++ /dev/null @@ -1,1279 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemCollectionsGenericList_1_BFBFFinger_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Collections.Generic.List); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRange", _m_AddRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsReadOnly", _m_AsReadOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BinarySearch", _m_BinarySearch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Exists", _m_Exists); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAll", _m_FindAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIndex", _m_FindIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLast", _m_FindLast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLastIndex", _m_FindLastIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForEach", _m_ForEach); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IndexOf", _m_IndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertRange", _m_InsertRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LastIndexOf", _m_LastIndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAll", _m_RemoveAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAt", _m_RemoveAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveRange", _m_RemoveRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reverse", _m_Reverse); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sort", _m_Sort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrueForAll", _m_TrueForAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Capacity", _s_set_Capacity); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Collections.Generic.List(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _capacity = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new System.Collections.Generic.List(_capacity); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = new System.Collections.Generic.List(_collection); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - - gen_to_be_invoked.Add( _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.AddRange( _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsReadOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsReadOnly( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BinarySearch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 4, typeof(BF.BFFinger)); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.BinarySearch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - - var gen_ret = gen_to_be_invoked.Contains( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.BFFinger[] _array = (BF.BFFinger[])translator.GetObject(L, 2, typeof(BF.BFFinger[])); - - gen_to_be_invoked.CopyTo( _array ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - BF.BFFinger[] _array = (BF.BFFinger[])translator.GetObject(L, 2, typeof(BF.BFFinger[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.CopyTo( _array, _arrayIndex ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - BF.BFFinger[] _array = (BF.BFFinger[])translator.GetObject(L, 3, typeof(BF.BFFinger[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyTo( _index, _array, _arrayIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.CopyTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Exists( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindAll( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLast( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLastIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindLastIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForEach(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ForEach( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetRange( _index, _count ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - - var gen_ret = gen_to_be_invoked.IndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.IndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger)); - - gen_to_be_invoked.Insert( _index, _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 3, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.InsertRange( _index, _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LastIndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.LastIndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - BF.BFFinger _item = (BF.BFFinger)translator.GetObject(L, 2, typeof(BF.BFFinger)); - - var gen_ret = gen_to_be_invoked.Remove( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveAll( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveAt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveRange( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reverse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reverse( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Reverse( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Reverse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Sort( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _comparer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Comparison _comparison = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.Sort( _comparison ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _index, _count, _comparer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Sort!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToArray( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrueForAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.TrueForAll( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Capacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Collections_Generic_List_1_System_String__Wrap.cs b/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Collections_Generic_List_1_System_String__Wrap.cs deleted file mode 100644 index ed6e262bb..000000000 --- a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Collections_Generic_List_1_System_String__Wrap.cs +++ /dev/null @@ -1,1279 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemCollectionsGenericList_1_SystemCollectionsGenericList_1_SystemString__Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Collections.Generic.List>); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRange", _m_AddRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsReadOnly", _m_AsReadOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BinarySearch", _m_BinarySearch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Exists", _m_Exists); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAll", _m_FindAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIndex", _m_FindIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLast", _m_FindLast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLastIndex", _m_FindLastIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForEach", _m_ForEach); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IndexOf", _m_IndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertRange", _m_InsertRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LastIndexOf", _m_LastIndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAll", _m_RemoveAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAt", _m_RemoveAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveRange", _m_RemoveRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reverse", _m_Reverse); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sort", _m_Sort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrueForAll", _m_TrueForAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Capacity", _s_set_Capacity); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Collections.Generic.List>(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _capacity = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new System.Collections.Generic.List>(_capacity); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>>(L, 2)) - { - System.Collections.Generic.IEnumerable> _collection = (System.Collections.Generic.IEnumerable>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable>)); - - var gen_ret = new System.Collections.Generic.List>(_collection); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List> constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable>>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable>>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable>(L, 3)) - { - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.Add( _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IEnumerable> _collection = (System.Collections.Generic.IEnumerable>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable>)); - - gen_to_be_invoked.AddRange( _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsReadOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsReadOnly( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BinarySearch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable>>(L, 3)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.IComparer> _comparer = (System.Collections.Generic.IComparer>)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer>)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable>>(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - System.Collections.Generic.IComparer> _comparer = (System.Collections.Generic.IComparer>)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer>)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.BinarySearch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.Contains( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable[]>(L, 2)) - { - System.Collections.Generic.List[] _array = (System.Collections.Generic.List[])translator.GetObject(L, 2, typeof(System.Collections.Generic.List[])); - - gen_to_be_invoked.CopyTo( _array ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List[] _array = (System.Collections.Generic.List[])translator.GetObject(L, 2, typeof(System.Collections.Generic.List[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.CopyTo( _array, _arrayIndex ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable[]>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List[] _array = (System.Collections.Generic.List[])translator.GetObject(L, 3, typeof(System.Collections.Generic.List[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyTo( _index, _array, _arrayIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.CopyTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.Exists( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.FindAll( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>>(L, 2)) - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.FindIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate> _match = translator.GetDelegate>>(L, 3); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate> _match = translator.GetDelegate>>(L, 4); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.FindIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLast( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLastIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>>(L, 2)) - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate> _match = translator.GetDelegate>>(L, 3); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate> _match = translator.GetDelegate>>(L, 4); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.FindLastIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForEach(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Action> _action = translator.GetDelegate>>(L, 2); - - gen_to_be_invoked.ForEach( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetRange( _index, _count ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.IndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.IndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.Insert( _index, _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IEnumerable> _collection = (System.Collections.Generic.IEnumerable>)translator.GetObject(L, 3, typeof(System.Collections.Generic.IEnumerable>)); - - gen_to_be_invoked.InsertRange( _index, _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LastIndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.LastIndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _item = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.Remove( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveAll( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveAt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveRange( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reverse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reverse( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Reverse( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.Reverse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Sort( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>>(L, 2)) - { - System.Collections.Generic.IComparer> _comparer = (System.Collections.Generic.IComparer>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer>)); - - gen_to_be_invoked.Sort( _comparer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>>(L, 2)) - { - System.Comparison> _comparison = translator.GetDelegate>>(L, 2); - - gen_to_be_invoked.Sort( _comparison ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>>(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.IComparer> _comparer = (System.Collections.Generic.IComparer>)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer>)); - - gen_to_be_invoked.Sort( _index, _count, _comparer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List>.Sort!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToArray( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrueForAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate> _match = translator.GetDelegate>>(L, 2); - - var gen_ret = gen_to_be_invoked.TrueForAll( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List> gen_to_be_invoked = (System.Collections.Generic.List>)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Capacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Int32_Wrap.cs b/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Int32_Wrap.cs deleted file mode 100644 index 76005e5f5..000000000 --- a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Int32_Wrap.cs +++ /dev/null @@ -1,1279 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemCollectionsGenericList_1_SystemInt32_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Collections.Generic.List); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRange", _m_AddRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsReadOnly", _m_AsReadOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BinarySearch", _m_BinarySearch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Exists", _m_Exists); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAll", _m_FindAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIndex", _m_FindIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLast", _m_FindLast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLastIndex", _m_FindLastIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForEach", _m_ForEach); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IndexOf", _m_IndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertRange", _m_InsertRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LastIndexOf", _m_LastIndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAll", _m_RemoveAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAt", _m_RemoveAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveRange", _m_RemoveRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reverse", _m_Reverse); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sort", _m_Sort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrueForAll", _m_TrueForAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Capacity", _s_set_Capacity); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Collections.Generic.List(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _capacity = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new System.Collections.Generic.List(_capacity); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = new System.Collections.Generic.List(_collection); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = LuaAPI.xlua_tointeger(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _item = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Add( _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.AddRange( _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsReadOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsReadOnly( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BinarySearch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable>(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - int _item = LuaAPI.xlua_tointeger(L, 4); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.BinarySearch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _item = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.Contains( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - int[] _array = (int[])translator.GetObject(L, 2, typeof(int[])); - - gen_to_be_invoked.CopyTo( _array ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int[] _array = (int[])translator.GetObject(L, 2, typeof(int[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.CopyTo( _array, _arrayIndex ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int[] _array = (int[])translator.GetObject(L, 3, typeof(int[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyTo( _index, _array, _arrayIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.CopyTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Exists( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindAll( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLast( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLastIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindLastIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForEach(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ForEach( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetRange( _index, _count ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.IndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _item = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Insert( _index, _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 3, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.InsertRange( _index, _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LastIndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _item = LuaAPI.xlua_tointeger(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.LastIndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _item = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveAll( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveAt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveRange( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reverse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reverse( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Reverse( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Reverse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Sort( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _comparer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Comparison _comparison = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.Sort( _comparison ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _index, _count, _comparer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Sort!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToArray( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrueForAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.TrueForAll( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Capacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Single_Wrap.cs b/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Single_Wrap.cs deleted file mode 100644 index 5af45d8e0..000000000 --- a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_Single_Wrap.cs +++ /dev/null @@ -1,1279 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemCollectionsGenericList_1_SystemSingle_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Collections.Generic.List); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRange", _m_AddRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsReadOnly", _m_AsReadOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BinarySearch", _m_BinarySearch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Exists", _m_Exists); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAll", _m_FindAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIndex", _m_FindIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLast", _m_FindLast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLastIndex", _m_FindLastIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForEach", _m_ForEach); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IndexOf", _m_IndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertRange", _m_InsertRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LastIndexOf", _m_LastIndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAll", _m_RemoveAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAt", _m_RemoveAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveRange", _m_RemoveRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reverse", _m_Reverse); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sort", _m_Sort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrueForAll", _m_TrueForAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Capacity", _s_set_Capacity); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Collections.Generic.List(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _capacity = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new System.Collections.Generic.List(_capacity); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = new System.Collections.Generic.List(_collection); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Add( _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.AddRange( _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsReadOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsReadOnly( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BinarySearch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable>(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - float _item = (float)LuaAPI.lua_tonumber(L, 4); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.BinarySearch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Contains( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - float[] _array = (float[])translator.GetObject(L, 2, typeof(float[])); - - gen_to_be_invoked.CopyTo( _array ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float[] _array = (float[])translator.GetObject(L, 2, typeof(float[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.CopyTo( _array, _arrayIndex ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float[] _array = (float[])translator.GetObject(L, 3, typeof(float[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyTo( _index, _array, _arrayIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.CopyTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Exists( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _match ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindAll( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLast( _match ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLastIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindLastIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForEach(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ForEach( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetRange( _index, _count ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.IndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.IndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _item = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Insert( _index, _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 3, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.InsertRange( _index, _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LastIndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.LastIndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - float _item = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveAll( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveAt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveRange( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reverse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reverse( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Reverse( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Reverse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Sort( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _comparer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Comparison _comparison = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.Sort( _comparison ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _index, _count, _comparer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Sort!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToArray( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrueForAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.TrueForAll( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Capacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_String_Wrap.cs b/Assets/XLua/Gen/System_Collections_Generic_List_1_System_String_Wrap.cs deleted file mode 100644 index 0cead63c9..000000000 --- a/Assets/XLua/Gen/System_Collections_Generic_List_1_System_String_Wrap.cs +++ /dev/null @@ -1,1279 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemCollectionsGenericList_1_SystemString_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Collections.Generic.List); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRange", _m_AddRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsReadOnly", _m_AsReadOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BinarySearch", _m_BinarySearch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Exists", _m_Exists); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAll", _m_FindAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIndex", _m_FindIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLast", _m_FindLast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLastIndex", _m_FindLastIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForEach", _m_ForEach); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IndexOf", _m_IndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertRange", _m_InsertRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LastIndexOf", _m_LastIndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAll", _m_RemoveAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAt", _m_RemoveAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveRange", _m_RemoveRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reverse", _m_Reverse); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sort", _m_Sort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrueForAll", _m_TrueForAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Capacity", _s_set_Capacity); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Collections.Generic.List(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _capacity = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new System.Collections.Generic.List(_capacity); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = new System.Collections.Generic.List(_collection); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushstring(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = LuaAPI.lua_tostring(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - string _item = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Add( _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.AddRange( _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsReadOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsReadOnly( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BinarySearch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _item = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _item = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - string _item = LuaAPI.lua_tostring(L, 4); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.BinarySearch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - string _item = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Contains( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - string[] _array = (string[])translator.GetObject(L, 2, typeof(string[])); - - gen_to_be_invoked.CopyTo( _array ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string[] _array = (string[])translator.GetObject(L, 2, typeof(string[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.CopyTo( _array, _arrayIndex ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - string[] _array = (string[])translator.GetObject(L, 3, typeof(string[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyTo( _index, _array, _arrayIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.CopyTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Exists( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _match ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindAll( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLast( _match ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLastIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindLastIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForEach(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ForEach( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetRange( _index, _count ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _item = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _item = LuaAPI.lua_tostring(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _item = LuaAPI.lua_tostring(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.IndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - string _item = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.Insert( _index, _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 3, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.InsertRange( _index, _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LastIndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _item = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _item = LuaAPI.lua_tostring(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _item = LuaAPI.lua_tostring(L, 2); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.LastIndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - string _item = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveAll( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveAt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveRange( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reverse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reverse( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Reverse( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Reverse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Sort( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _comparer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Comparison _comparison = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.Sort( _comparison ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _index, _count, _comparer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Sort!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToArray( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrueForAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.TrueForAll( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Capacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Collections_Generic_List_1_TMPro_TMP_FontAsset_Wrap.cs b/Assets/XLua/Gen/System_Collections_Generic_List_1_TMPro_TMP_FontAsset_Wrap.cs deleted file mode 100644 index 02406a6f7..000000000 --- a/Assets/XLua/Gen/System_Collections_Generic_List_1_TMPro_TMP_FontAsset_Wrap.cs +++ /dev/null @@ -1,1279 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemCollectionsGenericList_1_TMProTMP_FontAsset_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Collections.Generic.List); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRange", _m_AddRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsReadOnly", _m_AsReadOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BinarySearch", _m_BinarySearch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Exists", _m_Exists); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAll", _m_FindAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIndex", _m_FindIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLast", _m_FindLast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLastIndex", _m_FindLastIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForEach", _m_ForEach); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IndexOf", _m_IndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertRange", _m_InsertRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LastIndexOf", _m_LastIndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAll", _m_RemoveAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAt", _m_RemoveAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveRange", _m_RemoveRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reverse", _m_Reverse); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sort", _m_Sort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrueForAll", _m_TrueForAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Capacity", _s_set_Capacity); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Collections.Generic.List(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _capacity = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new System.Collections.Generic.List(_capacity); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = new System.Collections.Generic.List(_collection); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (TMPro.TMP_FontAsset)translator.GetObject(L, 3, typeof(TMPro.TMP_FontAsset)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - gen_to_be_invoked.Add( _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.AddRange( _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsReadOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsReadOnly( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BinarySearch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 4, typeof(TMPro.TMP_FontAsset)); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.BinarySearch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = gen_to_be_invoked.Contains( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_FontAsset[] _array = (TMPro.TMP_FontAsset[])translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset[])); - - gen_to_be_invoked.CopyTo( _array ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - TMPro.TMP_FontAsset[] _array = (TMPro.TMP_FontAsset[])translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.CopyTo( _array, _arrayIndex ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - TMPro.TMP_FontAsset[] _array = (TMPro.TMP_FontAsset[])translator.GetObject(L, 3, typeof(TMPro.TMP_FontAsset[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyTo( _index, _array, _arrayIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.CopyTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Exists( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindAll( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLast( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLastIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindLastIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForEach(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ForEach( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetRange( _index, _count ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = gen_to_be_invoked.IndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.IndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 3, typeof(TMPro.TMP_FontAsset)); - - gen_to_be_invoked.Insert( _index, _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 3, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.InsertRange( _index, _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LastIndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.LastIndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - TMPro.TMP_FontAsset _item = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = gen_to_be_invoked.Remove( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveAll( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveAt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveRange( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reverse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reverse( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Reverse( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Reverse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Sort( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _comparer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Comparison _comparison = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.Sort( _comparison ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _index, _count, _comparer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Sort!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToArray( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrueForAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.TrueForAll( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Capacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Collections_Generic_List_1_UnityEngine_Camera_Wrap.cs b/Assets/XLua/Gen/System_Collections_Generic_List_1_UnityEngine_Camera_Wrap.cs deleted file mode 100644 index f52a82040..000000000 --- a/Assets/XLua/Gen/System_Collections_Generic_List_1_UnityEngine_Camera_Wrap.cs +++ /dev/null @@ -1,1279 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemCollectionsGenericList_1_UnityEngineCamera_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Collections.Generic.List); - Utils.BeginObjectRegister(type, L, translator, 0, 29, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRange", _m_AddRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AsReadOnly", _m_AsReadOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BinarySearch", _m_BinarySearch); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Exists", _m_Exists); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAll", _m_FindAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindIndex", _m_FindIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLast", _m_FindLast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindLastIndex", _m_FindLastIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForEach", _m_ForEach); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRange", _m_GetRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IndexOf", _m_IndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Insert", _m_Insert); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InsertRange", _m_InsertRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LastIndexOf", _m_LastIndexOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAll", _m_RemoveAll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAt", _m_RemoveAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveRange", _m_RemoveRange); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reverse", _m_Reverse); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sort", _m_Sort); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrimExcess", _m_TrimExcess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TrueForAll", _m_TrueForAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Capacity", _s_set_Capacity); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Collections.Generic.List(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _capacity = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new System.Collections.Generic.List(_capacity); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = new System.Collections.Generic.List(_collection); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable>(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.Add( _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.AddRange( _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AsReadOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AsReadOnly( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BinarySearch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 3, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera)); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 5, typeof(System.Collections.Generic.IComparer)); - - var gen_ret = gen_to_be_invoked.BinarySearch( _index, _count, _item, _comparer ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.BinarySearch!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.Contains( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Camera[] _array = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - - gen_to_be_invoked.CopyTo( _array ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Camera[] _array = (UnityEngine.Camera[])translator.GetObject(L, 2, typeof(UnityEngine.Camera[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.CopyTo( _array, _arrayIndex ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Camera[] _array = (UnityEngine.Camera[])translator.GetObject(L, 3, typeof(UnityEngine.Camera[])); - int _arrayIndex = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyTo( _index, _array, _arrayIndex, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.CopyTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Exists( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindAll( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLast( _match ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindLastIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - System.Predicate _match = translator.GetDelegate>(L, 3); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _startIndex = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Predicate _match = translator.GetDelegate>(L, 4); - - var gen_ret = gen_to_be_invoked.FindLastIndex( _startIndex, _count, _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.FindLastIndex!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForEach(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Action _action = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.ForEach( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetRange( _index, _count ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.IndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.IndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.IndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Insert(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.Insert( _index, _item ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InsertRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.IEnumerable _collection = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 3, typeof(System.Collections.Generic.IEnumerable)); - - gen_to_be_invoked.InsertRange( _index, _collection ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LastIndexOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - int _index = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.LastIndexOf( _item, _index, _count ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.LastIndexOf!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera _item = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.Remove( _item ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.RemoveAll( _match ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveAt( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveRange(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RemoveRange( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reverse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Reverse( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Reverse( _index, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Reverse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sort(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Sort( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 2, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _comparer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Comparison _comparison = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.Sort( _comparison ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - int _count = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.IComparer _comparer = (System.Collections.Generic.IComparer)translator.GetObject(L, 4, typeof(System.Collections.Generic.IComparer)); - - gen_to_be_invoked.Sort( _index, _count, _comparer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Collections.Generic.List.Sort!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToArray( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrimExcess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.TrimExcess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TrueForAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - - - - { - System.Predicate _match = translator.GetDelegate>(L, 2); - - var gen_ret = gen_to_be_invoked.TrueForAll( _match ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Capacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Collections.Generic.List gen_to_be_invoked = (System.Collections.Generic.List)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Capacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/System_ComponentModel_AsyncCompletedEventArgsWrap.cs b/Assets/XLua/Gen/System_ComponentModel_AsyncCompletedEventArgsWrap.cs deleted file mode 100644 index ab2401622..000000000 --- a/Assets/XLua/Gen/System_ComponentModel_AsyncCompletedEventArgsWrap.cs +++ /dev/null @@ -1,132 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemComponentModelAsyncCompletedEventArgsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.ComponentModel.AsyncCompletedEventArgs); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Cancelled", _g_get_Cancelled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Error", _g_get_Error); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UserState", _g_get_UserState); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - System.Exception _error = (System.Exception)translator.GetObject(L, 2, typeof(System.Exception)); - bool _cancelled = LuaAPI.lua_toboolean(L, 3); - object _userState = translator.GetObject(L, 4, typeof(object)); - - var gen_ret = new System.ComponentModel.AsyncCompletedEventArgs(_error, _cancelled, _userState); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.ComponentModel.AsyncCompletedEventArgs constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Cancelled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.ComponentModel.AsyncCompletedEventArgs gen_to_be_invoked = (System.ComponentModel.AsyncCompletedEventArgs)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Cancelled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Error(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.ComponentModel.AsyncCompletedEventArgs gen_to_be_invoked = (System.ComponentModel.AsyncCompletedEventArgs)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Error); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UserState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.ComponentModel.AsyncCompletedEventArgs gen_to_be_invoked = (System.ComponentModel.AsyncCompletedEventArgs)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.UserState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_ComponentModel_ComponentWrap.cs b/Assets/XLua/Gen/System_ComponentModel_ComponentWrap.cs deleted file mode 100644 index 8fe9f261c..000000000 --- a/Assets/XLua/Gen/System_ComponentModel_ComponentWrap.cs +++ /dev/null @@ -1,222 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemComponentModelComponentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.ComponentModel.Component); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Disposed", _e_Disposed); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Site", _g_get_Site); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Container", _g_get_Container); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Site", _s_set_Site); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.ComponentModel.Component(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.ComponentModel.Component constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dispose(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.ComponentModel.Component gen_to_be_invoked = (System.ComponentModel.Component)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Dispose( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.ComponentModel.Component gen_to_be_invoked = (System.ComponentModel.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Site(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.ComponentModel.Component gen_to_be_invoked = (System.ComponentModel.Component)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Site); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Container(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.ComponentModel.Component gen_to_be_invoked = (System.ComponentModel.Component)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Container); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Site(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.ComponentModel.Component gen_to_be_invoked = (System.ComponentModel.Component)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Site = (System.ComponentModel.ISite)translator.GetObject(L, 2, typeof(System.ComponentModel.ISite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_Disposed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.ComponentModel.Component gen_to_be_invoked = (System.ComponentModel.Component)translator.FastGetCSObj(L, 1); - System.EventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.EventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.Disposed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.Disposed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to System.ComponentModel.Component.Disposed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/System_ConvertWrap.cs b/Assets/XLua/Gen/System_ConvertWrap.cs deleted file mode 100644 index 5849e9df2..000000000 --- a/Assets/XLua/Gen/System_ConvertWrap.cs +++ /dev/null @@ -1,4001 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemConvertWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Convert); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 24, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTypeCode", _m_GetTypeCode_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsDBNull", _m_IsDBNull_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ChangeType", _m_ChangeType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToBoolean", _m_ToBoolean_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToChar", _m_ToChar_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToSByte", _m_ToSByte_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToByte", _m_ToByte_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToInt16", _m_ToInt16_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToUInt16", _m_ToUInt16_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToInt32", _m_ToInt32_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToUInt32", _m_ToUInt32_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToInt64", _m_ToInt64_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToUInt64", _m_ToUInt64_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToSingle", _m_ToSingle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToDouble", _m_ToDouble_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToDecimal", _m_ToDecimal_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToDateTime", _m_ToDateTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToString", _m_ToString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToBase64String", _m_ToBase64String_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToBase64CharArray", _m_ToBase64CharArray_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromBase64String", _m_FromBase64String_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromBase64CharArray", _m_FromBase64CharArray_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DBNull", System.Convert.DBNull); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "System.Convert does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTypeCode_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.GetTypeCode( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDBNull_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.IsDBNull( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ChangeType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.TypeCode _typeCode;translator.Get(L, 2, out _typeCode); - - var gen_ret = System.Convert.ChangeType( _value, _typeCode ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.Type _conversionType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = System.Convert.ChangeType( _value, _conversionType ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.TypeCode _typeCode;translator.Get(L, 2, out _typeCode); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ChangeType( _value, _typeCode, _provider ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.Type _conversionType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ChangeType( _value, _conversionType, _provider ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ChangeType!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToBoolean_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToBoolean( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToBoolean( _value, _provider ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToBoolean( _value, _provider ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToBoolean!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToChar_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToChar( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToChar( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToChar( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToChar!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToSByte_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToSByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToSByte( _value, _fromBase ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToSByte( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToSByte( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToSByte!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToByte_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToByte( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToByte( _value, _fromBase ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToByte( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToByte( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToByte!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToInt16_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToInt16( _value, _fromBase ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToInt16( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToInt16( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToInt16!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUInt16_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToUInt16( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToUInt16( _value, _fromBase ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToUInt16( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToUInt16( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToUInt16!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToInt32_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToInt32( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToInt32( _value, _fromBase ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToInt32( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToInt32( _value, _provider ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToInt32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUInt32_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToUInt32( _value ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToUInt32( _value, _fromBase ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToUInt32( _value, _provider ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToUInt32( _value, _provider ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToUInt32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToInt64_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToInt64( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToInt64( _value, _fromBase ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToInt64( _value, _provider ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToInt64( _value, _provider ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToInt64!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUInt64_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToUInt64( _value ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - int _fromBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToUInt64( _value, _fromBase ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToUInt64( _value, _provider ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToUInt64( _value, _provider ); - LuaAPI.lua_pushuint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToUInt64!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToSingle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToSingle( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToSingle( _value, _provider ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToSingle( _value, _provider ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToSingle!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToDouble_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToDouble( _value, _provider ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToDouble( _value, _provider ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToDouble!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToDecimal_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToDecimal( _value ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToDecimal( _value, _provider ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToDecimal( _value, _provider ); - translator.PushDecimal(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToDecimal!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToDateTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToDateTime( _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToDateTime( _value, _provider ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToDateTime( _value, _provider ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToDateTime!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))) - { - long _value = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - int _toBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToString( _value, _toBase ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - int _toBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToString( _value, _toBase ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - int _toBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToString( _value, _toBase ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - long _value = LuaAPI.lua_toint64(L, 1); - int _toBase = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Convert.ToString( _value, _toBase ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))) - { - decimal _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _value = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.ToString( _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - bool _value = LuaAPI.lua_toboolean(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - char _value = (char)LuaAPI.xlua_tointeger(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - byte _value = (byte)LuaAPI.xlua_tointeger(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - short _value = (short)LuaAPI.xlua_tointeger(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - uint _value = LuaAPI.xlua_touint(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isint64(L, 1))&& translator.Assignable(L, 2)) - { - long _value = LuaAPI.lua_toint64(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || LuaAPI.lua_isuint64(L, 1))&& translator.Assignable(L, 2)) - { - ulong _value = LuaAPI.lua_touint64(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - double _value = LuaAPI.lua_tonumber(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 1, typeof(object)); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) || translator.IsDecimal(L, 1))&& translator.Assignable(L, 2)) - { - decimal _value;translator.Get(L, 1, out _value); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - System.DateTime _value;translator.Get(L, 1, out _value); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _value = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.Convert.ToString( _value, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToBase64String_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - byte[] _inArray = LuaAPI.lua_tobytes(L, 1); - - var gen_ret = System.Convert.ToBase64String( _inArray ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - byte[] _inArray = LuaAPI.lua_tobytes(L, 1); - int _offset = LuaAPI.xlua_tointeger(L, 2); - int _length = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = System.Convert.ToBase64String( _inArray, _offset, _length ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - byte[] _inArray = LuaAPI.lua_tobytes(L, 1); - System.Base64FormattingOptions _options;translator.Get(L, 2, out _options); - - var gen_ret = System.Convert.ToBase64String( _inArray, _options ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - byte[] _inArray = LuaAPI.lua_tobytes(L, 1); - int _offset = LuaAPI.xlua_tointeger(L, 2); - int _length = LuaAPI.xlua_tointeger(L, 3); - System.Base64FormattingOptions _options;translator.Get(L, 4, out _options); - - var gen_ret = System.Convert.ToBase64String( _inArray, _offset, _length, _options ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToBase64String!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToBase64CharArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - byte[] _inArray = LuaAPI.lua_tobytes(L, 1); - int _offsetIn = LuaAPI.xlua_tointeger(L, 2); - int _length = LuaAPI.xlua_tointeger(L, 3); - char[] _outArray = (char[])translator.GetObject(L, 4, typeof(char[])); - int _offsetOut = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = System.Convert.ToBase64CharArray( _inArray, _offsetIn, _length, _outArray, _offsetOut ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - byte[] _inArray = LuaAPI.lua_tobytes(L, 1); - int _offsetIn = LuaAPI.xlua_tointeger(L, 2); - int _length = LuaAPI.xlua_tointeger(L, 3); - char[] _outArray = (char[])translator.GetObject(L, 4, typeof(char[])); - int _offsetOut = LuaAPI.xlua_tointeger(L, 5); - System.Base64FormattingOptions _options;translator.Get(L, 6, out _options); - - var gen_ret = System.Convert.ToBase64CharArray( _inArray, _offsetIn, _length, _outArray, _offsetOut, _options ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Convert.ToBase64CharArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromBase64String_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Convert.FromBase64String( _s ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromBase64CharArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - char[] _inArray = (char[])translator.GetObject(L, 1, typeof(char[])); - int _offset = LuaAPI.xlua_tointeger(L, 2); - int _length = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = System.Convert.FromBase64CharArray( _inArray, _offset, _length ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_DBNullWrap.cs b/Assets/XLua/Gen/System_DBNullWrap.cs deleted file mode 100644 index 7935fc61f..000000000 --- a/Assets/XLua/Gen/System_DBNullWrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemDBNullWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.DBNull); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetObjectData", _m_GetObjectData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTypeCode", _m_GetTypeCode); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Value", System.DBNull.Value); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "System.DBNull does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetObjectData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DBNull gen_to_be_invoked = (System.DBNull)translator.FastGetCSObj(L, 1); - - - - { - System.Runtime.Serialization.SerializationInfo _info = (System.Runtime.Serialization.SerializationInfo)translator.GetObject(L, 2, typeof(System.Runtime.Serialization.SerializationInfo)); - System.Runtime.Serialization.StreamingContext _context;translator.Get(L, 3, out _context); - - gen_to_be_invoked.GetObjectData( _info, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DBNull gen_to_be_invoked = (System.DBNull)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DBNull.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTypeCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DBNull gen_to_be_invoked = (System.DBNull)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetTypeCode( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_DateTimeOffsetWrap.cs b/Assets/XLua/Gen/System_DateTimeOffsetWrap.cs deleted file mode 100644 index a97cf6b36..000000000 --- a/Assets/XLua/Gen/System_DateTimeOffsetWrap.cs +++ /dev/null @@ -1,1699 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemDateTimeOffsetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.DateTimeOffset); - Utils.BeginObjectRegister(type, L, translator, 5, 21, 17, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__lt", __LTMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__le", __LEMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToOffset", _m_ToOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddDays", _m_AddDays); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHours", _m_AddHours); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMilliseconds", _m_AddMilliseconds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMinutes", _m_AddMinutes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMonths", _m_AddMonths); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSeconds", _m_AddSeconds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTicks", _m_AddTicks); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddYears", _m_AddYears); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTo", _m_CompareTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EqualsExact", _m_EqualsExact); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Subtract", _m_Subtract); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToFileTime", _m_ToFileTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToUnixTimeSeconds", _m_ToUnixTimeSeconds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToUnixTimeMilliseconds", _m_ToUnixTimeMilliseconds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToLocalTime", _m_ToLocalTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToUniversalTime", _m_ToUniversalTime); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DateTime", _g_get_DateTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UtcDateTime", _g_get_UtcDateTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalDateTime", _g_get_LocalDateTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Date", _g_get_Date); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Day", _g_get_Day); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DayOfWeek", _g_get_DayOfWeek); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DayOfYear", _g_get_DayOfYear); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Hour", _g_get_Hour); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Millisecond", _g_get_Millisecond); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Minute", _g_get_Minute); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Month", _g_get_Month); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Offset", _g_get_Offset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Second", _g_get_Second); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Ticks", _g_get_Ticks); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UtcTicks", _g_get_UtcTicks); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TimeOfDay", _g_get_TimeOfDay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Year", _g_get_Year); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 13, 2, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Compare", _m_Compare_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Equals", _m_Equals_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromFileTime", _m_FromFileTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromUnixTimeSeconds", _m_FromUnixTimeSeconds_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromUnixTimeMilliseconds", _m_FromUnixTimeMilliseconds_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Parse", _m_Parse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ParseExact", _m_ParseExact_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryParse", _m_TryParse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryParseExact", _m_TryParseExact_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MinValue", System.DateTimeOffset.MinValue); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MaxValue", System.DateTimeOffset.MaxValue); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UnixEpoch", System.DateTimeOffset.UnixEpoch); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Now", _g_get_Now); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "UtcNow", _g_get_UtcNow); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2)) && translator.Assignable(L, 3)) - { - long _ticks = LuaAPI.lua_toint64(L, 2); - System.TimeSpan _offset;translator.Get(L, 3, out _offset); - - var gen_ret = new System.DateTimeOffset(_ticks, _offset); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - - var gen_ret = new System.DateTimeOffset(_dateTime); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - System.TimeSpan _offset;translator.Get(L, 3, out _offset); - - var gen_ret = new System.DateTimeOffset(_dateTime, _offset); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && translator.Assignable(L, 8)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - System.TimeSpan _offset;translator.Get(L, 8, out _offset); - - var gen_ret = new System.DateTimeOffset(_year, _month, _day, _hour, _minute, _second, _offset); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 9 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && translator.Assignable(L, 9)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - int _millisecond = LuaAPI.xlua_tointeger(L, 8); - System.TimeSpan _offset;translator.Get(L, 9, out _offset); - - var gen_ret = new System.DateTimeOffset(_year, _month, _day, _hour, _minute, _second, _millisecond, _offset); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 10 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && translator.Assignable(L, 9) && translator.Assignable(L, 10)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - int _millisecond = LuaAPI.xlua_tointeger(L, 8); - System.Globalization.Calendar _calendar = (System.Globalization.Calendar)translator.GetObject(L, 9, typeof(System.Globalization.Calendar)); - System.TimeSpan _offset;translator.Get(L, 10, out _offset); - - var gen_ret = new System.DateTimeOffset(_year, _month, _day, _hour, _minute, _second, _millisecond, _calendar, _offset); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(System.DateTimeOffset)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTimeOffset leftside;translator.Get(L, 1, out leftside); - System.TimeSpan rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need System.DateTimeOffset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTimeOffset leftside;translator.Get(L, 1, out leftside); - System.TimeSpan rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside - rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTimeOffset leftside;translator.Get(L, 1, out leftside); - System.DateTimeOffset rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need System.DateTimeOffset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTimeOffset leftside;translator.Get(L, 1, out leftside); - System.DateTimeOffset rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need System.DateTimeOffset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __LTMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTimeOffset leftside;translator.Get(L, 1, out leftside); - System.DateTimeOffset rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside < rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of < operator, need System.DateTimeOffset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __LEMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTimeOffset leftside;translator.Get(L, 1, out leftside); - System.DateTimeOffset rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside <= rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of <= operator, need System.DateTimeOffset!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - System.TimeSpan _offset;translator.Get(L, 2, out _offset); - - var gen_ret = gen_to_be_invoked.ToOffset( _offset ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - System.TimeSpan _timeSpan;translator.Get(L, 2, out _timeSpan); - - var gen_ret = gen_to_be_invoked.Add( _timeSpan ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddDays(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _days = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddDays( _days ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddHours(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _hours = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddHours( _hours ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMilliseconds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _milliseconds = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddMilliseconds( _milliseconds ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMinutes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _minutes = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddMinutes( _minutes ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMonths(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _months = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.AddMonths( _months ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSeconds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _seconds = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddSeconds( _seconds ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTicks(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - long _ticks = LuaAPI.lua_toint64(L, 2); - - var gen_ret = gen_to_be_invoked.AddTicks( _ticks ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddYears(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _years = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.AddYears( _years ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compare_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.DateTimeOffset _first;translator.Get(L, 1, out _first); - System.DateTimeOffset _second;translator.Get(L, 2, out _second); - - var gen_ret = System.DateTimeOffset.Compare( _first, _second ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - System.DateTimeOffset _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.CompareTo( _other ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.DateTimeOffset _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EqualsExact(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - System.DateTimeOffset _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.EqualsExact( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.DateTimeOffset _first;translator.Get(L, 1, out _first); - System.DateTimeOffset _second;translator.Get(L, 2, out _second); - - var gen_ret = System.DateTimeOffset.Equals( _first, _second ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromFileTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - long _fileTime = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.DateTimeOffset.FromFileTime( _fileTime ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromUnixTimeSeconds_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - long _seconds = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.DateTimeOffset.FromUnixTimeSeconds( _seconds ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromUnixTimeMilliseconds_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - long _milliseconds = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.DateTimeOffset.FromUnixTimeMilliseconds( _milliseconds ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Parse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _input = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.DateTimeOffset.Parse( _input ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _input = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.DateTimeOffset.Parse( _input, _formatProvider ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _input = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 3, out _styles); - - var gen_ret = System.DateTimeOffset.Parse( _input, _formatProvider, _styles ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset.Parse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ParseExact_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _input = LuaAPI.lua_tostring(L, 1); - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = System.DateTimeOffset.ParseExact( _input, _format, _formatProvider ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _input = LuaAPI.lua_tostring(L, 1); - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 4, out _styles); - - var gen_ret = System.DateTimeOffset.ParseExact( _input, _format, _formatProvider, _styles ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _input = LuaAPI.lua_tostring(L, 1); - string[] _formats = (string[])translator.GetObject(L, 2, typeof(string[])); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 4, out _styles); - - var gen_ret = System.DateTimeOffset.ParseExact( _input, _formats, _formatProvider, _styles ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset.ParseExact!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Subtract(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.DateTimeOffset _value;translator.Get(L, 2, out _value); - - var gen_ret = gen_to_be_invoked.Subtract( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.TimeSpan _value;translator.Get(L, 2, out _value); - - var gen_ret = gen_to_be_invoked.Subtract( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset.Subtract!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToFileTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToFileTime( ); - LuaAPI.lua_pushint64(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUnixTimeSeconds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToUnixTimeSeconds( ); - LuaAPI.lua_pushint64(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUnixTimeMilliseconds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToUnixTimeMilliseconds( ); - LuaAPI.lua_pushint64(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToLocalTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToLocalTime( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUniversalTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToUniversalTime( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryParse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _input = LuaAPI.lua_tostring(L, 1); - System.DateTimeOffset _result; - - var gen_ret = System.DateTimeOffset.TryParse( _input, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _input = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 3, out _styles); - System.DateTimeOffset _result; - - var gen_ret = System.DateTimeOffset.TryParse( _input, _formatProvider, _styles, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset.TryParse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryParseExact_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _input = LuaAPI.lua_tostring(L, 1); - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 4, out _styles); - System.DateTimeOffset _result; - - var gen_ret = System.DateTimeOffset.TryParseExact( _input, _format, _formatProvider, _styles, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _input = LuaAPI.lua_tostring(L, 1); - string[] _formats = (string[])translator.GetObject(L, 2, typeof(string[])); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 4, out _styles); - System.DateTimeOffset _result; - - var gen_ret = System.DateTimeOffset.TryParseExact( _input, _formats, _formatProvider, _styles, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTimeOffset.TryParseExact!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Now(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, System.DateTimeOffset.Now); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UtcNow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, System.DateTimeOffset.UtcNow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DateTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.DateTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UtcDateTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.UtcDateTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LocalDateTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.LocalDateTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Date(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.Date); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Day(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Day); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DayOfWeek(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushSystemDayOfWeek(L, gen_to_be_invoked.DayOfWeek); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DayOfYear(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.DayOfYear); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Hour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Hour); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Millisecond(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Millisecond); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Minute(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Minute); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Month(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Month); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Offset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.Offset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Second(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Second); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Ticks(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.Ticks); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UtcTicks(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.UtcTicks); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TimeOfDay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.TimeOfDay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Year(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTimeOffset gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Year); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_DateTimeWrap.cs b/Assets/XLua/Gen/System_DateTimeWrap.cs deleted file mode 100644 index d68a65a27..000000000 --- a/Assets/XLua/Gen/System_DateTimeWrap.cs +++ /dev/null @@ -1,2080 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemDateTimeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.DateTime); - Utils.BeginObjectRegister(type, L, translator, 5, 27, 13, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__lt", __LTMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__le", __LEMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddDays", _m_AddDays); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddHours", _m_AddHours); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMilliseconds", _m_AddMilliseconds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMinutes", _m_AddMinutes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMonths", _m_AddMonths); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSeconds", _m_AddSeconds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTicks", _m_AddTicks); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddYears", _m_AddYears); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTo", _m_CompareTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsDaylightSavingTime", _m_IsDaylightSavingTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToBinary", _m_ToBinary); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Subtract", _m_Subtract); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToOADate", _m_ToOADate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToFileTime", _m_ToFileTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToFileTimeUtc", _m_ToFileTimeUtc); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToLocalTime", _m_ToLocalTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToLongDateString", _m_ToLongDateString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToLongTimeString", _m_ToLongTimeString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToShortDateString", _m_ToShortDateString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToShortTimeString", _m_ToShortTimeString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToUniversalTime", _m_ToUniversalTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDateTimeFormats", _m_GetDateTimeFormats); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTypeCode", _m_GetTypeCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Date", _g_get_Date); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Day", _g_get_Day); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DayOfWeek", _g_get_DayOfWeek); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DayOfYear", _g_get_DayOfYear); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Hour", _g_get_Hour); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Kind", _g_get_Kind); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Millisecond", _g_get_Millisecond); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Minute", _g_get_Minute); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Month", _g_get_Month); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Second", _g_get_Second); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Ticks", _g_get_Ticks); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "TimeOfDay", _g_get_TimeOfDay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Year", _g_get_Year); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 17, 3, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Compare", _m_Compare_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DaysInMonth", _m_DaysInMonth_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Equals", _m_Equals_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromBinary", _m_FromBinary_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromFileTime", _m_FromFileTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromFileTimeUtc", _m_FromFileTimeUtc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromOADate", _m_FromOADate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SpecifyKind", _m_SpecifyKind_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsLeapYear", _m_IsLeapYear_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Parse", _m_Parse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ParseExact", _m_ParseExact_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryParse", _m_TryParse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryParseExact", _m_TryParseExact_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MinValue", System.DateTime.MinValue); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MaxValue", System.DateTime.MaxValue); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UnixEpoch", System.DateTime.UnixEpoch); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Now", _g_get_Now); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Today", _g_get_Today); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "UtcNow", _g_get_UtcNow); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2))) - { - long _ticks = LuaAPI.lua_toint64(L, 2); - - var gen_ret = new System.DateTime(_ticks); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2)) && translator.Assignable(L, 3)) - { - long _ticks = LuaAPI.lua_toint64(L, 2); - System.DateTimeKind _kind;translator.Get(L, 3, out _kind); - - var gen_ret = new System.DateTime(_ticks, _kind); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new System.DateTime(_year, _month, _day); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - System.Globalization.Calendar _calendar = (System.Globalization.Calendar)translator.GetObject(L, 5, typeof(System.Globalization.Calendar)); - - var gen_ret = new System.DateTime(_year, _month, _day, _calendar); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = new System.DateTime(_year, _month, _day, _hour, _minute, _second); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && translator.Assignable(L, 8)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - System.DateTimeKind _kind;translator.Get(L, 8, out _kind); - - var gen_ret = new System.DateTime(_year, _month, _day, _hour, _minute, _second, _kind); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && translator.Assignable(L, 8)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - System.Globalization.Calendar _calendar = (System.Globalization.Calendar)translator.GetObject(L, 8, typeof(System.Globalization.Calendar)); - - var gen_ret = new System.DateTime(_year, _month, _day, _hour, _minute, _second, _calendar); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - int _millisecond = LuaAPI.xlua_tointeger(L, 8); - - var gen_ret = new System.DateTime(_year, _month, _day, _hour, _minute, _second, _millisecond); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 9 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && translator.Assignable(L, 9)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - int _millisecond = LuaAPI.xlua_tointeger(L, 8); - System.DateTimeKind _kind;translator.Get(L, 9, out _kind); - - var gen_ret = new System.DateTime(_year, _month, _day, _hour, _minute, _second, _millisecond, _kind); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 9 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && translator.Assignable(L, 9)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - int _millisecond = LuaAPI.xlua_tointeger(L, 8); - System.Globalization.Calendar _calendar = (System.Globalization.Calendar)translator.GetObject(L, 9, typeof(System.Globalization.Calendar)); - - var gen_ret = new System.DateTime(_year, _month, _day, _hour, _minute, _second, _millisecond, _calendar); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 10 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && translator.Assignable(L, 9) && translator.Assignable(L, 10)) - { - int _year = LuaAPI.xlua_tointeger(L, 2); - int _month = LuaAPI.xlua_tointeger(L, 3); - int _day = LuaAPI.xlua_tointeger(L, 4); - int _hour = LuaAPI.xlua_tointeger(L, 5); - int _minute = LuaAPI.xlua_tointeger(L, 6); - int _second = LuaAPI.xlua_tointeger(L, 7); - int _millisecond = LuaAPI.xlua_tointeger(L, 8); - System.Globalization.Calendar _calendar = (System.Globalization.Calendar)translator.GetObject(L, 9, typeof(System.Globalization.Calendar)); - System.DateTimeKind _kind;translator.Get(L, 10, out _kind); - - var gen_ret = new System.DateTime(_year, _month, _day, _hour, _minute, _second, _millisecond, _calendar, _kind); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(System.DateTime)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTime leftside;translator.Get(L, 1, out leftside); - System.TimeSpan rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need System.DateTime!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTime leftside;translator.Get(L, 1, out leftside); - System.TimeSpan rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside - rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTime leftside;translator.Get(L, 1, out leftside); - System.DateTime rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need System.DateTime!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTime leftside;translator.Get(L, 1, out leftside); - System.DateTime rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need System.DateTime!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __LTMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTime leftside;translator.Get(L, 1, out leftside); - System.DateTime rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside < rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of < operator, need System.DateTime!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __LEMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.DateTime leftside;translator.Get(L, 1, out leftside); - System.DateTime rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside <= rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of <= operator, need System.DateTime!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - System.TimeSpan _value;translator.Get(L, 2, out _value); - - var gen_ret = gen_to_be_invoked.Add( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddDays(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _value = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddDays( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddHours(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _value = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddHours( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMilliseconds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _value = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddMilliseconds( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMinutes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _value = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddMinutes( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddMonths(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _months = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.AddMonths( _months ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSeconds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - double _value = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.AddSeconds( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTicks(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - long _value = LuaAPI.lua_toint64(L, 2); - - var gen_ret = gen_to_be_invoked.AddTicks( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddYears(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _value = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.AddYears( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compare_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.DateTime _t1;translator.Get(L, 1, out _t1); - System.DateTime _t2;translator.Get(L, 2, out _t2); - - var gen_ret = System.DateTime.Compare( _t1, _t2 ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.CompareTo( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.DateTime _value;translator.Get(L, 2, out _value); - - var gen_ret = gen_to_be_invoked.CompareTo( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.CompareTo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DaysInMonth_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _year = LuaAPI.xlua_tointeger(L, 1); - int _month = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.DateTime.DaysInMonth( _year, _month ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _value = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.DateTime _value;translator.Get(L, 2, out _value); - - var gen_ret = gen_to_be_invoked.Equals( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.DateTime _t1;translator.Get(L, 1, out _t1); - System.DateTime _t2;translator.Get(L, 2, out _t2); - - var gen_ret = System.DateTime.Equals( _t1, _t2 ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromBinary_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - long _dateData = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.DateTime.FromBinary( _dateData ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromFileTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - long _fileTime = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.DateTime.FromFileTime( _fileTime ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromFileTimeUtc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - long _fileTime = LuaAPI.lua_toint64(L, 1); - - var gen_ret = System.DateTime.FromFileTimeUtc( _fileTime ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromOADate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - double _d = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = System.DateTime.FromOADate( _d ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDaylightSavingTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.IsDaylightSavingTime( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SpecifyKind_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.DateTime _value;translator.Get(L, 1, out _value); - System.DateTimeKind _kind;translator.Get(L, 2, out _kind); - - var gen_ret = System.DateTime.SpecifyKind( _value, _kind ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToBinary(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToBinary( ); - LuaAPI.lua_pushint64(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsLeapYear_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _year = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.DateTime.IsLeapYear( _year ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Parse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _s = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.DateTime.Parse( _s ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _s = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = System.DateTime.Parse( _s, _provider ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _s = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 3, out _styles); - - var gen_ret = System.DateTime.Parse( _s, _provider, _styles ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.Parse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ParseExact_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _s = LuaAPI.lua_tostring(L, 1); - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = System.DateTime.ParseExact( _s, _format, _provider ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _s = LuaAPI.lua_tostring(L, 1); - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _style;translator.Get(L, 4, out _style); - - var gen_ret = System.DateTime.ParseExact( _s, _format, _provider, _style ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _s = LuaAPI.lua_tostring(L, 1); - string[] _formats = (string[])translator.GetObject(L, 2, typeof(string[])); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _style;translator.Get(L, 4, out _style); - - var gen_ret = System.DateTime.ParseExact( _s, _formats, _provider, _style ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.ParseExact!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Subtract(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.DateTime _value;translator.Get(L, 2, out _value); - - var gen_ret = gen_to_be_invoked.Subtract( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.TimeSpan _value;translator.Get(L, 2, out _value); - - var gen_ret = gen_to_be_invoked.Subtract( _value ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.Subtract!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToOADate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToOADate( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToFileTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToFileTime( ); - LuaAPI.lua_pushint64(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToFileTimeUtc(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToFileTimeUtc( ); - LuaAPI.lua_pushint64(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToLocalTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToLocalTime( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToLongDateString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToLongDateString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToLongTimeString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToLongTimeString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToShortDateString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToShortDateString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToShortTimeString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToShortTimeString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _provider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToUniversalTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToUniversalTime( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryParse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _s = LuaAPI.lua_tostring(L, 1); - System.DateTime _result; - - var gen_ret = System.DateTime.TryParse( _s, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _s = LuaAPI.lua_tostring(L, 1); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _styles;translator.Get(L, 3, out _styles); - System.DateTime _result; - - var gen_ret = System.DateTime.TryParse( _s, _provider, _styles, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.TryParse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryParseExact_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _s = LuaAPI.lua_tostring(L, 1); - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _style;translator.Get(L, 4, out _style); - System.DateTime _result; - - var gen_ret = System.DateTime.TryParseExact( _s, _format, _provider, _style, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _s = LuaAPI.lua_tostring(L, 1); - string[] _formats = (string[])translator.GetObject(L, 2, typeof(string[])); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - System.Globalization.DateTimeStyles _style;translator.Get(L, 4, out _style); - System.DateTime _result; - - var gen_ret = System.DateTime.TryParseExact( _s, _formats, _provider, _style, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.TryParseExact!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDateTimeFormats(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetDateTimeFormats( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - char _format = (char)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetDateTimeFormats( _format ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 2, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.GetDateTimeFormats( _provider ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - char _format = (char)LuaAPI.xlua_tointeger(L, 2); - System.IFormatProvider _provider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.GetDateTimeFormats( _format, _provider ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.DateTime.GetDateTimeFormats!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTypeCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetTypeCode( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Date(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.Date); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Day(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Day); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DayOfWeek(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushSystemDayOfWeek(L, gen_to_be_invoked.DayOfWeek); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DayOfYear(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.DayOfYear); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Hour(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Hour); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Kind(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.Kind); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Millisecond(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Millisecond); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Minute(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Minute); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Month(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Month); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Now(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, System.DateTime.Now); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Second(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Second); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Ticks(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.Ticks); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_TimeOfDay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.TimeOfDay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Today(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, System.DateTime.Today); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Year(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.DateTime gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Year); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UtcNow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, System.DateTime.UtcNow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_EnumWrap.cs b/Assets/XLua/Gen/System_EnumWrap.cs deleted file mode 100644 index 91b406c4e..000000000 --- a/Assets/XLua/Gen/System_EnumWrap.cs +++ /dev/null @@ -1,658 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemEnumWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Enum); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTo", _m_CompareTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasFlag", _m_HasFlag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTypeCode", _m_GetTypeCode); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 10, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Parse", _m_Parse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetUnderlyingType", _m_GetUnderlyingType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValues", _m_GetValues_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetName", _m_GetName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetNames", _m_GetNames_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ToObject", _m_ToObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsDefined", _m_IsDefined_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Format", _m_Format_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryParse", _m_TryParse_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "System.Enum does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Parse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - string _value = LuaAPI.lua_tostring(L, 2); - - var gen_ret = System.Enum.Parse( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - string _value = LuaAPI.lua_tostring(L, 2); - bool _ignoreCase = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = System.Enum.Parse( _enumType, _value, _ignoreCase ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Enum.Parse!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetUnderlyingType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = System.Enum.GetUnderlyingType( _enumType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetValues_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = System.Enum.GetValues( _enumType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetName_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - object _value = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = System.Enum.GetName( _enumType, _value ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNames_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = System.Enum.GetNames( _enumType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - sbyte _value = (sbyte)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - short _value = (short)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - int _value = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - byte _value = (byte)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - ushort _value = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - uint _value = LuaAPI.xlua_touint(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2))) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - long _value = LuaAPI.lua_toint64(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isuint64(L, 2))) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - ulong _value = LuaAPI.lua_touint64(L, 2); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - object _value = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = System.Enum.ToObject( _enumType, _value ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Enum.ToObject!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDefined_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - object _value = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = System.Enum.IsDefined( _enumType, _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Format_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - object _value = translator.GetObject(L, 2, typeof(object)); - string _format = LuaAPI.lua_tostring(L, 3); - - var gen_ret = System.Enum.Format( _enumType, _value, _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Enum gen_to_be_invoked = (System.Enum)translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Enum gen_to_be_invoked = (System.Enum)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Enum gen_to_be_invoked = (System.Enum)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Enum.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Enum gen_to_be_invoked = (System.Enum)translator.FastGetCSObj(L, 1); - - - - { - object _target = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.CompareTo( _target ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasFlag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Enum gen_to_be_invoked = (System.Enum)translator.FastGetCSObj(L, 1); - - - - { - System.Enum _flag = (System.Enum)translator.GetObject(L, 2, typeof(System.Enum)); - - var gen_ret = gen_to_be_invoked.HasFlag( _flag ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTypeCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Enum gen_to_be_invoked = (System.Enum)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetTypeCode( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryParse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - string _value = LuaAPI.lua_tostring(L, 2); - object _result; - - var gen_ret = System.Enum.TryParse( _enumType, _value, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushAny(L, _result); - - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _enumType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - string _value = LuaAPI.lua_tostring(L, 2); - bool _ignoreCase = LuaAPI.lua_toboolean(L, 3); - object _result; - - var gen_ret = System.Enum.TryParse( _enumType, _value, _ignoreCase, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushAny(L, _result); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Enum.TryParse!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_IO_FileWrap.cs b/Assets/XLua/Gen/System_IO_FileWrap.cs deleted file mode 100644 index dda7edc5d..000000000 --- a/Assets/XLua/Gen/System_IO_FileWrap.cs +++ /dev/null @@ -1,1832 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemIOFileWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.IO.File); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 46, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OpenText", _m_OpenText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateText", _m_CreateText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendText", _m_AppendText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Copy", _m_Copy_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Delete", _m_Delete_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Exists", _m_Exists_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Open", _m_Open_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetCreationTime", _m_SetCreationTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetCreationTimeUtc", _m_SetCreationTimeUtc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCreationTime", _m_GetCreationTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCreationTimeUtc", _m_GetCreationTimeUtc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLastAccessTime", _m_SetLastAccessTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLastAccessTimeUtc", _m_SetLastAccessTimeUtc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastAccessTime", _m_GetLastAccessTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastAccessTimeUtc", _m_GetLastAccessTimeUtc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLastWriteTime", _m_SetLastWriteTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetLastWriteTimeUtc", _m_SetLastWriteTimeUtc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastWriteTime", _m_GetLastWriteTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLastWriteTimeUtc", _m_GetLastWriteTimeUtc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAttributes", _m_GetAttributes_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAttributes", _m_SetAttributes_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OpenRead", _m_OpenRead_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OpenWrite", _m_OpenWrite_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReadAllText", _m_ReadAllText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WriteAllText", _m_WriteAllText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReadAllBytes", _m_ReadAllBytes_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WriteAllBytes", _m_WriteAllBytes_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReadAllLines", _m_ReadAllLines_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReadLines", _m_ReadLines_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WriteAllLines", _m_WriteAllLines_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendAllText", _m_AppendAllText_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendAllLines", _m_AppendAllLines_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Replace", _m_Replace_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Move", _m_Move_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Encrypt", _m_Encrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Decrypt", _m_Decrypt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReadAllTextAsync", _m_ReadAllTextAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WriteAllTextAsync", _m_WriteAllTextAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReadAllBytesAsync", _m_ReadAllBytesAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WriteAllBytesAsync", _m_WriteAllBytesAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReadAllLinesAsync", _m_ReadAllLinesAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WriteAllLinesAsync", _m_WriteAllLinesAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendAllTextAsync", _m_AppendAllTextAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendAllLinesAsync", _m_AppendAllLinesAsync_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "System.IO.File does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OpenText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.OpenText( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.CreateText( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.AppendText( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Copy_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _sourceFileName = LuaAPI.lua_tostring(L, 1); - string _destFileName = LuaAPI.lua_tostring(L, 2); - - System.IO.File.Copy( _sourceFileName, _destFileName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _sourceFileName = LuaAPI.lua_tostring(L, 1); - string _destFileName = LuaAPI.lua_tostring(L, 2); - bool _overwrite = LuaAPI.lua_toboolean(L, 3); - - System.IO.File.Copy( _sourceFileName, _destFileName, _overwrite ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.Copy!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.Create( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - int _bufferSize = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.IO.File.Create( _path, _bufferSize ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - int _bufferSize = LuaAPI.xlua_tointeger(L, 2); - System.IO.FileOptions _options;translator.Get(L, 3, out _options); - - var gen_ret = System.IO.File.Create( _path, _bufferSize, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.Create!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Delete_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - System.IO.File.Delete( _path ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exists_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.Exists( _path ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Open_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.IO.FileMode _mode;translator.Get(L, 2, out _mode); - - var gen_ret = System.IO.File.Open( _path, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.IO.FileMode _mode;translator.Get(L, 2, out _mode); - System.IO.FileAccess _access;translator.Get(L, 3, out _access); - - var gen_ret = System.IO.File.Open( _path, _mode, _access ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.IO.FileMode _mode;translator.Get(L, 2, out _mode); - System.IO.FileAccess _access;translator.Get(L, 3, out _access); - System.IO.FileShare _share;translator.Get(L, 4, out _share); - - var gen_ret = System.IO.File.Open( _path, _mode, _access, _share ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.Open!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCreationTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - System.DateTime _creationTime;translator.Get(L, 2, out _creationTime); - - System.IO.File.SetCreationTime( _path, _creationTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCreationTimeUtc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - System.DateTime _creationTimeUtc;translator.Get(L, 2, out _creationTimeUtc); - - System.IO.File.SetCreationTimeUtc( _path, _creationTimeUtc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCreationTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.GetCreationTime( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCreationTimeUtc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.GetCreationTimeUtc( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLastAccessTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - System.DateTime _lastAccessTime;translator.Get(L, 2, out _lastAccessTime); - - System.IO.File.SetLastAccessTime( _path, _lastAccessTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLastAccessTimeUtc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - System.DateTime _lastAccessTimeUtc;translator.Get(L, 2, out _lastAccessTimeUtc); - - System.IO.File.SetLastAccessTimeUtc( _path, _lastAccessTimeUtc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastAccessTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.GetLastAccessTime( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastAccessTimeUtc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.GetLastAccessTimeUtc( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLastWriteTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - System.DateTime _lastWriteTime;translator.Get(L, 2, out _lastWriteTime); - - System.IO.File.SetLastWriteTime( _path, _lastWriteTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLastWriteTimeUtc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - System.DateTime _lastWriteTimeUtc;translator.Get(L, 2, out _lastWriteTimeUtc); - - System.IO.File.SetLastWriteTimeUtc( _path, _lastWriteTimeUtc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastWriteTime_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.GetLastWriteTime( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLastWriteTimeUtc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.GetLastWriteTimeUtc( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAttributes_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.GetAttributes( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAttributes_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - System.IO.FileAttributes _fileAttributes;translator.Get(L, 2, out _fileAttributes); - - System.IO.File.SetAttributes( _path, _fileAttributes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OpenRead_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.OpenRead( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OpenWrite_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.OpenWrite( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadAllText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.ReadAllText( _path ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.ReadAllText( _path, _encoding ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.ReadAllText!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteAllText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - - System.IO.File.WriteAllText( _path, _contents ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - System.IO.File.WriteAllText( _path, _contents, _encoding ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.WriteAllText!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadAllBytes_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.ReadAllBytes( _path ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteAllBytes_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - byte[] _bytes = LuaAPI.lua_tobytes(L, 2); - - System.IO.File.WriteAllBytes( _path, _bytes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadAllLines_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.ReadAllLines( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.ReadAllLines( _path, _encoding ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.ReadAllLines!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadLines_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.ReadLines( _path ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.ReadLines( _path, _encoding ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.ReadLines!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteAllLines_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string[] _contents = (string[])translator.GetObject(L, 2, typeof(string[])); - - System.IO.File.WriteAllLines( _path, _contents ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - System.IO.File.WriteAllLines( _path, _contents ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string[] _contents = (string[])translator.GetObject(L, 2, typeof(string[])); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - System.IO.File.WriteAllLines( _path, _contents, _encoding ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - System.IO.File.WriteAllLines( _path, _contents, _encoding ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.WriteAllLines!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendAllText_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - - System.IO.File.AppendAllText( _path, _contents ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - System.IO.File.AppendAllText( _path, _contents, _encoding ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.AppendAllText!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendAllLines_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - System.IO.File.AppendAllLines( _path, _contents ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - System.IO.File.AppendAllLines( _path, _contents, _encoding ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.AppendAllLines!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Replace_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _sourceFileName = LuaAPI.lua_tostring(L, 1); - string _destinationFileName = LuaAPI.lua_tostring(L, 2); - string _destinationBackupFileName = LuaAPI.lua_tostring(L, 3); - - System.IO.File.Replace( _sourceFileName, _destinationFileName, _destinationBackupFileName ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - string _sourceFileName = LuaAPI.lua_tostring(L, 1); - string _destinationFileName = LuaAPI.lua_tostring(L, 2); - string _destinationBackupFileName = LuaAPI.lua_tostring(L, 3); - bool _ignoreMetadataErrors = LuaAPI.lua_toboolean(L, 4); - - System.IO.File.Replace( _sourceFileName, _destinationFileName, _destinationBackupFileName, _ignoreMetadataErrors ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.Replace!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Move_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _sourceFileName = LuaAPI.lua_tostring(L, 1); - string _destFileName = LuaAPI.lua_tostring(L, 2); - - System.IO.File.Move( _sourceFileName, _destFileName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - System.IO.File.Encrypt( _path ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Decrypt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _path = LuaAPI.lua_tostring(L, 1); - - System.IO.File.Decrypt( _path ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadAllTextAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 2, out _cancellationToken); - - var gen_ret = System.IO.File.ReadAllTextAsync( _path, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.ReadAllTextAsync( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 3, out _cancellationToken); - - var gen_ret = System.IO.File.ReadAllTextAsync( _path, _encoding, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.ReadAllTextAsync( _path, _encoding ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.ReadAllTextAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteAllTextAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 3, out _cancellationToken); - - var gen_ret = System.IO.File.WriteAllTextAsync( _path, _contents, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - - var gen_ret = System.IO.File.WriteAllTextAsync( _path, _contents ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 4, out _cancellationToken); - - var gen_ret = System.IO.File.WriteAllTextAsync( _path, _contents, _encoding, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.WriteAllTextAsync( _path, _contents, _encoding ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.WriteAllTextAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadAllBytesAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 2, out _cancellationToken); - - var gen_ret = System.IO.File.ReadAllBytesAsync( _path, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.ReadAllBytesAsync( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.ReadAllBytesAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteAllBytesAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - byte[] _bytes = LuaAPI.lua_tobytes(L, 2); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 3, out _cancellationToken); - - var gen_ret = System.IO.File.WriteAllBytesAsync( _path, _bytes, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - byte[] _bytes = LuaAPI.lua_tobytes(L, 2); - - var gen_ret = System.IO.File.WriteAllBytesAsync( _path, _bytes ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.WriteAllBytesAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadAllLinesAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 2, out _cancellationToken); - - var gen_ret = System.IO.File.ReadAllLinesAsync( _path, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.IO.File.ReadAllLinesAsync( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 3, out _cancellationToken); - - var gen_ret = System.IO.File.ReadAllLinesAsync( _path, _encoding, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 2, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.ReadAllLinesAsync( _path, _encoding ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.ReadAllLinesAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteAllLinesAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 3, out _cancellationToken); - - var gen_ret = System.IO.File.WriteAllLinesAsync( _path, _contents, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = System.IO.File.WriteAllLinesAsync( _path, _contents ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 4, out _cancellationToken); - - var gen_ret = System.IO.File.WriteAllLinesAsync( _path, _contents, _encoding, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.WriteAllLinesAsync( _path, _contents, _encoding ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.WriteAllLinesAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendAllTextAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 3, out _cancellationToken); - - var gen_ret = System.IO.File.AppendAllTextAsync( _path, _contents, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - - var gen_ret = System.IO.File.AppendAllTextAsync( _path, _contents ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 4, out _cancellationToken); - - var gen_ret = System.IO.File.AppendAllTextAsync( _path, _contents, _encoding, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - string _contents = LuaAPI.lua_tostring(L, 2); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.AppendAllTextAsync( _path, _contents, _encoding ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.AppendAllTextAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AppendAllLinesAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 3, out _cancellationToken); - - var gen_ret = System.IO.File.AppendAllLinesAsync( _path, _contents, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = System.IO.File.AppendAllLinesAsync( _path, _contents ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - System.Threading.CancellationToken _cancellationToken;translator.Get(L, 4, out _cancellationToken); - - var gen_ret = System.IO.File.AppendAllLinesAsync( _path, _contents, _encoding, _cancellationToken ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.IEnumerable _contents = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable)); - System.Text.Encoding _encoding = (System.Text.Encoding)translator.GetObject(L, 3, typeof(System.Text.Encoding)); - - var gen_ret = System.IO.File.AppendAllLinesAsync( _path, _contents, _encoding ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.IO.File.AppendAllLinesAsync!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Net_NetworkInformation_PingCompletedEventArgsWrap.cs b/Assets/XLua/Gen/System_Net_NetworkInformation_PingCompletedEventArgsWrap.cs deleted file mode 100644 index b563a975d..000000000 --- a/Assets/XLua/Gen/System_Net_NetworkInformation_PingCompletedEventArgsWrap.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemNetNetworkInformationPingCompletedEventArgsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Net.NetworkInformation.PingCompletedEventArgs); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Reply", _g_get_Reply); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "System.Net.NetworkInformation.PingCompletedEventArgs does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Reply(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Net.NetworkInformation.PingCompletedEventArgs gen_to_be_invoked = (System.Net.NetworkInformation.PingCompletedEventArgs)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Reply); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Net_NetworkInformation_PingReplyWrap.cs b/Assets/XLua/Gen/System_Net_NetworkInformation_PingReplyWrap.cs deleted file mode 100644 index 5f4022314..000000000 --- a/Assets/XLua/Gen/System_Net_NetworkInformation_PingReplyWrap.cs +++ /dev/null @@ -1,142 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemNetNetworkInformationPingReplyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Net.NetworkInformation.PingReply); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Status", _g_get_Status); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Address", _g_get_Address); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "RoundtripTime", _g_get_RoundtripTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Options", _g_get_Options); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Buffer", _g_get_Buffer); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "System.Net.NetworkInformation.PingReply does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Status(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Net.NetworkInformation.PingReply gen_to_be_invoked = (System.Net.NetworkInformation.PingReply)translator.FastGetCSObj(L, 1); - translator.PushSystemNetNetworkInformationIPStatus(L, gen_to_be_invoked.Status); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Address(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Net.NetworkInformation.PingReply gen_to_be_invoked = (System.Net.NetworkInformation.PingReply)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Address); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_RoundtripTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Net.NetworkInformation.PingReply gen_to_be_invoked = (System.Net.NetworkInformation.PingReply)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.RoundtripTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Net.NetworkInformation.PingReply gen_to_be_invoked = (System.Net.NetworkInformation.PingReply)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Options); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Buffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Net.NetworkInformation.PingReply gen_to_be_invoked = (System.Net.NetworkInformation.PingReply)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Buffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_Net_NetworkInformation_PingWrap.cs b/Assets/XLua/Gen/System_Net_NetworkInformation_PingWrap.cs deleted file mode 100644 index 50f423946..000000000 --- a/Assets/XLua/Gen/System_Net_NetworkInformation_PingWrap.cs +++ /dev/null @@ -1,516 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemNetNetworkInformationPingWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Net.NetworkInformation.Ping); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendAsync", _m_SendAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendAsyncCancel", _m_SendAsyncCancel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendPingAsync", _m_SendPingAsync); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PingCompleted", _e_PingCompleted); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new System.Net.NetworkInformation.Ping(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Net.NetworkInformation.Ping constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Send(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Net.NetworkInformation.Ping gen_to_be_invoked = (System.Net.NetworkInformation.Ping)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - - var gen_ret = gen_to_be_invoked.Send( _address ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Send( _hostNameOrAddress ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.Send( _address, _timeout ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.Send( _hostNameOrAddress, _timeout ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - - var gen_ret = gen_to_be_invoked.Send( _address, _timeout, _buffer ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - - var gen_ret = gen_to_be_invoked.Send( _hostNameOrAddress, _timeout, _buffer ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - System.Net.NetworkInformation.PingOptions _options = (System.Net.NetworkInformation.PingOptions)translator.GetObject(L, 5, typeof(System.Net.NetworkInformation.PingOptions)); - - var gen_ret = gen_to_be_invoked.Send( _hostNameOrAddress, _timeout, _buffer, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - System.Net.NetworkInformation.PingOptions _options = (System.Net.NetworkInformation.PingOptions)translator.GetObject(L, 5, typeof(System.Net.NetworkInformation.PingOptions)); - - var gen_ret = gen_to_be_invoked.Send( _address, _timeout, _buffer, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Net.NetworkInformation.Ping.Send!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Net.NetworkInformation.Ping gen_to_be_invoked = (System.Net.NetworkInformation.Ping)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - object _userToken = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.SendAsync( _address, _userToken ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - object _userToken = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.SendAsync( _hostNameOrAddress, _userToken ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - object _userToken = translator.GetObject(L, 4, typeof(object)); - - gen_to_be_invoked.SendAsync( _address, _timeout, _userToken ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - object _userToken = translator.GetObject(L, 4, typeof(object)); - - gen_to_be_invoked.SendAsync( _hostNameOrAddress, _timeout, _userToken ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - object _userToken = translator.GetObject(L, 5, typeof(object)); - - gen_to_be_invoked.SendAsync( _address, _timeout, _buffer, _userToken ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - object _userToken = translator.GetObject(L, 5, typeof(object)); - - gen_to_be_invoked.SendAsync( _hostNameOrAddress, _timeout, _buffer, _userToken ); - - - - return 0; - } - if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - System.Net.NetworkInformation.PingOptions _options = (System.Net.NetworkInformation.PingOptions)translator.GetObject(L, 5, typeof(System.Net.NetworkInformation.PingOptions)); - object _userToken = translator.GetObject(L, 6, typeof(object)); - - gen_to_be_invoked.SendAsync( _hostNameOrAddress, _timeout, _buffer, _options, _userToken ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - System.Net.NetworkInformation.PingOptions _options = (System.Net.NetworkInformation.PingOptions)translator.GetObject(L, 5, typeof(System.Net.NetworkInformation.PingOptions)); - object _userToken = translator.GetObject(L, 6, typeof(object)); - - gen_to_be_invoked.SendAsync( _address, _timeout, _buffer, _options, _userToken ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Net.NetworkInformation.Ping.SendAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendAsyncCancel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Net.NetworkInformation.Ping gen_to_be_invoked = (System.Net.NetworkInformation.Ping)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SendAsyncCancel( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendPingAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Net.NetworkInformation.Ping gen_to_be_invoked = (System.Net.NetworkInformation.Ping)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _address ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _hostNameOrAddress ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _address, _timeout ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _hostNameOrAddress, _timeout ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _address, _timeout, _buffer ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _hostNameOrAddress, _timeout, _buffer ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)) - { - string _hostNameOrAddress = LuaAPI.lua_tostring(L, 2); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - System.Net.NetworkInformation.PingOptions _options = (System.Net.NetworkInformation.PingOptions)translator.GetObject(L, 5, typeof(System.Net.NetworkInformation.PingOptions)); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _hostNameOrAddress, _timeout, _buffer, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 5)) - { - System.Net.IPAddress _address = (System.Net.IPAddress)translator.GetObject(L, 2, typeof(System.Net.IPAddress)); - int _timeout = LuaAPI.xlua_tointeger(L, 3); - byte[] _buffer = LuaAPI.lua_tobytes(L, 4); - System.Net.NetworkInformation.PingOptions _options = (System.Net.NetworkInformation.PingOptions)translator.GetObject(L, 5, typeof(System.Net.NetworkInformation.PingOptions)); - - var gen_ret = gen_to_be_invoked.SendPingAsync( _address, _timeout, _buffer, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Net.NetworkInformation.Ping.SendPingAsync!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_PingCompleted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Net.NetworkInformation.Ping gen_to_be_invoked = (System.Net.NetworkInformation.Ping)translator.FastGetCSObj(L, 1); - System.Net.NetworkInformation.PingCompletedEventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Net.NetworkInformation.PingCompletedEventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.PingCompleted += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.PingCompleted -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to System.Net.NetworkInformation.Ping.PingCompleted!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/System_ObjectWrap.cs b/Assets/XLua/Gen/System_ObjectWrap.cs deleted file mode 100644 index d6f96cded..000000000 --- a/Assets/XLua/Gen/System_ObjectWrap.cs +++ /dev/null @@ -1,259 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemObjectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(object); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetType", _m_GetType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Equals", _m_Equals_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReferenceEquals", _m_ReferenceEquals_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new object(); - translator.PushAny(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to object constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - object gen_to_be_invoked = translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _objA = translator.GetObject(L, 1, typeof(object)); - object _objB = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = object.Equals( _objA, _objB ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - object gen_to_be_invoked = translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - object gen_to_be_invoked = translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetType( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - object gen_to_be_invoked = translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReferenceEquals_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _objA = translator.GetObject(L, 1, typeof(object)); - object _objB = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = object.ReferenceEquals( _objA, _objB ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_UriWrap.cs b/Assets/XLua/Gen/System_UriWrap.cs deleted file mode 100644 index 00f6922cf..000000000 --- a/Assets/XLua/Gen/System_UriWrap.cs +++ /dev/null @@ -1,1114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemUriWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.Uri); - Utils.BeginObjectRegister(type, L, translator, 1, 8, 22, 0); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLeftPart", _m_GetLeftPart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MakeRelativeUri", _m_MakeRelativeUri); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponents", _m_GetComponents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsWellFormedOriginalString", _m_IsWellFormedOriginalString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBaseOf", _m_IsBaseOf); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AbsolutePath", _g_get_AbsolutePath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AbsoluteUri", _g_get_AbsoluteUri); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalPath", _g_get_LocalPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Authority", _g_get_Authority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "HostNameType", _g_get_HostNameType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsDefaultPort", _g_get_IsDefaultPort); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsFile", _g_get_IsFile); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsLoopback", _g_get_IsLoopback); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "PathAndQuery", _g_get_PathAndQuery); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Segments", _g_get_Segments); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsUnc", _g_get_IsUnc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Host", _g_get_Host); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Port", _g_get_Port); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Query", _g_get_Query); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Fragment", _g_get_Fragment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Scheme", _g_get_Scheme); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OriginalString", _g_get_OriginalString); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DnsSafeHost", _g_get_DnsSafeHost); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IdnHost", _g_get_IdnHost); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAbsoluteUri", _g_get_IsAbsoluteUri); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UserEscaped", _g_get_UserEscaped); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "UserInfo", _g_get_UserInfo); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 25, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckHostName", _m_CheckHostName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HexEscape", _m_HexEscape_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HexUnescape", _m_HexUnescape_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsHexEncoding", _m_IsHexEncoding_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckSchemeName", _m_CheckSchemeName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsHexDigit", _m_IsHexDigit_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromHex", _m_FromHex_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryCreate", _m_TryCreate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Compare", _m_Compare_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsWellFormedUriString", _m_IsWellFormedUriString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnescapeDataString", _m_UnescapeDataString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EscapeUriString", _m_EscapeUriString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EscapeDataString", _m_EscapeDataString_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeFile", System.Uri.UriSchemeFile); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeFtp", System.Uri.UriSchemeFtp); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeGopher", System.Uri.UriSchemeGopher); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeHttp", System.Uri.UriSchemeHttp); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeHttps", System.Uri.UriSchemeHttps); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeMailto", System.Uri.UriSchemeMailto); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeNews", System.Uri.UriSchemeNews); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeNntp", System.Uri.UriSchemeNntp); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeNetTcp", System.Uri.UriSchemeNetTcp); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UriSchemeNetPipe", System.Uri.UriSchemeNetPipe); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SchemeDelimiter", System.Uri.SchemeDelimiter); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _uriString = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new System.Uri(_uriString); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _uriString = LuaAPI.lua_tostring(L, 2); - System.UriKind _uriKind;translator.Get(L, 3, out _uriKind); - - var gen_ret = new System.Uri(_uriString, _uriKind); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Uri _baseUri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - string _relativeUri = LuaAPI.lua_tostring(L, 3); - - var gen_ret = new System.Uri(_baseUri, _relativeUri); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - System.Uri _baseUri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - System.Uri _relativeUri = (System.Uri)translator.GetObject(L, 3, typeof(System.Uri)); - - var gen_ret = new System.Uri(_baseUri, _relativeUri); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to System.Uri constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - System.Uri leftside = (System.Uri)translator.GetObject(L, 1, typeof(System.Uri)); - System.Uri rightside = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need System.Uri!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckHostName_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Uri.CheckHostName( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLeftPart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - System.UriPartial _part;translator.Get(L, 2, out _part); - - var gen_ret = gen_to_be_invoked.GetLeftPart( _part ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HexEscape_xlua_st_(RealStatePtr L) - { - try { - - - - - { - char _character = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Uri.HexEscape( _character ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HexUnescape_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _pattern = LuaAPI.lua_tostring(L, 1); - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Uri.HexUnescape( _pattern, ref _index ); - LuaAPI.xlua_pushinteger(L, gen_ret); - LuaAPI.xlua_pushinteger(L, _index); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsHexEncoding_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _pattern = LuaAPI.lua_tostring(L, 1); - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = System.Uri.IsHexEncoding( _pattern, _index ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckSchemeName_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _schemeName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Uri.CheckSchemeName( _schemeName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsHexDigit_xlua_st_(RealStatePtr L) - { - try { - - - - - { - char _character = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Uri.IsHexDigit( _character ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromHex_xlua_st_(RealStatePtr L) - { - try { - - - - - { - char _digit = (char)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = System.Uri.FromHex( _digit ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - object _comparand = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _comparand ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MakeRelativeUri(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - - var gen_ret = gen_to_be_invoked.MakeRelativeUri( _uri ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryCreate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _uriString = LuaAPI.lua_tostring(L, 1); - System.UriKind _uriKind;translator.Get(L, 2, out _uriKind); - System.Uri _result; - - var gen_ret = System.Uri.TryCreate( _uriString, _uriKind, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Uri _baseUri = (System.Uri)translator.GetObject(L, 1, typeof(System.Uri)); - string _relativeUri = LuaAPI.lua_tostring(L, 2); - System.Uri _result; - - var gen_ret = System.Uri.TryCreate( _baseUri, _relativeUri, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - System.Uri _baseUri = (System.Uri)translator.GetObject(L, 1, typeof(System.Uri)); - System.Uri _relativeUri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - System.Uri _result; - - var gen_ret = System.Uri.TryCreate( _baseUri, _relativeUri, out _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to System.Uri.TryCreate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - System.UriComponents _components;translator.Get(L, 2, out _components); - System.UriFormat _format;translator.Get(L, 3, out _format); - - var gen_ret = gen_to_be_invoked.GetComponents( _components, _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compare_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Uri _uri1 = (System.Uri)translator.GetObject(L, 1, typeof(System.Uri)); - System.Uri _uri2 = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - System.UriComponents _partsToCompare;translator.Get(L, 3, out _partsToCompare); - System.UriFormat _compareFormat;translator.Get(L, 4, out _compareFormat); - System.StringComparison _comparisonType;translator.Get(L, 5, out _comparisonType); - - var gen_ret = System.Uri.Compare( _uri1, _uri2, _partsToCompare, _compareFormat, _comparisonType ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsWellFormedOriginalString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsWellFormedOriginalString( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsWellFormedUriString_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _uriString = LuaAPI.lua_tostring(L, 1); - System.UriKind _uriKind;translator.Get(L, 2, out _uriKind); - - var gen_ret = System.Uri.IsWellFormedUriString( _uriString, _uriKind ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnescapeDataString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _stringToUnescape = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Uri.UnescapeDataString( _stringToUnescape ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EscapeUriString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _stringToEscape = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Uri.EscapeUriString( _stringToEscape ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EscapeDataString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _stringToEscape = LuaAPI.lua_tostring(L, 1); - - var gen_ret = System.Uri.EscapeDataString( _stringToEscape ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsBaseOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - - - - { - System.Uri _uri = (System.Uri)translator.GetObject(L, 2, typeof(System.Uri)); - - var gen_ret = gen_to_be_invoked.IsBaseOf( _uri ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AbsolutePath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.AbsolutePath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AbsoluteUri(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.AbsoluteUri); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_LocalPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.LocalPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Authority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Authority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_HostNameType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.HostNameType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsDefaultPort(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsDefaultPort); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsFile(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsFile); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsLoopback(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsLoopback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_PathAndQuery(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.PathAndQuery); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Segments(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Segments); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsUnc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsUnc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Host(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Host); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Port(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Port); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Query(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Query); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Fragment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Fragment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Scheme(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Scheme); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OriginalString(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.OriginalString); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DnsSafeHost(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.DnsSafeHost); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IdnHost(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.IdnHost); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsAbsoluteUri(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAbsoluteUri); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UserEscaped(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.UserEscaped); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_UserInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - System.Uri gen_to_be_invoked = (System.Uri)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.UserInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/System_ValueTypeWrap.cs b/Assets/XLua/Gen/System_ValueTypeWrap.cs deleted file mode 100644 index a11cb5941..000000000 --- a/Assets/XLua/Gen/System_ValueTypeWrap.cs +++ /dev/null @@ -1,155 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class SystemValueTypeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(System.ValueType); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "System.ValueType does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.ValueType gen_to_be_invoked = (System.ValueType)translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.ValueType gen_to_be_invoked = (System.ValueType)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - System.ValueType gen_to_be_invoked = (System.ValueType)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TAExampleWrap.cs b/Assets/XLua/Gen/TAExampleWrap.cs deleted file mode 100644 index a74968260..000000000 --- a/Assets/XLua/Gen/TAExampleWrap.cs +++ /dev/null @@ -1,144 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TAExampleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TAExample); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDynamicSuperProperties", _m_GetDynamicSuperProperties); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skin", _g_get_skin); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skin", _s_set_skin); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TAExample(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TAExample constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDynamicSuperProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TAExample gen_to_be_invoked = (TAExample)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDynamicSuperProperties( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TAExample gen_to_be_invoked = (TAExample)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.skin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TAExample gen_to_be_invoked = (TAExample)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skin = (UnityEngine.GUISkin)translator.GetObject(L, 2, typeof(UnityEngine.GUISkin)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMP_AnimationCurveWrap.cs b/Assets/XLua/Gen/TMP_AnimationCurveWrap.cs deleted file mode 100644 index 942d49854..000000000 --- a/Assets/XLua/Gen/TMP_AnimationCurveWrap.cs +++ /dev/null @@ -1,270 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMP_AnimationCurveWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMP_AnimationCurve); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationCurveY", _g_get_animationCurveY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationCurveZ", _g_get_animationCurveZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveScaleY", _g_get_curveScaleY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useForWidth", _g_get_useForWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveScaleZ", _g_get_curveScaleZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableZ", _g_get_enableZ); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationCurveY", _s_set_animationCurveY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationCurveZ", _s_set_animationCurveZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveScaleY", _s_set_curveScaleY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useForWidth", _s_set_useForWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveScaleZ", _s_set_curveScaleZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableZ", _s_set_enableZ); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMP_AnimationCurve(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMP_AnimationCurve constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationCurveY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animationCurveY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationCurveZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animationCurveZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curveScaleY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.curveScaleY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useForWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.useForWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curveScaleZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.curveScaleZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animationCurveY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.animationCurveY = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animationCurveZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.animationCurveZ = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curveScaleY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.curveScaleY = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useForWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useForWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curveScaleZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.curveScaleZ = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_AnimationCurve gen_to_be_invoked = (TMP_AnimationCurve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableZ = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMP_CurveWrap.cs b/Assets/XLua/Gen/TMP_CurveWrap.cs deleted file mode 100644 index f92f5d7ec..000000000 --- a/Assets/XLua/Gen/TMP_CurveWrap.cs +++ /dev/null @@ -1,98 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMP_CurveWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMP_Curve); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ForceUpdate", _g_get_ForceUpdate); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ForceUpdate", _s_set_ForceUpdate); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMP_Curve does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ForceUpdate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_Curve gen_to_be_invoked = (TMP_Curve)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ForceUpdate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ForceUpdate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMP_Curve gen_to_be_invoked = (TMP_Curve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ForceUpdate = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_CharacterWrap.cs b/Assets/XLua/Gen/TMPro_TMP_CharacterWrap.cs deleted file mode 100644 index b21cd0d6b..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_CharacterWrap.cs +++ /dev/null @@ -1,105 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_CharacterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Character); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Character(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - uint _unicode = LuaAPI.xlua_touint(L, 2); - UnityEngine.TextCore.Glyph _glyph = (UnityEngine.TextCore.Glyph)translator.GetObject(L, 3, typeof(UnityEngine.TextCore.Glyph)); - - var gen_ret = new TMPro.TMP_Character(_unicode, _glyph); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - uint _unicode = LuaAPI.xlua_touint(L, 2); - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 3, typeof(TMPro.TMP_FontAsset)); - UnityEngine.TextCore.Glyph _glyph = (UnityEngine.TextCore.Glyph)translator.GetObject(L, 4, typeof(UnityEngine.TextCore.Glyph)); - - var gen_ret = new TMPro.TMP_Character(_unicode, _fontAsset, _glyph); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Character constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_DropdownWrap.cs b/Assets/XLua/Gen/TMPro_TMP_DropdownWrap.cs deleted file mode 100644 index 15864e6d5..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_DropdownWrap.cs +++ /dev/null @@ -1,673 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_DropdownWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Dropdown); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 11, 10); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetValueWithoutNotify", _m_SetValueWithoutNotify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshShownValue", _m_RefreshShownValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOptions", _m_AddOptions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearOptions", _m_ClearOptions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSubmit", _m_OnSubmit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCancel", _m_OnCancel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Show", _m_Show); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Hide", _m_Hide); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "template", _g_get_template); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "captionText", _g_get_captionText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "captionImage", _g_get_captionImage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "placeholder", _g_get_placeholder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "itemText", _g_get_itemText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "itemImage", _g_get_itemImage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "options", _g_get_options); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaFadeSpeed", _g_get_alphaFadeSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsExpanded", _g_get_IsExpanded); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "template", _s_set_template); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "captionText", _s_set_captionText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "captionImage", _s_set_captionImage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "placeholder", _s_set_placeholder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "itemText", _s_set_itemText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "itemImage", _s_set_itemImage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "options", _s_set_options); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaFadeSpeed", _s_set_alphaFadeSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_Dropdown does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetValueWithoutNotify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - int _input = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetValueWithoutNotify( _input ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshShownValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshShownValue( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddOptions( _options ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddOptions( _options ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddOptions( _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Dropdown.AddOptions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearOptions( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSubmit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSubmit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCancel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnCancel( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Show(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Show( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Hide(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Hide( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_template(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.template); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_captionText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.captionText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_captionImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.captionImage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_placeholder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.placeholder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_itemText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.itemText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_itemImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.itemImage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.options); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alphaFadeSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alphaFadeSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsExpanded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsExpanded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_template(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.template = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_captionText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.captionText = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_captionImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.captionImage = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_placeholder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.placeholder = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_itemText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.itemText = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_itemImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.itemImage = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (TMPro.TMP_Dropdown.DropdownEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_Dropdown.DropdownEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alphaFadeSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alphaFadeSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown gen_to_be_invoked = (TMPro.TMP_Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.value = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_Dropdown_DropdownEventWrap.cs b/Assets/XLua/Gen/TMPro_TMP_Dropdown_DropdownEventWrap.cs deleted file mode 100644 index 8fa87819e..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_Dropdown_DropdownEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_DropdownDropdownEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Dropdown.DropdownEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Dropdown.DropdownEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Dropdown.DropdownEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataListWrap.cs b/Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataListWrap.cs deleted file mode 100644 index 9f689fb82..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataListWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_DropdownOptionDataListWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Dropdown.OptionDataList); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "options", _g_get_options); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "options", _s_set_options); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Dropdown.OptionDataList(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Dropdown.OptionDataList constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown.OptionDataList gen_to_be_invoked = (TMPro.TMP_Dropdown.OptionDataList)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.options); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown.OptionDataList gen_to_be_invoked = (TMPro.TMP_Dropdown.OptionDataList)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataWrap.cs b/Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataWrap.cs deleted file mode 100644 index d3a0a78be..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_Dropdown_OptionDataWrap.cs +++ /dev/null @@ -1,174 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_DropdownOptionDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Dropdown.OptionData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "image", _g_get_image); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "image", _s_set_image); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_Dropdown.OptionData(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new TMPro.TMP_Dropdown.OptionData(_text); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Sprite _image = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - var gen_ret = new TMPro.TMP_Dropdown.OptionData(_image); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _text = LuaAPI.lua_tostring(L, 2); - UnityEngine.Sprite _image = (UnityEngine.Sprite)translator.GetObject(L, 3, typeof(UnityEngine.Sprite)); - - var gen_ret = new TMPro.TMP_Dropdown.OptionData(_text, _image); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Dropdown.OptionData constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown.OptionData gen_to_be_invoked = (TMPro.TMP_Dropdown.OptionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown.OptionData gen_to_be_invoked = (TMPro.TMP_Dropdown.OptionData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.image); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown.OptionData gen_to_be_invoked = (TMPro.TMP_Dropdown.OptionData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Dropdown.OptionData gen_to_be_invoked = (TMPro.TMP_Dropdown.OptionData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.image = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_FontAssetWrap.cs b/Assets/XLua/Gen/TMPro_TMP_FontAssetWrap.cs deleted file mode 100644 index 5e6587523..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_FontAssetWrap.cs +++ /dev/null @@ -1,1287 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using BF; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_FontAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_FontAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 27, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReadFontAssetDefinition", _m_ReadFontAssetDefinition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasCharacter", _m_HasCharacter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasCharacters", _m_HasCharacters); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryAddCharacters", _m_TryAddCharacters); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearFontAssetData", _m_ClearFontAssetData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTMPCharacter", _m_GetTMPCharacter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearTMPCharacter", _m_ClearTMPCharacter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTMPCharacter", _m_AddTMPCharacter); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "version", _g_get_version); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sourceFontFile", _g_get_sourceFontFile); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasPopulationMode", _g_get_atlasPopulationMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "faceInfo", _g_get_faceInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphTable", _g_get_glyphTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "glyphLookupTable", _g_get_glyphLookupTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterTable", _g_get_characterTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterLookupTable", _g_get_characterLookupTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasTexture", _g_get_atlasTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasTextures", _g_get_atlasTextures); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasTextureCount", _g_get_atlasTextureCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isMultiAtlasTexturesEnabled", _g_get_isMultiAtlasTexturesEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasWidth", _g_get_atlasWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasHeight", _g_get_atlasHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasPadding", _g_get_atlasPadding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlasRenderMode", _g_get_atlasRenderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontFeatureTable", _g_get_fontFeatureTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackFontAssetTable", _g_get_fallbackFontAssetTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "creationSettings", _g_get_creationSettings); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontWeightTable", _g_get_fontWeightTable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "atlas", _g_get_atlas); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalStyle", _g_get_normalStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalSpacingOffset", _g_get_normalSpacingOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boldStyle", _g_get_boldStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boldSpacing", _g_get_boldSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "italicStyle", _g_get_italicStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tabSize", _g_get_tabSize); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlasPopulationMode", _s_set_atlasPopulationMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "faceInfo", _s_set_faceInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlasTextures", _s_set_atlasTextures); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isMultiAtlasTexturesEnabled", _s_set_isMultiAtlasTexturesEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackFontAssetTable", _s_set_fallbackFontAssetTable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "creationSettings", _s_set_creationSettings); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "atlas", _s_set_atlas); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalStyle", _s_set_normalStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalSpacingOffset", _s_set_normalSpacingOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boldStyle", _s_set_boldStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boldSpacing", _s_set_boldSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "italicStyle", _s_set_italicStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tabSize", _s_set_tabSize); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateFontAsset", _m_CreateFontAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCharacters", _m_GetCharacters_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCharactersArray", _m_GetCharactersArray_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_FontAsset(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontAsset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateFontAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Font _font = (UnityEngine.Font)translator.GetObject(L, 1, typeof(UnityEngine.Font)); - - var gen_ret = TMPro.TMP_FontAsset.CreateFontAsset( _font ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Font _font = (UnityEngine.Font)translator.GetObject(L, 1, typeof(UnityEngine.Font)); - int _samplingPointSize = LuaAPI.xlua_tointeger(L, 2); - int _atlasPadding = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextCore.LowLevel.GlyphRenderMode _renderMode;translator.Get(L, 4, out _renderMode); - int _atlasWidth = LuaAPI.xlua_tointeger(L, 5); - int _atlasHeight = LuaAPI.xlua_tointeger(L, 6); - TMPro.AtlasPopulationMode _atlasPopulationMode;translator.Get(L, 7, out _atlasPopulationMode); - bool _enableMultiAtlasSupport = LuaAPI.lua_toboolean(L, 8); - - var gen_ret = TMPro.TMP_FontAsset.CreateFontAsset( _font, _samplingPointSize, _atlasPadding, _renderMode, _atlasWidth, _atlasHeight, _atlasPopulationMode, _enableMultiAtlasSupport ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Font _font = (UnityEngine.Font)translator.GetObject(L, 1, typeof(UnityEngine.Font)); - int _samplingPointSize = LuaAPI.xlua_tointeger(L, 2); - int _atlasPadding = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextCore.LowLevel.GlyphRenderMode _renderMode;translator.Get(L, 4, out _renderMode); - int _atlasWidth = LuaAPI.xlua_tointeger(L, 5); - int _atlasHeight = LuaAPI.xlua_tointeger(L, 6); - TMPro.AtlasPopulationMode _atlasPopulationMode;translator.Get(L, 7, out _atlasPopulationMode); - - var gen_ret = TMPro.TMP_FontAsset.CreateFontAsset( _font, _samplingPointSize, _atlasPadding, _renderMode, _atlasWidth, _atlasHeight, _atlasPopulationMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Font _font = (UnityEngine.Font)translator.GetObject(L, 1, typeof(UnityEngine.Font)); - int _samplingPointSize = LuaAPI.xlua_tointeger(L, 2); - int _atlasPadding = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextCore.LowLevel.GlyphRenderMode _renderMode;translator.Get(L, 4, out _renderMode); - int _atlasWidth = LuaAPI.xlua_tointeger(L, 5); - int _atlasHeight = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = TMPro.TMP_FontAsset.CreateFontAsset( _font, _samplingPointSize, _atlasPadding, _renderMode, _atlasWidth, _atlasHeight ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontAsset.CreateFontAsset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadFontAssetDefinition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ReadFontAssetDefinition( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasCharacter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _character = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasCharacter( _character ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - char _character = (char)LuaAPI.xlua_tointeger(L, 2); - bool _searchFallbacks = LuaAPI.lua_toboolean(L, 3); - bool _tryAddCharacter = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.HasCharacter( _character, _searchFallbacks, _tryAddCharacter ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - char _character = (char)LuaAPI.xlua_tointeger(L, 2); - bool _searchFallbacks = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.HasCharacter( _character, _searchFallbacks ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - char _character = (char)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasCharacter( _character ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontAsset.HasCharacter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasCharacters(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasCharacters( _text ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _text = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _missingCharacters; - - var gen_ret = gen_to_be_invoked.HasCharacters( _text, out _missingCharacters ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _missingCharacters); - - - - - return 2; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - string _text = LuaAPI.lua_tostring(L, 2); - uint[] _missingCharacters; - bool _searchFallbacks = LuaAPI.lua_toboolean(L, 3); - bool _tryAddCharacter = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.HasCharacters( _text, out _missingCharacters, _searchFallbacks, _tryAddCharacter ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _missingCharacters); - - - - - return 2; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _text = LuaAPI.lua_tostring(L, 2); - uint[] _missingCharacters; - bool _searchFallbacks = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.HasCharacters( _text, out _missingCharacters, _searchFallbacks ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _missingCharacters); - - - - - return 2; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _text = LuaAPI.lua_tostring(L, 2); - uint[] _missingCharacters; - - var gen_ret = gen_to_be_invoked.HasCharacters( _text, out _missingCharacters ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _missingCharacters); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontAsset.HasCharacters!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCharacters_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = TMPro.TMP_FontAsset.GetCharacters( _fontAsset ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCharactersArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 1, typeof(TMPro.TMP_FontAsset)); - - var gen_ret = TMPro.TMP_FontAsset.GetCharactersArray( _fontAsset ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryAddCharacters(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - uint[] _unicodes = (uint[])translator.GetObject(L, 2, typeof(uint[])); - bool _includeFontFeatures = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _unicodes, _includeFontFeatures ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - uint[] _unicodes = (uint[])translator.GetObject(L, 2, typeof(uint[])); - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _unicodes ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _characters = LuaAPI.lua_tostring(L, 2); - bool _includeFontFeatures = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _characters, _includeFontFeatures ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _characters = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _characters ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - uint[] _unicodes = (uint[])translator.GetObject(L, 2, typeof(uint[])); - uint[] _missingUnicodes; - bool _includeFontFeatures = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _unicodes, out _missingUnicodes, _includeFontFeatures ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _missingUnicodes); - - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - uint[] _unicodes = (uint[])translator.GetObject(L, 2, typeof(uint[])); - uint[] _missingUnicodes; - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _unicodes, out _missingUnicodes ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _missingUnicodes); - - - - - return 2; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _characters = LuaAPI.lua_tostring(L, 2); - string _missingCharacters; - bool _includeFontFeatures = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _characters, out _missingCharacters, _includeFontFeatures ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushstring(L, _missingCharacters); - - - - - return 2; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _characters = LuaAPI.lua_tostring(L, 2); - string _missingCharacters; - - var gen_ret = gen_to_be_invoked.TryAddCharacters( _characters, out _missingCharacters ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushstring(L, _missingCharacters); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontAsset.TryAddCharacters!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearFontAssetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _setAtlasSizeToZero = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ClearFontAssetData( _setAtlasSizeToZero ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.ClearFontAssetData( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_FontAsset.ClearFontAssetData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTMPCharacter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - - { - uint _index = LuaAPI.xlua_touint(L, 2); - - var gen_ret = gen_to_be_invoked.GetTMPCharacter( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearTMPCharacter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearTMPCharacter( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTMPCharacter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - - - - { - uint _index = LuaAPI.xlua_touint(L, 2); - TMPro.TMP_Character _character = (TMPro.TMP_Character)translator.GetObject(L, 3, typeof(TMPro.TMP_Character)); - - gen_to_be_invoked.AddTMPCharacter( _index, _character ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_version(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sourceFontFile(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sourceFontFile); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasPopulationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.atlasPopulationMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_faceInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.faceInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.glyphTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_glyphLookupTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.glyphLookupTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.characterTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterLookupTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.characterLookupTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.atlasTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasTextures(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.atlasTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasTextureCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.atlasTextureCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isMultiAtlasTexturesEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isMultiAtlasTexturesEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.atlasWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.atlasHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasPadding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.atlasPadding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlasRenderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.atlasRenderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontFeatureTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontFeatureTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackFontAssetTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fallbackFontAssetTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_creationSettings(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.creationSettings); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontWeightTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontWeightTable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_atlas(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.atlas); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalSpacingOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalSpacingOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boldStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.boldStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boldSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.boldSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_italicStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.italicStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tabSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tabSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_atlasPopulationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - TMPro.AtlasPopulationMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.atlasPopulationMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_faceInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - UnityEngine.TextCore.FaceInfo gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.faceInfo = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_atlasTextures(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.atlasTextures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isMultiAtlasTexturesEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isMultiAtlasTexturesEnabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackFontAssetTable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fallbackFontAssetTable = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_creationSettings(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - TMPro.FontAssetCreationSettings gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.creationSettings = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_atlas(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.atlas = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalStyle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalSpacingOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalSpacingOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boldStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.boldStyle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boldSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.boldSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_italicStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.italicStyle = (byte)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tabSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_FontAsset gen_to_be_invoked = (TMPro.TMP_FontAsset)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tabSize = (byte)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_InputFieldWrap.cs b/Assets/XLua/Gen/TMPro_TMP_InputFieldWrap.cs deleted file mode 100644 index 2e9e3f397..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_InputFieldWrap.cs +++ /dev/null @@ -1,2438 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_InputFieldWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_InputField); - Utils.BeginObjectRegister(type, L, translator, 0, 28, 55, 45); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTextWithoutNotify", _m_SetTextWithoutNotify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveTextEnd", _m_MoveTextEnd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveTextStart", _m_MoveTextStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToEndOfLine", _m_MoveToEndOfLine); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveToStartOfLine", _m_MoveToStartOfLine); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessEvent", _m_ProcessEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdateSelected", _m_OnUpdateSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnScroll", _m_OnScroll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceLabelUpdate", _m_ForceLabelUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ActivateInputField", _m_ActivateInputField); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSelect", _m_OnSelect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnControlClick", _m_OnControlClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReleaseSelection", _m_ReleaseSelection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DeactivateInputField", _m_DeactivateInputField); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDeselect", _m_OnDeselect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSubmit", _m_OnSubmit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGlobalPointSize", _m_SetGlobalPointSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGlobalFontAsset", _m_SetGlobalFontAsset); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shouldHideMobileInput", _g_get_shouldHideMobileInput); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shouldHideSoftKeyboard", _g_get_shouldHideSoftKeyboard); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFocused", _g_get_isFocused); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretBlinkRate", _g_get_caretBlinkRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretWidth", _g_get_caretWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textViewport", _g_get_textViewport); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textComponent", _g_get_textComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "placeholder", _g_get_placeholder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalScrollbar", _g_get_verticalScrollbar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scrollSensitivity", _g_get_scrollSensitivity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretColor", _g_get_caretColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "customCaretColor", _g_get_customCaretColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionColor", _g_get_selectionColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onEndEdit", _g_get_onEndEdit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onSubmit", _g_get_onSubmit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onSelect", _g_get_onSelect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onDeselect", _g_get_onDeselect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onTextSelection", _g_get_onTextSelection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onEndTextSelection", _g_get_onEndTextSelection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onTouchScreenKeyboardStatusChanged", _g_get_onTouchScreenKeyboardStatusChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValidateInput", _g_get_onValidateInput); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterLimit", _g_get_characterLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointSize", _g_get_pointSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontAsset", _g_get_fontAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFocusSelectAll", _g_get_onFocusSelectAll); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resetOnDeActivation", _g_get_resetOnDeActivation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "restoreOriginalTextOnEscape", _g_get_restoreOriginalTextOnEscape); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isRichTextEditingAllowed", _g_get_isRichTextEditingAllowed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contentType", _g_get_contentType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineType", _g_get_lineType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineLimit", _g_get_lineLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inputType", _g_get_inputType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keyboardType", _g_get_keyboardType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterValidation", _g_get_characterValidation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inputValidator", _g_get_inputValidator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "readOnly", _g_get_readOnly); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "richText", _g_get_richText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiLine", _g_get_multiLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "asteriskChar", _g_get_asteriskChar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wasCanceled", _g_get_wasCanceled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretPosition", _g_get_caretPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionAnchorPosition", _g_get_selectionAnchorPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionFocusPosition", _g_get_selectionFocusPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stringPosition", _g_get_stringPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionStringAnchorPosition", _g_get_selectionStringAnchorPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionStringFocusPosition", _g_get_selectionStringFocusPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shouldHideMobileInput", _s_set_shouldHideMobileInput); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shouldHideSoftKeyboard", _s_set_shouldHideSoftKeyboard); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretBlinkRate", _s_set_caretBlinkRate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretWidth", _s_set_caretWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textViewport", _s_set_textViewport); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textComponent", _s_set_textComponent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "placeholder", _s_set_placeholder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalScrollbar", _s_set_verticalScrollbar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scrollSensitivity", _s_set_scrollSensitivity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretColor", _s_set_caretColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "customCaretColor", _s_set_customCaretColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionColor", _s_set_selectionColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onEndEdit", _s_set_onEndEdit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onSubmit", _s_set_onSubmit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onSelect", _s_set_onSelect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onDeselect", _s_set_onDeselect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onTextSelection", _s_set_onTextSelection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onEndTextSelection", _s_set_onEndTextSelection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onTouchScreenKeyboardStatusChanged", _s_set_onTouchScreenKeyboardStatusChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValidateInput", _s_set_onValidateInput); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterLimit", _s_set_characterLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointSize", _s_set_pointSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontAsset", _s_set_fontAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFocusSelectAll", _s_set_onFocusSelectAll); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resetOnDeActivation", _s_set_resetOnDeActivation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "restoreOriginalTextOnEscape", _s_set_restoreOriginalTextOnEscape); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isRichTextEditingAllowed", _s_set_isRichTextEditingAllowed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "contentType", _s_set_contentType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineType", _s_set_lineType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineLimit", _s_set_lineLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inputType", _s_set_inputType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "keyboardType", _s_set_keyboardType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterValidation", _s_set_characterValidation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inputValidator", _s_set_inputValidator); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "readOnly", _s_set_readOnly); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "richText", _s_set_richText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "asteriskChar", _s_set_asteriskChar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretPosition", _s_set_caretPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionAnchorPosition", _s_set_selectionAnchorPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionFocusPosition", _s_set_selectionFocusPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stringPosition", _s_set_stringPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionStringAnchorPosition", _s_set_selectionStringAnchorPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionStringFocusPosition", _s_set_selectionStringFocusPosition); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_InputField does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTextWithoutNotify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - string _input = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetTextWithoutNotify( _input ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTextEnd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - bool _shift = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.MoveTextEnd( _shift ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTextStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - bool _shift = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.MoveTextStart( _shift ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveToEndOfLine(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - bool _shift = LuaAPI.lua_toboolean(L, 2); - bool _ctrl = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.MoveToEndOfLine( _shift, _ctrl ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveToStartOfLine(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - bool _shift = LuaAPI.lua_toboolean(L, 2); - bool _ctrl = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.MoveToStartOfLine( _shift, _ctrl ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ProcessEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Event _e = (UnityEngine.Event)translator.GetObject(L, 2, typeof(UnityEngine.Event)); - - gen_to_be_invoked.ProcessEvent( _e ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdateSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnUpdateSelected( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnScroll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnScroll( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceLabelUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ForceLabelUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _update;translator.Get(L, 2, out _update); - - gen_to_be_invoked.Rebuild( _update ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ActivateInputField(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ActivateInputField( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSelect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSelect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnControlClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnControlClick( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReleaseSelection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ReleaseSelection( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeactivateInputField(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _clearSelection = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.DeactivateInputField( _clearSelection ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.DeactivateInputField( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_InputField.DeactivateInputField!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDeselect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnDeselect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSubmit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSubmit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalPointSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - float _pointSize = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetGlobalPointSize( _pointSize ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalFontAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - - - - { - TMPro.TMP_FontAsset _fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - gen_to_be_invoked.SetGlobalFontAsset( _fontAsset ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shouldHideMobileInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.shouldHideMobileInput); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shouldHideSoftKeyboard(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.shouldHideSoftKeyboard); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFocused(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFocused); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretBlinkRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.caretBlinkRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.caretWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textViewport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textViewport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_placeholder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.placeholder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.verticalScrollbar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scrollSensitivity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scrollSensitivity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.caretColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customCaretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.customCaretColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.selectionColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onEndEdit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onEndEdit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onSubmit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onSubmit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onSelect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onSelect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onDeselect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onDeselect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onTextSelection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onTextSelection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onEndTextSelection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onEndTextSelection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onTouchScreenKeyboardStatusChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onTouchScreenKeyboardStatusChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValidateInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValidateInput); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.characterLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pointSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onFocusSelectAll(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.onFocusSelectAll); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resetOnDeActivation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.resetOnDeActivation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_restoreOriginalTextOnEscape(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.restoreOriginalTextOnEscape); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isRichTextEditingAllowed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isRichTextEditingAllowed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contentType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.PushTMProTMP_InputFieldContentType(L, gen_to_be_invoked.contentType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.PushTMProTMP_InputFieldLineType(L, gen_to_be_invoked.lineType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lineLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inputType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.PushTMProTMP_InputFieldInputType(L, gen_to_be_invoked.inputType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keyboardType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.keyboardType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterValidation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.PushTMProTMP_InputFieldCharacterValidation(L, gen_to_be_invoked.characterValidation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inputValidator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.inputValidator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_readOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.readOnly); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.richText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asteriskChar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.asteriskChar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wasCanceled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.wasCanceled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.caretPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectionAnchorPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionFocusPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectionFocusPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stringPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.stringPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionStringAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectionStringAnchorPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionStringFocusPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectionStringFocusPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shouldHideMobileInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shouldHideMobileInput = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shouldHideSoftKeyboard(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shouldHideSoftKeyboard = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretBlinkRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.caretBlinkRate = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.caretWidth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textViewport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textViewport = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textComponent = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_placeholder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.placeholder = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.verticalScrollbar = (UnityEngine.UI.Scrollbar)translator.GetObject(L, 2, typeof(UnityEngine.UI.Scrollbar)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scrollSensitivity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scrollSensitivity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.caretColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_customCaretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.customCaretColor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.selectionColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onEndEdit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onEndEdit = (TMPro.TMP_InputField.SubmitEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.SubmitEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onSubmit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onSubmit = (TMPro.TMP_InputField.SubmitEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.SubmitEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onSelect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onSelect = (TMPro.TMP_InputField.SelectionEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.SelectionEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onDeselect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onDeselect = (TMPro.TMP_InputField.SelectionEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.SelectionEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onTextSelection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onTextSelection = (TMPro.TMP_InputField.TextSelectionEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.TextSelectionEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onEndTextSelection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onEndTextSelection = (TMPro.TMP_InputField.TextSelectionEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.TextSelectionEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (TMPro.TMP_InputField.OnChangeEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.OnChangeEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onTouchScreenKeyboardStatusChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onTouchScreenKeyboardStatusChanged = (TMPro.TMP_InputField.TouchScreenKeyboardEvent)translator.GetObject(L, 2, typeof(TMPro.TMP_InputField.TouchScreenKeyboardEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValidateInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValidateInput = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterLimit = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pointSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontAsset = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onFocusSelectAll(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onFocusSelectAll = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resetOnDeActivation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.resetOnDeActivation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_restoreOriginalTextOnEscape(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.restoreOriginalTextOnEscape = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isRichTextEditingAllowed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isRichTextEditingAllowed = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_contentType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - TMPro.TMP_InputField.ContentType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.contentType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - TMPro.TMP_InputField.LineType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lineType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineLimit = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inputType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - TMPro.TMP_InputField.InputType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.inputType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keyboardType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - UnityEngine.TouchScreenKeyboardType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.keyboardType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterValidation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - TMPro.TMP_InputField.CharacterValidation gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.characterValidation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inputValidator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.inputValidator = (TMPro.TMP_InputValidator)translator.GetObject(L, 2, typeof(TMPro.TMP_InputValidator)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_readOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.readOnly = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.richText = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_asteriskChar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.asteriskChar = (char)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.caretPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selectionAnchorPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionFocusPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selectionFocusPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stringPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stringPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionStringAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selectionStringAnchorPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionStringFocusPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_InputField gen_to_be_invoked = (TMPro.TMP_InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selectionStringFocusPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_InputField_OnChangeEventWrap.cs b/Assets/XLua/Gen/TMPro_TMP_InputField_OnChangeEventWrap.cs deleted file mode 100644 index 46783b644..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_InputField_OnChangeEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_InputFieldOnChangeEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_InputField.OnChangeEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_InputField.OnChangeEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_InputField.OnChangeEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_InputField_SelectionEventWrap.cs b/Assets/XLua/Gen/TMPro_TMP_InputField_SelectionEventWrap.cs deleted file mode 100644 index f3014c864..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_InputField_SelectionEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_InputFieldSelectionEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_InputField.SelectionEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_InputField.SelectionEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_InputField.SelectionEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_InputField_SubmitEventWrap.cs b/Assets/XLua/Gen/TMPro_TMP_InputField_SubmitEventWrap.cs deleted file mode 100644 index 9eab63fe5..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_InputField_SubmitEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_InputFieldSubmitEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_InputField.SubmitEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_InputField.SubmitEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_InputField.SubmitEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_InputField_TextSelectionEventWrap.cs b/Assets/XLua/Gen/TMPro_TMP_InputField_TextSelectionEventWrap.cs deleted file mode 100644 index ba438230c..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_InputField_TextSelectionEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_InputFieldTextSelectionEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_InputField.TextSelectionEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_InputField.TextSelectionEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_InputField.TextSelectionEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_InputField_TouchScreenKeyboardEventWrap.cs b/Assets/XLua/Gen/TMPro_TMP_InputField_TouchScreenKeyboardEventWrap.cs deleted file mode 100644 index bc12d2254..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_InputField_TouchScreenKeyboardEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_InputFieldTouchScreenKeyboardEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_InputField.TouchScreenKeyboardEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TMP_InputField.TouchScreenKeyboardEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_InputField.TouchScreenKeyboardEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TMP_TextWrap.cs b/Assets/XLua/Gen/TMPro_TMP_TextWrap.cs deleted file mode 100644 index 1e847bff1..000000000 --- a/Assets/XLua/Gen/TMPro_TMP_TextWrap.cs +++ /dev/null @@ -1,3277 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTMP_TextWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TMP_Text); - Utils.BeginObjectRegister(type, L, translator, 0, 16, 88, 66); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceMeshUpdate", _m_ForceMeshUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGeometry", _m_UpdateGeometry); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateVertexData", _m_UpdateVertexData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVertices", _m_SetVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshPadding", _m_UpdateMeshPadding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFadeColor", _m_CrossFadeColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFadeAlpha", _m_CrossFadeAlpha); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetText", _m_SetText); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCharArray", _m_SetCharArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreferredValues", _m_GetPreferredValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRenderedValues", _m_GetRenderedValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTextInfo", _m_GetTextInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeMarginSize", _m_ComputeMarginSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMesh", _m_ClearMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetParsedText", _m_GetParsedText); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPreRenderText", _e_OnPreRenderText); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textPreprocessor", _g_get_textPreprocessor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isRightToLeftText", _g_get_isRightToLeftText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "font", _g_get_font); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSharedMaterial", _g_get_fontSharedMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSharedMaterials", _g_get_fontSharedMaterials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontMaterial", _g_get_fontMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontMaterials", _g_get_fontMaterials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alpha", _g_get_alpha); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableVertexGradient", _g_get_enableVertexGradient); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorGradient", _g_get_colorGradient); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorGradientPreset", _g_get_colorGradientPreset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteAsset", _g_get_spriteAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tintAllSprites", _g_get_tintAllSprites); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "styleSheet", _g_get_styleSheet); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textStyle", _g_get_textStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overrideColorTags", _g_get_overrideColorTags); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "faceColor", _g_get_faceColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outlineColor", _g_get_outlineColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outlineWidth", _g_get_outlineWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSize", _g_get_fontSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontWeight", _g_get_fontWeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelsPerUnit", _g_get_pixelsPerUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableAutoSizing", _g_get_enableAutoSizing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSizeMin", _g_get_fontSizeMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSizeMax", _g_get_fontSizeMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isUsingBold", _g_get_isUsingBold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalAlignment", _g_get_horizontalAlignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalAlignment", _g_get_verticalAlignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterSpacing", _g_get_characterSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wordSpacing", _g_get_wordSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineSpacing", _g_get_lineSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineSpacingAdjustment", _g_get_lineSpacingAdjustment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "paragraphSpacing", _g_get_paragraphSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterWidthAdjustment", _g_get_characterWidthAdjustment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableWordWrapping", _g_get_enableWordWrapping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wordWrappingRatios", _g_get_wordWrappingRatios); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overflowMode", _g_get_overflowMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isTextOverflowing", _g_get_isTextOverflowing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstOverflowCharacterIndex", _g_get_firstOverflowCharacterIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkedTextComponent", _g_get_linkedTextComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isTextTruncated", _g_get_isTextTruncated); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableKerning", _g_get_enableKerning); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "extraPadding", _g_get_extraPadding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "richText", _g_get_richText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parseCtrlCharacters", _g_get_parseCtrlCharacters); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isOverlay", _g_get_isOverlay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isOrthographic", _g_get_isOrthographic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableCulling", _g_get_enableCulling); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreVisibility", _g_get_ignoreVisibility); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalMapping", _g_get_horizontalMapping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalMapping", _g_get_verticalMapping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mappingUvLineOffset", _g_get_mappingUvLineOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderMode", _g_get_renderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "geometrySortingOrder", _g_get_geometrySortingOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isTextObjectScaleStatic", _g_get_isTextObjectScaleStatic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexBufferAutoSizeReduction", _g_get_vertexBufferAutoSizeReduction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "firstVisibleCharacter", _g_get_firstVisibleCharacter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxVisibleCharacters", _g_get_maxVisibleCharacters); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxVisibleWords", _g_get_maxVisibleWords); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxVisibleLines", _g_get_maxVisibleLines); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMaxVisibleDescender", _g_get_useMaxVisibleDescender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pageToDisplay", _g_get_pageToDisplay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "margin", _g_get_margin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textInfo", _g_get_textInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "havePropertiesChanged", _g_get_havePropertiesChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isUsingLegacyAnimationComponent", _g_get_isUsingLegacyAnimationComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rectTransform", _g_get_rectTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoSizeTextContainer", _g_get_autoSizeTextContainer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isVolumetricText", _g_get_isVolumetricText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounds", _g_get_bounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textBounds", _g_get_textBounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxWidth", _g_get_maxWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxHeight", _g_get_maxHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderedWidth", _g_get_renderedWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderedHeight", _g_get_renderedHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textPreprocessor", _s_set_textPreprocessor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isRightToLeftText", _s_set_isRightToLeftText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "font", _s_set_font); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSharedMaterial", _s_set_fontSharedMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSharedMaterials", _s_set_fontSharedMaterials); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontMaterial", _s_set_fontMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontMaterials", _s_set_fontMaterials); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alpha", _s_set_alpha); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableVertexGradient", _s_set_enableVertexGradient); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorGradient", _s_set_colorGradient); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorGradientPreset", _s_set_colorGradientPreset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteAsset", _s_set_spriteAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tintAllSprites", _s_set_tintAllSprites); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "styleSheet", _s_set_styleSheet); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textStyle", _s_set_textStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "overrideColorTags", _s_set_overrideColorTags); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "faceColor", _s_set_faceColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "outlineColor", _s_set_outlineColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "outlineWidth", _s_set_outlineWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSize", _s_set_fontSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontWeight", _s_set_fontWeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableAutoSizing", _s_set_enableAutoSizing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSizeMin", _s_set_fontSizeMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSizeMax", _s_set_fontSizeMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalAlignment", _s_set_horizontalAlignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalAlignment", _s_set_verticalAlignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterSpacing", _s_set_characterSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wordSpacing", _s_set_wordSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineSpacing", _s_set_lineSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineSpacingAdjustment", _s_set_lineSpacingAdjustment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "paragraphSpacing", _s_set_paragraphSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterWidthAdjustment", _s_set_characterWidthAdjustment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableWordWrapping", _s_set_enableWordWrapping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wordWrappingRatios", _s_set_wordWrappingRatios); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "overflowMode", _s_set_overflowMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkedTextComponent", _s_set_linkedTextComponent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableKerning", _s_set_enableKerning); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "extraPadding", _s_set_extraPadding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "richText", _s_set_richText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "parseCtrlCharacters", _s_set_parseCtrlCharacters); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isOverlay", _s_set_isOverlay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isOrthographic", _s_set_isOrthographic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableCulling", _s_set_enableCulling); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreVisibility", _s_set_ignoreVisibility); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalMapping", _s_set_horizontalMapping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalMapping", _s_set_verticalMapping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mappingUvLineOffset", _s_set_mappingUvLineOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderMode", _s_set_renderMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "geometrySortingOrder", _s_set_geometrySortingOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isTextObjectScaleStatic", _s_set_isTextObjectScaleStatic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexBufferAutoSizeReduction", _s_set_vertexBufferAutoSizeReduction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "firstVisibleCharacter", _s_set_firstVisibleCharacter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxVisibleCharacters", _s_set_maxVisibleCharacters); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxVisibleWords", _s_set_maxVisibleWords); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxVisibleLines", _s_set_maxVisibleLines); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMaxVisibleDescender", _s_set_useMaxVisibleDescender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pageToDisplay", _s_set_pageToDisplay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "margin", _s_set_margin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "havePropertiesChanged", _s_set_havePropertiesChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isUsingLegacyAnimationComponent", _s_set_isUsingLegacyAnimationComponent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoSizeTextContainer", _s_set_autoSizeTextContainer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isVolumetricText", _s_set_isVolumetricText); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "OnFontAssetRequest", _e_OnFontAssetRequest); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OnSpriteAssetRequest", _e_OnSpriteAssetRequest); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "TMPro.TMP_Text does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceMeshUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _ignoreActiveState = LuaAPI.lua_toboolean(L, 2); - bool _forceTextReparsing = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.ForceMeshUpdate( _ignoreActiveState, _forceTextReparsing ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _ignoreActiveState = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ForceMeshUpdate( _ignoreActiveState ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.ForceMeshUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.ForceMeshUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateGeometry(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.UpdateGeometry( _mesh, _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.UpdateVertexData( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_VertexDataUpdateFlags _flags;translator.Get(L, 2, out _flags); - - gen_to_be_invoked.UpdateVertexData( _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.UpdateVertexData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3[] _vertices = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.SetVertices( _vertices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateMeshPadding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateMeshPadding( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFadeColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _targetColor;translator.Get(L, 2, out _targetColor); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _ignoreTimeScale = LuaAPI.lua_toboolean(L, 4); - bool _useAlpha = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.CrossFadeColor( _targetColor, _duration, _ignoreTimeScale, _useAlpha ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFadeAlpha(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - float _alpha = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _ignoreTimeScale = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.CrossFadeAlpha( _alpha, _duration, _ignoreTimeScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetText(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Text.StringBuilder _sourceText = (System.Text.StringBuilder)translator.GetObject(L, 2, typeof(System.Text.StringBuilder)); - - gen_to_be_invoked.SetText( _sourceText ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - char[] _sourceText = (char[])translator.GetObject(L, 2, typeof(char[])); - - gen_to_be_invoked.SetText( _sourceText ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - bool _syncTextInputBox = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetText( _sourceText, _syncTextInputBox ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetText( _sourceText ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetText( _sourceText, _arg0 ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - float _arg1 = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetText( _sourceText, _arg0, _arg1 ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - char[] _sourceText = (char[])translator.GetObject(L, 2, typeof(char[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetText( _sourceText, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - float _arg1 = (float)LuaAPI.lua_tonumber(L, 4); - float _arg2 = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetText( _sourceText, _arg0, _arg1, _arg2 ); - - - - return 0; - } - if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - float _arg1 = (float)LuaAPI.lua_tonumber(L, 4); - float _arg2 = (float)LuaAPI.lua_tonumber(L, 5); - float _arg3 = (float)LuaAPI.lua_tonumber(L, 6); - - gen_to_be_invoked.SetText( _sourceText, _arg0, _arg1, _arg2, _arg3 ); - - - - return 0; - } - if(gen_param_count == 7&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - float _arg1 = (float)LuaAPI.lua_tonumber(L, 4); - float _arg2 = (float)LuaAPI.lua_tonumber(L, 5); - float _arg3 = (float)LuaAPI.lua_tonumber(L, 6); - float _arg4 = (float)LuaAPI.lua_tonumber(L, 7); - - gen_to_be_invoked.SetText( _sourceText, _arg0, _arg1, _arg2, _arg3, _arg4 ); - - - - return 0; - } - if(gen_param_count == 8&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - float _arg1 = (float)LuaAPI.lua_tonumber(L, 4); - float _arg2 = (float)LuaAPI.lua_tonumber(L, 5); - float _arg3 = (float)LuaAPI.lua_tonumber(L, 6); - float _arg4 = (float)LuaAPI.lua_tonumber(L, 7); - float _arg5 = (float)LuaAPI.lua_tonumber(L, 8); - - gen_to_be_invoked.SetText( _sourceText, _arg0, _arg1, _arg2, _arg3, _arg4, _arg5 ); - - - - return 0; - } - if(gen_param_count == 9&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - float _arg1 = (float)LuaAPI.lua_tonumber(L, 4); - float _arg2 = (float)LuaAPI.lua_tonumber(L, 5); - float _arg3 = (float)LuaAPI.lua_tonumber(L, 6); - float _arg4 = (float)LuaAPI.lua_tonumber(L, 7); - float _arg5 = (float)LuaAPI.lua_tonumber(L, 8); - float _arg6 = (float)LuaAPI.lua_tonumber(L, 9); - - gen_to_be_invoked.SetText( _sourceText, _arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6 ); - - - - return 0; - } - if(gen_param_count == 10&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - string _sourceText = LuaAPI.lua_tostring(L, 2); - float _arg0 = (float)LuaAPI.lua_tonumber(L, 3); - float _arg1 = (float)LuaAPI.lua_tonumber(L, 4); - float _arg2 = (float)LuaAPI.lua_tonumber(L, 5); - float _arg3 = (float)LuaAPI.lua_tonumber(L, 6); - float _arg4 = (float)LuaAPI.lua_tonumber(L, 7); - float _arg5 = (float)LuaAPI.lua_tonumber(L, 8); - float _arg6 = (float)LuaAPI.lua_tonumber(L, 9); - float _arg7 = (float)LuaAPI.lua_tonumber(L, 10); - - gen_to_be_invoked.SetText( _sourceText, _arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.SetText!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCharArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - char[] _sourceText = (char[])translator.GetObject(L, 2, typeof(char[])); - - gen_to_be_invoked.SetCharArray( _sourceText ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - char[] _sourceText = (char[])translator.GetObject(L, 2, typeof(char[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetCharArray( _sourceText, _start, _length ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.SetCharArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPreferredValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPreferredValues( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _width = (float)LuaAPI.lua_tonumber(L, 2); - float _height = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.GetPreferredValues( _width, _height ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetPreferredValues( _text ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _text = LuaAPI.lua_tostring(L, 2); - float _width = (float)LuaAPI.lua_tonumber(L, 3); - float _height = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.GetPreferredValues( _text, _width, _height ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.GetPreferredValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRenderedValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetRenderedValues( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _onlyVisibleCharacters = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.GetRenderedValues( _onlyVisibleCharacters ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.GetRenderedValues!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTextInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetTextInfo( _text ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputeMarginSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ComputeMarginSize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.ClearMesh( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _uploadGeometry = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ClearMesh( _uploadGeometry ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.ClearMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetParsedText(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetParsedText( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textPreprocessor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.textPreprocessor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isRightToLeftText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isRightToLeftText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.font); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontSharedMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSharedMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontSharedMaterials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontMaterials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableVertexGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableVertexGradient); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorGradient); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorGradientPreset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorGradientPreset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tintAllSprites(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.tintAllSprites); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleSheet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.styleSheet); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overrideColorTags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.overrideColorTags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_faceColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.faceColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.outlineColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outlineWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.outlineWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontWeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableAutoSizing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableAutoSizing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSizeMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fontSizeMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSizeMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fontSizeMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isUsingBold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isUsingBold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.horizontalAlignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.verticalAlignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.PushTMProTextAlignmentOptions(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.characterSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wordSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.wordSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineSpacingAdjustment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineSpacingAdjustment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_paragraphSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.paragraphSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterWidthAdjustment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.characterWidthAdjustment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableWordWrapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableWordWrapping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wordWrappingRatios(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.wordWrappingRatios); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overflowMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.overflowMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isTextOverflowing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isTextOverflowing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstOverflowCharacterIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstOverflowCharacterIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkedTextComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.linkedTextComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isTextTruncated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isTextTruncated); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableKerning(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableKerning); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_extraPadding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.extraPadding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.richText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parseCtrlCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.parseCtrlCharacters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isOverlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isOverlay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isOrthographic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isOrthographic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableCulling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableCulling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreVisibility); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalMapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.horizontalMapping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalMapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.verticalMapping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mappingUvLineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.mappingUvLineOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_geometrySortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.geometrySortingOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isTextObjectScaleStatic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isTextObjectScaleStatic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexBufferAutoSizeReduction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.vertexBufferAutoSizeReduction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_firstVisibleCharacter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.firstVisibleCharacter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxVisibleCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxVisibleCharacters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxVisibleWords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxVisibleWords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxVisibleLines(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxVisibleLines); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMaxVisibleDescender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMaxVisibleDescender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pageToDisplay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pageToDisplay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_margin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.margin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_havePropertiesChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.havePropertiesChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isUsingLegacyAnimationComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isUsingLegacyAnimationComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rectTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rectTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoSizeTextContainer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoSizeTextContainer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isVolumetricText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isVolumetricText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.textBounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderedWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.renderedWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderedHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.renderedHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textPreprocessor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textPreprocessor = (TMPro.ITextPreprocessor)translator.GetObject(L, 2, typeof(TMPro.ITextPreprocessor)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isRightToLeftText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isRightToLeftText = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.font = (TMPro.TMP_FontAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_FontAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSharedMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSharedMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSharedMaterials = (UnityEngine.Material[])translator.GetObject(L, 2, typeof(UnityEngine.Material[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontMaterials = (UnityEngine.Material[])translator.GetObject(L, 2, typeof(UnityEngine.Material[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alpha = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableVertexGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableVertexGradient = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.VertexGradient gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorGradient = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorGradientPreset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colorGradientPreset = (TMPro.TMP_ColorGradient)translator.GetObject(L, 2, typeof(TMPro.TMP_ColorGradient)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spriteAsset = (TMPro.TMP_SpriteAsset)translator.GetObject(L, 2, typeof(TMPro.TMP_SpriteAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tintAllSprites(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tintAllSprites = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_styleSheet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.styleSheet = (TMPro.TMP_StyleSheet)translator.GetObject(L, 2, typeof(TMPro.TMP_StyleSheet)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textStyle = (TMPro.TMP_Style)translator.GetObject(L, 2, typeof(TMPro.TMP_Style)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overrideColorTags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.overrideColorTags = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_faceColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.faceColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_outlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.outlineColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_outlineWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.outlineWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.FontWeight gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontWeight = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableAutoSizing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableAutoSizing = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSizeMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSizeMin = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSizeMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSizeMax = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.FontStyles gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontStyle = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.HorizontalAlignmentOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalAlignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.VerticalAlignmentOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.verticalAlignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.TextAlignmentOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wordSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wordSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineSpacingAdjustment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineSpacingAdjustment = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_paragraphSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.paragraphSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterWidthAdjustment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterWidthAdjustment = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableWordWrapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableWordWrapping = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wordWrappingRatios(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wordWrappingRatios = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overflowMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.TextOverflowModes gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.overflowMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkedTextComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.linkedTextComponent = (TMPro.TMP_Text)translator.GetObject(L, 2, typeof(TMPro.TMP_Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableKerning(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableKerning = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_extraPadding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.extraPadding = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_richText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.richText = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_parseCtrlCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.parseCtrlCharacters = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isOverlay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isOverlay = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isOrthographic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isOrthographic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableCulling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableCulling = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreVisibility = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalMapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.TextureMappingOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalMapping = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalMapping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.TextureMappingOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.verticalMapping = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mappingUvLineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mappingUvLineOffset = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.TextRenderFlags gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.renderMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_geometrySortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - TMPro.VertexSortingOrder gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.geometrySortingOrder = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isTextObjectScaleStatic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isTextObjectScaleStatic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexBufferAutoSizeReduction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vertexBufferAutoSizeReduction = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_firstVisibleCharacter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.firstVisibleCharacter = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxVisibleCharacters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxVisibleCharacters = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxVisibleWords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxVisibleWords = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxVisibleLines(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxVisibleLines = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMaxVisibleDescender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useMaxVisibleDescender = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pageToDisplay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pageToDisplay = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_margin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.margin = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_havePropertiesChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.havePropertiesChanged = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isUsingLegacyAnimationComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isUsingLegacyAnimationComponent = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoSizeTextContainer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoSizeTextContainer = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isVolumetricText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isVolumetricText = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnPreRenderText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - TMPro.TMP_Text gen_to_be_invoked = (TMPro.TMP_Text)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnPreRenderText += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnPreRenderText -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.OnPreRenderText!"); - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnFontAssetRequest(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Func gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Func!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - TMPro.TMP_Text.OnFontAssetRequest += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - TMPro.TMP_Text.OnFontAssetRequest -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.OnFontAssetRequest!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnSpriteAssetRequest(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Func gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Func!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - TMPro.TMP_Text.OnSpriteAssetRequest += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - TMPro.TMP_Text.OnSpriteAssetRequest -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TMP_Text.OnSpriteAssetRequest!"); - } - - } -} diff --git a/Assets/XLua/Gen/TMPro_TextMeshProUGUIWrap.cs b/Assets/XLua/Gen/TMPro_TextMeshProUGUIWrap.cs deleted file mode 100644 index 50fbfffb3..000000000 --- a/Assets/XLua/Gen/TMPro_TextMeshProUGUIWrap.cs +++ /dev/null @@ -1,779 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTextMeshProUGUIWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TextMeshProUGUI); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 5, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVerticesDirty", _m_SetVerticesDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutDirty", _m_SetLayoutDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterialDirty", _m_SetMaterialDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAllDirty", _m_SetAllDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModifiedMaterial", _m_GetModifiedMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateClipping", _m_RecalculateClipping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cull", _m_Cull); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshPadding", _m_UpdateMeshPadding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceMeshUpdate", _m_ForceMeshUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTextInfo", _m_GetTextInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMesh", _m_ClearMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGeometry", _m_UpdateGeometry); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateVertexData", _m_UpdateVertexData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFontAsset", _m_UpdateFontAsset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeMarginSize", _m_ComputeMarginSize); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPreRenderText", _e_OnPreRenderText); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialForRendering", _g_get_materialForRendering); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoSizeTextContainer", _g_get_autoSizeTextContainer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvasRenderer", _g_get_canvasRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskOffset", _g_get_maskOffset); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoSizeTextContainer", _s_set_autoSizeTextContainer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskOffset", _s_set_maskOffset); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TextMeshProUGUI(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshProUGUI constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVerticesDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetVerticesDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaterialDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetMaterialDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAllDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetAllDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _update;translator.Get(L, 2, out _update); - - gen_to_be_invoked.Rebuild( _update ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetModifiedMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = gen_to_be_invoked.GetModifiedMaterial( _baseMaterial ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateClipping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RecalculateClipping( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _clipRect;translator.Get(L, 2, out _clipRect); - bool _validRect = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Cull( _clipRect, _validRect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateMeshPadding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateMeshPadding( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceMeshUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _ignoreActiveState = LuaAPI.lua_toboolean(L, 2); - bool _forceTextReparsing = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.ForceMeshUpdate( _ignoreActiveState, _forceTextReparsing ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _ignoreActiveState = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ForceMeshUpdate( _ignoreActiveState ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.ForceMeshUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshProUGUI.ForceMeshUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTextInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetTextInfo( _text ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearMesh( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateGeometry(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.UpdateGeometry( _mesh, _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.UpdateVertexData( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_VertexDataUpdateFlags _flags;translator.Get(L, 2, out _flags); - - gen_to_be_invoked.UpdateVertexData( _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshProUGUI.UpdateVertexData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateFontAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateFontAsset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputeMarginSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ComputeMarginSize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialForRendering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.materialForRendering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoSizeTextContainer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoSizeTextContainer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canvasRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.canvasRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.maskOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoSizeTextContainer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoSizeTextContainer = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maskOffset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnPreRenderText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - TMPro.TextMeshProUGUI gen_to_be_invoked = (TMPro.TextMeshProUGUI)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnPreRenderText += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnPreRenderText -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshProUGUI.OnPreRenderText!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/TMPro_TextMeshProWrap.cs b/Assets/XLua/Gen/TMPro_TextMeshProWrap.cs deleted file mode 100644 index b91da5062..000000000 --- a/Assets/XLua/Gen/TMPro_TextMeshProWrap.cs +++ /dev/null @@ -1,816 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class TMProTextMeshProWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(TMPro.TextMeshPro); - Utils.BeginObjectRegister(type, L, translator, 0, 17, 8, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMask", _m_SetMask); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVerticesDirty", _m_SetVerticesDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutDirty", _m_SetLayoutDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterialDirty", _m_SetMaterialDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAllDirty", _m_SetAllDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshPadding", _m_UpdateMeshPadding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceMeshUpdate", _m_ForceMeshUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTextInfo", _m_GetTextInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMesh", _m_ClearMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGeometry", _m_UpdateGeometry); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateVertexData", _m_UpdateVertexData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFontAsset", _m_UpdateFontAsset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeMarginSize", _m_ComputeMarginSize); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPreRenderText", _e_OnPreRenderText); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingLayerID", _g_get_sortingLayerID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingOrder", _g_get_sortingOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoSizeTextContainer", _g_get_autoSizeTextContainer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderer", _g_get_renderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshFilter", _g_get_meshFilter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskType", _g_get_maskType); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingLayerID", _s_set_sortingLayerID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingOrder", _s_set_sortingOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoSizeTextContainer", _s_set_autoSizeTextContainer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskType", _s_set_maskType); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new TMPro.TextMeshPro(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshPro constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMask(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - TMPro.MaskingTypes _type;translator.Get(L, 2, out _type); - UnityEngine.Vector4 _maskCoords;translator.Get(L, 3, out _maskCoords); - - gen_to_be_invoked.SetMask( _type, _maskCoords ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - TMPro.MaskingTypes _type;translator.Get(L, 2, out _type); - UnityEngine.Vector4 _maskCoords;translator.Get(L, 3, out _maskCoords); - float _softnessX = (float)LuaAPI.lua_tonumber(L, 4); - float _softnessY = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetMask( _type, _maskCoords, _softnessX, _softnessY ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshPro.SetMask!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVerticesDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetVerticesDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaterialDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetMaterialDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAllDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetAllDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _update;translator.Get(L, 2, out _update); - - gen_to_be_invoked.Rebuild( _update ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateMeshPadding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateMeshPadding( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceMeshUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _ignoreActiveState = LuaAPI.lua_toboolean(L, 2); - bool _forceTextReparsing = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.ForceMeshUpdate( _ignoreActiveState, _forceTextReparsing ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _ignoreActiveState = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ForceMeshUpdate( _ignoreActiveState ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.ForceMeshUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshPro.ForceMeshUpdate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTextInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetTextInfo( _text ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - bool _updateMesh = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.ClearMesh( _updateMesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateGeometry(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.UpdateGeometry( _mesh, _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateVertexData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.UpdateVertexData( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - TMPro.TMP_VertexDataUpdateFlags _flags;translator.Get(L, 2, out _flags); - - gen_to_be_invoked.UpdateVertexData( _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshPro.UpdateVertexData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateFontAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateFontAsset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputeMarginSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ComputeMarginSize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sortingLayerID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sortingOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoSizeTextContainer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoSizeTextContainer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshFilter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.meshFilter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.maskType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingLayerID = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingOrder = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoSizeTextContainer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoSizeTextContainer = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - TMPro.MaskingTypes gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maskType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnPreRenderText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - TMPro.TextMeshPro gen_to_be_invoked = (TMPro.TextMeshPro)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnPreRenderText += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnPreRenderText -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to TMPro.TextMeshPro.OnPreRenderText!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_TDFirstEventWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_TDFirstEventWrap.cs deleted file mode 100644 index 44ed2915b..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_TDFirstEventWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsTDFirstEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.TDFirstEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFirstCheckId", _m_SetFirstCheckId); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable>(L, 3)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new ThinkingAnalytics.TDFirstEvent(_eventName, _properties); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.TDFirstEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFirstCheckId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.TDFirstEvent gen_to_be_invoked = (ThinkingAnalytics.TDFirstEvent)translator.FastGetCSObj(L, 1); - - - - { - string _firstCheckId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetFirstCheckId( _firstCheckId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_TDOverWritableEventWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_TDOverWritableEventWrap.cs deleted file mode 100644 index b0d0f9d9a..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_TDOverWritableEventWrap.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsTDOverWritableEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.TDOverWritableEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable>(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - string _eventId = LuaAPI.lua_tostring(L, 4); - - var gen_ret = new ThinkingAnalytics.TDOverWritableEvent(_eventName, _properties, _eventId); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.TDOverWritableEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_TDPresetPropertiesWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_TDPresetPropertiesWrap.cs deleted file mode 100644 index 5f2b47274..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_TDPresetPropertiesWrap.cs +++ /dev/null @@ -1,294 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsTDPresetPropertiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.TDPresetProperties); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 12, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToEventPresetProperties", _m_ToEventPresetProperties); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "BundleId", _g_get_BundleId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Carrier", _g_get_Carrier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DeviceId", _g_get_DeviceId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DeviceModel", _g_get_DeviceModel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Manufacturer", _g_get_Manufacturer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "NetworkType", _g_get_NetworkType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OS", _g_get_OS); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OSVersion", _g_get_OSVersion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScreenHeight", _g_get_ScreenHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ScreenWidth", _g_get_ScreenWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "SystemLanguage", _g_get_SystemLanguage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ZoneOffset", _g_get_ZoneOffset); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new ThinkingAnalytics.TDPresetProperties(_properties); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.TDPresetProperties constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToEventPresetProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToEventPresetProperties( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_BundleId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.BundleId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Carrier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Carrier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DeviceId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.DeviceId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DeviceModel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.DeviceModel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Manufacturer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Manufacturer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_NetworkType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.NetworkType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.OS); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OSVersion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.OSVersion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScreenHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.ScreenHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ScreenWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.ScreenWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_SystemLanguage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.SystemLanguage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ZoneOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TDPresetProperties gen_to_be_invoked = (ThinkingAnalytics.TDPresetProperties)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ZoneOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_TDUpdatableEventWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_TDUpdatableEventWrap.cs deleted file mode 100644 index 52683c0dc..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_TDUpdatableEventWrap.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsTDUpdatableEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.TDUpdatableEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable>(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - string _eventId = LuaAPI.lua_tostring(L, 4); - - var gen_ret = new ThinkingAnalytics.TDUpdatableEvent(_eventName, _properties, _eventId); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.TDUpdatableEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_TaException_ThinkingSDKExceptionHandlerWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_TaException_ThinkingSDKExceptionHandlerWrap.cs deleted file mode 100644 index 40c4649e0..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_TaException_ThinkingSDKExceptionHandlerWrap.cs +++ /dev/null @@ -1,200 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsTaExceptionThinkingSDKExceptionHandlerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTaExceptionHandler", _m_SetTaExceptionHandler); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterTaExceptionHandler", _m_RegisterTaExceptionHandler); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnregisterTaExceptionHandler", _m_UnregisterTaExceptionHandler); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsQuitWhenException", _g_get_IsQuitWhenException); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "IsQuitWhenException", _s_set_IsQuitWhenException); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTaExceptionHandler(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler gen_to_be_invoked = (ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler)translator.FastGetCSObj(L, 1); - - - - { - ThinkingAnalytics.TaException.TaExceptionHandler _handler = (ThinkingAnalytics.TaException.TaExceptionHandler)translator.GetObject(L, 2, typeof(ThinkingAnalytics.TaException.TaExceptionHandler)); - - gen_to_be_invoked.SetTaExceptionHandler( _handler ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterTaExceptionHandler(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler gen_to_be_invoked = (ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RegisterTaExceptionHandler( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterTaExceptionHandler(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler gen_to_be_invoked = (ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnregisterTaExceptionHandler( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_IsQuitWhenException(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler gen_to_be_invoked = (ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsQuitWhenException); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_IsQuitWhenException(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler gen_to_be_invoked = (ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.IsQuitWhenException = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPIWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPIWrap.cs deleted file mode 100644 index f77872be6..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPIWrap.cs +++ /dev/null @@ -1,1751 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsThinkingAnalyticsAPIWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.ThinkingAnalyticsAPI); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 5, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InvokeTaExceptionHandler", _m_InvokeTaExceptionHandler); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startManually", _g_get_startManually); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableLog", _g_get_enableLog); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "networkType", _g_get_networkType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tokens", _g_get_tokens); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "VERSION", _g_get_VERSION); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startManually", _s_set_startManually); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableLog", _s_set_enableLog); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "networkType", _s_set_networkType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tokens", _s_set_tokens); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 33, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Identify", _m_Identify_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDistinctId", _m_GetDistinctId_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Login", _m_Login_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Logout", _m_Logout_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Flush", _m_Flush_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableAutoTrack", _m_EnableAutoTrack_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetAutoTrackProperties", _m_SetAutoTrackProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Track", _m_Track_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetSuperProperties", _m_SetSuperProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnsetSuperProperty", _m_UnsetSuperProperty_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSuperProperties", _m_GetSuperProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearSuperProperties", _m_ClearSuperProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPresetProperties", _m_GetPresetProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TimeEvent", _m_TimeEvent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UserSet", _m_UserSet_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UserUnset", _m_UserUnset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UserSetOnce", _m_UserSetOnce_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UserAdd", _m_UserAdd_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UserAppend", _m_UserAppend_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UserDelete", _m_UserDelete_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetNetworkType", _m_SetNetworkType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDeviceId", _m_GetDeviceId_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetDynamicSuperProperties", _m_SetDynamicSuperProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OptOutTracking", _m_OptOutTracking_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OptOutTrackingAndDeleteUser", _m_OptOutTrackingAndDeleteUser_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OptInTracking", _m_OptInTracking_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableTracking", _m_EnableTracking_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateLightInstance", _m_CreateLightInstance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalibrateTime", _m_CalibrateTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalibrateTimeWithNtp", _m_CalibrateTimeWithNtp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "setDefaultAppid", _m_setDefaultAppid_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "StartThinkingAnalytics", _m_StartThinkingAnalytics_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new ThinkingAnalytics.ThinkingAnalyticsAPI(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Identify_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _FIRSTId = LuaAPI.lua_tostring(L, 1); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Identify( _FIRSTId, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _FIRSTId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Identify( _FIRSTId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.Identify!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDistinctId_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetDistinctId( _appId ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetDistinctId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.GetDistinctId!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Login_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _account = LuaAPI.lua_tostring(L, 1); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Login( _account, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _account = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Login( _account ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.Login!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Logout_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Logout( _appId ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.Logout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.Logout!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Flush_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Flush( _appId ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.Flush( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.Flush!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableAutoTrack_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.EnableAutoTrack( _events, _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.EnableAutoTrack( _events, _properties ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events); - - ThinkingAnalytics.ThinkingAnalyticsAPI.EnableAutoTrack( _events ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.EnableAutoTrack!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoTrackProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetAutoTrackProperties( _events, _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 1, out _events); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetAutoTrackProperties( _events, _properties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.SetAutoTrackProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InvokeTaExceptionHandler(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - - - - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.InvokeTaExceptionHandler( _eventName, _properties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Track_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - ThinkingAnalytics.ThinkingAnalyticsEvent _analyticsEvent = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.GetObject(L, 1, typeof(ThinkingAnalytics.ThinkingAnalyticsEvent)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _analyticsEvent, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - ThinkingAnalytics.ThinkingAnalyticsEvent _analyticsEvent = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.GetObject(L, 1, typeof(ThinkingAnalytics.ThinkingAnalyticsEvent)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _analyticsEvent ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _date;translator.Get(L, 3, out _date); - string _appId = LuaAPI.lua_tostring(L, 4); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties, _date, _appId ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _date;translator.Get(L, 3, out _date); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Track( _eventName, _properties, _date ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.Track!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSuperProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _superProperties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetSuperProperties( _superProperties, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.Dictionary _superProperties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetSuperProperties( _superProperties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.SetSuperProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnsetSuperProperty_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _property = LuaAPI.lua_tostring(L, 1); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UnsetSuperProperty( _property, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _property = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UnsetSuperProperty( _property ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.UnsetSuperProperty!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSuperProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetSuperProperties( _appId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetSuperProperties( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.GetSuperProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearSuperProperties_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.ClearSuperProperties( _appId ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.ClearSuperProperties( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.ClearSuperProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPresetProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetPresetProperties( _appId ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetPresetProperties( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.GetPresetProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TimeEvent_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.TimeEvent( _eventName, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _eventName = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.TimeEvent( _eventName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.TimeEvent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserSet_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet( _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet( _properties, _dateTime, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.UserSet!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserUnset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _property = LuaAPI.lua_tostring(L, 1); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _property, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _property = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _property ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _properties, _dateTime, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.UserUnset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserSetOnce_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce( _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce( _properties, _dateTime, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.UserSetOnce!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserAdd_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _property = LuaAPI.lua_tostring(L, 1); - object _value = translator.GetObject(L, 2, typeof(object)); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _property, _value, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _property = LuaAPI.lua_tostring(L, 1); - object _value = translator.GetObject(L, 2, typeof(object)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _property, _value ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _properties, _dateTime, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.UserAdd!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserAppend_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend( _properties, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - string _appId = LuaAPI.lua_tostring(L, 3); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend( _properties, _dateTime, _appId ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& translator.Assignable(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.UserAppend!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserDelete_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete( _appId ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.DateTime _dateTime;translator.Get(L, 1, out _dateTime); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete( _dateTime, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.DateTime _dateTime;translator.Get(L, 1, out _dateTime); - - ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete( _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.UserDelete!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNetworkType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType _networkType;translator.Get(L, 1, out _networkType); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetNetworkType( _networkType, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType _networkType;translator.Get(L, 1, out _networkType); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetNetworkType( _networkType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.SetNetworkType!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDeviceId_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.GetDeviceId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDynamicSuperProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 1, typeof(ThinkingAnalytics.IDynamicSuperProperties)); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetDynamicSuperProperties( _dynamicSuperProperties, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 1, typeof(ThinkingAnalytics.IDynamicSuperProperties)); - - ThinkingAnalytics.ThinkingAnalyticsAPI.SetDynamicSuperProperties( _dynamicSuperProperties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.SetDynamicSuperProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptOutTracking_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTracking( _appId ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTracking( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTracking!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptOutTrackingAndDeleteUser_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTrackingAndDeleteUser( _appId ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTrackingAndDeleteUser( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.OptOutTrackingAndDeleteUser!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptInTracking_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.OptInTracking( _appId ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.OptInTracking( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.OptInTracking!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableTracking_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - bool _enabled = LuaAPI.lua_toboolean(L, 1); - string _appId = LuaAPI.lua_tostring(L, 2); - - ThinkingAnalytics.ThinkingAnalyticsAPI.EnableTracking( _enabled, _appId ); - - - - return 0; - } - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _enabled = LuaAPI.lua_toboolean(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.EnableTracking( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.EnableTracking!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateLightInstance_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 1); - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.CreateLightInstance( _appId ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 0) - { - - var gen_ret = ThinkingAnalytics.ThinkingAnalyticsAPI.CreateLightInstance( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.CreateLightInstance!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalibrateTime_xlua_st_(RealStatePtr L) - { - try { - - - - - { - long _timestamp = LuaAPI.lua_toint64(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.CalibrateTime( _timestamp ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalibrateTimeWithNtp_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _ntpServer = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.CalibrateTimeWithNtp( _ntpServer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDefaultAppid_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _appid = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.ThinkingAnalyticsAPI.setDefaultAppid( _appid ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartThinkingAnalytics_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.Token[] _tokens = (ThinkingAnalytics.ThinkingAnalyticsAPI.Token[])translator.GetObject(L, 1, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token[])); - - ThinkingAnalytics.ThinkingAnalyticsAPI.StartThinkingAnalytics( _tokens ); - - - - return 0; - } - if(gen_param_count == 0) - { - - ThinkingAnalytics.ThinkingAnalyticsAPI.StartThinkingAnalytics( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.StartThinkingAnalytics!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startManually(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.startManually); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableLog(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableLog); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_networkType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, gen_to_be_invoked.networkType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tokens(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.tokens); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_VERSION(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.VERSION); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startManually(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startManually = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableLog(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableLog = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_networkType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.networkType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tokens(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsAPI)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tokens = (ThinkingAnalytics.ThinkingAnalyticsAPI.Token[])translator.GetObject(L, 2, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPI_TokenWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPI_TokenWrap.cs deleted file mode 100644 index 8c4824653..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsAPI_TokenWrap.cs +++ /dev/null @@ -1,305 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsThinkingAnalyticsAPITokenWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getTimeZoneId", _m_getTimeZoneId); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "appid", _g_get_appid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "serverUrl", _g_get_serverUrl); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeZone", _g_get_timeZone); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeZoneId", _g_get_timeZoneId); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "appid", _s_set_appid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "serverUrl", _s_set_serverUrl); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeZone", _s_set_timeZone); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeZoneId", _s_set_timeZoneId); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 4) && translator.Assignable(L, 5) && (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING)) - { - string _appId = LuaAPI.lua_tostring(L, 2); - string _serverUrl = LuaAPI.lua_tostring(L, 3); - ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode _mode;translator.Get(L, 4, out _mode); - ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone _timeZone;translator.Get(L, 5, out _timeZone); - string _timeZoneId = LuaAPI.lua_tostring(L, 6); - - var gen_ret = new ThinkingAnalytics.ThinkingAnalyticsAPI.Token(_appId, _serverUrl, _mode, _timeZone, _timeZoneId); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - string _appId = LuaAPI.lua_tostring(L, 2); - string _serverUrl = LuaAPI.lua_tostring(L, 3); - ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode _mode;translator.Get(L, 4, out _mode); - ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone _timeZone;translator.Get(L, 5, out _timeZone); - - var gen_ret = new ThinkingAnalytics.ThinkingAnalyticsAPI.Token(_appId, _serverUrl, _mode, _timeZone); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(ThinkingAnalytics.ThinkingAnalyticsAPI.Token)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsAPI.Token constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getTimeZoneId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.getTimeZoneId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_appid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.appid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_serverUrl(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.serverUrl); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeZone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, gen_to_be_invoked.timeZone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeZoneId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.timeZoneId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_appid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.appid = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_serverUrl(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.serverUrl = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeZone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.timeZone = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeZoneId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsAPI.Token gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.timeZoneId = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsEventWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsEventWrap.cs deleted file mode 100644 index a39bd59a6..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_ThinkingAnalyticsEventWrap.cs +++ /dev/null @@ -1,211 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsThinkingAnalyticsEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.ThinkingAnalyticsEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventType", _g_get_EventType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventName", _g_get_EventName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Properties", _g_get_Properties); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventTime", _g_get_EventTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ExtraId", _g_get_ExtraId); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EventType", _s_set_EventType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EventTime", _s_set_EventTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ExtraId", _s_set_ExtraId); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable>(L, 3)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new ThinkingAnalytics.ThinkingAnalyticsEvent(_eventName, _properties); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.ThinkingAnalyticsEvent constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EventType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.EventType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EventName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.EventName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Properties(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.Properties); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EventTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.EventTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ExtraId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.ExtraId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EventType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - System.Nullable gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.EventType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EventTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - System.DateTime gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.EventTime = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ExtraId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.ThinkingAnalyticsEvent gen_to_be_invoked = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ExtraId = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_LogWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_LogWrap.cs deleted file mode 100644 index 65932f681..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_LogWrap.cs +++ /dev/null @@ -1,184 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsUtilsTD_LogWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.Utils.TD_Log); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableLog", _m_EnableLog_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "d", _m_d_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "e", _m_e_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "w", _m_w_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new ThinkingAnalytics.Utils.TD_Log(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Utils.TD_Log constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableLog_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 1); - - ThinkingAnalytics.Utils.TD_Log.EnableLog( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_d_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _message = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.Utils.TD_Log.d( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_e_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _message = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.Utils.TD_Log.e( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_w_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _message = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.Utils.TD_Log.w( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_MiniJSONWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_MiniJSONWrap.cs deleted file mode 100644 index 7a6b61eeb..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_MiniJSONWrap.cs +++ /dev/null @@ -1,156 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsUtilsTD_MiniJSONWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.Utils.TD_MiniJSON); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Deserialize", _m_Deserialize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Serialize", _m_Serialize_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new ThinkingAnalytics.Utils.TD_MiniJSON(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Utils.TD_MiniJSON constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Deserialize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _json = LuaAPI.lua_tostring(L, 1); - - var gen_ret = ThinkingAnalytics.Utils.TD_MiniJSON.Deserialize( _json ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - object _obj = translator.GetObject(L, 1, typeof(object)); - System.Func _func = translator.GetDelegate>(L, 2); - - var gen_ret = ThinkingAnalytics.Utils.TD_MiniJSON.Serialize( _obj, _func ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = ThinkingAnalytics.Utils.TD_MiniJSON.Serialize( _obj ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Utils.TD_MiniJSON.Serialize!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_PropertiesCheckerWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_PropertiesCheckerWrap.cs deleted file mode 100644 index 46a161880..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_Utils_TD_PropertiesCheckerWrap.cs +++ /dev/null @@ -1,315 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsUtilsTD_PropertiesCheckerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.Utils.TD_PropertiesChecker); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsNumeric", _m_IsNumeric_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsString", _m_IsString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsDictionary", _m_IsDictionary_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsList", _m_IsList_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckProperties", _m_CheckProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckString", _m_CheckString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MergeProperties", _m_MergeProperties_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new ThinkingAnalytics.Utils.TD_PropertiesChecker(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Utils.TD_PropertiesChecker constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsNumeric_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.IsNumeric( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsString_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.IsString( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDictionary_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.IsDictionary( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsList_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _obj = translator.GetObject(L, 1, typeof(object)); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.IsList( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - double _properties = LuaAPI.lua_tonumber(L, 1); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.CheckProperties( _properties ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.CheckProperties( _properties ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.CheckProperties( _properties ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _properties = LuaAPI.lua_tostring(L, 1); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.CheckProperties( _properties ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Utils.TD_PropertiesChecker.CheckProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _eventName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = ThinkingAnalytics.Utils.TD_PropertiesChecker.CheckString( _eventName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MergeProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.Dictionary _source = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - System.Collections.Generic.Dictionary _dest = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - ThinkingAnalytics.Utils.TD_PropertiesChecker.MergeProperties( _source, _dest ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/ThinkingAnalytics_Wrapper_ThinkingAnalyticsWrapperWrap.cs b/Assets/XLua/Gen/ThinkingAnalytics_Wrapper_ThinkingAnalyticsWrapperWrap.cs deleted file mode 100644 index d6ee6db92..000000000 --- a/Assets/XLua/Gen/ThinkingAnalytics_Wrapper_ThinkingAnalyticsWrapperWrap.cs +++ /dev/null @@ -1,1224 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class ThinkingAnalyticsWrapperThinkingAnalyticsWrapperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper); - Utils.BeginObjectRegister(type, L, translator, 0, 30, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDynamicSuperProperties", _m_setDynamicSuperProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDynamicSuperProperties", _m_GetDynamicSuperProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Identify", _m_Identify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDistinctId", _m_GetDistinctId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Logout", _m_Logout); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableAutoTrack", _m_EnableAutoTrack); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAutoTrackProperties", _m_SetAutoTrackProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Track", _m_Track); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSuperProperties", _m_SetSuperProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnsetSuperProperty", _m_UnsetSuperProperty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearSuperProperty", _m_ClearSuperProperty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TimeEvent", _m_TimeEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSuperProperties", _m_GetSuperProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPresetProperties", _m_GetPresetProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserSet", _m_UserSet); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserSetOnce", _m_UserSetOnce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserUnset", _m_UserUnset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserAdd", _m_UserAdd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserAppend", _m_UserAppend); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserDelete", _m_UserDelete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Flush", _m_Flush); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNetworkType", _m_SetNetworkType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDeviceId", _m_GetDeviceId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDynamicSuperProperties", _m_SetDynamicSuperProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptOutTracking", _m_OptOutTracking); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptOutTrackingAndDeleteUser", _m_OptOutTrackingAndDeleteUser); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptInTracking", _m_OptInTracking); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableTracking", _m_EnableTracking); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateLightInstance", _m_CreateLightInstance); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "taMono", _g_get_taMono); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "token", _g_get_token); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "taMono", _s_set_taMono); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableLog", _m_EnableLog_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetVersionInfo", _m_SetVersionInfo_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalibrateTime", _m_CalibrateTime_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalibrateTimeWithNtp", _m_CalibrateTimeWithNtp_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.Token _token;translator.Get(L, 2, out _token); - UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 3, typeof(UnityEngine.MonoBehaviour)); - bool _initRequired = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = new ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper(_token, _mono, _initRequired); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.Token _token;translator.Get(L, 2, out _token); - UnityEngine.MonoBehaviour _mono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 3, typeof(UnityEngine.MonoBehaviour)); - - var gen_ret = new ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper(_token, _mono); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDynamicSuperProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 2, typeof(ThinkingAnalytics.IDynamicSuperProperties)); - - gen_to_be_invoked.setDynamicSuperProperties( _dynamicSuperProperties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDynamicSuperProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDynamicSuperProperties( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableLog_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _enableLog = LuaAPI.lua_toboolean(L, 1); - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.EnableLog( _enableLog ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVersionInfo_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _version = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.SetVersionInfo( _version ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Identify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - string _uniqueId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Identify( _uniqueId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDistinctId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDistinctId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Login(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - string _accountId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Login( _accountId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Logout(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Logout( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableAutoTrack(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 2, out _events); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.EnableAutoTrack( _events, _properties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAutoTrackProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - ThinkingAnalytics.AUTO_TRACK_EVENTS _events;translator.Get(L, 2, out _events); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.SetAutoTrackProperties( _events, _properties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Track(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - ThinkingAnalytics.ThinkingAnalyticsEvent _taEvent = (ThinkingAnalytics.ThinkingAnalyticsEvent)translator.GetObject(L, 2, typeof(ThinkingAnalytics.ThinkingAnalyticsEvent)); - - gen_to_be_invoked.Track( _taEvent ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.Track( _eventName, _properties ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)&& translator.Assignable(L, 4)) - { - string _eventName = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _datetime;translator.Get(L, 4, out _datetime); - - gen_to_be_invoked.Track( _eventName, _properties, _datetime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.Track!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSuperProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.Dictionary _superProperties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.SetSuperProperties( _superProperties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnsetSuperProperty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - string _superPropertyName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.UnsetSuperProperty( _superPropertyName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearSuperProperty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearSuperProperty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TimeEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - string _eventName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.TimeEvent( _eventName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSuperProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSuperProperties( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPresetProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPresetProperties( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserSet(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.UserSet( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); - - gen_to_be_invoked.UserSet( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserSet!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserSetOnce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.UserSetOnce( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); - - gen_to_be_invoked.UserSetOnce( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserSetOnce!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserUnset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.UserUnset( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - System.Collections.Generic.List _properties = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); - - gen_to_be_invoked.UserUnset( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserUnset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserAdd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.UserAdd( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); - - gen_to_be_invoked.UserAdd( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserAdd!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserAppend(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.UserAppend( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - System.Collections.Generic.Dictionary _properties = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - System.DateTime _dateTime;translator.Get(L, 3, out _dateTime); - - gen_to_be_invoked.UserAppend( _properties, _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserAppend!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UserDelete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.UserDelete( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.DateTime _dateTime;translator.Get(L, 2, out _dateTime); - - gen_to_be_invoked.UserDelete( _dateTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.UserDelete!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Flush(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Flush( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNetworkType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType _networkType;translator.Get(L, 2, out _networkType); - - gen_to_be_invoked.SetNetworkType( _networkType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDeviceId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetDeviceId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDynamicSuperProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - ThinkingAnalytics.IDynamicSuperProperties _dynamicSuperProperties = (ThinkingAnalytics.IDynamicSuperProperties)translator.GetObject(L, 2, typeof(ThinkingAnalytics.IDynamicSuperProperties)); - - gen_to_be_invoked.SetDynamicSuperProperties( _dynamicSuperProperties ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptOutTracking(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OptOutTracking( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptOutTrackingAndDeleteUser(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OptOutTrackingAndDeleteUser( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptInTracking(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OptInTracking( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableTracking(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.EnableTracking( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateLightInstance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.CreateLightInstance( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalibrateTime_xlua_st_(RealStatePtr L) - { - try { - - - - - { - long _timestamp = LuaAPI.lua_toint64(L, 1); - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.CalibrateTime( _timestamp ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalibrateTimeWithNtp_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _ntpServer = LuaAPI.lua_tostring(L, 1); - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper.CalibrateTimeWithNtp( _ntpServer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_taMono(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.taMono); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_token(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.token); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_taMono(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper gen_to_be_invoked = (ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.taMono = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UIImageSheetAnimationWrap.cs b/Assets/XLua/Gen/UIImageSheetAnimationWrap.cs deleted file mode 100644 index cc4f26140..000000000 --- a/Assets/XLua/Gen/UIImageSheetAnimationWrap.cs +++ /dev/null @@ -1,522 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UIImageSheetAnimationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UIImageSheetAnimation); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 14, 14); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifeTime", _g_get_lifeTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeX", _g_get_sizeX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeY", _g_get_sizeY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startFrameMode", _g_get_startFrameMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startFrameMin", _g_get_startFrameMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startFrame", _g_get_startFrame); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationMode", _g_get_animationMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomRow", _g_get_randomRow); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "row", _g_get_row); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeMode", _g_get_timeMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameOverTime", _g_get_frameOverTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cycles", _g_get_cycles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "FPS", _g_get_FPS); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lifeTime", _s_set_lifeTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "loop", _s_set_loop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeX", _s_set_sizeX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeY", _s_set_sizeY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startFrameMode", _s_set_startFrameMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startFrameMin", _s_set_startFrameMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startFrame", _s_set_startFrame); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationMode", _s_set_animationMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomRow", _s_set_randomRow); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "row", _s_set_row); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeMode", _s_set_timeMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frameOverTime", _s_set_frameOverTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cycles", _s_set_cycles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "FPS", _s_set_FPS); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UIImageSheetAnimation(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UIImageSheetAnimation constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifeTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lifeTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sizeX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sizeY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startFrameMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - translator.PushUIImageSheetAnimationStartFrameType(L, gen_to_be_invoked.startFrameMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startFrameMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startFrameMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startFrame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - translator.PushUIImageSheetAnimationAnimationType(L, gen_to_be_invoked.animationMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomRow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.randomRow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_row(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.row); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - translator.PushUIImageSheetAnimationTimeType(L, gen_to_be_invoked.timeMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameOverTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.frameOverTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cycles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cycles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_FPS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.FPS); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lifeTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lifeTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.loop = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sizeX = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sizeY = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startFrameMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - UIImageSheetAnimation.StartFrameType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startFrameMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startFrameMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startFrameMin = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startFrame = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - UIImageSheetAnimation.AnimationType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.animationMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomRow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.randomRow = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_row(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.row = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - UIImageSheetAnimation.TimeType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.timeMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frameOverTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.frameOverTime = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cycles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cycles = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_FPS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIImageSheetAnimation gen_to_be_invoked = (UIImageSheetAnimation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.FPS = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UIInputHelperWrap.cs b/Assets/XLua/Gen/UIInputHelperWrap.cs deleted file mode 100644 index f4afdee5f..000000000 --- a/Assets/XLua/Gen/UIInputHelperWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UIInputHelperWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UIInputHelper); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UIInputHelper(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UIInputHelper constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UIOutlineEffectWrap.cs b/Assets/XLua/Gen/UIOutlineEffectWrap.cs deleted file mode 100644 index fa18985bd..000000000 --- a/Assets/XLua/Gen/UIOutlineEffectWrap.cs +++ /dev/null @@ -1,176 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UIOutlineEffectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UIOutlineEffect); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ModifyMesh", _m_ModifyMesh); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OutlineColor", _g_get_OutlineColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "OutlineWidth", _g_get_OutlineWidth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OutlineColor", _s_set_OutlineColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "OutlineWidth", _s_set_OutlineWidth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UIOutlineEffect(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UIOutlineEffect constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ModifyMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UIOutlineEffect gen_to_be_invoked = (UIOutlineEffect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.VertexHelper _vh = (UnityEngine.UI.VertexHelper)translator.GetObject(L, 2, typeof(UnityEngine.UI.VertexHelper)); - - gen_to_be_invoked.ModifyMesh( _vh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OutlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIOutlineEffect gen_to_be_invoked = (UIOutlineEffect)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.OutlineColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_OutlineWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIOutlineEffect gen_to_be_invoked = (UIOutlineEffect)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.OutlineWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OutlineColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIOutlineEffect gen_to_be_invoked = (UIOutlineEffect)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.OutlineColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_OutlineWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIOutlineEffect gen_to_be_invoked = (UIOutlineEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.OutlineWidth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UIResGhostTweenEffectWrap.cs b/Assets/XLua/Gen/UIResGhostTweenEffectWrap.cs deleted file mode 100644 index ec0d1d830..000000000 --- a/Assets/XLua/Gen/UIResGhostTweenEffectWrap.cs +++ /dev/null @@ -1,144 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UIResGhostTweenEffectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UIResGhostTweenEffect); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterial", _m_SetMaterial); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "smooth", _g_get_smooth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "smooth", _s_set_smooth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UIResGhostTweenEffect(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UIResGhostTweenEffect constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UIResGhostTweenEffect gen_to_be_invoked = (UIResGhostTweenEffect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.SetMaterial( _material ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_smooth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIResGhostTweenEffect gen_to_be_invoked = (UIResGhostTweenEffect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.smooth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_smooth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UIResGhostTweenEffect gen_to_be_invoked = (UIResGhostTweenEffect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.smooth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimationClipWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimationClipWrap.cs deleted file mode 100644 index 87c95c60a..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimationClipWrap.cs +++ /dev/null @@ -1,493 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimationClipWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimationClip); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 12, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SampleAnimation", _m_SampleAnimation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCurve", _m_SetCurve); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnsureQuaternionContinuity", _m_EnsureQuaternionContinuity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearCurves", _m_ClearCurves); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddEvent", _m_AddEvent); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameRate", _g_get_frameRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapMode", _g_get_wrapMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localBounds", _g_get_localBounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "legacy", _g_get_legacy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "humanMotion", _g_get_humanMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "empty", _g_get_empty); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasGenericRootTransform", _g_get_hasGenericRootTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasMotionFloatCurves", _g_get_hasMotionFloatCurves); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasMotionCurves", _g_get_hasMotionCurves); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasRootCurves", _g_get_hasRootCurves); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "events", _g_get_events); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frameRate", _s_set_frameRate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapMode", _s_set_wrapMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localBounds", _s_set_localBounds); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "legacy", _s_set_legacy); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "events", _s_set_events); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AnimationClip(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationClip constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SampleAnimation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - float _time = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SampleAnimation( _go, _time ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCurve(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - - - - { - string _relativePath = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - string _propertyName = LuaAPI.lua_tostring(L, 4); - UnityEngine.AnimationCurve _curve = (UnityEngine.AnimationCurve)translator.GetObject(L, 5, typeof(UnityEngine.AnimationCurve)); - - gen_to_be_invoked.SetCurve( _relativePath, _type, _propertyName, _curve ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnsureQuaternionContinuity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.EnsureQuaternionContinuity( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearCurves(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearCurves( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AnimationEvent _evt = (UnityEngine.AnimationEvent)translator.GetObject(L, 2, typeof(UnityEngine.AnimationEvent)); - - gen_to_be_invoked.AddEvent( _evt ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frameRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wrapMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.localBounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_legacy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.legacy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_humanMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.humanMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_empty(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.empty); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasGenericRootTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasGenericRootTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasMotionFloatCurves(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasMotionFloatCurves); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasMotionCurves(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasMotionCurves); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasRootCurves(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasRootCurves); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_events(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.events); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frameRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.frameRate = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - UnityEngine.WrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.wrapMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - UnityEngine.Bounds gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localBounds = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_legacy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.legacy = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_events(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.events = (UnityEngine.AnimationEvent[])translator.GetObject(L, 2, typeof(UnityEngine.AnimationEvent[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimationCurveWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimationCurveWrap.cs deleted file mode 100644 index 87267cff2..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimationCurveWrap.cs +++ /dev/null @@ -1,560 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimationCurveWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimationCurve); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 4, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Evaluate", _m_Evaluate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddKey", _m_AddKey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveKey", _m_MoveKey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveKey", _m_RemoveKey); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SmoothTangents", _m_SmoothTangents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keys", _g_get_keys); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preWrapMode", _g_get_preWrapMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "postWrapMode", _g_get_postWrapMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "keys", _s_set_keys); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preWrapMode", _s_set_preWrapMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "postWrapMode", _s_set_postWrapMode); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Constant", _m_Constant_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Linear", _m_Linear_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EaseInOut", _m_EaseInOut_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) >= 1 && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable(L, 2))) - { - UnityEngine.Keyframe[] _keys = translator.GetParams(L, 2); - - var gen_ret = new UnityEngine.AnimationCurve(_keys); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AnimationCurve(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationCurve constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Evaluate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - - - - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Evaluate( _time ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddKey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.AddKey( _time, _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Keyframe _key;translator.Get(L, 2, out _key); - - var gen_ret = gen_to_be_invoked.AddKey( _key ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationCurve.AddKey!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveKey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Keyframe _key;translator.Get(L, 3, out _key); - - var gen_ret = gen_to_be_invoked.MoveKey( _index, _key ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveKey(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveKey( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothTangents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _weight = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SmoothTangents( _index, _weight ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Constant_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _timeStart = (float)LuaAPI.lua_tonumber(L, 1); - float _timeEnd = (float)LuaAPI.lua_tonumber(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.AnimationCurve.Constant( _timeStart, _timeEnd, _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Linear_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _timeStart = (float)LuaAPI.lua_tonumber(L, 1); - float _valueStart = (float)LuaAPI.lua_tonumber(L, 2); - float _timeEnd = (float)LuaAPI.lua_tonumber(L, 3); - float _valueEnd = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.AnimationCurve.Linear( _timeStart, _valueStart, _timeEnd, _valueEnd ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EaseInOut_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _timeStart = (float)LuaAPI.lua_tonumber(L, 1); - float _valueStart = (float)LuaAPI.lua_tonumber(L, 2); - float _timeEnd = (float)LuaAPI.lua_tonumber(L, 3); - float _valueEnd = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.AnimationCurve.EaseInOut( _timeStart, _valueStart, _timeEnd, _valueEnd ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _o = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _o ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationCurve _other = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationCurve.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keys(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.keys); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preWrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.preWrapMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_postWrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.postWrapMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keys(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.keys = (UnityEngine.Keyframe[])translator.GetObject(L, 2, typeof(UnityEngine.Keyframe[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preWrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - UnityEngine.WrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.preWrapMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_postWrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimationCurve gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1); - UnityEngine.WrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.postWrapMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimationWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimationWrap.cs deleted file mode 100644 index c2be2fd8c..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimationWrap.cs +++ /dev/null @@ -1,991 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Animation); - Utils.BeginObjectRegister(type, L, translator, 0, 16, 7, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rewind", _m_Rewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sample", _m_Sample); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPlaying", _m_IsPlaying); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "get_Item", _m_get_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFade", _m_CrossFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Blend", _m_Blend); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFadeQueued", _m_CrossFadeQueued); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayQueued", _m_PlayQueued); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddClip", _m_AddClip); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveClip", _m_RemoveClip); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetClipCount", _m_GetClipCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SyncLayer", _m_SyncLayer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetClip", _m_GetClip); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clip", _g_get_clip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playAutomatically", _g_get_playAutomatically); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapMode", _g_get_wrapMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlaying", _g_get_isPlaying); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animatePhysics", _g_get_animatePhysics); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullingType", _g_get_cullingType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localBounds", _g_get_localBounds); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clip", _s_set_clip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playAutomatically", _s_set_playAutomatically); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapMode", _s_set_wrapMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animatePhysics", _s_set_animatePhysics); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullingType", _s_set_cullingType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localBounds", _s_set_localBounds); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Animation(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Stop( _name ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.Stop!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Rewind( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Rewind( _name ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.Rewind!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sample(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Sample( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsPlaying(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsPlaying( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_get_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - translator.Push(L, gen_to_be_invoked[key]); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.Play( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.PlayMode _mode;translator.Get(L, 2, out _mode); - - var gen_ret = gen_to_be_invoked.Play( _mode ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Play( _animation ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - UnityEngine.PlayMode _mode;translator.Get(L, 3, out _mode); - - var gen_ret = gen_to_be_invoked.Play( _animation, _mode ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.Play!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.CrossFade( _animation ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - float _fadeLength = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.CrossFade( _animation, _fadeLength ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - float _fadeLength = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.PlayMode _mode;translator.Get(L, 4, out _mode); - - gen_to_be_invoked.CrossFade( _animation, _fadeLength, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.CrossFade!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Blend(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Blend( _animation ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - float _targetWeight = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Blend( _animation, _targetWeight ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - float _targetWeight = (float)LuaAPI.lua_tonumber(L, 3); - float _fadeLength = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.Blend( _animation, _targetWeight, _fadeLength ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.Blend!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFadeQueued(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.CrossFadeQueued( _animation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - float _fadeLength = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.CrossFadeQueued( _animation, _fadeLength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - float _fadeLength = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.QueueMode _queue;translator.Get(L, 4, out _queue); - - var gen_ret = gen_to_be_invoked.CrossFadeQueued( _animation, _fadeLength, _queue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - float _fadeLength = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.QueueMode _queue;translator.Get(L, 4, out _queue); - UnityEngine.PlayMode _mode;translator.Get(L, 5, out _mode); - - var gen_ret = gen_to_be_invoked.CrossFadeQueued( _animation, _fadeLength, _queue, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.CrossFadeQueued!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayQueued(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.PlayQueued( _animation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - UnityEngine.QueueMode _queue;translator.Get(L, 3, out _queue); - - var gen_ret = gen_to_be_invoked.PlayQueued( _animation, _queue ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _animation = LuaAPI.lua_tostring(L, 2); - UnityEngine.QueueMode _queue;translator.Get(L, 3, out _queue); - UnityEngine.PlayMode _mode;translator.Get(L, 4, out _mode); - - var gen_ret = gen_to_be_invoked.PlayQueued( _animation, _queue, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.PlayQueued!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddClip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - UnityEngine.AnimationClip _clip = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); - string _newName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.AddClip( _clip, _newName ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.AnimationClip _clip = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); - string _newName = LuaAPI.lua_tostring(L, 3); - int _firstFrame = LuaAPI.xlua_tointeger(L, 4); - int _lastFrame = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.AddClip( _clip, _newName, _firstFrame, _lastFrame ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.AnimationClip _clip = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); - string _newName = LuaAPI.lua_tostring(L, 3); - int _firstFrame = LuaAPI.xlua_tointeger(L, 4); - int _lastFrame = LuaAPI.xlua_tointeger(L, 5); - bool _addLoopFrame = LuaAPI.lua_toboolean(L, 6); - - gen_to_be_invoked.AddClip( _clip, _newName, _firstFrame, _lastFrame, _addLoopFrame ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.AddClip!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveClip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AnimationClip _clip = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); - - gen_to_be_invoked.RemoveClip( _clip ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _clipName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.RemoveClip( _clipName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.RemoveClip!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetClipCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetClipCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SyncLayer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - - { - int _layer = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SyncLayer( _layer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetClip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetClip( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.clip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playAutomatically(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playAutomatically); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wrapMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPlaying(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPlaying); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animatePhysics(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.animatePhysics); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullingType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cullingType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.localBounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clip = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playAutomatically(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playAutomatically = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - UnityEngine.WrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.wrapMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animatePhysics(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.animatePhysics = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullingType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - UnityEngine.AnimationCullingType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cullingType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); - UnityEngine.Bounds gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localBounds = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimatorStateInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimatorStateInfoWrap.cs deleted file mode 100644 index 88143150f..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimatorStateInfoWrap.cs +++ /dev/null @@ -1,266 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimatorStateInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AnimatorStateInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 8, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsName", _m_IsName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsTag", _m_IsTag); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fullPathHash", _g_get_fullPathHash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shortNameHash", _g_get_shortNameHash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedTime", _g_get_normalizedTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speedMultiplier", _g_get_speedMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tagHash", _g_get_tagHash); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.AnimatorStateInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimatorStateInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsName( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsTag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - string _tag = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsTag( _tag ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fullPathHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fullPathHash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shortNameHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.shortNameHash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalizedTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalizedTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speedMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tagHash(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.tagHash); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AnimatorStateInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AnimatorWrap.cs b/Assets/XLua/Gen/UnityEngine_AnimatorWrap.cs deleted file mode 100644 index aa1380c09..000000000 --- a/Assets/XLua/Gen/UnityEngine_AnimatorWrap.cs +++ /dev/null @@ -1,3327 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAnimatorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Animator); - Utils.BeginObjectRegister(type, L, translator, 0, 55, 44, 20); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloat", _m_GetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloat", _m_SetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBool", _m_GetBool); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBool", _m_SetBool); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInteger", _m_GetInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInteger", _m_SetInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTrigger", _m_SetTrigger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetTrigger", _m_ResetTrigger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsParameterControlledByCurve", _m_IsParameterControlledByCurve); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIKPosition", _m_GetIKPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIKPosition", _m_SetIKPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIKRotation", _m_GetIKRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIKRotation", _m_SetIKRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIKPositionWeight", _m_GetIKPositionWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIKPositionWeight", _m_SetIKPositionWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIKRotationWeight", _m_GetIKRotationWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIKRotationWeight", _m_SetIKRotationWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIKHintPosition", _m_GetIKHintPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIKHintPosition", _m_SetIKHintPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIKHintPositionWeight", _m_GetIKHintPositionWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIKHintPositionWeight", _m_SetIKHintPositionWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLookAtPosition", _m_SetLookAtPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLookAtWeight", _m_SetLookAtWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBoneLocalRotation", _m_SetBoneLocalRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBehaviours", _m_GetBehaviours); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLayerName", _m_GetLayerName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLayerIndex", _m_GetLayerIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLayerWeight", _m_GetLayerWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayerWeight", _m_SetLayerWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentAnimatorStateInfo", _m_GetCurrentAnimatorStateInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNextAnimatorStateInfo", _m_GetNextAnimatorStateInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAnimatorTransitionInfo", _m_GetAnimatorTransitionInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentAnimatorClipInfoCount", _m_GetCurrentAnimatorClipInfoCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNextAnimatorClipInfoCount", _m_GetNextAnimatorClipInfoCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentAnimatorClipInfo", _m_GetCurrentAnimatorClipInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNextAnimatorClipInfo", _m_GetNextAnimatorClipInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInTransition", _m_IsInTransition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetParameter", _m_GetParameter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MatchTarget", _m_MatchTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InterruptMatchTarget", _m_InterruptMatchTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFadeInFixedTime", _m_CrossFadeInFixedTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WriteDefaultValues", _m_WriteDefaultValues); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFade", _m_CrossFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayInFixedTime", _m_PlayInFixedTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTarget", _m_SetTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBoneTransform", _m_GetBoneTransform); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartPlayback", _m_StartPlayback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopPlayback", _m_StopPlayback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartRecording", _m_StartRecording); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopRecording", _m_StopRecording); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasState", _m_HasState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebind", _m_Rebind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ApplyBuiltinRootMotion", _m_ApplyBuiltinRootMotion); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isOptimizable", _g_get_isOptimizable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isHuman", _g_get_isHuman); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasRootMotion", _g_get_hasRootMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "humanScale", _g_get_humanScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isInitialized", _g_get_isInitialized); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deltaPosition", _g_get_deltaPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "deltaRotation", _g_get_deltaRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity", _g_get_angularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootPosition", _g_get_rootPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootRotation", _g_get_rootRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "applyRootMotion", _g_get_applyRootMotion); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateMode", _g_get_updateMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasTransformHierarchy", _g_get_hasTransformHierarchy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gravityWeight", _g_get_gravityWeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bodyPosition", _g_get_bodyPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bodyRotation", _g_get_bodyRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stabilizeFeet", _g_get_stabilizeFeet); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerCount", _g_get_layerCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parameters", _g_get_parameters); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parameterCount", _g_get_parameterCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "feetPivotActive", _g_get_feetPivotActive); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivotWeight", _g_get_pivotWeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivotPosition", _g_get_pivotPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isMatchingTarget", _g_get_isMatchingTarget); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetPosition", _g_get_targetPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetRotation", _g_get_targetRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullingMode", _g_get_cullingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playbackTime", _g_get_playbackTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "recorderStartTime", _g_get_recorderStartTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "recorderStopTime", _g_get_recorderStopTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "recorderMode", _g_get_recorderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "runtimeAnimatorController", _g_get_runtimeAnimatorController); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasBoundPlayables", _g_get_hasBoundPlayables); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "avatar", _g_get_avatar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playableGraph", _g_get_playableGraph); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layersAffectMassCenter", _g_get_layersAffectMassCenter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "leftFeetBottomHeight", _g_get_leftFeetBottomHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rightFeetBottomHeight", _g_get_rightFeetBottomHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "logWarnings", _g_get_logWarnings); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fireEvents", _g_get_fireEvents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keepAnimatorStateOnDisable", _g_get_keepAnimatorStateOnDisable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "writeDefaultValuesOnDisable", _g_get_writeDefaultValuesOnDisable); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rootPosition", _s_set_rootPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rootRotation", _s_set_rootRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "applyRootMotion", _s_set_applyRootMotion); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateMode", _s_set_updateMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bodyPosition", _s_set_bodyPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bodyRotation", _s_set_bodyRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stabilizeFeet", _s_set_stabilizeFeet); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "feetPivotActive", _s_set_feetPivotActive); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speed", _s_set_speed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullingMode", _s_set_cullingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playbackTime", _s_set_playbackTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "recorderStartTime", _s_set_recorderStartTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "recorderStopTime", _s_set_recorderStopTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "runtimeAnimatorController", _s_set_runtimeAnimatorController); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "avatar", _s_set_avatar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layersAffectMassCenter", _s_set_layersAffectMassCenter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "logWarnings", _s_set_logWarnings); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fireEvents", _s_set_fireEvents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "keepAnimatorStateOnDisable", _s_set_keepAnimatorStateOnDisable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "writeDefaultValuesOnDisable", _s_set_writeDefaultValuesOnDisable); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "StringToHash", _m_StringToHash_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Animator(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloat( _id ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloat( _name ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.GetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _id, _value ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - float _dampTime = (float)LuaAPI.lua_tonumber(L, 4); - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetFloat( _id, _value, _dampTime, _deltaTime ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _name, _value ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - float _dampTime = (float)LuaAPI.lua_tonumber(L, 4); - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetFloat( _name, _value, _dampTime, _deltaTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.SetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBool(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetBool( _id ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetBool( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.GetBool!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBool(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - bool _value = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetBool( _id, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - bool _value = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetBool( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.SetBool!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetInteger( _id ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetInteger( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.GetInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInteger( _id, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInteger( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.SetInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTrigger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetTrigger( _id ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetTrigger( _name ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.SetTrigger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetTrigger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.ResetTrigger( _id ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.ResetTrigger( _name ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.ResetTrigger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsParameterControlledByCurve(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _id = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsParameterControlledByCurve( _id ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsParameterControlledByCurve( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.IsParameterControlledByCurve!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIKPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - - var gen_ret = gen_to_be_invoked.GetIKPosition( _goal ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIKPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - UnityEngine.Vector3 _goalPosition;translator.Get(L, 3, out _goalPosition); - - gen_to_be_invoked.SetIKPosition( _goal, _goalPosition ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIKRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - - var gen_ret = gen_to_be_invoked.GetIKRotation( _goal ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIKRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - UnityEngine.Quaternion _goalRotation;translator.Get(L, 3, out _goalRotation); - - gen_to_be_invoked.SetIKRotation( _goal, _goalRotation ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIKPositionWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - - var gen_ret = gen_to_be_invoked.GetIKPositionWeight( _goal ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIKPositionWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetIKPositionWeight( _goal, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIKRotationWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - - var gen_ret = gen_to_be_invoked.GetIKRotationWeight( _goal ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIKRotationWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKGoal _goal;translator.Get(L, 2, out _goal); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetIKRotationWeight( _goal, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIKHintPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKHint _hint;translator.Get(L, 2, out _hint); - - var gen_ret = gen_to_be_invoked.GetIKHintPosition( _hint ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIKHintPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKHint _hint;translator.Get(L, 2, out _hint); - UnityEngine.Vector3 _hintPosition;translator.Get(L, 3, out _hintPosition); - - gen_to_be_invoked.SetIKHintPosition( _hint, _hintPosition ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIKHintPositionWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKHint _hint;translator.Get(L, 2, out _hint); - - var gen_ret = gen_to_be_invoked.GetIKHintPositionWeight( _hint ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIKHintPositionWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarIKHint _hint;translator.Get(L, 2, out _hint); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetIKHintPositionWeight( _hint, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLookAtPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _lookAtPosition;translator.Get(L, 2, out _lookAtPosition); - - gen_to_be_invoked.SetLookAtPosition( _lookAtPosition ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLookAtWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _weight = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetLookAtWeight( _weight ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _weight = (float)LuaAPI.lua_tonumber(L, 2); - float _bodyWeight = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetLookAtWeight( _weight, _bodyWeight ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _weight = (float)LuaAPI.lua_tonumber(L, 2); - float _bodyWeight = (float)LuaAPI.lua_tonumber(L, 3); - float _headWeight = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetLookAtWeight( _weight, _bodyWeight, _headWeight ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _weight = (float)LuaAPI.lua_tonumber(L, 2); - float _bodyWeight = (float)LuaAPI.lua_tonumber(L, 3); - float _headWeight = (float)LuaAPI.lua_tonumber(L, 4); - float _eyesWeight = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.SetLookAtWeight( _weight, _bodyWeight, _headWeight, _eyesWeight ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - float _weight = (float)LuaAPI.lua_tonumber(L, 2); - float _bodyWeight = (float)LuaAPI.lua_tonumber(L, 3); - float _headWeight = (float)LuaAPI.lua_tonumber(L, 4); - float _eyesWeight = (float)LuaAPI.lua_tonumber(L, 5); - float _clampWeight = (float)LuaAPI.lua_tonumber(L, 6); - - gen_to_be_invoked.SetLookAtWeight( _weight, _bodyWeight, _headWeight, _eyesWeight, _clampWeight ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.SetLookAtWeight!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBoneLocalRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.HumanBodyBones _humanBoneId;translator.Get(L, 2, out _humanBoneId); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - - gen_to_be_invoked.SetBoneLocalRotation( _humanBoneId, _rotation ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBehaviours(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _fullPathHash = LuaAPI.xlua_tointeger(L, 2); - int _layerIndex = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetBehaviours( _fullPathHash, _layerIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayerName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetLayerName( _layerIndex ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayerIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - string _layerName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetLayerIndex( _layerName ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLayerWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetLayerWeight( _layerIndex ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayerWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - float _weight = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetLayerWeight( _layerIndex, _weight ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentAnimatorStateInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetCurrentAnimatorStateInfo( _layerIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNextAnimatorStateInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetNextAnimatorStateInfo( _layerIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAnimatorTransitionInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAnimatorTransitionInfo( _layerIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentAnimatorClipInfoCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetCurrentAnimatorClipInfoCount( _layerIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNextAnimatorClipInfoCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetNextAnimatorClipInfoCount( _layerIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentAnimatorClipInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetCurrentAnimatorClipInfo( _layerIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _clips = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetCurrentAnimatorClipInfo( _layerIndex, _clips ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.GetCurrentAnimatorClipInfo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNextAnimatorClipInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetNextAnimatorClipInfo( _layerIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _clips = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetNextAnimatorClipInfo( _layerIndex, _clips ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.GetNextAnimatorClipInfo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsInTransition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsInTransition( _layerIndex ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetParameter( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MatchTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _matchPosition;translator.Get(L, 2, out _matchPosition); - UnityEngine.Quaternion _matchRotation;translator.Get(L, 3, out _matchRotation); - UnityEngine.AvatarTarget _targetBodyPart;translator.Get(L, 4, out _targetBodyPart); - UnityEngine.MatchTargetWeightMask _weightMask;translator.Get(L, 5, out _weightMask); - float _startNormalizedTime = (float)LuaAPI.lua_tonumber(L, 6); - - gen_to_be_invoked.MatchTarget( _matchPosition, _matchRotation, _targetBodyPart, _weightMask, _startNormalizedTime ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _matchPosition;translator.Get(L, 2, out _matchPosition); - UnityEngine.Quaternion _matchRotation;translator.Get(L, 3, out _matchRotation); - UnityEngine.AvatarTarget _targetBodyPart;translator.Get(L, 4, out _targetBodyPart); - UnityEngine.MatchTargetWeightMask _weightMask;translator.Get(L, 5, out _weightMask); - float _startNormalizedTime = (float)LuaAPI.lua_tonumber(L, 6); - float _targetNormalizedTime = (float)LuaAPI.lua_tonumber(L, 7); - - gen_to_be_invoked.MatchTarget( _matchPosition, _matchRotation, _targetBodyPart, _weightMask, _startNormalizedTime, _targetNormalizedTime ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Vector3 _matchPosition;translator.Get(L, 2, out _matchPosition); - UnityEngine.Quaternion _matchRotation;translator.Get(L, 3, out _matchRotation); - UnityEngine.AvatarTarget _targetBodyPart;translator.Get(L, 4, out _targetBodyPart); - UnityEngine.MatchTargetWeightMask _weightMask;translator.Get(L, 5, out _weightMask); - float _startNormalizedTime = (float)LuaAPI.lua_tonumber(L, 6); - float _targetNormalizedTime = (float)LuaAPI.lua_tonumber(L, 7); - bool _completeMatch = LuaAPI.lua_toboolean(L, 8); - - gen_to_be_invoked.MatchTarget( _matchPosition, _matchRotation, _targetBodyPart, _weightMask, _startNormalizedTime, _targetNormalizedTime, _completeMatch ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.MatchTarget!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InterruptMatchTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.InterruptMatchTarget( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _completeMatch = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.InterruptMatchTarget( _completeMatch ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.InterruptMatchTarget!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFadeInFixedTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateHashName, _fixedTransitionDuration ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateHashName, _fixedTransitionDuration, _layer ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _fixedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateHashName, _fixedTransitionDuration, _layer, _fixedTimeOffset ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _fixedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - float _normalizedTransitionTime = (float)LuaAPI.lua_tonumber(L, 6); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateHashName, _fixedTransitionDuration, _layer, _fixedTimeOffset, _normalizedTransitionTime ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateName, _fixedTransitionDuration ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateName, _fixedTransitionDuration, _layer ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _fixedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateName, _fixedTransitionDuration, _layer, _fixedTimeOffset ); - - - - return 0; - } - if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _fixedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _fixedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - float _normalizedTransitionTime = (float)LuaAPI.lua_tonumber(L, 6); - - gen_to_be_invoked.CrossFadeInFixedTime( _stateName, _fixedTransitionDuration, _layer, _fixedTimeOffset, _normalizedTransitionTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.CrossFadeInFixedTime!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteDefaultValues(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.WriteDefaultValues( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.CrossFade( _stateHashName, _normalizedTransitionDuration ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.CrossFade( _stateHashName, _normalizedTransitionDuration, _layer ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _normalizedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.CrossFade( _stateHashName, _normalizedTransitionDuration, _layer, _normalizedTimeOffset ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _stateHashName = LuaAPI.xlua_tointeger(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _normalizedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - float _normalizedTransitionTime = (float)LuaAPI.lua_tonumber(L, 6); - - gen_to_be_invoked.CrossFade( _stateHashName, _normalizedTransitionDuration, _layer, _normalizedTimeOffset, _normalizedTransitionTime ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.CrossFade( _stateName, _normalizedTransitionDuration ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.CrossFade( _stateName, _normalizedTransitionDuration, _layer ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _normalizedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.CrossFade( _stateName, _normalizedTransitionDuration, _layer, _normalizedTimeOffset ); - - - - return 0; - } - if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - float _normalizedTransitionDuration = (float)LuaAPI.lua_tonumber(L, 3); - int _layer = LuaAPI.xlua_tointeger(L, 4); - float _normalizedTimeOffset = (float)LuaAPI.lua_tonumber(L, 5); - float _normalizedTransitionTime = (float)LuaAPI.lua_tonumber(L, 6); - - gen_to_be_invoked.CrossFade( _stateName, _normalizedTransitionDuration, _layer, _normalizedTimeOffset, _normalizedTransitionTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.CrossFade!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayInFixedTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _stateNameHash = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.PlayInFixedTime( _stateNameHash ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _stateNameHash = LuaAPI.xlua_tointeger(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.PlayInFixedTime( _stateNameHash, _layer ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _stateNameHash = LuaAPI.xlua_tointeger(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - float _fixedTime = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.PlayInFixedTime( _stateNameHash, _layer, _fixedTime ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.PlayInFixedTime( _stateName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.PlayInFixedTime( _stateName, _layer ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - float _fixedTime = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.PlayInFixedTime( _stateName, _layer, _fixedTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.PlayInFixedTime!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _stateNameHash = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Play( _stateNameHash ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _stateNameHash = LuaAPI.xlua_tointeger(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Play( _stateNameHash, _layer ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _stateNameHash = LuaAPI.xlua_tointeger(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - float _normalizedTime = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.Play( _stateNameHash, _layer, _normalizedTime ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Play( _stateName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Play( _stateName, _layer ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _stateName = LuaAPI.lua_tostring(L, 2); - int _layer = LuaAPI.xlua_tointeger(L, 3); - float _normalizedTime = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.Play( _stateName, _layer, _normalizedTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animator.Play!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AvatarTarget _targetIndex;translator.Get(L, 2, out _targetIndex); - float _targetNormalizedTime = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetTarget( _targetIndex, _targetNormalizedTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBoneTransform(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.HumanBodyBones _humanBoneId;translator.Get(L, 2, out _humanBoneId); - - var gen_ret = gen_to_be_invoked.GetBoneTransform( _humanBoneId ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartPlayback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StartPlayback( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopPlayback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopPlayback( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartRecording(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _frameCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.StartRecording( _frameCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopRecording(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopRecording( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - int _layerIndex = LuaAPI.xlua_tointeger(L, 2); - int _stateID = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.HasState( _layerIndex, _stateID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StringToHash_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Animator.StringToHash( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Update( _deltaTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Rebind( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyBuiltinRootMotion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ApplyBuiltinRootMotion( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isOptimizable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isOptimizable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isHuman(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isHuman); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasRootMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasRootMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_humanScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.humanScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isInitialized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isInitialized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deltaPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.deltaPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deltaRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.deltaRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.angularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rootPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rootPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rootRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.rootRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_applyRootMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.applyRootMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.updateMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasTransformHierarchy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasTransformHierarchy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravityWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.gravityWeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bodyPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.bodyPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bodyRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.bodyRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stabilizeFeet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.stabilizeFeet); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layerCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parameters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.parameters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parameterCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.parameterCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_feetPivotActive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.feetPivotActive); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivotWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pivotWeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivotPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.pivotPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isMatchingTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isMatchingTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.targetPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.targetRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineAnimatorCullingMode(L, gen_to_be_invoked.cullingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playbackTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.playbackTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_recorderStartTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.recorderStartTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_recorderStopTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.recorderStopTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_recorderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.recorderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_runtimeAnimatorController(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.runtimeAnimatorController); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasBoundPlayables(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasBoundPlayables); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_avatar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.avatar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playableGraph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.playableGraph); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layersAffectMassCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.layersAffectMassCenter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_leftFeetBottomHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.leftFeetBottomHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rightFeetBottomHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rightFeetBottomHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logWarnings(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.logWarnings); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fireEvents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.fireEvents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keepAnimatorStateOnDisable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepAnimatorStateOnDisable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_writeDefaultValuesOnDisable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.writeDefaultValuesOnDisable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rootPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rootPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rootRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rootRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_applyRootMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.applyRootMotion = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - UnityEngine.AnimatorUpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.updateMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bodyPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bodyPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bodyRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bodyRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stabilizeFeet(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stabilizeFeet = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_feetPivotActive(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.feetPivotActive = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.speed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - UnityEngine.AnimatorCullingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cullingMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playbackTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playbackTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_recorderStartTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.recorderStartTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_recorderStopTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.recorderStopTime = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_runtimeAnimatorController(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.runtimeAnimatorController = (UnityEngine.RuntimeAnimatorController)translator.GetObject(L, 2, typeof(UnityEngine.RuntimeAnimatorController)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_avatar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.avatar = (UnityEngine.Avatar)translator.GetObject(L, 2, typeof(UnityEngine.Avatar)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layersAffectMassCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.layersAffectMassCenter = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logWarnings(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.logWarnings = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fireEvents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fireEvents = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keepAnimatorStateOnDisable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.keepAnimatorStateOnDisable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_writeDefaultValuesOnDisable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Animator gen_to_be_invoked = (UnityEngine.Animator)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.writeDefaultValuesOnDisable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ApplicationWrap.cs b/Assets/XLua/Gen/UnityEngine_ApplicationWrap.cs deleted file mode 100644 index a335ede1e..000000000 --- a/Assets/XLua/Gen/UnityEngine_ApplicationWrap.cs +++ /dev/null @@ -1,1162 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineApplicationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Application); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 23, 30, 3); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Quit", _m_Quit_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Unload", _m_Unload_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CanStreamedLevelBeLoaded", _m_CanStreamedLevelBeLoaded_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsPlaying", _m_IsPlaying_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBuildTags", _m_GetBuildTags_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetBuildTags", _m_SetBuildTags_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HasProLicense", _m_HasProLicense_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RequestAdvertisingIdentifierAsync", _m_RequestAdvertisingIdentifierAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OpenURL", _m_OpenURL_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStackTraceLogType", _m_GetStackTraceLogType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetStackTraceLogType", _m_SetStackTraceLogType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RequestUserAuthorization", _m_RequestUserAuthorization_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HasUserAuthorization", _m_HasUserAuthorization_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "lowMemory", _e_lowMemory); - Utils.RegisterFunc(L, Utils.CLS_IDX, "logMessageReceived", _e_logMessageReceived); - Utils.RegisterFunc(L, Utils.CLS_IDX, "logMessageReceivedThreaded", _e_logMessageReceivedThreaded); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onBeforeRender", _e_onBeforeRender); - Utils.RegisterFunc(L, Utils.CLS_IDX, "focusChanged", _e_focusChanged); - Utils.RegisterFunc(L, Utils.CLS_IDX, "deepLinkActivated", _e_deepLinkActivated); - Utils.RegisterFunc(L, Utils.CLS_IDX, "wantsToQuit", _e_wantsToQuit); - Utils.RegisterFunc(L, Utils.CLS_IDX, "quitting", _e_quitting); - Utils.RegisterFunc(L, Utils.CLS_IDX, "unloading", _e_unloading); - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isPlaying", _g_get_isPlaying); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isFocused", _g_get_isFocused); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "buildGUID", _g_get_buildGUID); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "runInBackground", _g_get_runInBackground); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isBatchMode", _g_get_isBatchMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "dataPath", _g_get_dataPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingAssetsPath", _g_get_streamingAssetsPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "persistentDataPath", _g_get_persistentDataPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "temporaryCachePath", _g_get_temporaryCachePath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "absoluteURL", _g_get_absoluteURL); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "unityVersion", _g_get_unityVersion); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "version", _g_get_version); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "installerName", _g_get_installerName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "identifier", _g_get_identifier); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "installMode", _g_get_installMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "sandboxType", _g_get_sandboxType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "productName", _g_get_productName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "companyName", _g_get_companyName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "cloudProjectId", _g_get_cloudProjectId); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "targetFrameRate", _g_get_targetFrameRate); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "consoleLogPath", _g_get_consoleLogPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "backgroundLoadingPriority", _g_get_backgroundLoadingPriority); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "genuine", _g_get_genuine); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "genuineCheckAvailable", _g_get_genuineCheckAvailable); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "platform", _g_get_platform); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isMobilePlatform", _g_get_isMobilePlatform); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isConsolePlatform", _g_get_isConsolePlatform); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "systemLanguage", _g_get_systemLanguage); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "internetReachability", _g_get_internetReachability); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isEditor", _g_get_isEditor); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "runInBackground", _s_set_runInBackground); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "targetFrameRate", _s_set_targetFrameRate); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "backgroundLoadingPriority", _s_set_backgroundLoadingPriority); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Application(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Quit_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - UnityEngine.Application.Quit( ); - - - - return 0; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _exitCode = LuaAPI.xlua_tointeger(L, 1); - - UnityEngine.Application.Quit( _exitCode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.Quit!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Application.Unload( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CanStreamedLevelBeLoaded_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _levelIndex = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Application.CanStreamedLevelBeLoaded( _levelIndex ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _levelName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Application.CanStreamedLevelBeLoaded( _levelName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.CanStreamedLevelBeLoaded!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsPlaying_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - var gen_ret = UnityEngine.Application.IsPlaying( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBuildTags_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.Application.GetBuildTags( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBuildTags_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string[] _buildTags = (string[])translator.GetObject(L, 1, typeof(string[])); - - UnityEngine.Application.SetBuildTags( _buildTags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasProLicense_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.Application.HasProLicense( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RequestAdvertisingIdentifierAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Application.AdvertisingIdentifierCallback _delegateMethod = translator.GetDelegate(L, 1); - - var gen_ret = UnityEngine.Application.RequestAdvertisingIdentifierAsync( _delegateMethod ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OpenURL_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _url = LuaAPI.lua_tostring(L, 1); - - UnityEngine.Application.OpenURL( _url ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStackTraceLogType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.LogType _logType;translator.Get(L, 1, out _logType); - - var gen_ret = UnityEngine.Application.GetStackTraceLogType( _logType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetStackTraceLogType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.LogType _logType;translator.Get(L, 1, out _logType); - UnityEngine.StackTraceLogType _stackTraceType;translator.Get(L, 2, out _stackTraceType); - - UnityEngine.Application.SetStackTraceLogType( _logType, _stackTraceType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RequestUserAuthorization_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UserAuthorization _mode;translator.Get(L, 1, out _mode); - - var gen_ret = UnityEngine.Application.RequestUserAuthorization( _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasUserAuthorization_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UserAuthorization _mode;translator.Get(L, 1, out _mode); - - var gen_ret = UnityEngine.Application.HasUserAuthorization( _mode ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPlaying(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.isPlaying); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFocused(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.isFocused); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_buildGUID(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.buildGUID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_runInBackground(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.runInBackground); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isBatchMode(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.isBatchMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dataPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.dataPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingAssetsPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.streamingAssetsPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_persistentDataPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.persistentDataPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_temporaryCachePath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.temporaryCachePath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_absoluteURL(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.absoluteURL); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_unityVersion(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.unityVersion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_version(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.version); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_installerName(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.installerName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_identifier(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.identifier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_installMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Application.installMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sandboxType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Application.sandboxType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_productName(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.productName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_companyName(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.companyName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cloudProjectId(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.cloudProjectId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetFrameRate(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Application.targetFrameRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_consoleLogPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Application.consoleLogPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_backgroundLoadingPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Application.backgroundLoadingPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_genuine(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.genuine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_genuineCheckAvailable(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.genuineCheckAvailable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_platform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineRuntimePlatform(L, UnityEngine.Application.platform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isMobilePlatform(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.isMobilePlatform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isConsolePlatform(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.isConsolePlatform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_systemLanguage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineSystemLanguage(L, UnityEngine.Application.systemLanguage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_internetReachability(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineNetworkReachability(L, UnityEngine.Application.internetReachability); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isEditor(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Application.isEditor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_runInBackground(RealStatePtr L) - { - try { - - UnityEngine.Application.runInBackground = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetFrameRate(RealStatePtr L) - { - try { - - UnityEngine.Application.targetFrameRate = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_backgroundLoadingPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.ThreadPriority gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Application.backgroundLoadingPriority = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_lowMemory(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Application.LowMemoryCallback gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Application.LowMemoryCallback!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.lowMemory += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.lowMemory -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.lowMemory!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_logMessageReceived(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Application.LogCallback gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Application.LogCallback!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.logMessageReceived += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.logMessageReceived -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.logMessageReceived!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_logMessageReceivedThreaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Application.LogCallback gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Application.LogCallback!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.logMessageReceivedThreaded += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.logMessageReceivedThreaded -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.logMessageReceivedThreaded!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onBeforeRender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Events.UnityAction gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Events.UnityAction!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.onBeforeRender += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.onBeforeRender -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.onBeforeRender!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_focusChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.focusChanged += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.focusChanged -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.focusChanged!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_deepLinkActivated(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.deepLinkActivated += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.deepLinkActivated -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.deepLinkActivated!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_wantsToQuit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Func gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Func!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.wantsToQuit += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.wantsToQuit -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.wantsToQuit!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_quitting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.quitting += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.quitting -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.quitting!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_unloading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Application.unloading += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Application.unloading -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Application.unloading!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AssetBundleRequestWrap.cs b/Assets/XLua/Gen/UnityEngine_AssetBundleRequestWrap.cs deleted file mode 100644 index f06619bf1..000000000 --- a/Assets/XLua/Gen/UnityEngine_AssetBundleRequestWrap.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAssetBundleRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AssetBundleRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "asset", _g_get_asset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allAssets", _g_get_allAssets); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AssetBundleRequest(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundleRequest constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleRequest gen_to_be_invoked = (UnityEngine.AssetBundleRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.asset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allAssets(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundleRequest gen_to_be_invoked = (UnityEngine.AssetBundleRequest)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.allAssets); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AssetBundleWrap.cs b/Assets/XLua/Gen/UnityEngine_AssetBundleWrap.cs deleted file mode 100644 index 0db50303f..000000000 --- a/Assets/XLua/Gen/UnityEngine_AssetBundleWrap.cs +++ /dev/null @@ -1,959 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAssetBundleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AssetBundle); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAsset", _m_LoadAsset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetAsync", _m_LoadAssetAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetWithSubAssets", _m_LoadAssetWithSubAssets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAssetWithSubAssetsAsync", _m_LoadAssetWithSubAssetsAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAllAssets", _m_LoadAllAssets); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAllAssetsAsync", _m_LoadAllAssetsAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unload", _m_Unload); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAsync", _m_UnloadAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllAssetNames", _m_GetAllAssetNames); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllScenePaths", _m_GetAllScenePaths); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isStreamedSceneAssetBundle", _g_get_isStreamedSceneAssetBundle); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 10, 1, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadAllAssetBundles", _m_UnloadAllAssetBundles_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllLoadedAssetBundles", _m_GetAllLoadedAssetBundles_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromFileAsync", _m_LoadFromFileAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromFile", _m_LoadFromFile_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromMemoryAsync", _m_LoadFromMemoryAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromMemory", _m_LoadFromMemory_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromStreamAsync", _m_LoadFromStreamAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromStream", _m_LoadFromStream_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RecompressAssetBundleAsync", _m_RecompressAssetBundleAsync_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "memoryBudgetKB", _g_get_memoryBudgetKB); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "memoryBudgetKB", _s_set_memoryBudgetKB); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.AssetBundle does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAllAssetBundles_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _unloadAllObjects = LuaAPI.lua_toboolean(L, 1); - - UnityEngine.AssetBundle.UnloadAllAssetBundles( _unloadAllObjects ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllLoadedAssetBundles_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.AssetBundle.GetAllLoadedAssetBundles( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromFileAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.AssetBundle.LoadFromFileAsync( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - uint _crc = LuaAPI.xlua_touint(L, 2); - - var gen_ret = UnityEngine.AssetBundle.LoadFromFileAsync( _path, _crc ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isuint64(L, 3))) - { - string _path = LuaAPI.lua_tostring(L, 1); - uint _crc = LuaAPI.xlua_touint(L, 2); - ulong _offset = LuaAPI.lua_touint64(L, 3); - - var gen_ret = UnityEngine.AssetBundle.LoadFromFileAsync( _path, _crc, _offset ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadFromFileAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromFile_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.AssetBundle.LoadFromFile( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - uint _crc = LuaAPI.xlua_touint(L, 2); - - var gen_ret = UnityEngine.AssetBundle.LoadFromFile( _path, _crc ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isuint64(L, 3))) - { - string _path = LuaAPI.lua_tostring(L, 1); - uint _crc = LuaAPI.xlua_touint(L, 2); - ulong _offset = LuaAPI.lua_touint64(L, 3); - - var gen_ret = UnityEngine.AssetBundle.LoadFromFile( _path, _crc, _offset ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadFromFile!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromMemoryAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - byte[] _binary = LuaAPI.lua_tobytes(L, 1); - - var gen_ret = UnityEngine.AssetBundle.LoadFromMemoryAsync( _binary ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - byte[] _binary = LuaAPI.lua_tobytes(L, 1); - uint _crc = LuaAPI.xlua_touint(L, 2); - - var gen_ret = UnityEngine.AssetBundle.LoadFromMemoryAsync( _binary, _crc ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadFromMemoryAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromMemory_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - byte[] _binary = LuaAPI.lua_tobytes(L, 1); - - var gen_ret = UnityEngine.AssetBundle.LoadFromMemory( _binary ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - byte[] _binary = LuaAPI.lua_tobytes(L, 1); - uint _crc = LuaAPI.xlua_touint(L, 2); - - var gen_ret = UnityEngine.AssetBundle.LoadFromMemory( _binary, _crc ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadFromMemory!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromStreamAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - - var gen_ret = UnityEngine.AssetBundle.LoadFromStreamAsync( _stream ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - uint _crc = LuaAPI.xlua_touint(L, 2); - - var gen_ret = UnityEngine.AssetBundle.LoadFromStreamAsync( _stream, _crc ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - uint _crc = LuaAPI.xlua_touint(L, 2); - uint _managedReadBufferSize = LuaAPI.xlua_touint(L, 3); - - var gen_ret = UnityEngine.AssetBundle.LoadFromStreamAsync( _stream, _crc, _managedReadBufferSize ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadFromStreamAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromStream_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - - var gen_ret = UnityEngine.AssetBundle.LoadFromStream( _stream ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - uint _crc = LuaAPI.xlua_touint(L, 2); - - var gen_ret = UnityEngine.AssetBundle.LoadFromStream( _stream, _crc ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.IO.Stream _stream = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - uint _crc = LuaAPI.xlua_touint(L, 2); - uint _managedReadBufferSize = LuaAPI.xlua_touint(L, 3); - - var gen_ret = UnityEngine.AssetBundle.LoadFromStream( _stream, _crc, _managedReadBufferSize ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadFromStream!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Contains( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAsset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.LoadAsset( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAsset( _name, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadAsset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.LoadAssetAsync( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAssetAsync( _name, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadAssetAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetWithSubAssets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.LoadAssetWithSubAssets( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAssetWithSubAssets( _name, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadAssetWithSubAssets!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAssetWithSubAssetsAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.LoadAssetWithSubAssetsAsync( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAssetWithSubAssetsAsync( _name, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadAssetWithSubAssetsAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAllAssets(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.LoadAllAssets( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAllAssets( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadAllAssets!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAllAssetsAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.LoadAllAssetsAsync( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.LoadAllAssetsAsync( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.LoadAllAssetsAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Unload(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - - { - bool _unloadAllLoadedObjects = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Unload( _unloadAllLoadedObjects ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - - { - bool _unloadAllLoadedObjects = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.UnloadAsync( _unloadAllLoadedObjects ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllAssetNames(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAllAssetNames( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllScenePaths(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAllScenePaths( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecompressAssetBundleAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - string _inputPath = LuaAPI.lua_tostring(L, 1); - string _outputPath = LuaAPI.lua_tostring(L, 2); - UnityEngine.BuildCompression _method;translator.Get(L, 3, out _method); - uint _expectedCRC = LuaAPI.xlua_touint(L, 4); - UnityEngine.ThreadPriority _priority;translator.Get(L, 5, out _priority); - - var gen_ret = UnityEngine.AssetBundle.RecompressAssetBundleAsync( _inputPath, _outputPath, _method, _expectedCRC, _priority ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _inputPath = LuaAPI.lua_tostring(L, 1); - string _outputPath = LuaAPI.lua_tostring(L, 2); - UnityEngine.BuildCompression _method;translator.Get(L, 3, out _method); - uint _expectedCRC = LuaAPI.xlua_touint(L, 4); - - var gen_ret = UnityEngine.AssetBundle.RecompressAssetBundleAsync( _inputPath, _outputPath, _method, _expectedCRC ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _inputPath = LuaAPI.lua_tostring(L, 1); - string _outputPath = LuaAPI.lua_tostring(L, 2); - UnityEngine.BuildCompression _method;translator.Get(L, 3, out _method); - - var gen_ret = UnityEngine.AssetBundle.RecompressAssetBundleAsync( _inputPath, _outputPath, _method ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AssetBundle.RecompressAssetBundleAsync!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isStreamedSceneAssetBundle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AssetBundle gen_to_be_invoked = (UnityEngine.AssetBundle)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isStreamedSceneAssetBundle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_memoryBudgetKB(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushuint(L, UnityEngine.AssetBundle.memoryBudgetKB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_memoryBudgetKB(RealStatePtr L) - { - try { - - UnityEngine.AssetBundle.memoryBudgetKB = LuaAPI.xlua_touint(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AsyncOperationWrap.cs b/Assets/XLua/Gen/UnityEngine_AsyncOperationWrap.cs deleted file mode 100644 index 12ec322fa..000000000 --- a/Assets/XLua/Gen/UnityEngine_AsyncOperationWrap.cs +++ /dev/null @@ -1,211 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAsyncOperationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AsyncOperation); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 2); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "completed", _e_completed); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDone", _g_get_isDone); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "progress", _g_get_progress); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "priority", _g_get_priority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowSceneActivation", _g_get_allowSceneActivation); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "priority", _s_set_priority); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowSceneActivation", _s_set_allowSceneActivation); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AsyncOperation(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AsyncOperation constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AsyncOperation gen_to_be_invoked = (UnityEngine.AsyncOperation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_progress(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AsyncOperation gen_to_be_invoked = (UnityEngine.AsyncOperation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.progress); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_priority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AsyncOperation gen_to_be_invoked = (UnityEngine.AsyncOperation)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.priority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowSceneActivation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AsyncOperation gen_to_be_invoked = (UnityEngine.AsyncOperation)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowSceneActivation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_priority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AsyncOperation gen_to_be_invoked = (UnityEngine.AsyncOperation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.priority = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowSceneActivation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AsyncOperation gen_to_be_invoked = (UnityEngine.AsyncOperation)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowSceneActivation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_completed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.AsyncOperation gen_to_be_invoked = (UnityEngine.AsyncOperation)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.completed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.completed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AsyncOperation.completed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioClipWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioClipWrap.cs deleted file mode 100644 index e303a38b9..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioClipWrap.cs +++ /dev/null @@ -1,391 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioClipWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioClip); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 9, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadAudioData", _m_LoadAudioData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnloadAudioData", _m_UnloadAudioData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetData", _m_GetData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetData", _m_SetData); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "samples", _g_get_samples); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "channels", _g_get_channels); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frequency", _g_get_frequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadType", _g_get_loadType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preloadAudioData", _g_get_preloadAudioData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ambisonic", _g_get_ambisonic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadInBackground", _g_get_loadInBackground); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadState", _g_get_loadState); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.AudioClip does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAudioData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.LoadAudioData( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAudioData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.UnloadAudioData( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - - - - { - float[] _data = (float[])translator.GetObject(L, 2, typeof(float[])); - int _offsetSamples = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetData( _data, _offsetSamples ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - - - - { - float[] _data = (float[])translator.GetObject(L, 2, typeof(float[])); - int _offsetSamples = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.SetData( _data, _offsetSamples ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 1); - int _lengthSamples = LuaAPI.xlua_tointeger(L, 2); - int _channels = LuaAPI.xlua_tointeger(L, 3); - int _frequency = LuaAPI.xlua_tointeger(L, 4); - bool _stream = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = UnityEngine.AudioClip.Create( _name, _lengthSamples, _channels, _frequency, _stream ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - string _name = LuaAPI.lua_tostring(L, 1); - int _lengthSamples = LuaAPI.xlua_tointeger(L, 2); - int _channels = LuaAPI.xlua_tointeger(L, 3); - int _frequency = LuaAPI.xlua_tointeger(L, 4); - bool _stream = LuaAPI.lua_toboolean(L, 5); - UnityEngine.AudioClip.PCMReaderCallback _pcmreadercallback = translator.GetDelegate(L, 6); - - var gen_ret = UnityEngine.AudioClip.Create( _name, _lengthSamples, _channels, _frequency, _stream, _pcmreadercallback ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - string _name = LuaAPI.lua_tostring(L, 1); - int _lengthSamples = LuaAPI.xlua_tointeger(L, 2); - int _channels = LuaAPI.xlua_tointeger(L, 3); - int _frequency = LuaAPI.xlua_tointeger(L, 4); - bool _stream = LuaAPI.lua_toboolean(L, 5); - UnityEngine.AudioClip.PCMReaderCallback _pcmreadercallback = translator.GetDelegate(L, 6); - UnityEngine.AudioClip.PCMSetPositionCallback _pcmsetpositioncallback = translator.GetDelegate(L, 7); - - var gen_ret = UnityEngine.AudioClip.Create( _name, _lengthSamples, _channels, _frequency, _stream, _pcmreadercallback, _pcmsetpositioncallback ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioClip.Create!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_samples(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.samples); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_channels(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.channels); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.frequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loadType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.loadType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preloadAudioData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.preloadAudioData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambisonic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ambisonic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loadInBackground(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loadInBackground); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loadState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioClip gen_to_be_invoked = (UnityEngine.AudioClip)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.loadState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AudioSourceWrap.cs b/Assets/XLua/Gen/UnityEngine_AudioSourceWrap.cs deleted file mode 100644 index 679a7e59e..000000000 --- a/Assets/XLua/Gen/UnityEngine_AudioSourceWrap.cs +++ /dev/null @@ -1,1563 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAudioSourceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.AudioSource); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 28, 26); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayDelayed", _m_PlayDelayed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayScheduled", _m_PlayScheduled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayOneShot", _m_PlayOneShot); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScheduledStartTime", _m_SetScheduledStartTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScheduledEndTime", _m_SetScheduledEndTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnPause", _m_UnPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCustomCurve", _m_SetCustomCurve); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCustomCurve", _m_GetCustomCurve); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOutputData", _m_GetOutputData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpectrumData", _m_GetSpectrumData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSpatializerFloat", _m_SetSpatializerFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpatializerFloat", _m_GetSpatializerFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAmbisonicDecoderFloat", _m_GetAmbisonicDecoderFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAmbisonicDecoderFloat", _m_SetAmbisonicDecoderFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPitch", _m_DOPitch); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "volume", _g_get_volume); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pitch", _g_get_pitch); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeSamples", _g_get_timeSamples); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clip", _g_get_clip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outputAudioMixerGroup", _g_get_outputAudioMixerGroup); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlaying", _g_get_isPlaying); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isVirtual", _g_get_isVirtual); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreListenerVolume", _g_get_ignoreListenerVolume); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playOnAwake", _g_get_playOnAwake); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreListenerPause", _g_get_ignoreListenerPause); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocityUpdateMode", _g_get_velocityUpdateMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "panStereo", _g_get_panStereo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spatialBlend", _g_get_spatialBlend); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spatialize", _g_get_spatialize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spatializePostEffects", _g_get_spatializePostEffects); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reverbZoneMix", _g_get_reverbZoneMix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bypassEffects", _g_get_bypassEffects); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bypassListenerEffects", _g_get_bypassListenerEffects); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bypassReverbZones", _g_get_bypassReverbZones); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dopplerLevel", _g_get_dopplerLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spread", _g_get_spread); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "priority", _g_get_priority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mute", _g_get_mute); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minDistance", _g_get_minDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDistance", _g_get_maxDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rolloffMode", _g_get_rolloffMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "volume", _s_set_volume); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pitch", _s_set_pitch); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeSamples", _s_set_timeSamples); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clip", _s_set_clip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "outputAudioMixerGroup", _s_set_outputAudioMixerGroup); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "loop", _s_set_loop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreListenerVolume", _s_set_ignoreListenerVolume); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playOnAwake", _s_set_playOnAwake); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreListenerPause", _s_set_ignoreListenerPause); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocityUpdateMode", _s_set_velocityUpdateMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "panStereo", _s_set_panStereo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spatialBlend", _s_set_spatialBlend); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spatialize", _s_set_spatialize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spatializePostEffects", _s_set_spatializePostEffects); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reverbZoneMix", _s_set_reverbZoneMix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bypassEffects", _s_set_bypassEffects); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bypassListenerEffects", _s_set_bypassListenerEffects); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bypassReverbZones", _s_set_bypassReverbZones); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dopplerLevel", _s_set_dopplerLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spread", _s_set_spread); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "priority", _s_set_priority); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mute", _s_set_mute); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minDistance", _s_set_minDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDistance", _s_set_maxDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rolloffMode", _s_set_rolloffMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayClipAtPoint", _m_PlayClipAtPoint_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.AudioSource(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioSource constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isuint64(L, 2))) - { - ulong _delay = LuaAPI.lua_touint64(L, 2); - - gen_to_be_invoked.Play( _delay ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioSource.Play!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayDelayed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - float _delay = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.PlayDelayed( _delay ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayScheduled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - double _time = LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.PlayScheduled( _time ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayOneShot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.AudioClip _clip = (UnityEngine.AudioClip)translator.GetObject(L, 2, typeof(UnityEngine.AudioClip)); - - gen_to_be_invoked.PlayOneShot( _clip ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.AudioClip _clip = (UnityEngine.AudioClip)translator.GetObject(L, 2, typeof(UnityEngine.AudioClip)); - float _volumeScale = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.PlayOneShot( _clip, _volumeScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioSource.PlayOneShot!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetScheduledStartTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - double _time = LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetScheduledStartTime( _time ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetScheduledEndTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - double _time = LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetScheduledEndTime( _time ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UnPause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PlayClipAtPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.AudioClip _clip = (UnityEngine.AudioClip)translator.GetObject(L, 1, typeof(UnityEngine.AudioClip)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - UnityEngine.AudioSource.PlayClipAtPoint( _clip, _position ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.AudioClip _clip = (UnityEngine.AudioClip)translator.GetObject(L, 1, typeof(UnityEngine.AudioClip)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - float _volume = (float)LuaAPI.lua_tonumber(L, 3); - - UnityEngine.AudioSource.PlayClipAtPoint( _clip, _position, _volume ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AudioSource.PlayClipAtPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCustomCurve(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AudioSourceCurveType _type;translator.Get(L, 2, out _type); - UnityEngine.AnimationCurve _curve = (UnityEngine.AnimationCurve)translator.GetObject(L, 3, typeof(UnityEngine.AnimationCurve)); - - gen_to_be_invoked.SetCustomCurve( _type, _curve ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCustomCurve(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.AudioSourceCurveType _type;translator.Get(L, 2, out _type); - - var gen_ret = gen_to_be_invoked.GetCustomCurve( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetOutputData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - float[] _samples = (float[])translator.GetObject(L, 2, typeof(float[])); - int _channel = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetOutputData( _samples, _channel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpectrumData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - float[] _samples = (float[])translator.GetObject(L, 2, typeof(float[])); - int _channel = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.FFTWindow _window;translator.Get(L, 4, out _window); - - gen_to_be_invoked.GetSpectrumData( _samples, _channel, _window ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSpatializerFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetSpatializerFloat( _index, _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSpatializerFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _value; - - var gen_ret = gen_to_be_invoked.GetSpatializerFloat( _index, out _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushnumber(L, _value); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAmbisonicDecoderFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _value; - - var gen_ret = gen_to_be_invoked.GetAmbisonicDecoderFloat( _index, out _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushnumber(L, _value); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAmbisonicDecoderFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SetAmbisonicDecoderFloat( _index, _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPitch(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPitch( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_volume(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.volume); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pitch(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pitch); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeSamples(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.timeSamples); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.clip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outputAudioMixerGroup(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.outputAudioMixerGroup); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPlaying(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPlaying); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isVirtual(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isVirtual); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreListenerVolume(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreListenerVolume); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playOnAwake); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreListenerPause(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreListenerPause); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocityUpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.velocityUpdateMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_panStereo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.panStereo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spatialBlend(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spatialBlend); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spatialize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.spatialize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spatializePostEffects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.spatializePostEffects); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reverbZoneMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.reverbZoneMix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bypassEffects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.bypassEffects); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bypassListenerEffects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.bypassListenerEffects); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bypassReverbZones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.bypassReverbZones); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dopplerLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dopplerLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spread); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_priority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.priority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mute(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.mute); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rolloffMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rolloffMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_volume(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.volume = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pitch(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pitch = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeSamples(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.timeSamples = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clip = (UnityEngine.AudioClip)translator.GetObject(L, 2, typeof(UnityEngine.AudioClip)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_outputAudioMixerGroup(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.outputAudioMixerGroup = (UnityEngine.Audio.AudioMixerGroup)translator.GetObject(L, 2, typeof(UnityEngine.Audio.AudioMixerGroup)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.loop = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreListenerVolume(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreListenerVolume = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playOnAwake = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreListenerPause(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreListenerPause = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocityUpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - UnityEngine.AudioVelocityUpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocityUpdateMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_panStereo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.panStereo = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spatialBlend(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spatialBlend = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spatialize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spatialize = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spatializePostEffects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spatializePostEffects = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reverbZoneMix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.reverbZoneMix = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bypassEffects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bypassEffects = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bypassListenerEffects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bypassListenerEffects = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bypassReverbZones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bypassReverbZones = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dopplerLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dopplerLevel = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spread = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_priority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.priority = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mute(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mute = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rolloffMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.AudioSource gen_to_be_invoked = (UnityEngine.AudioSource)translator.FastGetCSObj(L, 1); - UnityEngine.AudioRolloffMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rolloffMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_AvatarWrap.cs b/Assets/XLua/Gen/UnityEngine_AvatarWrap.cs deleted file mode 100644 index 660d4258b..000000000 --- a/Assets/XLua/Gen/UnityEngine_AvatarWrap.cs +++ /dev/null @@ -1,112 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineAvatarWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Avatar); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isValid", _g_get_isValid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isHuman", _g_get_isHuman); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "humanDescription", _g_get_humanDescription); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Avatar does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isValid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Avatar gen_to_be_invoked = (UnityEngine.Avatar)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isValid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isHuman(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Avatar gen_to_be_invoked = (UnityEngine.Avatar)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isHuman); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_humanDescription(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Avatar gen_to_be_invoked = (UnityEngine.Avatar)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.humanDescription); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BehaviourWrap.cs b/Assets/XLua/Gen/UnityEngine_BehaviourWrap.cs deleted file mode 100644 index 5b97428d1..000000000 --- a/Assets/XLua/Gen/UnityEngine_BehaviourWrap.cs +++ /dev/null @@ -1,130 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBehaviourWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Behaviour); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isActiveAndEnabled", _g_get_isActiveAndEnabled); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Behaviour(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Behaviour constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Behaviour gen_to_be_invoked = (UnityEngine.Behaviour)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isActiveAndEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Behaviour gen_to_be_invoked = (UnityEngine.Behaviour)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isActiveAndEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Behaviour gen_to_be_invoked = (UnityEngine.Behaviour)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoundsWrap.cs b/Assets/XLua/Gen/UnityEngine_BoundsWrap.cs deleted file mode 100644 index a3139a9b3..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoundsWrap.cs +++ /dev/null @@ -1,737 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoundsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Bounds); - Utils.BeginObjectRegister(type, L, translator, 1, 11, 5, 5); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SqrDistance", _m_SqrDistance); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMinMax", _m_SetMinMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Encapsulate", _m_Encapsulate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Expand", _m_Expand); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Intersects", _m_Intersects); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IntersectRay", _m_IntersectRay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "extents", _g_get_extents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "extents", _s_set_extents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); - UnityEngine.Vector3 _size;translator.Get(L, 3, out _size); - - var gen_ret = new UnityEngine.Bounds(_center, _size); - translator.PushUnityEngineBounds(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineBounds(L, default(UnityEngine.Bounds)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Bounds constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Bounds leftside;translator.Get(L, 1, out leftside); - UnityEngine.Bounds rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Bounds!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.Contains( _point ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SqrDistance(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.SqrDistance( _point ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.ClosestPoint( _point ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Bounds _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Bounds.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMinMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _min;translator.Get(L, 2, out _min); - UnityEngine.Vector3 _max;translator.Get(L, 3, out _max); - - gen_to_be_invoked.SetMinMax( _min, _max ); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Encapsulate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - gen_to_be_invoked.Encapsulate( _point ); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - - gen_to_be_invoked.Encapsulate( _bounds ); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Bounds.Encapsulate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Expand(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _amount = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Expand( _amount ); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _amount;translator.Get(L, 2, out _amount); - - gen_to_be_invoked.Expand( _amount ); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Bounds.Expand!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Intersects(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - - var gen_ret = gen_to_be_invoked.Intersects( _bounds ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IntersectRay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - - var gen_ret = gen_to_be_invoked.IntersectRay( _ray ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 2, out _ray); - float _distance; - - var gen_ret = gen_to_be_invoked.IntersectRay( _ray, out _distance ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushnumber(L, _distance); - - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Bounds.IntersectRay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Bounds.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_extents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.extents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_extents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.extents = gen_value; - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.min = gen_value; - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.max = gen_value; - - translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_BoxColliderWrap.cs b/Assets/XLua/Gen/UnityEngine_BoxColliderWrap.cs deleted file mode 100644 index 19035376a..000000000 --- a/Assets/XLua/Gen/UnityEngine_BoxColliderWrap.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineBoxColliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.BoxCollider); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.BoxCollider(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.BoxCollider constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider gen_to_be_invoked = (UnityEngine.BoxCollider)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider gen_to_be_invoked = (UnityEngine.BoxCollider)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider gen_to_be_invoked = (UnityEngine.BoxCollider)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.BoxCollider gen_to_be_invoked = (UnityEngine.BoxCollider)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CameraWrap.cs b/Assets/XLua/Gen/UnityEngine_CameraWrap.cs deleted file mode 100644 index 9545e3aa4..000000000 --- a/Assets/XLua/Gen/UnityEngine_CameraWrap.cs +++ /dev/null @@ -1,3977 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCameraWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Camera); - Utils.BeginObjectRegister(type, L, translator, 0, 52, 58, 44); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetTransparencySortSettings", _m_ResetTransparencySortSettings); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAspect", _m_ResetAspect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetCullingMatrix", _m_ResetCullingMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetReplacementShader", _m_SetReplacementShader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetReplacementShader", _m_ResetReplacementShader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGateFittedFieldOfView", _m_GetGateFittedFieldOfView); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGateFittedLensShift", _m_GetGateFittedLensShift); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTargetBuffers", _m_SetTargetBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetWorldToCameraMatrix", _m_ResetWorldToCameraMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetProjectionMatrix", _m_ResetProjectionMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateObliqueMatrix", _m_CalculateObliqueMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WorldToScreenPoint", _m_WorldToScreenPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WorldToViewportPoint", _m_WorldToViewportPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewportToWorldPoint", _m_ViewportToWorldPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScreenToWorldPoint", _m_ScreenToWorldPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScreenToViewportPoint", _m_ScreenToViewportPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewportToScreenPoint", _m_ViewportToScreenPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewportPointToRay", _m_ViewportPointToRay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ScreenPointToRay", _m_ScreenPointToRay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateFrustumCorners", _m_CalculateFrustumCorners); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStereoNonJitteredProjectionMatrix", _m_GetStereoNonJitteredProjectionMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStereoViewMatrix", _m_GetStereoViewMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyStereoDeviceProjectionMatrixToNonJittered", _m_CopyStereoDeviceProjectionMatrixToNonJittered); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetStereoProjectionMatrix", _m_GetStereoProjectionMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetStereoProjectionMatrix", _m_SetStereoProjectionMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetStereoProjectionMatrices", _m_ResetStereoProjectionMatrices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetStereoViewMatrix", _m_SetStereoViewMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetStereoViewMatrices", _m_ResetStereoViewMatrices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RenderToCubemap", _m_RenderToCubemap); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Render", _m_Render); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RenderWithShader", _m_RenderWithShader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RenderDontRestore", _m_RenderDontRestore); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SubmitRenderRequests", _m_SubmitRenderRequests); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyFrom", _m_CopyFrom); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCommandBuffers", _m_RemoveCommandBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllCommandBuffers", _m_RemoveAllCommandBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCommandBuffer", _m_AddCommandBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCommandBufferAsync", _m_AddCommandBufferAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCommandBuffer", _m_RemoveCommandBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCommandBuffers", _m_GetCommandBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetCullingParameters", _m_TryGetCullingParameters); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAspect", _m_DOAspect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFarClipPlane", _m_DOFarClipPlane); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFieldOfView", _m_DOFieldOfView); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DONearClipPlane", _m_DONearClipPlane); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOOrthoSize", _m_DOOrthoSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPixelRect", _m_DOPixelRect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORect", _m_DORect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOShakePosition", _m_DOShakePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOShakeRotation", _m_DOShakeRotation); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "nearClipPlane", _g_get_nearClipPlane); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "farClipPlane", _g_get_farClipPlane); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fieldOfView", _g_get_fieldOfView); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderingPath", _g_get_renderingPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "actualRenderingPath", _g_get_actualRenderingPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowHDR", _g_get_allowHDR); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowMSAA", _g_get_allowMSAA); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowDynamicResolution", _g_get_allowDynamicResolution); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceIntoRenderTexture", _g_get_forceIntoRenderTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orthographicSize", _g_get_orthographicSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orthographic", _g_get_orthographic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "opaqueSortMode", _g_get_opaqueSortMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transparencySortMode", _g_get_transparencySortMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transparencySortAxis", _g_get_transparencySortAxis); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aspect", _g_get_aspect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullingMask", _g_get_cullingMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eventMask", _g_get_eventMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerCullSpherical", _g_get_layerCullSpherical); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cameraType", _g_get_cameraType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overrideSceneCullingMask", _g_get_overrideSceneCullingMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerCullDistances", _g_get_layerCullDistances); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useOcclusionCulling", _g_get_useOcclusionCulling); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullingMatrix", _g_get_cullingMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "backgroundColor", _g_get_backgroundColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clearFlags", _g_get_clearFlags); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthTextureMode", _g_get_depthTextureMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clearStencilAfterLightingPass", _g_get_clearStencilAfterLightingPass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "usePhysicalProperties", _g_get_usePhysicalProperties); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sensorSize", _g_get_sensorSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lensShift", _g_get_lensShift); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "focalLength", _g_get_focalLength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gateFit", _g_get_gateFit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rect", _g_get_rect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelRect", _g_get_pixelRect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelWidth", _g_get_pixelWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelHeight", _g_get_pixelHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scaledPixelWidth", _g_get_scaledPixelWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scaledPixelHeight", _g_get_scaledPixelHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetTexture", _g_get_targetTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "activeTexture", _g_get_activeTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetDisplay", _g_get_targetDisplay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cameraToWorldMatrix", _g_get_cameraToWorldMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldToCameraMatrix", _g_get_worldToCameraMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "projectionMatrix", _g_get_projectionMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "nonJitteredProjectionMatrix", _g_get_nonJitteredProjectionMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useJitteredProjectionMatrixForTransparentRendering", _g_get_useJitteredProjectionMatrixForTransparentRendering); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "previousViewProjectionMatrix", _g_get_previousViewProjectionMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scene", _g_get_scene); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stereoEnabled", _g_get_stereoEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stereoSeparation", _g_get_stereoSeparation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stereoConvergence", _g_get_stereoConvergence); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "areVRStereoViewMatricesWithinSingleCullTolerance", _g_get_areVRStereoViewMatricesWithinSingleCullTolerance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stereoTargetEye", _g_get_stereoTargetEye); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stereoActiveEye", _g_get_stereoActiveEye); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sceneViewFilterMode", _g_get_sceneViewFilterMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "commandBufferCount", _g_get_commandBufferCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "nearClipPlane", _s_set_nearClipPlane); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "farClipPlane", _s_set_farClipPlane); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fieldOfView", _s_set_fieldOfView); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderingPath", _s_set_renderingPath); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowHDR", _s_set_allowHDR); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowMSAA", _s_set_allowMSAA); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowDynamicResolution", _s_set_allowDynamicResolution); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceIntoRenderTexture", _s_set_forceIntoRenderTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orthographicSize", _s_set_orthographicSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orthographic", _s_set_orthographic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "opaqueSortMode", _s_set_opaqueSortMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "transparencySortMode", _s_set_transparencySortMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "transparencySortAxis", _s_set_transparencySortAxis); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depth", _s_set_depth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aspect", _s_set_aspect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullingMask", _s_set_cullingMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eventMask", _s_set_eventMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerCullSpherical", _s_set_layerCullSpherical); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cameraType", _s_set_cameraType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "overrideSceneCullingMask", _s_set_overrideSceneCullingMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerCullDistances", _s_set_layerCullDistances); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useOcclusionCulling", _s_set_useOcclusionCulling); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullingMatrix", _s_set_cullingMatrix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "backgroundColor", _s_set_backgroundColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clearFlags", _s_set_clearFlags); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthTextureMode", _s_set_depthTextureMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clearStencilAfterLightingPass", _s_set_clearStencilAfterLightingPass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "usePhysicalProperties", _s_set_usePhysicalProperties); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sensorSize", _s_set_sensorSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lensShift", _s_set_lensShift); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "focalLength", _s_set_focalLength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gateFit", _s_set_gateFit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rect", _s_set_rect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pixelRect", _s_set_pixelRect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetTexture", _s_set_targetTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetDisplay", _s_set_targetDisplay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "worldToCameraMatrix", _s_set_worldToCameraMatrix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "projectionMatrix", _s_set_projectionMatrix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "nonJitteredProjectionMatrix", _s_set_nonJitteredProjectionMatrix); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useJitteredProjectionMatrixForTransparentRendering", _s_set_useJitteredProjectionMatrixForTransparentRendering); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scene", _s_set_scene); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stereoSeparation", _s_set_stereoSeparation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stereoConvergence", _s_set_stereoConvergence); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stereoTargetEye", _s_set_stereoTargetEye); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 7, 3); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalculateProjectionMatrixFromPhysicalProperties", _m_CalculateProjectionMatrixFromPhysicalProperties_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FocalLengthToFieldOfView", _m_FocalLengthToFieldOfView_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FieldOfViewToFocalLength", _m_FieldOfViewToFocalLength_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HorizontalToVerticalFieldOfView", _m_HorizontalToVerticalFieldOfView_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "VerticalToHorizontalFieldOfView", _m_VerticalToHorizontalFieldOfView_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllCameras", _m_GetAllCameras_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetupCurrent", _m_SetupCurrent_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "main", _g_get_main); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "current", _g_get_current); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "allCamerasCount", _g_get_allCamerasCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "allCameras", _g_get_allCameras); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "onPreCull", _g_get_onPreCull); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "onPreRender", _g_get_onPreRender); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "onPostRender", _g_get_onPostRender); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "onPreCull", _s_set_onPreCull); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "onPreRender", _s_set_onPreRender); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "onPostRender", _s_set_onPostRender); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Camera(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetTransparencySortSettings(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetTransparencySortSettings( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetAspect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetAspect( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetCullingMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetCullingMatrix( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetReplacementShader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Shader _shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader)); - string _replacementTag = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.SetReplacementShader( _shader, _replacementTag ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetReplacementShader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetReplacementShader( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGateFittedFieldOfView(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetGateFittedFieldOfView( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGateFittedLensShift(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetGateFittedLensShift( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTargetBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.RenderBuffer _colorBuffer;translator.Get(L, 2, out _colorBuffer); - UnityEngine.RenderBuffer _depthBuffer;translator.Get(L, 3, out _depthBuffer); - - gen_to_be_invoked.SetTargetBuffers( _colorBuffer, _depthBuffer ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.RenderBuffer[] _colorBuffer = (UnityEngine.RenderBuffer[])translator.GetObject(L, 2, typeof(UnityEngine.RenderBuffer[])); - UnityEngine.RenderBuffer _depthBuffer;translator.Get(L, 3, out _depthBuffer); - - gen_to_be_invoked.SetTargetBuffers( _colorBuffer, _depthBuffer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.SetTargetBuffers!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetWorldToCameraMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetWorldToCameraMatrix( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetProjectionMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetProjectionMatrix( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateObliqueMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector4 _clipPlane;translator.Get(L, 2, out _clipPlane); - - var gen_ret = gen_to_be_invoked.CalculateObliqueMatrix( _clipPlane ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WorldToScreenPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.WorldToScreenPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 3, out _eye); - - var gen_ret = gen_to_be_invoked.WorldToScreenPoint( _position, _eye ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.WorldToScreenPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WorldToViewportPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.WorldToViewportPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 3, out _eye); - - var gen_ret = gen_to_be_invoked.WorldToViewportPoint( _position, _eye ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.WorldToViewportPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ViewportToWorldPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ViewportToWorldPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 3, out _eye); - - var gen_ret = gen_to_be_invoked.ViewportToWorldPoint( _position, _eye ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.ViewportToWorldPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenToWorldPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ScreenToWorldPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 3, out _eye); - - var gen_ret = gen_to_be_invoked.ScreenToWorldPoint( _position, _eye ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.ScreenToWorldPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenToViewportPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ScreenToViewportPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ViewportToScreenPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ViewportToScreenPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ViewportPointToRay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _pos;translator.Get(L, 2, out _pos); - - var gen_ret = gen_to_be_invoked.ViewportPointToRay( _pos ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _pos;translator.Get(L, 2, out _pos); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 3, out _eye); - - var gen_ret = gen_to_be_invoked.ViewportPointToRay( _pos, _eye ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.ViewportPointToRay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ScreenPointToRay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _pos;translator.Get(L, 2, out _pos); - - var gen_ret = gen_to_be_invoked.ScreenPointToRay( _pos ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _pos;translator.Get(L, 2, out _pos); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 3, out _eye); - - var gen_ret = gen_to_be_invoked.ScreenPointToRay( _pos, _eye ); - translator.PushUnityEngineRay(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.ScreenPointToRay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateFrustumCorners(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _viewport;translator.Get(L, 2, out _viewport); - float _z = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 4, out _eye); - UnityEngine.Vector3[] _outCorners = (UnityEngine.Vector3[])translator.GetObject(L, 5, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.CalculateFrustumCorners( _viewport, _z, _eye, _outCorners ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateProjectionMatrixFromPhysicalProperties_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Matrix4x4 _output; - float _focalLength = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Vector2 _sensorSize;translator.Get(L, 2, out _sensorSize); - UnityEngine.Vector2 _lensShift;translator.Get(L, 3, out _lensShift); - float _nearClip = (float)LuaAPI.lua_tonumber(L, 4); - float _farClip = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.Camera.GateFitParameters _gateFitParameters;translator.Get(L, 6, out _gateFitParameters); - - UnityEngine.Camera.CalculateProjectionMatrixFromPhysicalProperties( out _output, _focalLength, _sensorSize, _lensShift, _nearClip, _farClip, _gateFitParameters ); - translator.Push(L, _output); - - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Matrix4x4 _output; - float _focalLength = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Vector2 _sensorSize;translator.Get(L, 2, out _sensorSize); - UnityEngine.Vector2 _lensShift;translator.Get(L, 3, out _lensShift); - float _nearClip = (float)LuaAPI.lua_tonumber(L, 4); - float _farClip = (float)LuaAPI.lua_tonumber(L, 5); - - UnityEngine.Camera.CalculateProjectionMatrixFromPhysicalProperties( out _output, _focalLength, _sensorSize, _lensShift, _nearClip, _farClip ); - translator.Push(L, _output); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.CalculateProjectionMatrixFromPhysicalProperties!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FocalLengthToFieldOfView_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _focalLength = (float)LuaAPI.lua_tonumber(L, 1); - float _sensorSize = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Camera.FocalLengthToFieldOfView( _focalLength, _sensorSize ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FieldOfViewToFocalLength_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _fieldOfView = (float)LuaAPI.lua_tonumber(L, 1); - float _sensorSize = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Camera.FieldOfViewToFocalLength( _fieldOfView, _sensorSize ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HorizontalToVerticalFieldOfView_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _horizontalFieldOfView = (float)LuaAPI.lua_tonumber(L, 1); - float _aspectRatio = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Camera.HorizontalToVerticalFieldOfView( _horizontalFieldOfView, _aspectRatio ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_VerticalToHorizontalFieldOfView_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _verticalFieldOfView = (float)LuaAPI.lua_tonumber(L, 1); - float _aspectRatio = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Camera.VerticalToHorizontalFieldOfView( _verticalFieldOfView, _aspectRatio ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStereoNonJitteredProjectionMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera.StereoscopicEye _eye;translator.Get(L, 2, out _eye); - - var gen_ret = gen_to_be_invoked.GetStereoNonJitteredProjectionMatrix( _eye ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStereoViewMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera.StereoscopicEye _eye;translator.Get(L, 2, out _eye); - - var gen_ret = gen_to_be_invoked.GetStereoViewMatrix( _eye ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyStereoDeviceProjectionMatrixToNonJittered(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera.StereoscopicEye _eye;translator.Get(L, 2, out _eye); - - gen_to_be_invoked.CopyStereoDeviceProjectionMatrixToNonJittered( _eye ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStereoProjectionMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera.StereoscopicEye _eye;translator.Get(L, 2, out _eye); - - var gen_ret = gen_to_be_invoked.GetStereoProjectionMatrix( _eye ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetStereoProjectionMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera.StereoscopicEye _eye;translator.Get(L, 2, out _eye); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 3, out _matrix); - - gen_to_be_invoked.SetStereoProjectionMatrix( _eye, _matrix ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetStereoProjectionMatrices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetStereoProjectionMatrices( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetStereoViewMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera.StereoscopicEye _eye;translator.Get(L, 2, out _eye); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 3, out _matrix); - - gen_to_be_invoked.SetStereoViewMatrix( _eye, _matrix ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetStereoViewMatrices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetStereoViewMatrices( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllCameras_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Camera[] _cameras = (UnityEngine.Camera[])translator.GetObject(L, 1, typeof(UnityEngine.Camera[])); - - var gen_ret = UnityEngine.Camera.GetAllCameras( _cameras ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderToCubemap(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Cubemap _cubemap = (UnityEngine.Cubemap)translator.GetObject(L, 2, typeof(UnityEngine.Cubemap)); - - var gen_ret = gen_to_be_invoked.RenderToCubemap( _cubemap ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.RenderTexture _cubemap = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - var gen_ret = gen_to_be_invoked.RenderToCubemap( _cubemap ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Cubemap _cubemap = (UnityEngine.Cubemap)translator.GetObject(L, 2, typeof(UnityEngine.Cubemap)); - int _faceMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.RenderToCubemap( _cubemap, _faceMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.RenderTexture _cubemap = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - int _faceMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.RenderToCubemap( _cubemap, _faceMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.RenderTexture _cubemap = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - int _faceMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Camera.MonoOrStereoscopicEye _stereoEye;translator.Get(L, 4, out _stereoEye); - - var gen_ret = gen_to_be_invoked.RenderToCubemap( _cubemap, _faceMask, _stereoEye ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.RenderToCubemap!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Render(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Render( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderWithShader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Shader _shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader)); - string _replacementTag = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.RenderWithShader( _shader, _replacementTag ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderDontRestore(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RenderDontRestore( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SubmitRenderRequests(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _renderRequests = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SubmitRenderRequests( _renderRequests ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetupCurrent_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Camera _cur = (UnityEngine.Camera)translator.GetObject(L, 1, typeof(UnityEngine.Camera)); - - UnityEngine.Camera.SetupCurrent( _cur ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyFrom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Camera _other = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.CopyFrom( _other ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCommandBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.CameraEvent _evt;translator.Get(L, 2, out _evt); - - gen_to_be_invoked.RemoveCommandBuffers( _evt ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAllCommandBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveAllCommandBuffers( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCommandBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.CameraEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - - gen_to_be_invoked.AddCommandBuffer( _evt, _buffer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCommandBufferAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.CameraEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - UnityEngine.Rendering.ComputeQueueType _queueType;translator.Get(L, 4, out _queueType); - - gen_to_be_invoked.AddCommandBufferAsync( _evt, _buffer, _queueType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCommandBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.CameraEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - - gen_to_be_invoked.RemoveCommandBuffer( _evt, _buffer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCommandBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.CameraEvent _evt;translator.Get(L, 2, out _evt); - - var gen_ret = gen_to_be_invoked.GetCommandBuffers( _evt ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetCullingParameters(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - UnityEngine.Rendering.ScriptableCullingParameters _cullingParameters; - - var gen_ret = gen_to_be_invoked.TryGetCullingParameters( out _cullingParameters ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _cullingParameters); - - - - - return 2; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _stereoAware = LuaAPI.lua_toboolean(L, 2); - UnityEngine.Rendering.ScriptableCullingParameters _cullingParameters; - - var gen_ret = gen_to_be_invoked.TryGetCullingParameters( _stereoAware, out _cullingParameters ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _cullingParameters); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.TryGetCullingParameters!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAspect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAspect( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFarClipPlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFarClipPlane( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFieldOfView(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFieldOfView( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DONearClipPlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DONearClipPlane( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOOrthoSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOOrthoSize( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPixelRect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPixelRect( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DORect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DORect( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOShakePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.DOShakePosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOShakeRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.DOShakeRotation!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nearClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.nearClipPlane); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_farClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.farClipPlane); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fieldOfView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fieldOfView); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderingPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderingPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_actualRenderingPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.actualRenderingPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowHDR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowHDR); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowMSAA(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowMSAA); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowDynamicResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowDynamicResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceIntoRenderTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.forceIntoRenderTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orthographicSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orthographicSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orthographic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.orthographic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_opaqueSortMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.opaqueSortMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transparencySortMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineTransparencySortMode(L, gen_to_be_invoked.transparencySortMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transparencySortAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.transparencySortAxis); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.depth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aspect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.aspect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cullingMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eventMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.eventMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerCullSpherical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.layerCullSpherical); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cameraType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cameraType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overrideSceneCullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushuint64(L, gen_to_be_invoked.overrideSceneCullingMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerCullDistances(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.layerCullDistances); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useOcclusionCulling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useOcclusionCulling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullingMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cullingMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_backgroundColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.backgroundColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clearFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.clearFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthTextureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.depthTextureMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clearStencilAfterLightingPass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.clearStencilAfterLightingPass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_usePhysicalProperties(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.usePhysicalProperties); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sensorSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.sensorSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lensShift(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.lensShift); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_focalLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.focalLength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gateFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineCameraGateFitMode(L, gen_to_be_invoked.gateFit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.pixelRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pixelWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pixelHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scaledPixelWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.scaledPixelWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scaledPixelHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.scaledPixelHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.activeTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetDisplay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.targetDisplay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cameraToWorldMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cameraToWorldMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldToCameraMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.worldToCameraMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_projectionMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.projectionMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nonJitteredProjectionMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.nonJitteredProjectionMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useJitteredProjectionMatrixForTransparentRendering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useJitteredProjectionMatrixForTransparentRendering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_previousViewProjectionMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.previousViewProjectionMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_main(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Camera.main); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_current(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Camera.current); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scene(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.scene); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stereoEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.stereoEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stereoSeparation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.stereoSeparation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stereoConvergence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.stereoConvergence); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_areVRStereoViewMatricesWithinSingleCullTolerance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.areVRStereoViewMatricesWithinSingleCullTolerance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stereoTargetEye(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.stereoTargetEye); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stereoActiveEye(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, gen_to_be_invoked.stereoActiveEye); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allCamerasCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Camera.allCamerasCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allCameras(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Camera.allCameras); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sceneViewFilterMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineCameraSceneViewFilterMode(L, gen_to_be_invoked.sceneViewFilterMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_commandBufferCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.commandBufferCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onPreCull(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Camera.onPreCull); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onPreRender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Camera.onPreRender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onPostRender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Camera.onPostRender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_nearClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.nearClipPlane = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_farClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.farClipPlane = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fieldOfView(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fieldOfView = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderingPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.RenderingPath gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.renderingPath = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowHDR(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowHDR = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowMSAA(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowMSAA = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowDynamicResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowDynamicResolution = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceIntoRenderTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceIntoRenderTexture = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orthographicSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.orthographicSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orthographic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.orthographic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_opaqueSortMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.OpaqueSortMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.opaqueSortMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_transparencySortMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.TransparencySortMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.transparencySortMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_transparencySortAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.transparencySortAxis = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.depth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aspect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.aspect = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cullingMask = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eventMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.eventMask = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerCullSpherical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.layerCullSpherical = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cameraType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.CameraType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cameraType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overrideSceneCullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.overrideSceneCullingMask = LuaAPI.lua_touint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerCullDistances(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.layerCullDistances = (float[])translator.GetObject(L, 2, typeof(float[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useOcclusionCulling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useOcclusionCulling = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullingMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cullingMatrix = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_backgroundColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.backgroundColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clearFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.CameraClearFlags gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.clearFlags = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depthTextureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.DepthTextureMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.depthTextureMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clearStencilAfterLightingPass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clearStencilAfterLightingPass = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_usePhysicalProperties(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.usePhysicalProperties = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sensorSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sensorSize = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lensShift(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lensShift = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_focalLength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.focalLength = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gateFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Camera.GateFitMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.gateFit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Rect gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rect = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pixelRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Rect gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pixelRect = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetTexture = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetDisplay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetDisplay = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_worldToCameraMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.worldToCameraMatrix = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_projectionMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.projectionMatrix = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_nonJitteredProjectionMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.nonJitteredProjectionMatrix = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useJitteredProjectionMatrixForTransparentRendering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useJitteredProjectionMatrixForTransparentRendering = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scene(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.SceneManagement.Scene gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.scene = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stereoSeparation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stereoSeparation = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stereoConvergence(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.stereoConvergence = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stereoTargetEye(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera gen_to_be_invoked = (UnityEngine.Camera)translator.FastGetCSObj(L, 1); - UnityEngine.StereoTargetEyeMask gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.stereoTargetEye = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onPreCull(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Camera.onPreCull = translator.GetDelegate(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onPreRender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Camera.onPreRender = translator.GetDelegate(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onPostRender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Camera.onPostRender = translator.GetDelegate(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Camera_GateFitParametersWrap.cs b/Assets/XLua/Gen/UnityEngine_Camera_GateFitParametersWrap.cs deleted file mode 100644 index a95cb5b5f..000000000 --- a/Assets/XLua/Gen/UnityEngine_Camera_GateFitParametersWrap.cs +++ /dev/null @@ -1,159 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCameraGateFitParametersWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Camera.GateFitParameters); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aspect", _g_get_aspect); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aspect", _s_set_aspect); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Camera.GateFitMode _mode;translator.Get(L, 2, out _mode); - float _aspect = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.Camera.GateFitParameters(_mode, _aspect); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Camera.GateFitParameters)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.GateFitParameters constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.GateFitParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineCameraGateFitMode(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aspect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.GateFitParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.aspect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.GateFitParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Camera.GateFitMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aspect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.GateFitParameters gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.aspect = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Camera_RenderRequestWrap.cs b/Assets/XLua/Gen/UnityEngine_Camera_RenderRequestWrap.cs deleted file mode 100644 index 19b5552cf..000000000 --- a/Assets/XLua/Gen/UnityEngine_Camera_RenderRequestWrap.cs +++ /dev/null @@ -1,163 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCameraRenderRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Camera.RenderRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isValid", _g_get_isValid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "result", _g_get_result); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outputSpace", _g_get_outputSpace); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Camera.RenderRequestMode _mode;translator.Get(L, 2, out _mode); - UnityEngine.RenderTexture _rt = (UnityEngine.RenderTexture)translator.GetObject(L, 3, typeof(UnityEngine.RenderTexture)); - - var gen_ret = new UnityEngine.Camera.RenderRequest(_mode, _rt); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - UnityEngine.Camera.RenderRequestMode _mode;translator.Get(L, 2, out _mode); - UnityEngine.Camera.RenderRequestOutputSpace _space;translator.Get(L, 3, out _space); - UnityEngine.RenderTexture _rt = (UnityEngine.RenderTexture)translator.GetObject(L, 4, typeof(UnityEngine.RenderTexture)); - - var gen_ret = new UnityEngine.Camera.RenderRequest(_mode, _space, _rt); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Camera.RenderRequest)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Camera.RenderRequest constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isValid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.RenderRequest gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isValid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.RenderRequest gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineCameraRenderRequestMode(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_result(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.RenderRequest gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.result); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outputSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Camera.RenderRequest gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, gen_to_be_invoked.outputSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CanvasGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_CanvasGroupWrap.cs deleted file mode 100644 index 70c259a81..000000000 --- a/Assets/XLua/Gen/UnityEngine_CanvasGroupWrap.cs +++ /dev/null @@ -1,270 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCanvasGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CanvasGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRaycastLocationValid", _m_IsRaycastLocationValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alpha", _g_get_alpha); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "interactable", _g_get_interactable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blocksRaycasts", _g_get_blocksRaycasts); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreParentGroups", _g_get_ignoreParentGroups); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alpha", _s_set_alpha); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "interactable", _s_set_interactable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "blocksRaycasts", _s_set_blocksRaycasts); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreParentGroups", _s_set_ignoreParentGroups); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CanvasGroup(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasGroup constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRaycastLocationValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _sp;translator.Get(L, 2, out _sp); - UnityEngine.Camera _eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.IsRaycastLocationValid( _sp, _eventCamera ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interactable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.interactable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blocksRaycasts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.blocksRaycasts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreParentGroups(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreParentGroups); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alpha = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interactable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.interactable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_blocksRaycasts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.blocksRaycasts = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreParentGroups(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasGroup gen_to_be_invoked = (UnityEngine.CanvasGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreParentGroups = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CanvasRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_CanvasRendererWrap.cs deleted file mode 100644 index ed433dd8e..000000000 --- a/Assets/XLua/Gen/UnityEngine_CanvasRendererWrap.cs +++ /dev/null @@ -1,966 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCanvasRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.CanvasRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 10, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetColor", _m_SetColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColor", _m_GetColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableRectClipping", _m_EnableRectClipping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisableRectClipping", _m_DisableRectClipping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterial", _m_SetMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMaterial", _m_GetMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPopMaterial", _m_SetPopMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPopMaterial", _m_GetPopMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTexture", _m_SetTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAlphaTexture", _m_SetAlphaTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMesh", _m_SetMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAlpha", _m_GetAlpha); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAlpha", _m_SetAlpha); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInheritedAlpha", _m_GetInheritedAlpha); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasPopInstruction", _g_get_hasPopInstruction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialCount", _g_get_materialCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "popMaterialCount", _g_get_popMaterialCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "absoluteDepth", _g_get_absoluteDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasMoved", _g_get_hasMoved); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullTransparentMesh", _g_get_cullTransparentMesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasRectClipping", _g_get_hasRectClipping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "relativeDepth", _g_get_relativeDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cull", _g_get_cull); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clippingSoftness", _g_get_clippingSoftness); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hasPopInstruction", _s_set_hasPopInstruction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materialCount", _s_set_materialCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "popMaterialCount", _s_set_popMaterialCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullTransparentMesh", _s_set_cullTransparentMesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cull", _s_set_cull); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clippingSoftness", _s_set_clippingSoftness); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SplitUIVertexStreams", _m_SplitUIVertexStreams_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateUIVertexStream", _m_CreateUIVertexStream_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AddUIVertexStream", _m_AddUIVertexStream_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.CanvasRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _color;translator.Get(L, 2, out _color); - - gen_to_be_invoked.SetColor( _color ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetColor( ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableRectClipping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - - gen_to_be_invoked.EnableRectClipping( _rect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DisableRectClipping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.DisableRectClipping( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetMaterial( _material, _index ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetMaterial( _material, _texture ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer.SetMaterial!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetMaterial( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetMaterial( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer.GetMaterial!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPopMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - int _index = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPopMaterial( _material, _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPopMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPopMaterial( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetTexture( _texture ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAlphaTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetAlphaTexture( _texture ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.SetMesh( _mesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAlpha(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAlpha( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAlpha(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - float _alpha = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetAlpha( _alpha ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInheritedAlpha(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetInheritedAlpha( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SplitUIVertexStreams_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 8&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable>(L, 5)&& translator.Assignable>(L, 6)&& translator.Assignable>(L, 7)&& translator.Assignable>(L, 8)) - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv0S = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv1S = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _normals = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _tangents = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 8, typeof(System.Collections.Generic.List)); - - UnityEngine.CanvasRenderer.SplitUIVertexStreams( _verts, _positions, _colors, _uv0S, _uv1S, _normals, _tangents, _indices ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable>(L, 5)&& translator.Assignable>(L, 6)&& translator.Assignable>(L, 7)&& translator.Assignable>(L, 8)&& translator.Assignable>(L, 9)&& translator.Assignable>(L, 10)) - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv0S = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv1S = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv2S = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv3S = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _normals = (System.Collections.Generic.List)translator.GetObject(L, 8, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _tangents = (System.Collections.Generic.List)translator.GetObject(L, 9, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 10, typeof(System.Collections.Generic.List)); - - UnityEngine.CanvasRenderer.SplitUIVertexStreams( _verts, _positions, _colors, _uv0S, _uv1S, _uv2S, _uv3S, _normals, _tangents, _indices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer.SplitUIVertexStreams!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateUIVertexStream_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 8&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable>(L, 5)&& translator.Assignable>(L, 6)&& translator.Assignable>(L, 7)&& translator.Assignable>(L, 8)) - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv0S = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv1S = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _normals = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _tangents = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 8, typeof(System.Collections.Generic.List)); - - UnityEngine.CanvasRenderer.CreateUIVertexStream( _verts, _positions, _colors, _uv0S, _uv1S, _normals, _tangents, _indices ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable>(L, 5)&& translator.Assignable>(L, 6)&& translator.Assignable>(L, 7)&& translator.Assignable>(L, 8)&& translator.Assignable>(L, 9)&& translator.Assignable>(L, 10)) - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv0S = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv1S = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv2S = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv3S = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _normals = (System.Collections.Generic.List)translator.GetObject(L, 8, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _tangents = (System.Collections.Generic.List)translator.GetObject(L, 9, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 10, typeof(System.Collections.Generic.List)); - - UnityEngine.CanvasRenderer.CreateUIVertexStream( _verts, _positions, _colors, _uv0S, _uv1S, _uv2S, _uv3S, _normals, _tangents, _indices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer.CreateUIVertexStream!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddUIVertexStream_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 7&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable>(L, 5)&& translator.Assignable>(L, 6)&& translator.Assignable>(L, 7)) - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv0S = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv1S = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _normals = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _tangents = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - - UnityEngine.CanvasRenderer.AddUIVertexStream( _verts, _positions, _colors, _uv0S, _uv1S, _normals, _tangents ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable>(L, 5)&& translator.Assignable>(L, 6)&& translator.Assignable>(L, 7)&& translator.Assignable>(L, 8)&& translator.Assignable>(L, 9)) - { - System.Collections.Generic.List _verts = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv0S = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv1S = (System.Collections.Generic.List)translator.GetObject(L, 5, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv2S = (System.Collections.Generic.List)translator.GetObject(L, 6, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _uv3S = (System.Collections.Generic.List)translator.GetObject(L, 7, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _normals = (System.Collections.Generic.List)translator.GetObject(L, 8, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _tangents = (System.Collections.Generic.List)translator.GetObject(L, 9, typeof(System.Collections.Generic.List)); - - UnityEngine.CanvasRenderer.AddUIVertexStream( _verts, _positions, _colors, _uv0S, _uv1S, _uv2S, _uv3S, _normals, _tangents ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.CanvasRenderer.AddUIVertexStream!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasPopInstruction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasPopInstruction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.materialCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_popMaterialCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.popMaterialCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_absoluteDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.absoluteDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasMoved(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasMoved); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullTransparentMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.cullTransparentMesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasRectClipping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasRectClipping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_relativeDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.relativeDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cull(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.cull); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clippingSoftness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.clippingSoftness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hasPopInstruction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hasPopInstruction = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materialCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.materialCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_popMaterialCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.popMaterialCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullTransparentMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cullTransparentMesh = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cull(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cull = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clippingSoftness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.clippingSoftness = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_CanvasWrap.cs b/Assets/XLua/Gen/UnityEngine_CanvasWrap.cs deleted file mode 100644 index 8b4a5bf3b..000000000 --- a/Assets/XLua/Gen/UnityEngine_CanvasWrap.cs +++ /dev/null @@ -1,748 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineCanvasWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Canvas); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 20, 14); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderMode", _g_get_renderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isRootCanvas", _g_get_isRootCanvas); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelRect", _g_get_pixelRect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scaleFactor", _g_get_scaleFactor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referencePixelsPerUnit", _g_get_referencePixelsPerUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overridePixelPerfect", _g_get_overridePixelPerfect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelPerfect", _g_get_pixelPerfect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "planeDistance", _g_get_planeDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderOrder", _g_get_renderOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overrideSorting", _g_get_overrideSorting); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingOrder", _g_get_sortingOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetDisplay", _g_get_targetDisplay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingLayerID", _g_get_sortingLayerID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cachedSortingLayerValue", _g_get_cachedSortingLayerValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "additionalShaderChannels", _g_get_additionalShaderChannels); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingLayerName", _g_get_sortingLayerName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootCanvas", _g_get_rootCanvas); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderingDisplaySize", _g_get_renderingDisplaySize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldCamera", _g_get_worldCamera); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedSortingGridSize", _g_get_normalizedSortingGridSize); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderMode", _s_set_renderMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scaleFactor", _s_set_scaleFactor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "referencePixelsPerUnit", _s_set_referencePixelsPerUnit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "overridePixelPerfect", _s_set_overridePixelPerfect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pixelPerfect", _s_set_pixelPerfect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "planeDistance", _s_set_planeDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "overrideSorting", _s_set_overrideSorting); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingOrder", _s_set_sortingOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetDisplay", _s_set_targetDisplay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingLayerID", _s_set_sortingLayerID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "additionalShaderChannels", _s_set_additionalShaderChannels); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingLayerName", _s_set_sortingLayerName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "worldCamera", _s_set_worldCamera); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalizedSortingGridSize", _s_set_normalizedSortingGridSize); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDefaultCanvasMaterial", _m_GetDefaultCanvasMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetETC1SupportedCanvasMaterial", _m_GetETC1SupportedCanvasMaterial_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ForceUpdateCanvases", _m_ForceUpdateCanvases_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "preWillRenderCanvases", _e_preWillRenderCanvases); - Utils.RegisterFunc(L, Utils.CLS_IDX, "willRenderCanvases", _e_willRenderCanvases); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Canvas(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Canvas constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDefaultCanvasMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.Canvas.GetDefaultCanvasMaterial( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetETC1SupportedCanvasMaterial_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.Canvas.GetETC1SupportedCanvasMaterial( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceUpdateCanvases_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Canvas.ForceUpdateCanvases( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isRootCanvas(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isRootCanvas); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.pixelRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scaleFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scaleFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referencePixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.referencePixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overridePixelPerfect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.overridePixelPerfect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelPerfect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.pixelPerfect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_planeDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.planeDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overrideSorting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.overrideSorting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sortingOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetDisplay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.targetDisplay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sortingLayerID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cachedSortingLayerValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cachedSortingLayerValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_additionalShaderChannels(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.additionalShaderChannels); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingLayerName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.sortingLayerName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rootCanvas(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rootCanvas); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderingDisplaySize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.renderingDisplaySize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldCamera(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.worldCamera); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalizedSortingGridSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalizedSortingGridSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - UnityEngine.RenderMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.renderMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scaleFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scaleFactor = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_referencePixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.referencePixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overridePixelPerfect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.overridePixelPerfect = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pixelPerfect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pixelPerfect = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_planeDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.planeDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overrideSorting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.overrideSorting = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingOrder = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetDisplay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetDisplay = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingLayerID = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_additionalShaderChannels(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - UnityEngine.AdditionalCanvasShaderChannels gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.additionalShaderChannels = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingLayerName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingLayerName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_worldCamera(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.worldCamera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalizedSortingGridSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Canvas gen_to_be_invoked = (UnityEngine.Canvas)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalizedSortingGridSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_preWillRenderCanvases(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Canvas.WillRenderCanvases gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Canvas.WillRenderCanvases!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Canvas.preWillRenderCanvases += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Canvas.preWillRenderCanvases -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Canvas.preWillRenderCanvases!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_willRenderCanvases(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Canvas.WillRenderCanvases gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Canvas.WillRenderCanvases!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Canvas.willRenderCanvases += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Canvas.willRenderCanvases -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Canvas.willRenderCanvases!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ColorWrap.cs b/Assets/XLua/Gen/UnityEngine_ColorWrap.cs deleted file mode 100644 index 2ee3dbd58..000000000 --- a/Assets/XLua/Gen/UnityEngine_ColorWrap.cs +++ /dev/null @@ -1,934 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineColorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Color); - Utils.BeginObjectRegister(type, L, translator, 5, 3, 8, 4); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__div", __DivMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "grayscale", _g_get_grayscale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linear", _g_get_linear); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gamma", _g_get_gamma); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxColorComponent", _g_get_maxColorComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "r", _g_get_r); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "g", _g_get_g); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "b", _g_get_b); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "a", _g_get_a); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "r", _s_set_r); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "g", _s_set_g); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "b", _s_set_b); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "a", _s_set_a); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 11, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RGBToHSV", _m_RGBToHSV_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HSVToRGB", _m_HSVToRGB_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "red", _g_get_red); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "green", _g_get_green); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "blue", _g_get_blue); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "white", _g_get_white); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "black", _g_get_black); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "yellow", _g_get_yellow); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "cyan", _g_get_cyan); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "magenta", _g_get_magenta); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "gray", _g_get_gray); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "grey", _g_get_grey); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "clear", _g_get_clear); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _r = (float)LuaAPI.lua_tonumber(L, 2); - float _g = (float)LuaAPI.lua_tonumber(L, 3); - float _b = (float)LuaAPI.lua_tonumber(L, 4); - float _a = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new UnityEngine.Color(_r, _g, _b, _a); - translator.PushUnityEngineColor(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _r = (float)LuaAPI.lua_tonumber(L, 2); - float _g = (float)LuaAPI.lua_tonumber(L, 3); - float _b = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = new UnityEngine.Color(_r, _g, _b); - translator.PushUnityEngineColor(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineColor(L, default(UnityEngine.Color)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Color leftside;translator.Get(L, 1, out leftside); - UnityEngine.Color rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineColor(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need UnityEngine.Color!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Color leftside;translator.Get(L, 1, out leftside); - UnityEngine.Color rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineColor(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need UnityEngine.Color!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Color leftside;translator.Get(L, 1, out leftside); - UnityEngine.Color rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineColor(L, leftside * rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Color leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineColor(L, leftside * rightside); - - return 1; - } - - - if (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable(L, 2)) - { - float leftside = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Color rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineColor(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Color!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __DivMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Color leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineColor(L, leftside / rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of / operator, need UnityEngine.Color!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Color leftside;translator.Get(L, 1, out leftside); - UnityEngine.Color rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Color!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color _a;translator.Get(L, 1, out _a); - UnityEngine.Color _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Color.Lerp( _a, _b, _t ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color _a;translator.Get(L, 1, out _a); - UnityEngine.Color _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Color.LerpUnclamped( _a, _b, _t ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RGBToHSV_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Color _rgbColor;translator.Get(L, 1, out _rgbColor); - float _H; - float _S; - float _V; - - UnityEngine.Color.RGBToHSV( _rgbColor, out _H, out _S, out _V ); - LuaAPI.lua_pushnumber(L, _H); - - LuaAPI.lua_pushnumber(L, _S); - - LuaAPI.lua_pushnumber(L, _V); - - - - - return 3; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HSVToRGB_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _H = (float)LuaAPI.lua_tonumber(L, 1); - float _S = (float)LuaAPI.lua_tonumber(L, 2); - float _V = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Color.HSVToRGB( _H, _S, _V ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _H = (float)LuaAPI.lua_tonumber(L, 1); - float _S = (float)LuaAPI.lua_tonumber(L, 2); - float _V = (float)LuaAPI.lua_tonumber(L, 3); - bool _hdr = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = UnityEngine.Color.HSVToRGB( _H, _S, _V, _hdr ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Color.HSVToRGB!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_red(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.red); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_green(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.green); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.blue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_white(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.white); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_black(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.black); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yellow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.yellow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cyan(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.cyan); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_magenta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.magenta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gray(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.gray); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_grey(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.grey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clear(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.Color.clear); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_grayscale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.grayscale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linear(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.linear); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gamma(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.gamma); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxColorComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxColorComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_r(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.r); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_g(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.g); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_b(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.b); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_a(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.a); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_r(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.r = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_g(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.g = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_b(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.b = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_a(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Color gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.a = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineColor(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ComponentWrap.cs b/Assets/XLua/Gen/UnityEngine_ComponentWrap.cs deleted file mode 100644 index 898dfdc44..000000000 --- a/Assets/XLua/Gen/UnityEngine_ComponentWrap.cs +++ /dev/null @@ -1,1108 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineComponentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Component); - Utils.BeginObjectRegister(type, L, translator, 0, 23, 3, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponent", _m_GetComponent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetComponent", _m_TryGetComponent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInChildren", _m_GetComponentInChildren); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInChildren", _m_GetComponentsInChildren); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInParent", _m_GetComponentInParent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInParent", _m_GetComponentsInParent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponents", _m_GetComponents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTag", _m_CompareTag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessageUpwards", _m_SendMessageUpwards); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessage", _m_SendMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BroadcastMessage", _m_BroadcastMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOComplete", _m_DOComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOKill", _m_DOKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFlip", _m_DOFlip); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOGoto", _m_DOGoto); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPause", _m_DOPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlay", _m_DOPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlayBackwards", _m_DOPlayBackwards); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlayForward", _m_DOPlayForward); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORestart", _m_DORestart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORewind", _m_DORewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOSmoothRewind", _m_DOSmoothRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOTogglePause", _m_DOTogglePause); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tag", _g_get_tag); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tag", _s_set_tag); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Component(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponent( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _type = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetComponent( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.GetComponent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetComponent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - UnityEngine.Component _component; - - var gen_ret = gen_to_be_invoked.TryGetComponent( _type, out _component ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _component); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentInChildren(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentInChildren( _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentInChildren( _t, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.GetComponentInChildren!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentsInChildren(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _t, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.GetComponentsInChildren!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentInParent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentInParent( _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentInParent( _t, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.GetComponentInParent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentsInParent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentsInParent( _t ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _t = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentsInParent( _t, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.GetComponentsInParent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponents( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetComponents( _type, _results ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.GetComponents!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareTag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - string _tag = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.CompareTag( _tag ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendMessageUpwards(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SendMessageUpwards( _methodName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.SendMessageUpwards( _methodName, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); - - gen_to_be_invoked.SendMessageUpwards( _methodName, _options ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); - - gen_to_be_invoked.SendMessageUpwards( _methodName, _value, _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.SendMessageUpwards!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SendMessage( _methodName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.SendMessage( _methodName, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); - - gen_to_be_invoked.SendMessage( _methodName, _options ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); - - gen_to_be_invoked.SendMessage( _methodName, _value, _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.SendMessage!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BroadcastMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.BroadcastMessage( _methodName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _parameter = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.BroadcastMessage( _methodName, _parameter ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); - - gen_to_be_invoked.BroadcastMessage( _methodName, _options ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _parameter = translator.GetObject(L, 3, typeof(object)); - UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); - - gen_to_be_invoked.BroadcastMessage( _methodName, _parameter, _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.BroadcastMessage!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withCallbacks = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DOComplete( _withCallbacks ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DOComplete( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.DOComplete!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _complete = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DOKill( _complete ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DOKill( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.DOKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFlip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOFlip( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOGoto(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 2); - bool _andPlay = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.DOGoto( _to, _andPlay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOGoto( _to ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.DOGoto!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPause( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPlay( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPlayBackwards(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPlayBackwards( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPlayForward(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPlayForward( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DORestart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DORestart( _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DORestart( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.DORestart!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DORewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DORewind( _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DORewind( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Component.DORewind!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOSmoothRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOSmoothRewind( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOTogglePause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOTogglePause( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.tag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tag = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_DebugWrap.cs b/Assets/XLua/Gen/UnityEngine_DebugWrap.cs deleted file mode 100644 index dd05f0191..000000000 --- a/Assets/XLua/Gen/UnityEngine_DebugWrap.cs +++ /dev/null @@ -1,885 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineDebugWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Debug); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 17, 3, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawLine", _m_DrawLine_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawRay", _m_DrawRay_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Break", _m_Break_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DebugBreak", _m_DebugBreak_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Log", _m_Log_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogFormat", _m_LogFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogError", _m_LogError_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogErrorFormat", _m_LogErrorFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearDeveloperConsole", _m_ClearDeveloperConsole_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogException", _m_LogException_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogWarning", _m_LogWarning_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogWarningFormat", _m_LogWarningFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Assert", _m_Assert_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AssertFormat", _m_AssertFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogAssertion", _m_LogAssertion_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LogAssertionFormat", _m_LogAssertionFormat_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "unityLogger", _g_get_unityLogger); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "developerConsoleVisible", _g_get_developerConsoleVisible); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isDebugBuild", _g_get_isDebugBuild); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "developerConsoleVisible", _s_set_developerConsoleVisible); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Debug(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawLine_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - - UnityEngine.Debug.DrawLine( _start, _end ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - UnityEngine.Color _color;translator.Get(L, 3, out _color); - - UnityEngine.Debug.DrawLine( _start, _end, _color ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - UnityEngine.Color _color;translator.Get(L, 3, out _color); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - UnityEngine.Debug.DrawLine( _start, _end, _color, _duration ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - UnityEngine.Color _color;translator.Get(L, 3, out _color); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - bool _depthTest = LuaAPI.lua_toboolean(L, 5); - - UnityEngine.Debug.DrawLine( _start, _end, _color, _duration, _depthTest ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.DrawLine!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawRay_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _dir;translator.Get(L, 2, out _dir); - - UnityEngine.Debug.DrawRay( _start, _dir ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _dir;translator.Get(L, 2, out _dir); - UnityEngine.Color _color;translator.Get(L, 3, out _color); - - UnityEngine.Debug.DrawRay( _start, _dir, _color ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _dir;translator.Get(L, 2, out _dir); - UnityEngine.Color _color;translator.Get(L, 3, out _color); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - UnityEngine.Debug.DrawRay( _start, _dir, _color, _duration ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _dir;translator.Get(L, 2, out _dir); - UnityEngine.Color _color;translator.Get(L, 3, out _color); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - bool _depthTest = LuaAPI.lua_toboolean(L, 5); - - UnityEngine.Debug.DrawRay( _start, _dir, _color, _duration, _depthTest ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.DrawRay!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Break_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Debug.Break( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DebugBreak_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Debug.DebugBreak( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Log_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - - UnityEngine.Debug.Log( _message ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - UnityEngine.Debug.Log( _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.Log!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable(L, 2))) - { - string _format = LuaAPI.lua_tostring(L, 1); - object[] _args = translator.GetParams(L, 2); - - UnityEngine.Debug.LogFormat( _format, _args ); - - - - return 0; - } - if(gen_param_count >= 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - string _format = LuaAPI.lua_tostring(L, 2); - object[] _args = translator.GetParams(L, 3); - - UnityEngine.Debug.LogFormat( _context, _format, _args ); - - - - return 0; - } - if(gen_param_count >= 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 5) || translator.Assignable(L, 5))) - { - UnityEngine.LogType _logType;translator.Get(L, 1, out _logType); - UnityEngine.LogOption _logOptions;translator.Get(L, 2, out _logOptions); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - string _format = LuaAPI.lua_tostring(L, 4); - object[] _args = translator.GetParams(L, 5); - - UnityEngine.Debug.LogFormat( _logType, _logOptions, _context, _format, _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogFormat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogError_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - - UnityEngine.Debug.LogError( _message ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - UnityEngine.Debug.LogError( _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogError!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogErrorFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable(L, 2))) - { - string _format = LuaAPI.lua_tostring(L, 1); - object[] _args = translator.GetParams(L, 2); - - UnityEngine.Debug.LogErrorFormat( _format, _args ); - - - - return 0; - } - if(gen_param_count >= 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - string _format = LuaAPI.lua_tostring(L, 2); - object[] _args = translator.GetParams(L, 3); - - UnityEngine.Debug.LogErrorFormat( _context, _format, _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogErrorFormat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearDeveloperConsole_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Debug.ClearDeveloperConsole( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogException_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.Exception _exception = (System.Exception)translator.GetObject(L, 1, typeof(System.Exception)); - - UnityEngine.Debug.LogException( _exception ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - System.Exception _exception = (System.Exception)translator.GetObject(L, 1, typeof(System.Exception)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - UnityEngine.Debug.LogException( _exception, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogException!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogWarning_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - - UnityEngine.Debug.LogWarning( _message ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - UnityEngine.Debug.LogWarning( _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogWarning!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogWarningFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable(L, 2))) - { - string _format = LuaAPI.lua_tostring(L, 1); - object[] _args = translator.GetParams(L, 2); - - UnityEngine.Debug.LogWarningFormat( _format, _args ); - - - - return 0; - } - if(gen_param_count >= 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - string _format = LuaAPI.lua_tostring(L, 2); - object[] _args = translator.GetParams(L, 3); - - UnityEngine.Debug.LogWarningFormat( _context, _format, _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogWarningFormat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Assert_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - - UnityEngine.Debug.Assert( _condition ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - UnityEngine.Debug.Assert( _condition, _context ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - object _message = translator.GetObject(L, 2, typeof(object)); - - UnityEngine.Debug.Assert( _condition, _message ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - string _message = LuaAPI.lua_tostring(L, 2); - - UnityEngine.Debug.Assert( _condition, _message ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - object _message = translator.GetObject(L, 2, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - - UnityEngine.Debug.Assert( _condition, _message, _context ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - string _message = LuaAPI.lua_tostring(L, 2); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - - UnityEngine.Debug.Assert( _condition, _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.Assert!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AssertFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - string _format = LuaAPI.lua_tostring(L, 2); - object[] _args = translator.GetParams(L, 3); - - UnityEngine.Debug.AssertFormat( _condition, _format, _args ); - - - - return 0; - } - if(gen_param_count >= 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable(L, 4))) - { - bool _condition = LuaAPI.lua_toboolean(L, 1); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - string _format = LuaAPI.lua_tostring(L, 3); - object[] _args = translator.GetParams(L, 4); - - UnityEngine.Debug.AssertFormat( _condition, _context, _format, _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.AssertFormat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogAssertion_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - - UnityEngine.Debug.LogAssertion( _message ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - object _message = translator.GetObject(L, 1, typeof(object)); - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - UnityEngine.Debug.LogAssertion( _message, _context ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogAssertion!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LogAssertionFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || translator.Assignable(L, 2))) - { - string _format = LuaAPI.lua_tostring(L, 1); - object[] _args = translator.GetParams(L, 2); - - UnityEngine.Debug.LogAssertionFormat( _format, _args ); - - - - return 0; - } - if(gen_param_count >= 2&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - string _format = LuaAPI.lua_tostring(L, 2); - object[] _args = translator.GetParams(L, 3); - - UnityEngine.Debug.LogAssertionFormat( _context, _format, _args ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Debug.LogAssertionFormat!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_unityLogger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushAny(L, UnityEngine.Debug.unityLogger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_developerConsoleVisible(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Debug.developerConsoleVisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDebugBuild(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Debug.isDebugBuild); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_developerConsoleVisible(RealStatePtr L) - { - try { - - UnityEngine.Debug.developerConsoleVisible = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_EventSystems_UIBehaviourWrap.cs b/Assets/XLua/Gen/UnityEngine_EventSystems_UIBehaviourWrap.cs deleted file mode 100644 index 4a7836038..000000000 --- a/Assets/XLua/Gen/UnityEngine_EventSystems_UIBehaviourWrap.cs +++ /dev/null @@ -1,125 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventSystemsUIBehaviourWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.EventSystems.UIBehaviour); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsActive", _m_IsActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsDestroyed", _m_IsDestroyed); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.EventSystems.UIBehaviour does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.EventSystems.UIBehaviour gen_to_be_invoked = (UnityEngine.EventSystems.UIBehaviour)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsActive( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDestroyed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.EventSystems.UIBehaviour gen_to_be_invoked = (UnityEngine.EventSystems.UIBehaviour)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsDestroyed( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Events_UnityEventBaseWrap.cs b/Assets/XLua/Gen/UnityEngine_Events_UnityEventBaseWrap.cs deleted file mode 100644 index cc9c27eb5..000000000 --- a/Assets/XLua/Gen/UnityEngine_Events_UnityEventBaseWrap.cs +++ /dev/null @@ -1,320 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventsUnityEventBaseWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Events.UnityEventBase); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentEventCount", _m_GetPersistentEventCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentTarget", _m_GetPersistentTarget); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentMethodName", _m_GetPersistentMethodName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPersistentListenerState", _m_SetPersistentListenerState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentListenerState", _m_GetPersistentListenerState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllListeners", _m_RemoveAllListeners); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValidMethodInfo", _m_GetValidMethodInfo_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Events.UnityEventBase does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPersistentEventCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPersistentEventCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPersistentTarget(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPersistentTarget( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPersistentMethodName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPersistentMethodName( _index ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPersistentListenerState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Events.UnityEventCallState _state;translator.Get(L, 3, out _state); - - gen_to_be_invoked.SetPersistentListenerState( _index, _state ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPersistentListenerState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPersistentListenerState( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAllListeners(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveAllListeners( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetValidMethodInfo_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - object _obj = translator.GetObject(L, 1, typeof(object)); - string _functionName = LuaAPI.lua_tostring(L, 2); - System.Type[] _argumentTypes = (System.Type[])translator.GetObject(L, 3, typeof(System.Type[])); - - var gen_ret = UnityEngine.Events.UnityEventBase.GetValidMethodInfo( _obj, _functionName, _argumentTypes ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - System.Type _objectType = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - string _functionName = LuaAPI.lua_tostring(L, 2); - System.Type[] _argumentTypes = (System.Type[])translator.GetObject(L, 3, typeof(System.Type[])); - - var gen_ret = UnityEngine.Events.UnityEventBase.GetValidMethodInfo( _objectType, _functionName, _argumentTypes ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEventBase.GetValidMethodInfo!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Events_UnityEventWrap.cs b/Assets/XLua/Gen/UnityEngine_Events_UnityEventWrap.cs deleted file mode 100644 index 1eef1538d..000000000 --- a/Assets/XLua/Gen/UnityEngine_Events_UnityEventWrap.cs +++ /dev/null @@ -1,170 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventsUnityEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Events.UnityEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveListener", _m_RemoveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Events.UnityEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate(L, 2); - - gen_to_be_invoked.AddListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate(L, 2); - - gen_to_be_invoked.RemoveListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Invoke( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int32_Wrap.cs b/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int32_Wrap.cs deleted file mode 100644 index 8623db9b2..000000000 --- a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int32_Wrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventsUnityEvent_1_SystemInt32_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Events.UnityEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveListener", _m_RemoveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Events.UnityEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.RemoveListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - int _arg0 = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Invoke( _arg0 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int64_Wrap.cs b/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int64_Wrap.cs deleted file mode 100644 index f59b5d4cf..000000000 --- a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Int64_Wrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventsUnityEvent_1_SystemInt64_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Events.UnityEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveListener", _m_RemoveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Events.UnityEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.RemoveListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - long _arg0 = LuaAPI.lua_toint64(L, 2); - - gen_to_be_invoked.Invoke( _arg0 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Single_Wrap.cs b/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Single_Wrap.cs deleted file mode 100644 index 3ccd5b1c2..000000000 --- a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_Single_Wrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventsUnityEvent_1_SystemSingle_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Events.UnityEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveListener", _m_RemoveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Events.UnityEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.RemoveListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - float _arg0 = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Invoke( _arg0 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_String_Wrap.cs b/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_String_Wrap.cs deleted file mode 100644 index 0dafcdefe..000000000 --- a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_System_String_Wrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventsUnityEvent_1_SystemString_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Events.UnityEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveListener", _m_RemoveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Events.UnityEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.RemoveListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - string _arg0 = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.Invoke( _arg0 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_UnityEngine_Vector2_Wrap.cs b/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_UnityEngine_Vector2_Wrap.cs deleted file mode 100644 index 7bd7f46bb..000000000 --- a/Assets/XLua/Gen/UnityEngine_Events_UnityEvent_1_UnityEngine_Vector2_Wrap.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineEventsUnityEvent_1_UnityEngineVector2_Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Events.UnityEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddListener", _m_AddListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveListener", _m_RemoveListener); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Events.UnityEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.AddListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveListener(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _call = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.RemoveListener( _call ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Events.UnityEvent gen_to_be_invoked = (UnityEngine.Events.UnityEvent)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _arg0;translator.Get(L, 2, out _arg0); - - gen_to_be_invoked.Invoke( _arg0 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_FontWrap.cs b/Assets/XLua/Gen/UnityEngine_FontWrap.cs deleted file mode 100644 index 5cc4765bf..000000000 --- a/Assets/XLua/Gen/UnityEngine_FontWrap.cs +++ /dev/null @@ -1,555 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineFontWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Font); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 7, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasCharacter", _m_HasCharacter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCharacterInfo", _m_GetCharacterInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestCharactersInTexture", _m_RequestCharactersInTexture); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontNames", _g_get_fontNames); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dynamic", _g_get_dynamic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ascent", _g_get_ascent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSize", _g_get_fontSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterInfo", _g_get_characterInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineHeight", _g_get_lineHeight); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontNames", _s_set_fontNames); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterInfo", _s_set_characterInfo); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateDynamicFontFromOSFont", _m_CreateDynamicFontFromOSFont_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMaxVertsForString", _m_GetMaxVertsForString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetOSInstalledFontNames", _m_GetOSInstalledFontNames_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPathsToOSFonts", _m_GetPathsToOSFonts_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "textureRebuilt", _e_textureRebuilt); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Font(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.Font(_name); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Font constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateDynamicFontFromOSFont_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _fontname = LuaAPI.lua_tostring(L, 1); - int _size = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Font.CreateDynamicFontFromOSFont( _fontname, _size ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string[] _fontnames = (string[])translator.GetObject(L, 1, typeof(string[])); - int _size = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Font.CreateDynamicFontFromOSFont( _fontnames, _size ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Font.CreateDynamicFontFromOSFont!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMaxVertsForString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _str = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Font.GetMaxVertsForString( _str ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasCharacter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - - - - { - char _c = (char)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasCharacter( _c ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetOSInstalledFontNames_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.Font.GetOSInstalledFontNames( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPathsToOSFonts_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.Font.GetPathsToOSFonts( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCharacterInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - char _ch = (char)LuaAPI.xlua_tointeger(L, 2); - UnityEngine.CharacterInfo _info; - - var gen_ret = gen_to_be_invoked.GetCharacterInfo( _ch, out _info ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _info); - - - - - return 2; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - char _ch = (char)LuaAPI.xlua_tointeger(L, 2); - UnityEngine.CharacterInfo _info; - int _size = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetCharacterInfo( _ch, out _info, _size ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _info); - - - - - return 2; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - char _ch = (char)LuaAPI.xlua_tointeger(L, 2); - UnityEngine.CharacterInfo _info; - int _size = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.FontStyle _style;translator.Get(L, 4, out _style); - - var gen_ret = gen_to_be_invoked.GetCharacterInfo( _ch, out _info, _size, _style ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _info); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Font.GetCharacterInfo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RequestCharactersInTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _characters = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.RequestCharactersInTexture( _characters ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _characters = LuaAPI.lua_tostring(L, 2); - int _size = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.RequestCharactersInTexture( _characters, _size ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - string _characters = LuaAPI.lua_tostring(L, 2); - int _size = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.FontStyle _style;translator.Get(L, 4, out _style); - - gen_to_be_invoked.RequestCharactersInTexture( _characters, _size, _style ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Font.RequestCharactersInTexture!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontNames(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontNames); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dynamic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.dynamic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ascent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ascent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.characterInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lineHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontNames(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontNames = (string[])translator.GetObject(L, 2, typeof(string[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Font gen_to_be_invoked = (UnityEngine.Font)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterInfo = (UnityEngine.CharacterInfo[])translator.GetObject(L, 2, typeof(UnityEngine.CharacterInfo[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_textureRebuilt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Font.textureRebuilt += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Font.textureRebuilt -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Font.textureRebuilt!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GameObjectWrap.cs b/Assets/XLua/Gen/UnityEngine_GameObjectWrap.cs deleted file mode 100644 index 5fe899658..000000000 --- a/Assets/XLua/Gen/UnityEngine_GameObjectWrap.cs +++ /dev/null @@ -1,1053 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using BF; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGameObjectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.GameObject); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 9, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponent", _m_GetComponent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInChildren", _m_GetComponentInChildren); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInParent", _m_GetComponentInParent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponents", _m_GetComponents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInChildren", _m_GetComponentsInChildren); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInParent", _m_GetComponentsInParent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetComponent", _m_TryGetComponent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessageUpwards", _m_SendMessageUpwards); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessage", _m_SendMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BroadcastMessage", _m_BroadcastMessage); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddComponent", _m_AddComponent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActive", _m_SetActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTag", _m_CompareTag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BFGetComponent", _m_BFGetComponent); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layer", _g_get_layer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "activeSelf", _g_get_activeSelf); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "activeInHierarchy", _g_get_activeInHierarchy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isStatic", _g_get_isStatic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tag", _g_get_tag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scene", _g_get_scene); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sceneCullingMask", _g_get_sceneCullingMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layer", _s_set_layer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isStatic", _s_set_isStatic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tag", _s_set_tag); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreatePrimitive", _m_CreatePrimitive_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindWithTag", _m_FindWithTag_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindGameObjectWithTag", _m_FindGameObjectWithTag_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindGameObjectsWithTag", _m_FindGameObjectsWithTag_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Find", _m_Find_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.GameObject(_name); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.GameObject(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) >= 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Type[] _components = translator.GetParams(L, 3); - - var gen_ret = new UnityEngine.GameObject(_name, _components); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreatePrimitive_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.PrimitiveType _type;translator.Get(L, 1, out _type); - - var gen_ret = UnityEngine.GameObject.CreatePrimitive( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponent( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _type = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetComponent( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentInChildren(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentInChildren( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentInChildren( _type, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentInChildren!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentInParent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentInParent( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentInParent( _type, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentInParent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponents( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetComponents( _type, _results ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponents!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentsInChildren(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _type, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentsInChildren!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetComponentsInParent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.GetComponentsInParent( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetComponentsInParent( _type, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentsInParent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetComponent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - - { - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - UnityEngine.Component _component; - - var gen_ret = gen_to_be_invoked.TryGetComponent( _type, out _component ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _component); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindWithTag_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _tag = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.GameObject.FindWithTag( _tag ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendMessageUpwards(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SendMessageUpwards( _methodName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); - - gen_to_be_invoked.SendMessageUpwards( _methodName, _options ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.SendMessageUpwards( _methodName, _value ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); - - gen_to_be_invoked.SendMessageUpwards( _methodName, _value, _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.SendMessageUpwards!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SendMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SendMessage( _methodName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); - - gen_to_be_invoked.SendMessage( _methodName, _options ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.SendMessage( _methodName, _value ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); - - gen_to_be_invoked.SendMessage( _methodName, _value, _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.SendMessage!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BroadcastMessage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.BroadcastMessage( _methodName ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); - - gen_to_be_invoked.BroadcastMessage( _methodName, _options ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _parameter = translator.GetObject(L, 3, typeof(object)); - - gen_to_be_invoked.BroadcastMessage( _methodName, _parameter ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _parameter = translator.GetObject(L, 3, typeof(object)); - UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); - - gen_to_be_invoked.BroadcastMessage( _methodName, _parameter, _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.BroadcastMessage!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddComponent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - - { - System.Type _componentType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.AddComponent( _componentType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - - { - bool _value = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetActive( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CompareTag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - - { - string _tag = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.CompareTag( _tag ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindGameObjectWithTag_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _tag = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.GameObject.FindGameObjectWithTag( _tag ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindGameObjectsWithTag_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _tag = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.GameObject.FindGameObjectsWithTag( _tag ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.GameObject.Find( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BFGetComponent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - - - - { - System.Type _componentType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = gen_to_be_invoked.BFGetComponent( _componentType ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeSelf(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.activeSelf); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeInHierarchy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.activeInHierarchy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isStatic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isStatic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.tag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scene(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.scene); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sceneCullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushuint64(L, gen_to_be_invoked.sceneCullingMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gameObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.gameObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.layer = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isStatic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isStatic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tag = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_GraphicsWrap.cs b/Assets/XLua/Gen/UnityEngine_GraphicsWrap.cs deleted file mode 100644 index 196feb6fe..000000000 --- a/Assets/XLua/Gen/UnityEngine_GraphicsWrap.cs +++ /dev/null @@ -1,3834 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineGraphicsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Graphics); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 31, 6, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetRenderTarget", _m_SetRenderTarget_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetRandomWriteTarget", _m_SetRandomWriteTarget_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CopyTexture", _m_CopyTexture_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertTexture", _m_ConvertTexture_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateAsyncGraphicsFence", _m_CreateAsyncGraphicsFence_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateGraphicsFence", _m_CreateGraphicsFence_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WaitOnAsyncGraphicsFence", _m_WaitOnAsyncGraphicsFence_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CopyBuffer", _m_CopyBuffer_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawTexture", _m_DrawTexture_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderMesh", _m_RenderMesh_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderMeshIndirect", _m_RenderMeshIndirect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderMeshPrimitives", _m_RenderMeshPrimitives_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderPrimitives", _m_RenderPrimitives_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderPrimitivesIndexed", _m_RenderPrimitivesIndexed_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderPrimitivesIndirect", _m_RenderPrimitivesIndirect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RenderPrimitivesIndexedIndirect", _m_RenderPrimitivesIndexedIndirect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawMeshNow", _m_DrawMeshNow_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawMesh", _m_DrawMesh_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawMeshInstanced", _m_DrawMeshInstanced_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawMeshInstancedProcedural", _m_DrawMeshInstancedProcedural_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawMeshInstancedIndirect", _m_DrawMeshInstancedIndirect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawProceduralNow", _m_DrawProceduralNow_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawProceduralIndirectNow", _m_DrawProceduralIndirectNow_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawProcedural", _m_DrawProcedural_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawProceduralIndirect", _m_DrawProceduralIndirect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Blit", _m_Blit_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BlitMultiTap", _m_BlitMultiTap_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearRandomWriteTargets", _m_ClearRandomWriteTargets_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteCommandBuffer", _m_ExecuteCommandBuffer_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteCommandBufferAsync", _m_ExecuteCommandBufferAsync_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeColorBuffer", _g_get_activeColorBuffer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeDepthBuffer", _g_get_activeDepthBuffer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeColorGamut", _g_get_activeColorGamut); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeTier", _g_get_activeTier); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "preserveFramebufferAlpha", _g_get_preserveFramebufferAlpha); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "minOpenGLESVersion", _g_get_minOpenGLESVersion); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "activeTier", _s_set_activeTier); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Graphics(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRenderTarget_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.RenderTargetSetup _setup;translator.Get(L, 1, out _setup); - - UnityEngine.Graphics.SetRenderTarget( _setup ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.RenderTexture _rt = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - - UnityEngine.Graphics.SetRenderTarget( _rt ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.RenderTexture _rt = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - int _mipLevel = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Graphics.SetRenderTarget( _rt, _mipLevel ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.RenderBuffer[] _colorBuffers = (UnityEngine.RenderBuffer[])translator.GetObject(L, 1, typeof(UnityEngine.RenderBuffer[])); - UnityEngine.RenderBuffer _depthBuffer;translator.Get(L, 2, out _depthBuffer); - - UnityEngine.Graphics.SetRenderTarget( _colorBuffers, _depthBuffer ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.RenderBuffer _colorBuffer;translator.Get(L, 1, out _colorBuffer); - UnityEngine.RenderBuffer _depthBuffer;translator.Get(L, 2, out _depthBuffer); - - UnityEngine.Graphics.SetRenderTarget( _colorBuffer, _depthBuffer ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.RenderTexture _rt = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - int _mipLevel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - - UnityEngine.Graphics.SetRenderTarget( _rt, _mipLevel, _face ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.RenderBuffer _colorBuffer;translator.Get(L, 1, out _colorBuffer); - UnityEngine.RenderBuffer _depthBuffer;translator.Get(L, 2, out _depthBuffer); - int _mipLevel = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.SetRenderTarget( _colorBuffer, _depthBuffer, _mipLevel ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderTexture _rt = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - int _mipLevel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.CubemapFace _face;translator.Get(L, 3, out _face); - int _depthSlice = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.SetRenderTarget( _rt, _mipLevel, _face, _depthSlice ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.RenderBuffer _colorBuffer;translator.Get(L, 1, out _colorBuffer); - UnityEngine.RenderBuffer _depthBuffer;translator.Get(L, 2, out _depthBuffer); - int _mipLevel = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.CubemapFace _face;translator.Get(L, 4, out _face); - - UnityEngine.Graphics.SetRenderTarget( _colorBuffer, _depthBuffer, _mipLevel, _face ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.RenderBuffer _colorBuffer;translator.Get(L, 1, out _colorBuffer); - UnityEngine.RenderBuffer _depthBuffer;translator.Get(L, 2, out _depthBuffer); - int _mipLevel = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.CubemapFace _face;translator.Get(L, 4, out _face); - int _depthSlice = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.SetRenderTarget( _colorBuffer, _depthBuffer, _mipLevel, _face, _depthSlice ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.SetRenderTarget!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRandomWriteTarget_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.RenderTexture _uav = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - UnityEngine.Graphics.SetRandomWriteTarget( _index, _uav ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.ComputeBuffer _uav = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Graphics.SetRandomWriteTarget( _index, _uav ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.GraphicsBuffer _uav = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.SetRandomWriteTarget( _index, _uav ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.ComputeBuffer _uav = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - bool _preserveCounterValue = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.Graphics.SetRandomWriteTarget( _index, _uav, _preserveCounterValue ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.GraphicsBuffer _uav = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - bool _preserveCounterValue = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.Graphics.SetRandomWriteTarget( _index, _uav, _preserveCounterValue ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.SetRandomWriteTarget!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.Texture _dst = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - UnityEngine.Graphics.CopyTexture( _src, _dst ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - int _srcElement = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Texture _dst = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); - int _dstElement = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.CopyTexture( _src, _srcElement, _dst, _dstElement ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - int _srcElement = LuaAPI.xlua_tointeger(L, 2); - int _srcMip = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Texture _dst = (UnityEngine.Texture)translator.GetObject(L, 4, typeof(UnityEngine.Texture)); - int _dstElement = LuaAPI.xlua_tointeger(L, 5); - int _dstMip = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.CopyTexture( _src, _srcElement, _srcMip, _dst, _dstElement, _dstMip ); - - - - return 0; - } - if(gen_param_count == 12&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 12)) - { - UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - int _srcElement = LuaAPI.xlua_tointeger(L, 2); - int _srcMip = LuaAPI.xlua_tointeger(L, 3); - int _srcX = LuaAPI.xlua_tointeger(L, 4); - int _srcY = LuaAPI.xlua_tointeger(L, 5); - int _srcWidth = LuaAPI.xlua_tointeger(L, 6); - int _srcHeight = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.Texture _dst = (UnityEngine.Texture)translator.GetObject(L, 8, typeof(UnityEngine.Texture)); - int _dstElement = LuaAPI.xlua_tointeger(L, 9); - int _dstMip = LuaAPI.xlua_tointeger(L, 10); - int _dstX = LuaAPI.xlua_tointeger(L, 11); - int _dstY = LuaAPI.xlua_tointeger(L, 12); - - UnityEngine.Graphics.CopyTexture( _src, _srcElement, _srcMip, _srcX, _srcY, _srcWidth, _srcHeight, _dst, _dstElement, _dstMip, _dstX, _dstY ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.CopyTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.Texture _dst = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - var gen_ret = UnityEngine.Graphics.ConvertTexture( _src, _dst ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - int _srcElement = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Texture _dst = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); - int _dstElement = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Graphics.ConvertTexture( _src, _srcElement, _dst, _dstElement ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.ConvertTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateAsyncGraphicsFence_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 0) - { - - var gen_ret = UnityEngine.Graphics.CreateAsyncGraphicsFence( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Rendering.SynchronisationStage _stage;translator.Get(L, 1, out _stage); - - var gen_ret = UnityEngine.Graphics.CreateAsyncGraphicsFence( _stage ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.CreateAsyncGraphicsFence!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateGraphicsFence_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rendering.GraphicsFenceType _fenceType;translator.Get(L, 1, out _fenceType); - UnityEngine.Rendering.SynchronisationStageFlags _stage;translator.Get(L, 2, out _stage); - - var gen_ret = UnityEngine.Graphics.CreateGraphicsFence( _fenceType, _stage ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WaitOnAsyncGraphicsFence_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Rendering.GraphicsFence _fence;translator.Get(L, 1, out _fence); - - UnityEngine.Graphics.WaitOnAsyncGraphicsFence( _fence ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.GraphicsFence _fence;translator.Get(L, 1, out _fence); - UnityEngine.Rendering.SynchronisationStage _stage;translator.Get(L, 2, out _stage); - - UnityEngine.Graphics.WaitOnAsyncGraphicsFence( _fence, _stage ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.WaitOnAsyncGraphicsFence!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyBuffer_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GraphicsBuffer _source = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 1, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _dest = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.CopyBuffer( _source, _dest ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - int _leftBorder = LuaAPI.xlua_tointeger(L, 3); - int _rightBorder = LuaAPI.xlua_tointeger(L, 4); - int _topBorder = LuaAPI.xlua_tointeger(L, 5); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _leftBorder, _rightBorder, _topBorder, _bottomBorder ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _mat ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _mat, _pass ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Rect _sourceRect;translator.Get(L, 3, out _sourceRect); - int _leftBorder = LuaAPI.xlua_tointeger(L, 4); - int _rightBorder = LuaAPI.xlua_tointeger(L, 5); - int _topBorder = LuaAPI.xlua_tointeger(L, 6); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 7); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _sourceRect, _leftBorder, _rightBorder, _topBorder, _bottomBorder ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - int _leftBorder = LuaAPI.xlua_tointeger(L, 3); - int _rightBorder = LuaAPI.xlua_tointeger(L, 4); - int _topBorder = LuaAPI.xlua_tointeger(L, 5); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 7, typeof(UnityEngine.Material)); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _leftBorder, _rightBorder, _topBorder, _bottomBorder, _mat ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - int _leftBorder = LuaAPI.xlua_tointeger(L, 3); - int _rightBorder = LuaAPI.xlua_tointeger(L, 4); - int _topBorder = LuaAPI.xlua_tointeger(L, 5); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 7, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 8); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _leftBorder, _rightBorder, _topBorder, _bottomBorder, _mat, _pass ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Rect _sourceRect;translator.Get(L, 3, out _sourceRect); - int _leftBorder = LuaAPI.xlua_tointeger(L, 4); - int _rightBorder = LuaAPI.xlua_tointeger(L, 5); - int _topBorder = LuaAPI.xlua_tointeger(L, 6); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.Color _color;translator.Get(L, 8, out _color); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _sourceRect, _leftBorder, _rightBorder, _topBorder, _bottomBorder, _color ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Rect _sourceRect;translator.Get(L, 3, out _sourceRect); - int _leftBorder = LuaAPI.xlua_tointeger(L, 4); - int _rightBorder = LuaAPI.xlua_tointeger(L, 5); - int _topBorder = LuaAPI.xlua_tointeger(L, 6); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 8, typeof(UnityEngine.Material)); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _sourceRect, _leftBorder, _rightBorder, _topBorder, _bottomBorder, _mat ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Rect _sourceRect;translator.Get(L, 3, out _sourceRect); - int _leftBorder = LuaAPI.xlua_tointeger(L, 4); - int _rightBorder = LuaAPI.xlua_tointeger(L, 5); - int _topBorder = LuaAPI.xlua_tointeger(L, 6); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 8, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 9); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _sourceRect, _leftBorder, _rightBorder, _topBorder, _bottomBorder, _mat, _pass ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Rect _sourceRect;translator.Get(L, 3, out _sourceRect); - int _leftBorder = LuaAPI.xlua_tointeger(L, 4); - int _rightBorder = LuaAPI.xlua_tointeger(L, 5); - int _topBorder = LuaAPI.xlua_tointeger(L, 6); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.Color _color;translator.Get(L, 8, out _color); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 9, typeof(UnityEngine.Material)); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _sourceRect, _leftBorder, _rightBorder, _topBorder, _bottomBorder, _color, _mat ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Rect _screenRect;translator.Get(L, 1, out _screenRect); - UnityEngine.Texture _texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - UnityEngine.Rect _sourceRect;translator.Get(L, 3, out _sourceRect); - int _leftBorder = LuaAPI.xlua_tointeger(L, 4); - int _rightBorder = LuaAPI.xlua_tointeger(L, 5); - int _topBorder = LuaAPI.xlua_tointeger(L, 6); - int _bottomBorder = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.Color _color;translator.Get(L, 8, out _color); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 9, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 10); - - UnityEngine.Graphics.DrawTexture( _screenRect, _texture, _sourceRect, _leftBorder, _rightBorder, _topBorder, _bottomBorder, _color, _mat, _pass ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderMesh_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Matrix4x4 _objectToWorld;translator.Get(L, 4, out _objectToWorld); - System.Nullable _prevObjectToWorld;translator.Get(L, 5, out _prevObjectToWorld); - - UnityEngine.Graphics.RenderMesh( _rparams, _mesh, _submeshIndex, _objectToWorld, _prevObjectToWorld ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Matrix4x4 _objectToWorld;translator.Get(L, 4, out _objectToWorld); - - UnityEngine.Graphics.RenderMesh( _rparams, _mesh, _submeshIndex, _objectToWorld ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.RenderMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderMeshIndirect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _commandCount = LuaAPI.xlua_tointeger(L, 4); - int _startCommand = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.RenderMeshIndirect( _rparams, _mesh, _commandBuffer, _commandCount, _startCommand ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _commandCount = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.RenderMeshIndirect( _rparams, _mesh, _commandBuffer, _commandCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.RenderMeshIndirect( _rparams, _mesh, _commandBuffer ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.RenderMeshIndirect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderMeshPrimitives_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 3); - int _instanceCount = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.RenderMeshPrimitives( _rparams, _mesh, _submeshIndex, _instanceCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.RenderMeshPrimitives( _rparams, _mesh, _submeshIndex ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.RenderMeshPrimitives!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderPrimitives_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 3); - int _instanceCount = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.RenderPrimitives( _rparams, _topology, _vertexCount, _instanceCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.RenderPrimitives( _rparams, _topology, _vertexCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.RenderPrimitives!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderPrimitivesIndexed_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 4); - int _startIndex = LuaAPI.xlua_tointeger(L, 5); - int _instanceCount = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.RenderPrimitivesIndexed( _rparams, _topology, _indexBuffer, _indexCount, _startIndex, _instanceCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 4); - int _startIndex = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.RenderPrimitivesIndexed( _rparams, _topology, _indexBuffer, _indexCount, _startIndex ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.RenderPrimitivesIndexed( _rparams, _topology, _indexBuffer, _indexCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.RenderPrimitivesIndexed!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderPrimitivesIndirect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _commandCount = LuaAPI.xlua_tointeger(L, 4); - int _startCommand = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.RenderPrimitivesIndirect( _rparams, _topology, _commandBuffer, _commandCount, _startCommand ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _commandCount = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.RenderPrimitivesIndirect( _rparams, _topology, _commandBuffer, _commandCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.RenderPrimitivesIndirect( _rparams, _topology, _commandBuffer ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.RenderPrimitivesIndirect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderPrimitivesIndexedIndirect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _commandCount = LuaAPI.xlua_tointeger(L, 5); - int _startCommand = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.RenderPrimitivesIndexedIndirect( _rparams, _topology, _indexBuffer, _commandBuffer, _commandCount, _startCommand ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _commandCount = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.RenderPrimitivesIndexedIndirect( _rparams, _topology, _indexBuffer, _commandBuffer, _commandCount ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.RenderParams _rparams;translator.Get(L, 1, out _rparams); - UnityEngine.MeshTopology _topology;translator.Get(L, 2, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _commandBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.RenderPrimitivesIndexedIndirect( _rparams, _topology, _indexBuffer, _commandBuffer ); - translator.Push(L, _rparams); - translator.Update(L, 1, _rparams); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.RenderPrimitivesIndexedIndirect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawMeshNow_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - - UnityEngine.Graphics.DrawMeshNow( _mesh, _matrix ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - int _materialIndex = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.DrawMeshNow( _mesh, _matrix, _materialIndex ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - - UnityEngine.Graphics.DrawMeshNow( _mesh, _position, _rotation ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - int _materialIndex = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.DrawMeshNow( _mesh, _position, _rotation, _materialIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawMeshNow!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawMesh_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - bool _castShadows = LuaAPI.lua_toboolean(L, 8); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - bool _castShadows = LuaAPI.lua_toboolean(L, 8); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - bool _castShadows = LuaAPI.lua_toboolean(L, 8); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - bool _useLightProbes = LuaAPI.lua_toboolean(L, 10); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _useLightProbes ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - bool _castShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - bool _castShadows = LuaAPI.lua_toboolean(L, 9); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - bool _castShadows = LuaAPI.lua_toboolean(L, 9); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - bool _useLightProbes = LuaAPI.lua_toboolean(L, 11); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _useLightProbes ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - UnityEngine.Transform _probeAnchor = (UnityEngine.Transform)translator.GetObject(L, 10, typeof(UnityEngine.Transform)); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _probeAnchor ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - UnityEngine.Transform _probeAnchor = (UnityEngine.Transform)translator.GetObject(L, 10, typeof(UnityEngine.Transform)); - bool _useLightProbes = LuaAPI.lua_toboolean(L, 11); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _probeAnchor, _useLightProbes ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - UnityEngine.Transform _probeAnchor = (UnityEngine.Transform)translator.GetObject(L, 11, typeof(UnityEngine.Transform)); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _probeAnchor ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)&& translator.Assignable(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - UnityEngine.Transform _probeAnchor = (UnityEngine.Transform)translator.GetObject(L, 10, typeof(UnityEngine.Transform)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 11, out _lightProbeUsage); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _probeAnchor, _lightProbeUsage ); - - - - return 0; - } - if(gen_param_count == 12&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 12)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 4, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - UnityEngine.Transform _probeAnchor = (UnityEngine.Transform)translator.GetObject(L, 11, typeof(UnityEngine.Transform)); - bool _useLightProbes = LuaAPI.lua_toboolean(L, 12); - - UnityEngine.Graphics.DrawMesh( _mesh, _position, _rotation, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _probeAnchor, _useLightProbes ); - - - - return 0; - } - if(gen_param_count == 12&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)&& translator.Assignable(L, 11)&& translator.Assignable(L, 12)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - UnityEngine.Matrix4x4 _matrix;translator.Get(L, 2, out _matrix); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _layer = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 5, typeof(UnityEngine.Camera)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - UnityEngine.Transform _probeAnchor = (UnityEngine.Transform)translator.GetObject(L, 10, typeof(UnityEngine.Transform)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 11, out _lightProbeUsage); - UnityEngine.LightProbeProxyVolume _lightProbeProxyVolume = (UnityEngine.LightProbeProxyVolume)translator.GetObject(L, 12, typeof(UnityEngine.LightProbeProxyVolume)); - - UnityEngine.Graphics.DrawMesh( _mesh, _matrix, _material, _layer, _camera, _submeshIndex, _properties, _castShadows, _receiveShadows, _probeAnchor, _lightProbeUsage, _lightProbeProxyVolume ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawMeshInstanced_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 5, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _properties ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count, _properties ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 5, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 5, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 7); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 5, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 7); - int _layer = LuaAPI.xlua_tointeger(L, 8); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 5, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 7); - int _layer = LuaAPI.xlua_tointeger(L, 8); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 9, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _properties, _castShadows, _receiveShadows, _layer, _camera ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 10, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count, _properties, _castShadows, _receiveShadows, _layer, _camera ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable(L, 9)&& translator.Assignable(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 5, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 7); - int _layer = LuaAPI.xlua_tointeger(L, 8); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 9, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 10, out _lightProbeUsage); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)&& translator.Assignable(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 10, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 11, out _lightProbeUsage); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)&& translator.Assignable(L, 9)&& translator.Assignable(L, 10)&& translator.Assignable(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - System.Collections.Generic.List _matrices = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 5, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 6, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 7); - int _layer = LuaAPI.xlua_tointeger(L, 8); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 9, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 10, out _lightProbeUsage); - UnityEngine.LightProbeProxyVolume _lightProbeProxyVolume = (UnityEngine.LightProbeProxyVolume)translator.GetObject(L, 11, typeof(UnityEngine.LightProbeProxyVolume)); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage, _lightProbeProxyVolume ); - - - - return 0; - } - if(gen_param_count == 12&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)&& translator.Assignable(L, 11)&& translator.Assignable(L, 12)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Matrix4x4[] _matrices = (UnityEngine.Matrix4x4[])translator.GetObject(L, 4, typeof(UnityEngine.Matrix4x4[])); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 10, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 11, out _lightProbeUsage); - UnityEngine.LightProbeProxyVolume _lightProbeProxyVolume = (UnityEngine.LightProbeProxyVolume)translator.GetObject(L, 12, typeof(UnityEngine.LightProbeProxyVolume)); - - UnityEngine.Graphics.DrawMeshInstanced( _mesh, _submeshIndex, _material, _matrices, _count, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage, _lightProbeProxyVolume ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawMeshInstanced!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawMeshInstancedProcedural_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 12&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)&& translator.Assignable(L, 11)&& translator.Assignable(L, 12)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 10, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 11, out _lightProbeUsage); - UnityEngine.LightProbeProxyVolume _lightProbeProxyVolume = (UnityEngine.LightProbeProxyVolume)translator.GetObject(L, 12, typeof(UnityEngine.LightProbeProxyVolume)); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage, _lightProbeProxyVolume ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)&& translator.Assignable(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 10, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 11, out _lightProbeUsage); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)&& translator.Assignable(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 10, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count, _properties, _castShadows, _receiveShadows, _layer, _camera ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - int _layer = LuaAPI.xlua_tointeger(L, 9); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 8); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 7, out _castShadows); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 6, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count, _properties ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - int _count = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.DrawMeshInstancedProcedural( _mesh, _submeshIndex, _material, _bounds, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawMeshInstancedProcedural!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawMeshInstancedIndirect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 12&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)&& translator.Assignable(L, 12)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 11, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 12, out _lightProbeUsage); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 11, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer, _camera ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 12&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)&& translator.Assignable(L, 12)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 11, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 12, out _lightProbeUsage); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 11, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer, _camera ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 13&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)&& translator.Assignable(L, 12)&& translator.Assignable(L, 13)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 11, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 12, out _lightProbeUsage); - UnityEngine.LightProbeProxyVolume _lightProbeProxyVolume = (UnityEngine.LightProbeProxyVolume)translator.GetObject(L, 13, typeof(UnityEngine.LightProbeProxyVolume)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage, _lightProbeProxyVolume ); - - - - return 0; - } - if(gen_param_count == 13&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)&& translator.Assignable(L, 11)&& translator.Assignable(L, 12)&& translator.Assignable(L, 13)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - int _submeshIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 4, out _bounds); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 11, typeof(UnityEngine.Camera)); - UnityEngine.Rendering.LightProbeUsage _lightProbeUsage;translator.Get(L, 12, out _lightProbeUsage); - UnityEngine.LightProbeProxyVolume _lightProbeProxyVolume = (UnityEngine.LightProbeProxyVolume)translator.GetObject(L, 13, typeof(UnityEngine.LightProbeProxyVolume)); - - UnityEngine.Graphics.DrawMeshInstancedIndirect( _mesh, _submeshIndex, _material, _bounds, _bufferWithArgs, _argsOffset, _properties, _castShadows, _receiveShadows, _layer, _camera, _lightProbeUsage, _lightProbeProxyVolume ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawMeshInstancedIndirect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawProceduralNow_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 2); - int _instanceCount = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.DrawProceduralNow( _topology, _vertexCount, _instanceCount ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Graphics.DrawProceduralNow( _topology, _vertexCount ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 3); - int _instanceCount = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.DrawProceduralNow( _topology, _indexBuffer, _indexCount, _instanceCount ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.DrawProceduralNow( _topology, _indexBuffer, _indexCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawProceduralNow!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawProceduralIndirectNow_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _indexBuffer, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _indexBuffer, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _indexBuffer, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.MeshTopology _topology;translator.Get(L, 1, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirectNow( _topology, _indexBuffer, _bufferWithArgs ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawProceduralIndirectNow!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawProcedural_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 4); - int _instanceCount = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _vertexCount, _instanceCount, _camera, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 4); - int _instanceCount = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _vertexCount, _instanceCount, _camera, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 4); - int _instanceCount = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _vertexCount, _instanceCount, _camera, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 4); - int _instanceCount = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _vertexCount, _instanceCount, _camera, _properties ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 4); - int _instanceCount = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _vertexCount, _instanceCount, _camera ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 4); - int _instanceCount = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _vertexCount, _instanceCount ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _vertexCount = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _vertexCount ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 5); - int _instanceCount = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - int _layer = LuaAPI.xlua_tointeger(L, 11); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _indexBuffer, _indexCount, _instanceCount, _camera, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 5); - int _instanceCount = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _indexBuffer, _indexCount, _instanceCount, _camera, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 5); - int _instanceCount = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _indexBuffer, _indexCount, _instanceCount, _camera, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 5); - int _instanceCount = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _indexBuffer, _indexCount, _instanceCount, _camera, _properties ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 5); - int _instanceCount = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _indexBuffer, _indexCount, _instanceCount, _camera ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 5); - int _instanceCount = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _indexBuffer, _indexCount, _instanceCount ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _indexCount = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.DrawProcedural( _material, _bounds, _topology, _indexBuffer, _indexCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawProcedural!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DrawProceduralIndirect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 4, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - int _layer = LuaAPI.xlua_tointeger(L, 10); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 9); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 8, out _castShadows); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 7, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera, _properties ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 6, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset, _camera ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - int _layer = LuaAPI.xlua_tointeger(L, 11); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.ComputeBuffer _bufferWithArgs = (UnityEngine.ComputeBuffer)translator.GetObject(L, 5, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs ); - - - - return 0; - } - if(gen_param_count == 11&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - int _layer = LuaAPI.xlua_tointeger(L, 11); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows, _layer ); - - - - return 0; - } - if(gen_param_count == 10&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 10)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - bool _receiveShadows = LuaAPI.lua_toboolean(L, 10); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows, _receiveShadows ); - - - - return 0; - } - if(gen_param_count == 9&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& translator.Assignable(L, 9)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - UnityEngine.Rendering.ShadowCastingMode _castShadows;translator.Get(L, 9, out _castShadows); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties, _castShadows ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 8, typeof(UnityEngine.MaterialPropertyBlock)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera, _properties ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 7, typeof(UnityEngine.Camera)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset, _camera ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - int _argsOffset = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs, _argsOffset ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - UnityEngine.Bounds _bounds;translator.Get(L, 2, out _bounds); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - UnityEngine.GraphicsBuffer _indexBuffer = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 4, typeof(UnityEngine.GraphicsBuffer)); - UnityEngine.GraphicsBuffer _bufferWithArgs = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 5, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Graphics.DrawProceduralIndirect( _material, _bounds, _topology, _indexBuffer, _bufferWithArgs ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.DrawProceduralIndirect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Blit_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - UnityEngine.Graphics.Blit( _source, _dest ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - UnityEngine.Graphics.Blit( _source, _mat ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 3); - - UnityEngine.Graphics.Blit( _source, _mat, _pass ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - int _sourceDepthSlice = LuaAPI.xlua_tointeger(L, 3); - int _destDepthSlice = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.Blit( _source, _dest, _sourceDepthSlice, _destDepthSlice ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 3); - int _destDepthSlice = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.Blit( _source, _mat, _pass, _destDepthSlice ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - - UnityEngine.Graphics.Blit( _source, _dest, _mat ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Graphics.Blit( _source, _dest, _mat, _pass ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _pass = LuaAPI.xlua_tointeger(L, 4); - int _destDepthSlice = LuaAPI.xlua_tointeger(L, 5); - - UnityEngine.Graphics.Blit( _source, _dest, _mat, _pass, _destDepthSlice ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Vector2 _scale;translator.Get(L, 3, out _scale); - UnityEngine.Vector2 _offset;translator.Get(L, 4, out _offset); - - UnityEngine.Graphics.Blit( _source, _dest, _scale, _offset ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Vector2 _scale;translator.Get(L, 3, out _scale); - UnityEngine.Vector2 _offset;translator.Get(L, 4, out _offset); - int _sourceDepthSlice = LuaAPI.xlua_tointeger(L, 5); - int _destDepthSlice = LuaAPI.xlua_tointeger(L, 6); - - UnityEngine.Graphics.Blit( _source, _dest, _scale, _offset, _sourceDepthSlice, _destDepthSlice ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.Blit!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BlitMultiTap_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable(L, 4))) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - UnityEngine.Vector2[] _offsets = translator.GetParams(L, 4); - - UnityEngine.Graphics.BlitMultiTap( _source, _dest, _mat, _offsets ); - - - - return 0; - } - if(gen_param_count >= 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 5) || translator.Assignable(L, 5))) - { - UnityEngine.Texture _source = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.RenderTexture _dest = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - int _destDepthSlice = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Vector2[] _offsets = translator.GetParams(L, 5); - - UnityEngine.Graphics.BlitMultiTap( _source, _dest, _mat, _destDepthSlice, _offsets ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Graphics.BlitMultiTap!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearRandomWriteTargets_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Graphics.ClearRandomWriteTargets( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ExecuteCommandBuffer_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 1, typeof(UnityEngine.Rendering.CommandBuffer)); - - UnityEngine.Graphics.ExecuteCommandBuffer( _buffer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ExecuteCommandBufferAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 1, typeof(UnityEngine.Rendering.CommandBuffer)); - UnityEngine.Rendering.ComputeQueueType _queueType;translator.Get(L, 2, out _queueType); - - UnityEngine.Graphics.ExecuteCommandBufferAsync( _buffer, _queueType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeColorBuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Graphics.activeColorBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeDepthBuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Graphics.activeDepthBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeColorGamut(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Graphics.activeColorGamut); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeTier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Graphics.activeTier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preserveFramebufferAlpha(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Graphics.preserveFramebufferAlpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minOpenGLESVersion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Graphics.minOpenGLESVersion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_activeTier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Rendering.GraphicsTier gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Graphics.activeTier = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_InputWrap.cs b/Assets/XLua/Gen/UnityEngine_InputWrap.cs deleted file mode 100644 index 27b8ec77d..000000000 --- a/Assets/XLua/Gen/UnityEngine_InputWrap.cs +++ /dev/null @@ -1,952 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineInputWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Input); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 16, 26, 6); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAxis", _m_GetAxis_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAxisRaw", _m_GetAxisRaw_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetButton", _m_GetButton_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetButtonDown", _m_GetButtonDown_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetButtonUp", _m_GetButtonUp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMouseButton", _m_GetMouseButton_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMouseButtonDown", _m_GetMouseButtonDown_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMouseButtonUp", _m_GetMouseButtonUp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ResetInputAxes", _m_ResetInputAxes_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetJoystickNames", _m_GetJoystickNames_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTouch", _m_GetTouch_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAccelerationEvent", _m_GetAccelerationEvent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKey", _m_GetKey_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeyUp", _m_GetKeyUp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetKeyDown", _m_GetKeyDown_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "simulateMouseWithTouches", _g_get_simulateMouseWithTouches); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "anyKey", _g_get_anyKey); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "anyKeyDown", _g_get_anyKeyDown); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "inputString", _g_get_inputString); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mousePosition", _g_get_mousePosition); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mouseScrollDelta", _g_get_mouseScrollDelta); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "imeCompositionMode", _g_get_imeCompositionMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compositionString", _g_get_compositionString); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "imeIsSelected", _g_get_imeIsSelected); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compositionCursorPos", _g_get_compositionCursorPos); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mousePresent", _g_get_mousePresent); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touchCount", _g_get_touchCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touchPressureSupported", _g_get_touchPressureSupported); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "stylusTouchSupported", _g_get_stylusTouchSupported); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touchSupported", _g_get_touchSupported); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "multiTouchEnabled", _g_get_multiTouchEnabled); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "deviceOrientation", _g_get_deviceOrientation); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "acceleration", _g_get_acceleration); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compensateSensors", _g_get_compensateSensors); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "accelerationEventCount", _g_get_accelerationEventCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "backButtonLeavesApp", _g_get_backButtonLeavesApp); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "location", _g_get_location); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "compass", _g_get_compass); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "gyro", _g_get_gyro); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "touches", _g_get_touches); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "accelerationEvents", _g_get_accelerationEvents); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "simulateMouseWithTouches", _s_set_simulateMouseWithTouches); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "imeCompositionMode", _s_set_imeCompositionMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "compositionCursorPos", _s_set_compositionCursorPos); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "multiTouchEnabled", _s_set_multiTouchEnabled); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "compensateSensors", _s_set_compensateSensors); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "backButtonLeavesApp", _s_set_backButtonLeavesApp); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Input(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Input constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAxis_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _axisName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetAxis( _axisName ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAxisRaw_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _axisName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetAxisRaw( _axisName ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetButton_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _buttonName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetButton( _buttonName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetButtonDown_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _buttonName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetButtonDown( _buttonName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetButtonUp_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _buttonName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetButtonUp( _buttonName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMouseButton_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _button = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Input.GetMouseButton( _button ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMouseButtonDown_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _button = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Input.GetMouseButtonDown( _button ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMouseButtonUp_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _button = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Input.GetMouseButtonUp( _button ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetInputAxes_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Input.ResetInputAxes( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJoystickNames_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.Input.GetJoystickNames( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTouch_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _index = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Input.GetTouch( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAccelerationEvent_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _index = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Input.GetAccelerationEvent( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetKey_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.KeyCode _key;translator.Get(L, 1, out _key); - - var gen_ret = UnityEngine.Input.GetKey( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetKey( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Input.GetKey!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetKeyUp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.KeyCode _key;translator.Get(L, 1, out _key); - - var gen_ret = UnityEngine.Input.GetKeyUp( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetKeyUp( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Input.GetKeyUp!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetKeyDown_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.KeyCode _key;translator.Get(L, 1, out _key); - - var gen_ret = UnityEngine.Input.GetKeyDown( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Input.GetKeyDown( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Input.GetKeyDown!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_simulateMouseWithTouches(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.simulateMouseWithTouches); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anyKey(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.anyKey); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anyKeyDown(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.anyKeyDown); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inputString(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Input.inputString); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mousePosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Input.mousePosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mouseScrollDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Input.mouseScrollDelta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_imeCompositionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Input.imeCompositionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_compositionString(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Input.compositionString); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_imeIsSelected(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.imeIsSelected); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_compositionCursorPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Input.compositionCursorPos); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mousePresent(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.mousePresent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_touchCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Input.touchCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_touchPressureSupported(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.touchPressureSupported); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stylusTouchSupported(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.stylusTouchSupported); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_touchSupported(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.touchSupported); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiTouchEnabled(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.multiTouchEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deviceOrientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Input.deviceOrientation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_acceleration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Input.acceleration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_compensateSensors(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.compensateSensors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_accelerationEventCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Input.accelerationEventCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_backButtonLeavesApp(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Input.backButtonLeavesApp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_location(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Input.location); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_compass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Input.compass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gyro(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Input.gyro); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_touches(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Input.touches); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_accelerationEvents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Input.accelerationEvents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_simulateMouseWithTouches(RealStatePtr L) - { - try { - - UnityEngine.Input.simulateMouseWithTouches = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_imeCompositionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.IMECompositionMode gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Input.imeCompositionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_compositionCursorPos(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Vector2 gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Input.compositionCursorPos = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiTouchEnabled(RealStatePtr L) - { - try { - - UnityEngine.Input.multiTouchEnabled = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_compensateSensors(RealStatePtr L) - { - try { - - UnityEngine.Input.compensateSensors = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_backButtonLeavesApp(RealStatePtr L) - { - try { - - UnityEngine.Input.backButtonLeavesApp = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_KeyframeWrap.cs b/Assets/XLua/Gen/UnityEngine_KeyframeWrap.cs deleted file mode 100644 index 1354607dd..000000000 --- a/Assets/XLua/Gen/UnityEngine_KeyframeWrap.cs +++ /dev/null @@ -1,350 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineKeyframeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Keyframe); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inTangent", _g_get_inTangent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outTangent", _g_get_outTangent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inWeight", _g_get_inWeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outWeight", _g_get_outWeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "weightedMode", _g_get_weightedMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inTangent", _s_set_inTangent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "outTangent", _s_set_outTangent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inWeight", _s_set_inWeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "outWeight", _s_set_outWeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "weightedMode", _s_set_weightedMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.Keyframe(_time, _value); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - float _inTangent = (float)LuaAPI.lua_tonumber(L, 4); - float _outTangent = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new UnityEngine.Keyframe(_time, _value, _inTangent, _outTangent); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - float _inTangent = (float)LuaAPI.lua_tonumber(L, 4); - float _outTangent = (float)LuaAPI.lua_tonumber(L, 5); - float _inWeight = (float)LuaAPI.lua_tonumber(L, 6); - float _outWeight = (float)LuaAPI.lua_tonumber(L, 7); - - var gen_ret = new UnityEngine.Keyframe(_time, _value, _inTangent, _outTangent, _inWeight, _outWeight); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Keyframe)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Keyframe constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.inTangent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.outTangent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.inWeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.outWeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_weightedMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.weightedMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.value = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.inTangent = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_outTangent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.outTangent = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.inWeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_outWeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.outWeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_weightedMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Keyframe gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.WeightedMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.weightedMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LayerMaskWrap.cs b/Assets/XLua/Gen/UnityEngine_LayerMaskWrap.cs deleted file mode 100644 index 139ba35df..000000000 --- a/Assets/XLua/Gen/UnityEngine_LayerMaskWrap.cs +++ /dev/null @@ -1,195 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLayerMaskWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LayerMask); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LayerToName", _m_LayerToName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NameToLayer", _m_NameToLayer_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMask", _m_GetMask_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.LayerMask)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LayerMask constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayerToName_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _layer = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.LayerMask.LayerToName( _layer ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NameToLayer_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _layerName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.LayerMask.NameToLayer( _layerName ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMask_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string[] _layerNames = translator.GetParams(L, 1); - - var gen_ret = UnityEngine.LayerMask.GetMask( _layerNames ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LayerMask gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LayerMask gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.value = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LightProbesWrap.cs b/Assets/XLua/Gen/UnityEngine_LightProbesWrap.cs deleted file mode 100644 index 7aee5a4df..000000000 --- a/Assets/XLua/Gen/UnityEngine_LightProbesWrap.cs +++ /dev/null @@ -1,327 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLightProbesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LightProbes); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "positions", _g_get_positions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bakedProbes", _g_get_bakedProbes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "count", _g_get_count); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellCount", _g_get_cellCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bakedProbes", _s_set_bakedProbes); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Tetrahedralize", _m_Tetrahedralize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TetrahedralizeAsync", _m_TetrahedralizeAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInterpolatedProbe", _m_GetInterpolatedProbe_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CalculateInterpolatedLightAndOcclusionProbes", _m_CalculateInterpolatedLightAndOcclusionProbes_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "tetrahedralizationCompleted", _e_tetrahedralizationCompleted); - Utils.RegisterFunc(L, Utils.CLS_IDX, "needsRetetrahedralization", _e_needsRetetrahedralization); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.LightProbes does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tetrahedralize_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.LightProbes.Tetrahedralize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TetrahedralizeAsync_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.LightProbes.TetrahedralizeAsync( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInterpolatedProbe_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - UnityEngine.Renderer _renderer = (UnityEngine.Renderer)translator.GetObject(L, 2, typeof(UnityEngine.Renderer)); - UnityEngine.Rendering.SphericalHarmonicsL2 _probe; - - UnityEngine.LightProbes.GetInterpolatedProbe( _position, _renderer, out _probe ); - translator.Push(L, _probe); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateInterpolatedLightAndOcclusionProbes_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 1, typeof(UnityEngine.Vector3[])); - UnityEngine.Rendering.SphericalHarmonicsL2[] _lightProbes = (UnityEngine.Rendering.SphericalHarmonicsL2[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SphericalHarmonicsL2[])); - UnityEngine.Vector4[] _occlusionProbes = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - UnityEngine.LightProbes.CalculateInterpolatedLightAndOcclusionProbes( _positions, _lightProbes, _occlusionProbes ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable>(L, 3)) - { - System.Collections.Generic.List _positions = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _lightProbes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - System.Collections.Generic.List _occlusionProbes = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - UnityEngine.LightProbes.CalculateInterpolatedLightAndOcclusionProbes( _positions, _lightProbes, _occlusionProbes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LightProbes.CalculateInterpolatedLightAndOcclusionProbes!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbes gen_to_be_invoked = (UnityEngine.LightProbes)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.positions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bakedProbes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbes gen_to_be_invoked = (UnityEngine.LightProbes)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bakedProbes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbes gen_to_be_invoked = (UnityEngine.LightProbes)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbes gen_to_be_invoked = (UnityEngine.LightProbes)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cellCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bakedProbes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightProbes gen_to_be_invoked = (UnityEngine.LightProbes)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bakedProbes = (UnityEngine.Rendering.SphericalHarmonicsL2[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SphericalHarmonicsL2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_tetrahedralizationCompleted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.LightProbes.tetrahedralizationCompleted += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.LightProbes.tetrahedralizationCompleted -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LightProbes.tetrahedralizationCompleted!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_needsRetetrahedralization(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.LightProbes.needsRetetrahedralization += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.LightProbes.needsRetetrahedralization -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LightProbes.needsRetetrahedralization!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LightWrap.cs b/Assets/XLua/Gen/UnityEngine_LightWrap.cs deleted file mode 100644 index 431c5cbba..000000000 --- a/Assets/XLua/Gen/UnityEngine_LightWrap.cs +++ /dev/null @@ -1,1462 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLightWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Light); - Utils.BeginObjectRegister(type, L, translator, 0, 11, 32, 31); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCommandBuffer", _m_AddCommandBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCommandBufferAsync", _m_AddCommandBufferAsync); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCommandBuffer", _m_RemoveCommandBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCommandBuffers", _m_RemoveCommandBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllCommandBuffers", _m_RemoveAllCommandBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCommandBuffers", _m_GetCommandBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOIntensity", _m_DOIntensity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOShadowStrength", _m_DOShadowStrength); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableColor", _m_DOBlendableColor); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shape", _g_get_shape); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spotAngle", _g_get_spotAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "innerSpotAngle", _g_get_innerSpotAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorTemperature", _g_get_colorTemperature); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useColorTemperature", _g_get_useColorTemperature); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "intensity", _g_get_intensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounceIntensity", _g_get_bounceIntensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useBoundingSphereOverride", _g_get_useBoundingSphereOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boundingSphereOverride", _g_get_boundingSphereOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useViewFrustumForShadowCasterCull", _g_get_useViewFrustumForShadowCasterCull); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowCustomResolution", _g_get_shadowCustomResolution); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowBias", _g_get_shadowBias); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowNormalBias", _g_get_shadowNormalBias); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowNearPlane", _g_get_shadowNearPlane); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useShadowMatrixOverride", _g_get_useShadowMatrixOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowMatrixOverride", _g_get_shadowMatrixOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "range", _g_get_range); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flare", _g_get_flare); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bakingOutput", _g_get_bakingOutput); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullingMask", _g_get_cullingMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderingLayerMask", _g_get_renderingLayerMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightShadowCasterMode", _g_get_lightShadowCasterMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadows", _g_get_shadows); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowStrength", _g_get_shadowStrength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowResolution", _g_get_shadowResolution); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layerShadowCullDistances", _g_get_layerShadowCullDistances); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cookieSize", _g_get_cookieSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cookie", _g_get_cookie); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderMode", _g_get_renderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "commandBufferCount", _g_get_commandBufferCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shape", _s_set_shape); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spotAngle", _s_set_spotAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "innerSpotAngle", _s_set_innerSpotAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorTemperature", _s_set_colorTemperature); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useColorTemperature", _s_set_useColorTemperature); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "intensity", _s_set_intensity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounceIntensity", _s_set_bounceIntensity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useBoundingSphereOverride", _s_set_useBoundingSphereOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boundingSphereOverride", _s_set_boundingSphereOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useViewFrustumForShadowCasterCull", _s_set_useViewFrustumForShadowCasterCull); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowCustomResolution", _s_set_shadowCustomResolution); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowBias", _s_set_shadowBias); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowNormalBias", _s_set_shadowNormalBias); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowNearPlane", _s_set_shadowNearPlane); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useShadowMatrixOverride", _s_set_useShadowMatrixOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowMatrixOverride", _s_set_shadowMatrixOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "range", _s_set_range); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flare", _s_set_flare); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bakingOutput", _s_set_bakingOutput); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullingMask", _s_set_cullingMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderingLayerMask", _s_set_renderingLayerMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightShadowCasterMode", _s_set_lightShadowCasterMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadows", _s_set_shadows); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowStrength", _s_set_shadowStrength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowResolution", _s_set_shadowResolution); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layerShadowCullDistances", _s_set_layerShadowCullDistances); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cookieSize", _s_set_cookieSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cookie", _s_set_cookie); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderMode", _s_set_renderMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetLights", _m_GetLights_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Light(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Light constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCommandBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Rendering.LightEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - - gen_to_be_invoked.AddCommandBuffer( _evt, _buffer ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Rendering.LightEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - UnityEngine.Rendering.ShadowMapPass _shadowPassMask;translator.Get(L, 4, out _shadowPassMask); - - gen_to_be_invoked.AddCommandBuffer( _evt, _buffer, _shadowPassMask ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Light.AddCommandBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCommandBufferAsync(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Rendering.LightEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - UnityEngine.Rendering.ComputeQueueType _queueType;translator.Get(L, 4, out _queueType); - - gen_to_be_invoked.AddCommandBufferAsync( _evt, _buffer, _queueType ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Rendering.LightEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - UnityEngine.Rendering.ShadowMapPass _shadowPassMask;translator.Get(L, 4, out _shadowPassMask); - UnityEngine.Rendering.ComputeQueueType _queueType;translator.Get(L, 5, out _queueType); - - gen_to_be_invoked.AddCommandBufferAsync( _evt, _buffer, _shadowPassMask, _queueType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Light.AddCommandBufferAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCommandBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.LightEvent _evt;translator.Get(L, 2, out _evt); - UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer)); - - gen_to_be_invoked.RemoveCommandBuffer( _evt, _buffer ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCommandBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.LightEvent _evt;translator.Get(L, 2, out _evt); - - gen_to_be_invoked.RemoveCommandBuffers( _evt ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAllCommandBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RemoveAllCommandBuffers( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCommandBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.LightEvent _evt;translator.Get(L, 2, out _evt); - - var gen_ret = gen_to_be_invoked.GetCommandBuffers( _evt ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLights_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.LightType _type;translator.Get(L, 1, out _type); - int _layer = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Light.GetLights( _type, _layer ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOIntensity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOIntensity( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOShadowStrength(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOShadowStrength( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shape(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shape); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spotAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spotAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_innerSpotAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.innerSpotAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorTemperature(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.colorTemperature); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useColorTemperature(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useColorTemperature); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.intensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounceIntensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounceIntensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useBoundingSphereOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useBoundingSphereOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boundingSphereOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.boundingSphereOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useViewFrustumForShadowCasterCull(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useViewFrustumForShadowCasterCull); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowCustomResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.shadowCustomResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowNormalBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowNormalBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowNearPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowNearPlane); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useShadowMatrixOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useShadowMatrixOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowMatrixOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shadowMatrixOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.range); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flare(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.flare); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bakingOutput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bakingOutput); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cullingMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderingLayerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderingLayerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightShadowCasterMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lightShadowCasterMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shadows); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowStrength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowStrength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineRenderingLightShadowResolution(L, gen_to_be_invoked.shadowResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layerShadowCullDistances(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.layerShadowCullDistances); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cookieSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cookieSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cookie(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cookie); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_commandBufferCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.commandBufferCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.LightType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.type = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shape(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.LightShape gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shape = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spotAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.spotAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_innerSpotAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.innerSpotAngle = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorTemperature(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colorTemperature = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useColorTemperature(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useColorTemperature = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.intensity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounceIntensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bounceIntensity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useBoundingSphereOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useBoundingSphereOverride = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boundingSphereOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.boundingSphereOverride = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useViewFrustumForShadowCasterCull(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useViewFrustumForShadowCasterCull = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowCustomResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowCustomResolution = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowBias = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowNormalBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowNormalBias = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowNearPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowNearPlane = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useShadowMatrixOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useShadowMatrixOverride = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowMatrixOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.Matrix4x4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shadowMatrixOverride = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.range = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flare(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flare = (UnityEngine.Flare)translator.GetObject(L, 2, typeof(UnityEngine.Flare)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bakingOutput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.LightBakingOutput gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bakingOutput = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cullingMask = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderingLayerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.renderingLayerMask = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightShadowCasterMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.LightShadowCasterMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lightShadowCasterMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.LightShadows gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shadows = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowStrength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowStrength = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.LightShadowResolution gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shadowResolution = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layerShadowCullDistances(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.layerShadowCullDistances = (float[])translator.GetObject(L, 2, typeof(float[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cookieSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cookieSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cookie(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cookie = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Light gen_to_be_invoked = (UnityEngine.Light)translator.FastGetCSObj(L, 1); - UnityEngine.LightRenderMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.renderMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LightmapDataWrap.cs b/Assets/XLua/Gen/UnityEngine_LightmapDataWrap.cs deleted file mode 100644 index bfb127621..000000000 --- a/Assets/XLua/Gen/UnityEngine_LightmapDataWrap.cs +++ /dev/null @@ -1,177 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLightmapDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LightmapData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapColor", _g_get_lightmapColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapDir", _g_get_lightmapDir); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowMask", _g_get_shadowMask); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightmapColor", _s_set_lightmapColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightmapDir", _s_set_lightmapDir); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowMask", _s_set_shadowMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LightmapData(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LightmapData constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightmapData gen_to_be_invoked = (UnityEngine.LightmapData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lightmapColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightmapData gen_to_be_invoked = (UnityEngine.LightmapData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lightmapDir); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightmapData gen_to_be_invoked = (UnityEngine.LightmapData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shadowMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmapColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightmapData gen_to_be_invoked = (UnityEngine.LightmapData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lightmapColor = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmapDir(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightmapData gen_to_be_invoked = (UnityEngine.LightmapData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lightmapDir = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LightmapData gen_to_be_invoked = (UnityEngine.LightmapData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowMask = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LightmapSettingsWrap.cs b/Assets/XLua/Gen/UnityEngine_LightmapSettingsWrap.cs deleted file mode 100644 index bbd2acece..000000000 --- a/Assets/XLua/Gen/UnityEngine_LightmapSettingsWrap.cs +++ /dev/null @@ -1,149 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLightmapSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LightmapSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 3, 3); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "lightmaps", _g_get_lightmaps); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "lightmapsMode", _g_get_lightmapsMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "lightProbes", _g_get_lightProbes); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "lightmaps", _s_set_lightmaps); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "lightmapsMode", _s_set_lightmapsMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "lightProbes", _s_set_lightProbes); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.LightmapSettings does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmaps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.LightmapSettings.lightmaps); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapsMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.LightmapSettings.lightmapsMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightProbes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.LightmapSettings.lightProbes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmaps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.LightmapSettings.lightmaps = (UnityEngine.LightmapData[])translator.GetObject(L, 1, typeof(UnityEngine.LightmapData[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmapsMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.LightmapsMode gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.LightmapSettings.lightmapsMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightProbes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.LightmapSettings.lightProbes = (UnityEngine.LightProbes)translator.GetObject(L, 1, typeof(UnityEngine.LightProbes)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_LineRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_LineRendererWrap.cs deleted file mode 100644 index eaa441654..000000000 --- a/Assets/XLua/Gen/UnityEngine_LineRendererWrap.cs +++ /dev/null @@ -1,881 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineLineRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.LineRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 16, 16); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPosition", _m_GetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Simplify", _m_Simplify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BakeMesh", _m_BakeMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPositions", _m_GetPositions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPositions", _m_SetPositions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startWidth", _g_get_startWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endWidth", _g_get_endWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "widthMultiplier", _g_get_widthMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numCornerVertices", _g_get_numCornerVertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numCapVertices", _g_get_numCapVertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useWorldSpace", _g_get_useWorldSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startColor", _g_get_startColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "endColor", _g_get_endColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "positionCount", _g_get_positionCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowBias", _g_get_shadowBias); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "generateLightingData", _g_get_generateLightingData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureMode", _g_get_textureMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "widthCurve", _g_get_widthCurve); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorGradient", _g_get_colorGradient); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startWidth", _s_set_startWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endWidth", _s_set_endWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "widthMultiplier", _s_set_widthMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numCornerVertices", _s_set_numCornerVertices); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numCapVertices", _s_set_numCapVertices); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useWorldSpace", _s_set_useWorldSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "loop", _s_set_loop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startColor", _s_set_startColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "endColor", _s_set_endColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "positionCount", _s_set_positionCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowBias", _s_set_shadowBias); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "generateLightingData", _s_set_generateLightingData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureMode", _s_set_textureMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "widthCurve", _s_set_widthCurve); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorGradient", _s_set_colorGradient); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.LineRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.SetPosition( _index, _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPosition( _index ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Simplify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - - - - { - float _tolerance = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Simplify( _tolerance ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BakeMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - bool _useTransform = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.BakeMesh( _mesh, _useTransform ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.BakeMesh( _mesh ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - bool _useTransform = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.BakeMesh( _mesh, _camera, _useTransform ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.BakeMesh( _mesh, _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineRenderer.BakeMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPositions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - var gen_ret = gen_to_be_invoked.GetPositions( _positions ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _positions;translator.Get(L, 2, out _positions); - - var gen_ret = gen_to_be_invoked.GetPositions( _positions ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeSlice _positions;translator.Get(L, 2, out _positions); - - var gen_ret = gen_to_be_invoked.GetPositions( _positions ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineRenderer.GetPositions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPositions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.SetPositions( _positions ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _positions;translator.Get(L, 2, out _positions); - - gen_to_be_invoked.SetPositions( _positions ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeSlice _positions;translator.Get(L, 2, out _positions); - - gen_to_be_invoked.SetPositions( _positions ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineRenderer.SetPositions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - - - - { - DG.Tweening.Color2 _startValue;translator.Get(L, 2, out _startValue); - DG.Tweening.Color2 _endValue;translator.Get(L, 3, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOColor( _startValue, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.endWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.widthMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numCornerVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numCornerVertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numCapVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numCapVertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useWorldSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useWorldSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.startColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_endColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.endColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positionCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.positionCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_generateLightingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.generateLightingData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textureMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.widthCurve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorGradient); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.endWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_widthMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.widthMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numCornerVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.numCornerVertices = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numCapVertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.numCapVertices = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useWorldSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useWorldSpace = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.loop = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_endColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.endColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_positionCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.positionCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowBias = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_generateLightingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.generateLightingData = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.LineTextureMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.textureMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.LineAlignment gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_widthCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.widthCurve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorGradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colorGradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MaterialPropertyBlockWrap.cs b/Assets/XLua/Gen/UnityEngine_MaterialPropertyBlockWrap.cs deleted file mode 100644 index 9791edd27..000000000 --- a/Assets/XLua/Gen/UnityEngine_MaterialPropertyBlockWrap.cs +++ /dev/null @@ -1,1913 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMaterialPropertyBlockWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MaterialPropertyBlock); - Utils.BeginObjectRegister(type, L, translator, 0, 35, 1, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInt", _m_SetInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloat", _m_SetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInteger", _m_SetInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVector", _m_SetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetColor", _m_SetColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMatrix", _m_SetMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBuffer", _m_SetBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTexture", _m_SetTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetConstantBuffer", _m_SetConstantBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloatArray", _m_SetFloatArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVectorArray", _m_SetVectorArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMatrixArray", _m_SetMatrixArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasProperty", _m_HasProperty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasInt", _m_HasInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasFloat", _m_HasFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasInteger", _m_HasInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasTexture", _m_HasTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasMatrix", _m_HasMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasVector", _m_HasVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasColor", _m_HasColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasBuffer", _m_HasBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasConstantBuffer", _m_HasConstantBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloat", _m_GetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInt", _m_GetInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInteger", _m_GetInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVector", _m_GetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColor", _m_GetColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMatrix", _m_GetMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTexture", _m_GetTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloatArray", _m_GetFloatArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVectorArray", _m_GetVectorArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMatrixArray", _m_GetMatrixArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopySHCoefficientArraysFrom", _m_CopySHCoefficientArraysFrom); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyProbeOcclusionArrayFrom", _m_CopyProbeOcclusionArrayFrom); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isEmpty", _g_get_isEmpty); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.MaterialPropertyBlock(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInt( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInt( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInteger( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInteger( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetVector( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetVector( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Color _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetColor( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Color _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetColor( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Matrix4x4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetMatrix( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Matrix4x4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetMatrix( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - - gen_to_be_invoked.SetBuffer( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - gen_to_be_invoked.SetBuffer( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - - gen_to_be_invoked.SetBuffer( _name, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - gen_to_be_invoked.SetBuffer( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Texture _value = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetTexture( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Texture _value = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetTexture( _name, _value ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.RenderTexture _value = (UnityEngine.RenderTexture)translator.GetObject(L, 3, typeof(UnityEngine.RenderTexture)); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 4, out _element); - - gen_to_be_invoked.SetTexture( _nameID, _value, _element ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.RenderTexture _value = (UnityEngine.RenderTexture)translator.GetObject(L, 3, typeof(UnityEngine.RenderTexture)); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 4, out _element); - - gen_to_be_invoked.SetTexture( _name, _value, _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetConstantBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _nameID, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _nameID, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _name, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _name, _value, _offset, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetConstantBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloatArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - float[] _values = (float[])translator.GetObject(L, 3, typeof(float[])); - - gen_to_be_invoked.SetFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetFloatArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - float[] _values = (float[])translator.GetObject(L, 3, typeof(float[])); - - gen_to_be_invoked.SetFloatArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetFloatArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVectorArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVectorArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetVectorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetVectorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMatrixArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); - - gen_to_be_invoked.SetMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetMatrixArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); - - gen_to_be_invoked.SetMatrixArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.SetMatrixArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasProperty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasProperty( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasProperty( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasProperty!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasInt( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasInt( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasFloat( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasFloat( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasInteger( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasInteger( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasTexture( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasTexture( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasMatrix( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasMatrix( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasVector( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasVector( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasColor( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasColor( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasBuffer( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasBuffer( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasConstantBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasConstantBuffer( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasConstantBuffer( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.HasConstantBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloat( _nameID ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloat( _name ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetInt( _nameID ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetInt( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetInteger( _nameID ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetInteger( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetVector( _nameID ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetVector( _name ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetColor( _nameID ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetColor( _name ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrix( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrix( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTexture( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetTexture( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloatArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloatArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloatArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetFloatArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetFloatArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVectorArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetVectorArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetVectorArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVectorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetVectorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMatrixArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrixArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrixArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetMatrixArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.GetMatrixArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopySHCoefficientArraysFrom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _lightProbes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.CopySHCoefficientArraysFrom( _lightProbes ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.SphericalHarmonicsL2[] _lightProbes = (UnityEngine.Rendering.SphericalHarmonicsL2[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SphericalHarmonicsL2[])); - - gen_to_be_invoked.CopySHCoefficientArraysFrom( _lightProbes ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _lightProbes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _sourceStart = LuaAPI.xlua_tointeger(L, 3); - int _destStart = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopySHCoefficientArraysFrom( _lightProbes, _sourceStart, _destStart, _count ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Rendering.SphericalHarmonicsL2[] _lightProbes = (UnityEngine.Rendering.SphericalHarmonicsL2[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SphericalHarmonicsL2[])); - int _sourceStart = LuaAPI.xlua_tointeger(L, 3); - int _destStart = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopySHCoefficientArraysFrom( _lightProbes, _sourceStart, _destStart, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.CopySHCoefficientArraysFrom!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyProbeOcclusionArrayFrom(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _occlusionProbes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.CopyProbeOcclusionArrayFrom( _occlusionProbes ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector4[] _occlusionProbes = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.CopyProbeOcclusionArrayFrom( _occlusionProbes ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _occlusionProbes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _sourceStart = LuaAPI.xlua_tointeger(L, 3); - int _destStart = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyProbeOcclusionArrayFrom( _occlusionProbes, _sourceStart, _destStart, _count ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector4[] _occlusionProbes = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - int _sourceStart = LuaAPI.xlua_tointeger(L, 3); - int _destStart = LuaAPI.xlua_tointeger(L, 4); - int _count = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.CopyProbeOcclusionArrayFrom( _occlusionProbes, _sourceStart, _destStart, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MaterialPropertyBlock.CopyProbeOcclusionArrayFrom!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isEmpty(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MaterialPropertyBlock gen_to_be_invoked = (UnityEngine.MaterialPropertyBlock)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isEmpty); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MaterialWrap.cs b/Assets/XLua/Gen/UnityEngine_MaterialWrap.cs deleted file mode 100644 index ede475c2c..000000000 --- a/Assets/XLua/Gen/UnityEngine_MaterialWrap.cs +++ /dev/null @@ -1,3897 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMaterialWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Material); - Utils.BeginObjectRegister(type, L, translator, 0, 75, 12, 11); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInt", _m_SetInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloat", _m_SetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInteger", _m_SetInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetColor", _m_SetColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVector", _m_SetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMatrix", _m_SetMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTexture", _m_SetTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBuffer", _m_SetBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetConstantBuffer", _m_SetConstantBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloatArray", _m_SetFloatArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetColorArray", _m_SetColorArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVectorArray", _m_SetVectorArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMatrixArray", _m_SetMatrixArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInt", _m_GetInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloat", _m_GetFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInteger", _m_GetInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColor", _m_GetColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVector", _m_GetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMatrix", _m_GetMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTexture", _m_GetTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFloatArray", _m_GetFloatArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColorArray", _m_GetColorArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVectorArray", _m_GetVectorArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMatrixArray", _m_GetMatrixArray); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTextureOffset", _m_SetTextureOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTextureScale", _m_SetTextureScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTextureOffset", _m_GetTextureOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTextureScale", _m_GetTextureScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasProperty", _m_HasProperty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasFloat", _m_HasFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasInt", _m_HasInt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasInteger", _m_HasInteger); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasTexture", _m_HasTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasMatrix", _m_HasMatrix); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasVector", _m_HasVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasColor", _m_HasColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasBuffer", _m_HasBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasConstantBuffer", _m_HasConstantBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableKeyword", _m_EnableKeyword); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisableKeyword", _m_DisableKeyword); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsKeywordEnabled", _m_IsKeywordEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetKeyword", _m_SetKeyword); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShaderPassEnabled", _m_SetShaderPassEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShaderPassEnabled", _m_GetShaderPassEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPassName", _m_GetPassName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPass", _m_FindPass); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetOverrideTag", _m_SetOverrideTag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTag", _m_GetTag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Lerp", _m_Lerp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPass", _m_SetPass); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyPropertiesFromMaterial", _m_CopyPropertiesFromMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyMatchingPropertiesFromMaterial", _m_CopyMatchingPropertiesFromMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ComputeCRC", _m_ComputeCRC); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTexturePropertyNames", _m_GetTexturePropertyNames); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTexturePropertyNameIDs", _m_GetTexturePropertyNameIDs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOGradientColor", _m_DOGradientColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOOffset", _m_DOOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOTiling", _m_DOTiling); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFloat", _m_DOFloat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOVector", _m_DOVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableColor", _m_DOBlendableColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOComplete", _m_DOComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOKill", _m_DOKill); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFlip", _m_DOFlip); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOGoto", _m_DOGoto); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPause", _m_DOPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlay", _m_DOPlay); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlayBackwards", _m_DOPlayBackwards); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPlayForward", _m_DOPlayForward); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORestart", _m_DORestart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORewind", _m_DORewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOSmoothRewind", _m_DOSmoothRewind); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOTogglePause", _m_DOTogglePause); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shader", _g_get_shader); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTextureOffset", _g_get_mainTextureOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTextureScale", _g_get_mainTextureScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderQueue", _g_get_renderQueue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabledKeywords", _g_get_enabledKeywords); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "globalIlluminationFlags", _g_get_globalIlluminationFlags); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "doubleSidedGI", _g_get_doubleSidedGI); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableInstancing", _g_get_enableInstancing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "passCount", _g_get_passCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shaderKeywords", _g_get_shaderKeywords); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shader", _s_set_shader); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainTexture", _s_set_mainTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainTextureOffset", _s_set_mainTextureOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mainTextureScale", _s_set_mainTextureScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderQueue", _s_set_renderQueue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabledKeywords", _s_set_enabledKeywords); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "globalIlluminationFlags", _s_set_globalIlluminationFlags); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "doubleSidedGI", _s_set_doubleSidedGI); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableInstancing", _s_set_enableInstancing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shaderKeywords", _s_set_shaderKeywords); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Shader _shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader)); - - var gen_ret = new UnityEngine.Material(_shader); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Material _source = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = new UnityEngine.Material(_source); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInt( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInt( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetFloat( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInteger( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - int _value = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetInteger( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Color _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetColor( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Color _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetColor( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetVector( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetVector( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Matrix4x4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetMatrix( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Matrix4x4 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetMatrix( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Texture _value = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetTexture( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Texture _value = (UnityEngine.Texture)translator.GetObject(L, 3, typeof(UnityEngine.Texture)); - - gen_to_be_invoked.SetTexture( _name, _value ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.RenderTexture _value = (UnityEngine.RenderTexture)translator.GetObject(L, 3, typeof(UnityEngine.RenderTexture)); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 4, out _element); - - gen_to_be_invoked.SetTexture( _nameID, _value, _element ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.RenderTexture _value = (UnityEngine.RenderTexture)translator.GetObject(L, 3, typeof(UnityEngine.RenderTexture)); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 4, out _element); - - gen_to_be_invoked.SetTexture( _name, _value, _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - - gen_to_be_invoked.SetBuffer( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - gen_to_be_invoked.SetBuffer( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - - gen_to_be_invoked.SetBuffer( _name, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - - gen_to_be_invoked.SetBuffer( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetConstantBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _nameID, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _nameID, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 3, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _name, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 3, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 4); - int _size = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetConstantBuffer( _name, _value, _offset, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetConstantBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloatArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - float[] _values = (float[])translator.GetObject(L, 3, typeof(float[])); - - gen_to_be_invoked.SetFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetFloatArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - float[] _values = (float[])translator.GetObject(L, 3, typeof(float[])); - - gen_to_be_invoked.SetFloatArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetFloatArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetColorArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetColorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Color[] _values = (UnityEngine.Color[])translator.GetObject(L, 3, typeof(UnityEngine.Color[])); - - gen_to_be_invoked.SetColorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetColorArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Color[] _values = (UnityEngine.Color[])translator.GetObject(L, 3, typeof(UnityEngine.Color[])); - - gen_to_be_invoked.SetColorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetColorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVectorArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVectorArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetVectorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetVectorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMatrixArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); - - gen_to_be_invoked.SetMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetMatrixArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 3, typeof(UnityEngine.Matrix4x4[])); - - gen_to_be_invoked.SetMatrixArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetMatrixArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetInt( _nameID ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetInt( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloat( _nameID ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloat( _name ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetInteger( _nameID ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetInteger( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetColor( _nameID ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetColor( _name ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetVector( _nameID ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetVector( _name ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrix( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrix( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTexture( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetTexture( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloatArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloatArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetFloatArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetFloatArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetFloatArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColorArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetColorArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetColorArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetColorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetColorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetColorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVectorArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetVectorArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetVectorArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVectorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetVectorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMatrixArray(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrixArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetMatrixArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetMatrixArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetMatrixArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTextureOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetTextureOffset( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector2 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetTextureOffset( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetTextureOffset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTextureScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetTextureScale( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 2); - UnityEngine.Vector2 _value;translator.Get(L, 3, out _value); - - gen_to_be_invoked.SetTextureScale( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.SetTextureScale!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTextureOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTextureOffset( _nameID ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetTextureOffset( _name ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetTextureOffset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTextureScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTextureScale( _nameID ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetTextureScale( _name ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetTextureScale!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasProperty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasProperty( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasProperty( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasProperty!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasFloat( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasFloat( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasInt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasInt( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasInt( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasInteger(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasInteger( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasInteger( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasTexture( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasTexture( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasMatrix(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasMatrix( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasMatrix( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasVector( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasVector( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasColor( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasColor( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasBuffer( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasBuffer( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasConstantBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.HasConstantBuffer( _nameID ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.HasConstantBuffer( _name ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.HasConstantBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableKeyword(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _keyword = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.EnableKeyword( _keyword ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.LocalKeyword _keyword;translator.Get(L, 2, out _keyword); - - gen_to_be_invoked.EnableKeyword( _keyword ); - translator.Push(L, _keyword); - translator.Update(L, 2, _keyword); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.EnableKeyword!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DisableKeyword(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _keyword = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.DisableKeyword( _keyword ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.LocalKeyword _keyword;translator.Get(L, 2, out _keyword); - - gen_to_be_invoked.DisableKeyword( _keyword ); - translator.Push(L, _keyword); - translator.Update(L, 2, _keyword); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DisableKeyword!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsKeywordEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _keyword = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsKeywordEnabled( _keyword ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.LocalKeyword _keyword;translator.Get(L, 2, out _keyword); - - var gen_ret = gen_to_be_invoked.IsKeywordEnabled( _keyword ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _keyword); - translator.Update(L, 2, _keyword); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.IsKeywordEnabled!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetKeyword(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.LocalKeyword _keyword;translator.Get(L, 2, out _keyword); - bool _value = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetKeyword( _keyword, _value ); - translator.Push(L, _keyword); - translator.Update(L, 2, _keyword); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetShaderPassEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - string _passName = LuaAPI.lua_tostring(L, 2); - bool _enabled = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetShaderPassEnabled( _passName, _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetShaderPassEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - string _passName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetShaderPassEnabled( _passName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPassName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - int _pass = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPassName( _pass ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindPass(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - string _passName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindPass( _passName ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetOverrideTag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - string _tag = LuaAPI.lua_tostring(L, 2); - string _val = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.SetOverrideTag( _tag, _val ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - bool _searchFallbacks = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetTag( _tag, _searchFallbacks ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - string _tag = LuaAPI.lua_tostring(L, 2); - bool _searchFallbacks = LuaAPI.lua_toboolean(L, 3); - string _defaultValue = LuaAPI.lua_tostring(L, 4); - - var gen_ret = gen_to_be_invoked.GetTag( _tag, _searchFallbacks, _defaultValue ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetTag!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _start = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - UnityEngine.Material _end = (UnityEngine.Material)translator.GetObject(L, 3, typeof(UnityEngine.Material)); - float _t = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.Lerp( _start, _end, _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPass(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - int _pass = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.SetPass( _pass ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyPropertiesFromMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.CopyPropertiesFromMaterial( _mat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CopyMatchingPropertiesFromMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - gen_to_be_invoked.CopyMatchingPropertiesFromMaterial( _mat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputeCRC(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ComputeCRC( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTexturePropertyNames(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetTexturePropertyNames( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _outNames = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetTexturePropertyNames( _outNames ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetTexturePropertyNames!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTexturePropertyNameIDs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetTexturePropertyNameIDs( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _outNames = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetTexturePropertyNameIDs( _outNames ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.GetTexturePropertyNameIDs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOGradientColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Gradient _gradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOGradientColor( _gradient, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Gradient _gradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOGradientColor( _gradient, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOGradientColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOOffset( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - int _propertyID = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOOffset( _endValue, _propertyID, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOOffset( _endValue, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOOffset!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOTiling(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOTiling( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - int _propertyID = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOTiling( _endValue, _propertyID, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOTiling( _endValue, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOTiling!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - int _propertyID = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _propertyID, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - int _propertyID = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _propertyID, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOFade!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFloat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - int _propertyID = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOFloat( _endValue, _propertyID, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOFloat( _endValue, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector4 _endValue;translator.Get(L, 2, out _endValue); - int _propertyID = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOVector( _endValue, _propertyID, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector4 _endValue;translator.Get(L, 2, out _endValue); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOVector( _endValue, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - int _propertyID = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _propertyID, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - string _property = LuaAPI.lua_tostring(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _property, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOBlendableColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withCallbacks = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DOComplete( _withCallbacks ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DOComplete( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOComplete!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOKill(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _complete = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DOKill( _complete ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DOKill( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOKill!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFlip(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOFlip( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOGoto(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 2); - bool _andPlay = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.DOGoto( _to, _andPlay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _to = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOGoto( _to ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DOGoto!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPause( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPlay(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPlay( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPlayBackwards(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPlayBackwards( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPlayForward(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOPlayForward( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DORestart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DORestart( _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DORestart( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DORestart!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DORewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _includeDelay = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.DORewind( _includeDelay ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.DORewind( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Material.DORewind!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOSmoothRewind(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOSmoothRewind( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOTogglePause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.DOTogglePause( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shader(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shader); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTextureOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.mainTextureOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTextureScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.mainTextureScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderQueue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderQueue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabledKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.enabledKeywords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_globalIlluminationFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.globalIlluminationFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_doubleSidedGI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.doubleSidedGI); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableInstancing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableInstancing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_passCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.passCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shaderKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shaderKeywords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shader(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mainTexture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainTextureOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mainTextureOffset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mainTextureScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mainTextureScale = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderQueue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.renderQueue = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabledKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabledKeywords = (UnityEngine.Rendering.LocalKeyword[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.LocalKeyword[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_globalIlluminationFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - UnityEngine.MaterialGlobalIlluminationFlags gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.globalIlluminationFlags = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_doubleSidedGI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.doubleSidedGI = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableInstancing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableInstancing = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shaderKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Material gen_to_be_invoked = (UnityEngine.Material)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shaderKeywords = (string[])translator.GetObject(L, 2, typeof(string[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MathfWrap.cs b/Assets/XLua/Gen/UnityEngine_MathfWrap.cs deleted file mode 100644 index 6224aacdf..000000000 --- a/Assets/XLua/Gen/UnityEngine_MathfWrap.cs +++ /dev/null @@ -1,1555 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMathfWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Mathf); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 54, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Sin", _m_Sin_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Cos", _m_Cos_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Tan", _m_Tan_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Asin", _m_Asin_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Acos", _m_Acos_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Atan", _m_Atan_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Atan2", _m_Atan2_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Sqrt", _m_Sqrt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Abs", _m_Abs_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Min", _m_Min_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Max", _m_Max_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Pow", _m_Pow_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Exp", _m_Exp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Log", _m_Log_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Log10", _m_Log10_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Ceil", _m_Ceil_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Floor", _m_Floor_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Round", _m_Round_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CeilToInt", _m_CeilToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FloorToInt", _m_FloorToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RoundToInt", _m_RoundToInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Sign", _m_Sign_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Clamp", _m_Clamp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Clamp01", _m_Clamp01_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpAngle", _m_LerpAngle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveTowards", _m_MoveTowards_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveTowardsAngle", _m_MoveTowardsAngle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothStep", _m_SmoothStep_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Gamma", _m_Gamma_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Approximately", _m_Approximately_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothDamp", _m_SmoothDamp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothDampAngle", _m_SmoothDampAngle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Repeat", _m_Repeat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PingPong", _m_PingPong_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "InverseLerp", _m_InverseLerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DeltaAngle", _m_DeltaAngle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClosestPowerOfTwo", _m_ClosestPowerOfTwo_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsPowerOfTwo", _m_IsPowerOfTwo_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NextPowerOfTwo", _m_NextPowerOfTwo_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GammaToLinearSpace", _m_GammaToLinearSpace_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LinearToGammaSpace", _m_LinearToGammaSpace_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CorrelatedColorTemperatureToRGB", _m_CorrelatedColorTemperatureToRGB_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FloatToHalf", _m_FloatToHalf_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HalfToFloat", _m_HalfToFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PerlinNoise", _m_PerlinNoise_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PI", UnityEngine.Mathf.PI); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Infinity", UnityEngine.Mathf.Infinity); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NegativeInfinity", UnityEngine.Mathf.NegativeInfinity); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Deg2Rad", UnityEngine.Mathf.Deg2Rad); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Rad2Deg", UnityEngine.Mathf.Rad2Deg); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Epsilon", UnityEngine.Mathf.Epsilon); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Mathf)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sin_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Sin( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cos_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Cos( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Tan_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Tan( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Asin_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Asin( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Acos_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Acos( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Atan_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Atan( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Atan2_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _y = (float)LuaAPI.lua_tonumber(L, 1); - float _x = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.Atan2( _y, _x ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sqrt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Sqrt( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Abs_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Abs( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Mathf.Abs( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf.Abs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Min_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.Min( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _a = LuaAPI.xlua_tointeger(L, 1); - int _b = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Mathf.Min( _a, _b ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count >= 0&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 1) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1))) - { - float[] _values = translator.GetParams(L, 1); - - var gen_ret = UnityEngine.Mathf.Min( _values ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count >= 0&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 1) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1))) - { - int[] _values = translator.GetParams(L, 1); - - var gen_ret = UnityEngine.Mathf.Min( _values ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf.Min!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Max_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.Max( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _a = LuaAPI.xlua_tointeger(L, 1); - int _b = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Mathf.Max( _a, _b ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count >= 0&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 1) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1))) - { - float[] _values = translator.GetParams(L, 1); - - var gen_ret = UnityEngine.Mathf.Max( _values ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count >= 0&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 1) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1))) - { - int[] _values = translator.GetParams(L, 1); - - var gen_ret = UnityEngine.Mathf.Max( _values ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf.Max!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pow_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - float _p = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.Pow( _f, _p ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Exp_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _power = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Exp( _power ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Log_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Log( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - float _p = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.Log( _f, _p ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf.Log!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Log10_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Log10( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Ceil_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Ceil( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Floor_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Floor( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Round_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Round( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CeilToInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.CeilToInt( _f ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FloorToInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.FloorToInt( _f ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RoundToInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.RoundToInt( _f ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sign_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _f = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Sign( _f ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clamp_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - float _min = (float)LuaAPI.lua_tonumber(L, 2); - float _max = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.Clamp( _value, _min, _max ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _value = LuaAPI.xlua_tointeger(L, 1); - int _min = LuaAPI.xlua_tointeger(L, 2); - int _max = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Mathf.Clamp( _value, _min, _max ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf.Clamp!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clamp01_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.Clamp01( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.Lerp( _a, _b, _t ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.LerpUnclamped( _a, _b, _t ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpAngle_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.LerpAngle( _a, _b, _t ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTowards_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDelta = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.MoveTowards( _current, _target, _maxDelta ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTowardsAngle_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDelta = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.MoveTowardsAngle( _current, _target, _maxDelta ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothStep_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _from = (float)LuaAPI.lua_tonumber(L, 1); - float _to = (float)LuaAPI.lua_tonumber(L, 2); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.SmoothStep( _from, _to, _t ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Gamma_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - float _absmax = (float)LuaAPI.lua_tonumber(L, 2); - float _gamma = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.Gamma( _value, _absmax, _gamma ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Approximately_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.Approximately( _a, _b ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothDamp_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _currentVelocity = (float)LuaAPI.lua_tonumber(L, 3); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Mathf.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime ); - LuaAPI.lua_pushnumber(L, gen_ret); - LuaAPI.lua_pushnumber(L, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _currentVelocity = (float)LuaAPI.lua_tonumber(L, 3); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Mathf.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed ); - LuaAPI.lua_pushnumber(L, gen_ret); - LuaAPI.lua_pushnumber(L, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _currentVelocity = (float)LuaAPI.lua_tonumber(L, 3); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Mathf.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed, _deltaTime ); - LuaAPI.lua_pushnumber(L, gen_ret); - LuaAPI.lua_pushnumber(L, _currentVelocity); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf.SmoothDamp!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothDampAngle_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _currentVelocity = (float)LuaAPI.lua_tonumber(L, 3); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Mathf.SmoothDampAngle( _current, _target, ref _currentVelocity, _smoothTime ); - LuaAPI.lua_pushnumber(L, gen_ret); - LuaAPI.lua_pushnumber(L, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _currentVelocity = (float)LuaAPI.lua_tonumber(L, 3); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Mathf.SmoothDampAngle( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed ); - LuaAPI.lua_pushnumber(L, gen_ret); - LuaAPI.lua_pushnumber(L, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - float _currentVelocity = (float)LuaAPI.lua_tonumber(L, 3); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Mathf.SmoothDampAngle( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed, _deltaTime ); - LuaAPI.lua_pushnumber(L, gen_ret); - LuaAPI.lua_pushnumber(L, _currentVelocity); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mathf.SmoothDampAngle!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Repeat_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _t = (float)LuaAPI.lua_tonumber(L, 1); - float _length = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.Repeat( _t, _length ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PingPong_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _t = (float)LuaAPI.lua_tonumber(L, 1); - float _length = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.PingPong( _t, _length ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InverseLerp_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _a = (float)LuaAPI.lua_tonumber(L, 1); - float _b = (float)LuaAPI.lua_tonumber(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Mathf.InverseLerp( _a, _b, _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeltaAngle_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _current = (float)LuaAPI.lua_tonumber(L, 1); - float _target = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.DeltaAngle( _current, _target ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPowerOfTwo_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Mathf.ClosestPowerOfTwo( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsPowerOfTwo_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Mathf.IsPowerOfTwo( _value ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NextPowerOfTwo_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _value = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Mathf.NextPowerOfTwo( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GammaToLinearSpace_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.GammaToLinearSpace( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LinearToGammaSpace_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _value = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.LinearToGammaSpace( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CorrelatedColorTemperatureToRGB_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _kelvin = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.CorrelatedColorTemperatureToRGB( _kelvin ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FloatToHalf_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _val = (float)LuaAPI.lua_tonumber(L, 1); - - var gen_ret = UnityEngine.Mathf.FloatToHalf( _val ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HalfToFloat_xlua_st_(RealStatePtr L) - { - try { - - - - - { - ushort _val = (ushort)LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Mathf.HalfToFloat( _val ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PerlinNoise_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 1); - float _y = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Mathf.PerlinNoise( _x, _y ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Matrix4x4Wrap.cs b/Assets/XLua/Gen/UnityEngine_Matrix4x4Wrap.cs deleted file mode 100644 index 6b4faed58..000000000 --- a/Assets/XLua/Gen/UnityEngine_Matrix4x4Wrap.cs +++ /dev/null @@ -1,1734 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMatrix4x4Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Matrix4x4); - Utils.BeginObjectRegister(type, L, translator, 2, 14, 23, 16); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ValidTRS", _m_ValidTRS); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTRS", _m_SetTRS); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColumn", _m_GetColumn); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRow", _m_GetRow); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPosition", _m_GetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetColumn", _m_SetColumn); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRow", _m_SetRow); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MultiplyPoint", _m_MultiplyPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MultiplyPoint3x4", _m_MultiplyPoint3x4); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MultiplyVector", _m_MultiplyVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransformPlane", _m_TransformPlane); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lossyScale", _g_get_lossyScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isIdentity", _g_get_isIdentity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "determinant", _g_get_determinant); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decomposeProjection", _g_get_decomposeProjection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inverse", _g_get_inverse); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transpose", _g_get_transpose); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m00", _g_get_m00); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m10", _g_get_m10); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m20", _g_get_m20); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m30", _g_get_m30); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m01", _g_get_m01); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m11", _g_get_m11); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m21", _g_get_m21); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m31", _g_get_m31); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m02", _g_get_m02); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m12", _g_get_m12); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m22", _g_get_m22); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m32", _g_get_m32); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m03", _g_get_m03); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m13", _g_get_m13); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m23", _g_get_m23); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "m33", _g_get_m33); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m00", _s_set_m00); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m10", _s_set_m10); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m20", _s_set_m20); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m30", _s_set_m30); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m01", _s_set_m01); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m11", _s_set_m11); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m21", _s_set_m21); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m31", _s_set_m31); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m02", _s_set_m02); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m12", _s_set_m12); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m22", _s_set_m22); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m32", _s_set_m32); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m03", _s_set_m03); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m13", _s_set_m13); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m23", _s_set_m23); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "m33", _s_set_m33); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 13, 2, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Determinant", _m_Determinant_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TRS", _m_TRS_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Inverse3DAffine", _m_Inverse3DAffine_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Inverse", _m_Inverse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Transpose", _m_Transpose_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Ortho", _m_Ortho_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Perspective", _m_Perspective_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LookAt", _m_LookAt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Frustum", _m_Frustum_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Scale", _m_Scale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Translate", _m_Translate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Rotate", _m_Rotate_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "identity", _g_get_identity); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - UnityEngine.Vector4 _column0;translator.Get(L, 2, out _column0); - UnityEngine.Vector4 _column1;translator.Get(L, 3, out _column1); - UnityEngine.Vector4 _column2;translator.Get(L, 4, out _column2); - UnityEngine.Vector4 _column3;translator.Get(L, 5, out _column3); - - var gen_ret = new UnityEngine.Matrix4x4(_column0, _column1, _column2, _column3); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Matrix4x4)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Matrix4x4 constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Matrix4x4 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Matrix4x4 rightside;translator.Get(L, 2, out rightside); - - translator.Push(L, leftside * rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Matrix4x4 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector4 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector4(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Matrix4x4!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Matrix4x4 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Matrix4x4 rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Matrix4x4!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ValidTRS(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ValidTRS( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Determinant_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _m;translator.Get(L, 1, out _m); - - var gen_ret = UnityEngine.Matrix4x4.Determinant( _m ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TRS_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _pos;translator.Get(L, 1, out _pos); - UnityEngine.Quaternion _q;translator.Get(L, 2, out _q); - UnityEngine.Vector3 _s;translator.Get(L, 3, out _s); - - var gen_ret = UnityEngine.Matrix4x4.TRS( _pos, _q, _s ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTRS(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _pos;translator.Get(L, 2, out _pos); - UnityEngine.Quaternion _q;translator.Get(L, 3, out _q); - UnityEngine.Vector3 _s;translator.Get(L, 4, out _s); - - gen_to_be_invoked.SetTRS( _pos, _q, _s ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Inverse3DAffine_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _input;translator.Get(L, 1, out _input); - UnityEngine.Matrix4x4 _result;translator.Get(L, 2, out _result); - - var gen_ret = UnityEngine.Matrix4x4.Inverse3DAffine( _input, ref _result ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _result); - translator.Update(L, 2, _result); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Inverse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _m;translator.Get(L, 1, out _m); - - var gen_ret = UnityEngine.Matrix4x4.Inverse( _m ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Transpose_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Matrix4x4 _m;translator.Get(L, 1, out _m); - - var gen_ret = UnityEngine.Matrix4x4.Transpose( _m ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Ortho_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _left = (float)LuaAPI.lua_tonumber(L, 1); - float _right = (float)LuaAPI.lua_tonumber(L, 2); - float _bottom = (float)LuaAPI.lua_tonumber(L, 3); - float _top = (float)LuaAPI.lua_tonumber(L, 4); - float _zNear = (float)LuaAPI.lua_tonumber(L, 5); - float _zFar = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Matrix4x4.Ortho( _left, _right, _bottom, _top, _zNear, _zFar ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Perspective_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _fov = (float)LuaAPI.lua_tonumber(L, 1); - float _aspect = (float)LuaAPI.lua_tonumber(L, 2); - float _zNear = (float)LuaAPI.lua_tonumber(L, 3); - float _zFar = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Matrix4x4.Perspective( _fov, _aspect, _zNear, _zFar ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LookAt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _from;translator.Get(L, 1, out _from); - UnityEngine.Vector3 _to;translator.Get(L, 2, out _to); - UnityEngine.Vector3 _up;translator.Get(L, 3, out _up); - - var gen_ret = UnityEngine.Matrix4x4.LookAt( _from, _to, _up ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Frustum_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - float _left = (float)LuaAPI.lua_tonumber(L, 1); - float _right = (float)LuaAPI.lua_tonumber(L, 2); - float _bottom = (float)LuaAPI.lua_tonumber(L, 3); - float _top = (float)LuaAPI.lua_tonumber(L, 4); - float _zNear = (float)LuaAPI.lua_tonumber(L, 5); - float _zFar = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Matrix4x4.Frustum( _left, _right, _bottom, _top, _zNear, _zFar ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.FrustumPlanes _fp;translator.Get(L, 1, out _fp); - - var gen_ret = UnityEngine.Matrix4x4.Frustum( _fp ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Matrix4x4.Frustum!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Matrix4x4 _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Matrix4x4.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColumn(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetColumn( _index ); - translator.PushUnityEngineVector4(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRow(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetRow( _index ); - translator.PushUnityEngineVector4(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetPosition( ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetColumn(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4 _column;translator.Get(L, 3, out _column); - - gen_to_be_invoked.SetColumn( _index, _column ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRow(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4 _row;translator.Get(L, 3, out _row); - - gen_to_be_invoked.SetRow( _index, _row ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MultiplyPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.MultiplyPoint( _point ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MultiplyPoint3x4(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.MultiplyPoint3x4( _point ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MultiplyVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 2, out _vector); - - var gen_ret = gen_to_be_invoked.MultiplyVector( _vector ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformPlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Plane _plane;translator.Get(L, 2, out _plane); - - var gen_ret = gen_to_be_invoked.TransformPlane( _plane ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 1, out _vector); - - var gen_ret = UnityEngine.Matrix4x4.Scale( _vector ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Translate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 1, out _vector); - - var gen_ret = UnityEngine.Matrix4x4.Translate( _vector ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rotate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _q;translator.Get(L, 1, out _q); - - var gen_ret = UnityEngine.Matrix4x4.Rotate( _q ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Matrix4x4.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lossyScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.lossyScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isIdentity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isIdentity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_determinant(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.determinant); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decomposeProjection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.decomposeProjection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inverse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.inverse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transpose(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.transpose); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Matrix4x4.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_identity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Matrix4x4.identity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m00(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m00); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m10(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m10); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m20(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m20); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m30(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m30); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m01(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m01); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m11(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m11); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m21(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m21); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m31(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m31); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m02(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m02); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m12(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m12); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m22(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m22); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m32(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m32); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m03(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m03); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m13(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m13); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m23(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m23); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_m33(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.m33); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m00(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m00 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m10(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m10 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m20(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m20 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m30(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m30 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m01(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m01 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m11(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m11 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m21(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m21 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m31(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m31 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m02(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m02 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m12(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m12 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m22(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m22 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m32(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m32 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m03(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m03 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m13(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m13 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m23(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m23 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_m33(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Matrix4x4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.m33 = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MeshColliderWrap.cs b/Assets/XLua/Gen/UnityEngine_MeshColliderWrap.cs deleted file mode 100644 index 16f7cd1cd..000000000 --- a/Assets/XLua/Gen/UnityEngine_MeshColliderWrap.cs +++ /dev/null @@ -1,178 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMeshColliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MeshCollider); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMesh", _g_get_sharedMesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "convex", _g_get_convex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cookingOptions", _g_get_cookingOptions); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMesh", _s_set_sharedMesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "convex", _s_set_convex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cookingOptions", _s_set_cookingOptions); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.MeshCollider(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MeshCollider constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshCollider gen_to_be_invoked = (UnityEngine.MeshCollider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_convex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshCollider gen_to_be_invoked = (UnityEngine.MeshCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.convex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cookingOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshCollider gen_to_be_invoked = (UnityEngine.MeshCollider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cookingOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshCollider gen_to_be_invoked = (UnityEngine.MeshCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_convex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshCollider gen_to_be_invoked = (UnityEngine.MeshCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.convex = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cookingOptions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshCollider gen_to_be_invoked = (UnityEngine.MeshCollider)translator.FastGetCSObj(L, 1); - UnityEngine.MeshColliderCookingOptions gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cookingOptions = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MeshFilterWrap.cs b/Assets/XLua/Gen/UnityEngine_MeshFilterWrap.cs deleted file mode 100644 index a5a20ec66..000000000 --- a/Assets/XLua/Gen/UnityEngine_MeshFilterWrap.cs +++ /dev/null @@ -1,146 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMeshFilterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MeshFilter); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMesh", _g_get_sharedMesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMesh", _s_set_sharedMesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.MeshFilter(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MeshFilter constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshFilter gen_to_be_invoked = (UnityEngine.MeshFilter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshFilter gen_to_be_invoked = (UnityEngine.MeshFilter)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshFilter gen_to_be_invoked = (UnityEngine.MeshFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshFilter gen_to_be_invoked = (UnityEngine.MeshFilter)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MeshRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_MeshRendererWrap.cs deleted file mode 100644 index b33e34bb6..000000000 --- a/Assets/XLua/Gen/UnityEngine_MeshRendererWrap.cs +++ /dev/null @@ -1,161 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMeshRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MeshRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "additionalVertexStreams", _g_get_additionalVertexStreams); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enlightenVertexStream", _g_get_enlightenVertexStream); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subMeshStartIndex", _g_get_subMeshStartIndex); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "additionalVertexStreams", _s_set_additionalVertexStreams); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enlightenVertexStream", _s_set_enlightenVertexStream); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.MeshRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MeshRenderer constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_additionalVertexStreams(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshRenderer gen_to_be_invoked = (UnityEngine.MeshRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.additionalVertexStreams); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enlightenVertexStream(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshRenderer gen_to_be_invoked = (UnityEngine.MeshRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.enlightenVertexStream); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subMeshStartIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshRenderer gen_to_be_invoked = (UnityEngine.MeshRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.subMeshStartIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_additionalVertexStreams(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshRenderer gen_to_be_invoked = (UnityEngine.MeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.additionalVertexStreams = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enlightenVertexStream(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MeshRenderer gen_to_be_invoked = (UnityEngine.MeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enlightenVertexStream = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MeshWrap.cs b/Assets/XLua/Gen/UnityEngine_MeshWrap.cs deleted file mode 100644 index 3fbc88a9d..000000000 --- a/Assets/XLua/Gen/UnityEngine_MeshWrap.cs +++ /dev/null @@ -1,4395 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMeshWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Mesh); - Utils.BeginObjectRegister(type, L, translator, 0, 61, 26, 21); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertices", _m_GetVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVertices", _m_SetVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNormals", _m_GetNormals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNormals", _m_SetNormals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTangents", _m_GetTangents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTangents", _m_SetTangents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColors", _m_GetColors); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetColors", _m_SetColors); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetUVs", _m_SetUVs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUVs", _m_GetUVs); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttributes", _m_GetVertexAttributes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVertexBufferParams", _m_SetVertexBufferParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexBuffer", _m_GetVertexBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIndexBuffer", _m_GetIndexBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTriangles", _m_GetTriangles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIndices", _m_GetIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIndexStart", _m_GetIndexStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIndexCount", _m_GetIndexCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBaseVertex", _m_GetBaseVertex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTriangles", _m_SetTriangles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIndices", _m_SetIndices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSubMeshes", _m_SetSubMeshes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBindposes", _m_GetBindposes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBoneWeights", _m_GetBoneWeights); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateBounds", _m_RecalculateBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateNormals", _m_RecalculateNormals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateTangents", _m_RecalculateTangents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateUVDistributionMetric", _m_RecalculateUVDistributionMetric); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateUVDistributionMetrics", _m_RecalculateUVDistributionMetrics); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MarkDynamic", _m_MarkDynamic); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UploadMeshData", _m_UploadMeshData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Optimize", _m_Optimize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptimizeIndexBuffers", _m_OptimizeIndexBuffers); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OptimizeReorderVertexBuffer", _m_OptimizeReorderVertexBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTopology", _m_GetTopology); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CombineMeshes", _m_CombineMeshes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIndexBufferParams", _m_SetIndexBufferParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttribute", _m_GetVertexAttribute); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasVertexAttribute", _m_HasVertexAttribute); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttributeDimension", _m_GetVertexAttributeDimension); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttributeFormat", _m_GetVertexAttributeFormat); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttributeStream", _m_GetVertexAttributeStream); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexAttributeOffset", _m_GetVertexAttributeOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexBufferStride", _m_GetVertexBufferStride); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNativeVertexBufferPtr", _m_GetNativeVertexBufferPtr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNativeIndexBufferPtr", _m_GetNativeIndexBufferPtr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearBlendShapes", _m_ClearBlendShapes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeName", _m_GetBlendShapeName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeIndex", _m_GetBlendShapeIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeFrameCount", _m_GetBlendShapeFrameCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeFrameWeight", _m_GetBlendShapeFrameWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeFrameVertices", _m_GetBlendShapeFrameVertices); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddBlendShapeFrame", _m_AddBlendShapeFrame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBoneWeights", _m_SetBoneWeights); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllBoneWeights", _m_GetAllBoneWeights); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBonesPerVertex", _m_GetBonesPerVertex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSubMesh", _m_SetSubMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSubMesh", _m_GetSubMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MarkModified", _m_MarkModified); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetUVDistributionMetric", _m_GetUVDistributionMetric); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertices", _g_get_vertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normals", _g_get_normals); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tangents", _g_get_tangents); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv", _g_get_uv); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv2", _g_get_uv2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv3", _g_get_uv3); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv4", _g_get_uv4); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv5", _g_get_uv5); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv6", _g_get_uv6); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv7", _g_get_uv7); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv8", _g_get_uv8); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colors", _g_get_colors); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colors32", _g_get_colors32); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexAttributeCount", _g_get_vertexAttributeCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "triangles", _g_get_triangles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boneWeights", _g_get_boneWeights); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "indexFormat", _g_get_indexFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexBufferCount", _g_get_vertexBufferCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexBufferTarget", _g_get_vertexBufferTarget); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "indexBufferTarget", _g_get_indexBufferTarget); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blendShapeCount", _g_get_blendShapeCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bindposes", _g_get_bindposes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReadable", _g_get_isReadable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexCount", _g_get_vertexCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subMeshCount", _g_get_subMeshCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounds", _g_get_bounds); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertices", _s_set_vertices); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normals", _s_set_normals); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tangents", _s_set_tangents); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv", _s_set_uv); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv2", _s_set_uv2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv3", _s_set_uv3); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv4", _s_set_uv4); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv5", _s_set_uv5); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv6", _s_set_uv6); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv7", _s_set_uv7); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uv8", _s_set_uv8); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colors", _s_set_colors); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colors32", _s_set_colors32); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "triangles", _s_set_triangles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boneWeights", _s_set_boneWeights); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "indexFormat", _s_set_indexFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexBufferTarget", _s_set_vertexBufferTarget); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "indexBufferTarget", _s_set_indexBufferTarget); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bindposes", _s_set_bindposes); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "subMeshCount", _s_set_subMeshCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounds", _s_set_bounds); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AcquireReadOnlyMeshData", _m_AcquireReadOnlyMeshData_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AllocateWritableMeshData", _m_AllocateWritableMeshData_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ApplyAndDisposeWritableMeshData", _m_ApplyAndDisposeWritableMeshData_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Mesh(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _vertices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetVertices( _vertices ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _inVertices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetVertices( _inVertices ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _inVertices = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.SetVertices( _inVertices ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _inVertices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetVertices( _inVertices, _start, _length ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3[] _inVertices = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetVertices( _inVertices, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - System.Collections.Generic.List _inVertices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetVertices( _inVertices, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3[] _inVertices = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetVertices( _inVertices, _start, _length, _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetVertices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNormals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _normals = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetNormals( _normals ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNormals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _inNormals = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetNormals( _inNormals ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3[] _inNormals = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.SetNormals( _inNormals ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _inNormals = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetNormals( _inNormals, _start, _length ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3[] _inNormals = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetNormals( _inNormals, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - System.Collections.Generic.List _inNormals = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetNormals( _inNormals, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3[] _inNormals = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetNormals( _inNormals, _start, _length, _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetNormals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTangents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _tangents = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetTangents( _tangents ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTangents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _inTangents = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetTangents( _inTangents ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector4[] _inTangents = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetTangents( _inTangents ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _inTangents = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetTangents( _inTangents, _start, _length ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector4[] _inTangents = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetTangents( _inTangents, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - System.Collections.Generic.List _inTangents = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetTangents( _inTangents, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector4[] _inTangents = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetTangents( _inTangents, _start, _length, _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetTangents!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColors(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetColors( _colors ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _colors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetColors( _colors ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.GetColors!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetColors(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _inColors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetColors( _inColors ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color[] _inColors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - - gen_to_be_invoked.SetColors( _inColors ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _inColors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetColors( _inColors ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color32[] _inColors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - - gen_to_be_invoked.SetColors( _inColors ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _inColors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetColors( _inColors, _start, _length ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color[] _inColors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetColors( _inColors, _start, _length ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _inColors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetColors( _inColors, _start, _length ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Color32[] _inColors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetColors( _inColors, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - System.Collections.Generic.List _inColors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetColors( _inColors, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Color[] _inColors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetColors( _inColors, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - System.Collections.Generic.List _inColors = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetColors( _inColors, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Color32[] _inColors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _length = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetColors( _inColors, _start, _length, _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetColors!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetUVs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2[] _uvs = (UnityEngine.Vector2[])translator.GetObject(L, 3, typeof(UnityEngine.Vector2[])); - - gen_to_be_invoked.SetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector3[] _uvs = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.SetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4[] _uvs = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - - gen_to_be_invoked.SetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2[] _uvs = (UnityEngine.Vector2[])translator.GetObject(L, 3, typeof(UnityEngine.Vector2[])); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector3[] _uvs = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[])); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4[] _uvs = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 6, out _flags); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 6, out _flags); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 6, out _flags); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector2[] _uvs = (UnityEngine.Vector2[])translator.GetObject(L, 3, typeof(UnityEngine.Vector2[])); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 6, out _flags); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector3[] _uvs = (UnityEngine.Vector3[])translator.GetObject(L, 3, typeof(UnityEngine.Vector3[])); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 6, out _flags); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length, _flags ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Vector4[] _uvs = (UnityEngine.Vector4[])translator.GetObject(L, 3, typeof(UnityEngine.Vector4[])); - int _start = LuaAPI.xlua_tointeger(L, 4); - int _length = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 6, out _flags); - - gen_to_be_invoked.SetUVs( _channel, _uvs, _start, _length, _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetUVs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetUVs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetUVs( _channel, _uvs ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _channel = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _uvs = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetUVs( _channel, _uvs ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.GetUVs!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttributes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetVertexAttributes( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.VertexAttributeDescriptor[] _attributes = (UnityEngine.Rendering.VertexAttributeDescriptor[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.VertexAttributeDescriptor[])); - - var gen_ret = gen_to_be_invoked.GetVertexAttributes( _attributes ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _attributes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetVertexAttributes( _attributes ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.GetVertexAttributes!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVertexBufferParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count >= 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) - { - int _vertexCount = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.VertexAttributeDescriptor[] _attributes = translator.GetParams(L, 3); - - gen_to_be_invoked.SetVertexBufferParams( _vertexCount, _attributes ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _vertexCount = LuaAPI.xlua_tointeger(L, 2); - Unity.Collections.NativeArray _attributes;translator.Get(L, 3, out _attributes); - - gen_to_be_invoked.SetVertexBufferParams( _vertexCount, _attributes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetVertexBufferParams!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AcquireReadOnlyMeshData_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 1, typeof(UnityEngine.Mesh)); - - var gen_ret = UnityEngine.Mesh.AcquireReadOnlyMeshData( _mesh ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Mesh[] _meshes = (UnityEngine.Mesh[])translator.GetObject(L, 1, typeof(UnityEngine.Mesh[])); - - var gen_ret = UnityEngine.Mesh.AcquireReadOnlyMeshData( _meshes ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Collections.Generic.List _meshes = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Mesh.AcquireReadOnlyMeshData( _meshes ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.AcquireReadOnlyMeshData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AllocateWritableMeshData_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _meshCount = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Mesh.AllocateWritableMeshData( _meshCount ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ApplyAndDisposeWritableMeshData_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh.MeshDataArray _data;translator.Get(L, 1, out _data); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 3, out _flags); - - UnityEngine.Mesh.ApplyAndDisposeWritableMeshData( _data, _mesh, _flags ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh.MeshDataArray _data;translator.Get(L, 1, out _data); - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - UnityEngine.Mesh.ApplyAndDisposeWritableMeshData( _data, _mesh ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh.MeshDataArray _data;translator.Get(L, 1, out _data); - UnityEngine.Mesh[] _meshes = (UnityEngine.Mesh[])translator.GetObject(L, 2, typeof(UnityEngine.Mesh[])); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 3, out _flags); - - UnityEngine.Mesh.ApplyAndDisposeWritableMeshData( _data, _meshes, _flags ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh.MeshDataArray _data;translator.Get(L, 1, out _data); - UnityEngine.Mesh[] _meshes = (UnityEngine.Mesh[])translator.GetObject(L, 2, typeof(UnityEngine.Mesh[])); - - UnityEngine.Mesh.ApplyAndDisposeWritableMeshData( _data, _meshes ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh.MeshDataArray _data;translator.Get(L, 1, out _data); - System.Collections.Generic.List _meshes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 3, out _flags); - - UnityEngine.Mesh.ApplyAndDisposeWritableMeshData( _data, _meshes, _flags ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable>(L, 2)) - { - UnityEngine.Mesh.MeshDataArray _data;translator.Get(L, 1, out _data); - System.Collections.Generic.List _meshes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Mesh.ApplyAndDisposeWritableMeshData( _data, _meshes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.ApplyAndDisposeWritableMeshData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetVertexBuffer( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIndexBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetIndexBuffer( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTriangles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTriangles( _submesh ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetTriangles( _submesh, _applyBaseVertex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetTriangles( _triangles, _submesh ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.GetTriangles( _triangles, _submesh, _applyBaseVertex ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.GetTriangles( _triangles, _submesh, _applyBaseVertex ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetTriangles( _triangles, _submesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.GetTriangles!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetIndices( _submesh ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.GetIndices( _submesh, _applyBaseVertex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetIndices( _indices, _submesh ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.GetIndices( _indices, _submesh, _applyBaseVertex ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _applyBaseVertex = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.GetIndices( _indices, _submesh, _applyBaseVertex ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetIndices( _indices, _submesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.GetIndices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIndexStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetIndexStart( _submesh ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIndexCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetIndexCount( _submesh ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBaseVertex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetBaseVertex( _submesh ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTriangles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int[] _triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - int[] _triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int[] _triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - int _baseVertex = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - ushort[] _triangles = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - int _baseVertex = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - ushort[] _triangles = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - ushort[] _triangles = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - int _baseVertex = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - int _baseVertex = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _submesh = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetTriangles( _triangles, _submesh ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - int[] _triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - int _baseVertex = LuaAPI.xlua_tointeger(L, 7); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int[] _triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int[] _triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - ushort[] _triangles = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - int _baseVertex = LuaAPI.xlua_tointeger(L, 7); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - ushort[] _triangles = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - ushort[] _triangles = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - int _baseVertex = LuaAPI.xlua_tointeger(L, 7); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - int _baseVertex = LuaAPI.xlua_tointeger(L, 7); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 6); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _triangles = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _trianglesStart = LuaAPI.xlua_tointeger(L, 3); - int _trianglesLength = LuaAPI.xlua_tointeger(L, 4); - int _submesh = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetTriangles( _triangles, _trianglesStart, _trianglesLength, _submesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetTriangles!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIndices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int[] _indices = (int[])translator.GetObject(L, 2, typeof(int[])); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - int[] _indices = (int[])translator.GetObject(L, 2, typeof(int[])); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int[] _indices = (int[])translator.GetObject(L, 2, typeof(int[])); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - int _baseVertex = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - ushort[] _indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - int _baseVertex = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - ushort[] _indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - ushort[] _indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - int _baseVertex = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - int _baseVertex = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.MeshTopology _topology;translator.Get(L, 3, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetIndices( _indices, _topology, _submesh ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - int[] _indices = (int[])translator.GetObject(L, 2, typeof(int[])); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - int _baseVertex = LuaAPI.xlua_tointeger(L, 8); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - int[] _indices = (int[])translator.GetObject(L, 2, typeof(int[])); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int[] _indices = (int[])translator.GetObject(L, 2, typeof(int[])); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - ushort[] _indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - int _baseVertex = LuaAPI.xlua_tointeger(L, 8); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - ushort[] _indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - ushort[] _indices = (ushort[])translator.GetObject(L, 2, typeof(ushort[])); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - int _baseVertex = LuaAPI.xlua_tointeger(L, 8); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh ); - - - - return 0; - } - if(gen_param_count == 8&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - int _baseVertex = LuaAPI.xlua_tointeger(L, 8); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds, _baseVertex ); - - - - return 0; - } - if(gen_param_count == 7&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - bool _calculateBounds = LuaAPI.lua_toboolean(L, 7); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh, _calculateBounds ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - System.Collections.Generic.List _indices = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _indicesStart = LuaAPI.xlua_tointeger(L, 3); - int _indicesLength = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.MeshTopology _topology;translator.Get(L, 5, out _topology); - int _submesh = LuaAPI.xlua_tointeger(L, 6); - - gen_to_be_invoked.SetIndices( _indices, _indicesStart, _indicesLength, _topology, _submesh ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetIndices!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSubMeshes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Rendering.SubMeshDescriptor[] _desc = (UnityEngine.Rendering.SubMeshDescriptor[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SubMeshDescriptor[])); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 3, out _flags); - - gen_to_be_invoked.SetSubMeshes( _desc, _flags ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.SubMeshDescriptor[] _desc = (UnityEngine.Rendering.SubMeshDescriptor[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SubMeshDescriptor[])); - - gen_to_be_invoked.SetSubMeshes( _desc ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& translator.Assignable(L, 3)) - { - System.Collections.Generic.List _desc = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 3, out _flags); - - gen_to_be_invoked.SetSubMeshes( _desc, _flags ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _desc = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetSubMeshes( _desc ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Rendering.SubMeshDescriptor[] _desc = (UnityEngine.Rendering.SubMeshDescriptor[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SubMeshDescriptor[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetSubMeshes( _desc, _start, _count, _flags ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Rendering.SubMeshDescriptor[] _desc = (UnityEngine.Rendering.SubMeshDescriptor[])translator.GetObject(L, 2, typeof(UnityEngine.Rendering.SubMeshDescriptor[])); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetSubMeshes( _desc, _start, _count ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - System.Collections.Generic.List _desc = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 5, out _flags); - - gen_to_be_invoked.SetSubMeshes( _desc, _start, _count, _flags ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - System.Collections.Generic.List _desc = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - int _start = LuaAPI.xlua_tointeger(L, 3); - int _count = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetSubMeshes( _desc, _start, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetSubMeshes!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBindposes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _bindposes = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetBindposes( _bindposes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBoneWeights(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _boneWeights = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetBoneWeights( _boneWeights ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _keepVertexLayout = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Clear( _keepVertexLayout ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.Clear!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.RecalculateBounds( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 2, out _flags); - - gen_to_be_invoked.RecalculateBounds( _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.RecalculateBounds!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateNormals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.RecalculateNormals( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 2, out _flags); - - gen_to_be_invoked.RecalculateNormals( _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.RecalculateNormals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateTangents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.RecalculateTangents( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 2, out _flags); - - gen_to_be_invoked.RecalculateTangents( _flags ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.RecalculateTangents!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateUVDistributionMetric(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _uvSetIndex = LuaAPI.xlua_tointeger(L, 2); - float _uvAreaThreshold = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.RecalculateUVDistributionMetric( _uvSetIndex, _uvAreaThreshold ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _uvSetIndex = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RecalculateUVDistributionMetric( _uvSetIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.RecalculateUVDistributionMetric!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateUVDistributionMetrics(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _uvAreaThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.RecalculateUVDistributionMetrics( _uvAreaThreshold ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.RecalculateUVDistributionMetrics( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.RecalculateUVDistributionMetrics!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MarkDynamic(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.MarkDynamic( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UploadMeshData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - bool _markNoLongerReadable = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.UploadMeshData( _markNoLongerReadable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Optimize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Optimize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptimizeIndexBuffers(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OptimizeIndexBuffers( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OptimizeReorderVertexBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OptimizeReorderVertexBuffer( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTopology(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _submesh = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTopology( _submesh ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CombineMeshes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.CombineInstance[] _combine = (UnityEngine.CombineInstance[])translator.GetObject(L, 2, typeof(UnityEngine.CombineInstance[])); - - gen_to_be_invoked.CombineMeshes( _combine ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.CombineInstance[] _combine = (UnityEngine.CombineInstance[])translator.GetObject(L, 2, typeof(UnityEngine.CombineInstance[])); - bool _mergeSubMeshes = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.CombineMeshes( _combine, _mergeSubMeshes ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.CombineInstance[] _combine = (UnityEngine.CombineInstance[])translator.GetObject(L, 2, typeof(UnityEngine.CombineInstance[])); - bool _mergeSubMeshes = LuaAPI.lua_toboolean(L, 3); - bool _useMatrices = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.CombineMeshes( _combine, _mergeSubMeshes, _useMatrices ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - UnityEngine.CombineInstance[] _combine = (UnityEngine.CombineInstance[])translator.GetObject(L, 2, typeof(UnityEngine.CombineInstance[])); - bool _mergeSubMeshes = LuaAPI.lua_toboolean(L, 3); - bool _useMatrices = LuaAPI.lua_toboolean(L, 4); - bool _hasLightmapData = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.CombineMeshes( _combine, _mergeSubMeshes, _useMatrices, _hasLightmapData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.CombineMeshes!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIndexBufferParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _indexCount = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.IndexFormat _format;translator.Get(L, 3, out _format); - - gen_to_be_invoked.SetIndexBufferParams( _indexCount, _format ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttribute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetVertexAttribute( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasVertexAttribute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.HasVertexAttribute( _attr ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttributeDimension(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.GetVertexAttributeDimension( _attr ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttributeFormat(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.GetVertexAttributeFormat( _attr ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttributeStream(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.GetVertexAttributeStream( _attr ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexAttributeOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rendering.VertexAttribute _attr;translator.Get(L, 2, out _attr); - - var gen_ret = gen_to_be_invoked.GetVertexAttributeOffset( _attr ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexBufferStride(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _stream = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetVertexBufferStride( _stream ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNativeVertexBufferPtr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetNativeVertexBufferPtr( _index ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNativeIndexBufferPtr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNativeIndexBufferPtr( ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearBlendShapes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearBlendShapes( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlendShapeName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _shapeIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetBlendShapeName( _shapeIndex ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlendShapeIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - string _blendShapeName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetBlendShapeIndex( _blendShapeName ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlendShapeFrameCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _shapeIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetBlendShapeFrameCount( _shapeIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlendShapeFrameWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _shapeIndex = LuaAPI.xlua_tointeger(L, 2); - int _frameIndex = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetBlendShapeFrameWeight( _shapeIndex, _frameIndex ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlendShapeFrameVertices(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _shapeIndex = LuaAPI.xlua_tointeger(L, 2); - int _frameIndex = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Vector3[] _deltaVertices = (UnityEngine.Vector3[])translator.GetObject(L, 4, typeof(UnityEngine.Vector3[])); - UnityEngine.Vector3[] _deltaNormals = (UnityEngine.Vector3[])translator.GetObject(L, 5, typeof(UnityEngine.Vector3[])); - UnityEngine.Vector3[] _deltaTangents = (UnityEngine.Vector3[])translator.GetObject(L, 6, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.GetBlendShapeFrameVertices( _shapeIndex, _frameIndex, _deltaVertices, _deltaNormals, _deltaTangents ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddBlendShapeFrame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - string _shapeName = LuaAPI.lua_tostring(L, 2); - float _frameWeight = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3[] _deltaVertices = (UnityEngine.Vector3[])translator.GetObject(L, 4, typeof(UnityEngine.Vector3[])); - UnityEngine.Vector3[] _deltaNormals = (UnityEngine.Vector3[])translator.GetObject(L, 5, typeof(UnityEngine.Vector3[])); - UnityEngine.Vector3[] _deltaTangents = (UnityEngine.Vector3[])translator.GetObject(L, 6, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.AddBlendShapeFrame( _shapeName, _frameWeight, _deltaVertices, _deltaNormals, _deltaTangents ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBoneWeights(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - Unity.Collections.NativeArray _bonesPerVertex;translator.Get(L, 2, out _bonesPerVertex); - Unity.Collections.NativeArray _weights;translator.Get(L, 3, out _weights); - - gen_to_be_invoked.SetBoneWeights( _bonesPerVertex, _weights ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAllBoneWeights(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetAllBoneWeights( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBonesPerVertex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetBonesPerVertex( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSubMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.SubMeshDescriptor _desc;translator.Get(L, 3, out _desc); - UnityEngine.Rendering.MeshUpdateFlags _flags;translator.Get(L, 4, out _flags); - - gen_to_be_invoked.SetSubMesh( _index, _desc, _flags ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.SubMeshDescriptor _desc;translator.Get(L, 3, out _desc); - - gen_to_be_invoked.SetSubMesh( _index, _desc ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Mesh.SetSubMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSubMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSubMesh( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MarkModified(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.MarkModified( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetUVDistributionMetric(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - - - - { - int _uvSetIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetUVDistributionMetric( _uvSetIndex ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.normals); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.tangents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv3); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv4(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv4); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv5(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv5); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv6(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv6); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv7(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv7); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv8(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv8); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colors32(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colors32); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexAttributeCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexAttributeCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_triangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.triangles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boneWeights(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.boneWeights); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_indexFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.indexFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexBufferCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexBufferCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexBufferTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vertexBufferTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_indexBufferTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.indexBufferTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blendShapeCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.blendShapeCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bindposes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bindposes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isReadable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.vertexCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subMeshCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.subMeshCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vertices = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normals(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normals = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tangents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.tangents = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv2 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv3 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv4(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv4 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv5(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv5 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv6(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv6 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv7(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv7 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uv8(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.uv8 = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colors32(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.colors32 = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_triangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.triangles = (int[])translator.GetObject(L, 2, typeof(int[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boneWeights(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.boneWeights = (UnityEngine.BoneWeight[])translator.GetObject(L, 2, typeof(UnityEngine.BoneWeight[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_indexFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.IndexFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.indexFormat = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexBufferTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - UnityEngine.GraphicsBuffer.Target gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vertexBufferTarget = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_indexBufferTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - UnityEngine.GraphicsBuffer.Target gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.indexBufferTarget = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bindposes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bindposes = (UnityEngine.Matrix4x4[])translator.GetObject(L, 2, typeof(UnityEngine.Matrix4x4[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_subMeshCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.subMeshCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Mesh gen_to_be_invoked = (UnityEngine.Mesh)translator.FastGetCSObj(L, 1); - UnityEngine.Bounds gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bounds = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MonoBehaviourWrap.cs b/Assets/XLua/Gen/UnityEngine_MonoBehaviourWrap.cs deleted file mode 100644 index e997a7ef4..000000000 --- a/Assets/XLua/Gen/UnityEngine_MonoBehaviourWrap.cs +++ /dev/null @@ -1,427 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMonoBehaviourWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.MonoBehaviour); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInvoking", _m_IsInvoking); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CancelInvoke", _m_CancelInvoke); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InvokeRepeating", _m_InvokeRepeating); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartCoroutine", _m_StartCoroutine); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopCoroutine", _m_StopCoroutine); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopAllCoroutines", _m_StopAllCoroutines); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useGUILayout", _g_get_useGUILayout); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useGUILayout", _s_set_useGUILayout); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "print", _m_print_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.MonoBehaviour(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MonoBehaviour constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsInvoking(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.IsInvoking( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.IsInvoking( _methodName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MonoBehaviour.IsInvoking!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CancelInvoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.CancelInvoke( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.CancelInvoke( _methodName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MonoBehaviour.CancelInvoke!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Invoke(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - - - - { - string _methodName = LuaAPI.lua_tostring(L, 2); - float _time = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Invoke( _methodName, _time ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InvokeRepeating(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - - - - { - string _methodName = LuaAPI.lua_tostring(L, 2); - float _time = (float)LuaAPI.lua_tonumber(L, 3); - float _repeatRate = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.InvokeRepeating( _methodName, _time, _repeatRate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StartCoroutine(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.StartCoroutine( _methodName ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Collections.IEnumerator _routine = (System.Collections.IEnumerator)translator.GetObject(L, 2, typeof(System.Collections.IEnumerator)); - - var gen_ret = gen_to_be_invoked.StartCoroutine( _routine ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - object _value = translator.GetObject(L, 3, typeof(object)); - - var gen_ret = gen_to_be_invoked.StartCoroutine( _methodName, _value ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MonoBehaviour.StartCoroutine!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopCoroutine(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - System.Collections.IEnumerator _routine = (System.Collections.IEnumerator)translator.GetObject(L, 2, typeof(System.Collections.IEnumerator)); - - gen_to_be_invoked.StopCoroutine( _routine ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Coroutine _routine = (UnityEngine.Coroutine)translator.GetObject(L, 2, typeof(UnityEngine.Coroutine)); - - gen_to_be_invoked.StopCoroutine( _routine ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _methodName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.StopCoroutine( _methodName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MonoBehaviour.StopCoroutine!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopAllCoroutines(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopAllCoroutines( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_print_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - object _message = translator.GetObject(L, 1, typeof(object)); - - UnityEngine.MonoBehaviour.print( _message ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useGUILayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useGUILayout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useGUILayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useGUILayout = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_MotionWrap.cs b/Assets/XLua/Gen/UnityEngine_MotionWrap.cs deleted file mode 100644 index 238ff41e1..000000000 --- a/Assets/XLua/Gen/UnityEngine_MotionWrap.cs +++ /dev/null @@ -1,172 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineMotionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Motion); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "averageDuration", _g_get_averageDuration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "averageAngularSpeed", _g_get_averageAngularSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "averageSpeed", _g_get_averageSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "apparentSpeed", _g_get_apparentSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isLooping", _g_get_isLooping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "legacy", _g_get_legacy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isHumanMotion", _g_get_isHumanMotion); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Motion does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_averageDuration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Motion gen_to_be_invoked = (UnityEngine.Motion)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.averageDuration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_averageAngularSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Motion gen_to_be_invoked = (UnityEngine.Motion)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.averageAngularSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_averageSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Motion gen_to_be_invoked = (UnityEngine.Motion)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.averageSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_apparentSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Motion gen_to_be_invoked = (UnityEngine.Motion)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.apparentSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isLooping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Motion gen_to_be_invoked = (UnityEngine.Motion)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isLooping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_legacy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Motion gen_to_be_invoked = (UnityEngine.Motion)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.legacy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isHumanMotion(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Motion gen_to_be_invoked = (UnityEngine.Motion)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isHumanMotion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ObjectWrap.cs b/Assets/XLua/Gen/UnityEngine_ObjectWrap.cs deleted file mode 100644 index 225b1017a..000000000 --- a/Assets/XLua/Gen/UnityEngine_ObjectWrap.cs +++ /dev/null @@ -1,771 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineObjectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Object); - Utils.BeginObjectRegister(type, L, translator, 1, 4, 2, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInstanceID", _m_GetInstanceID); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hideFlags", _g_get_hideFlags); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hideFlags", _s_set_hideFlags); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 10, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Instantiate", _m_Instantiate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Destroy", _m_Destroy_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DestroyImmediate", _m_DestroyImmediate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindObjectsOfType", _m_FindObjectsOfType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindObjectsByType", _m_FindObjectsByType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DontDestroyOnLoad", _m_DontDestroyOnLoad_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindObjectOfType", _m_FindObjectOfType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindFirstObjectByType", _m_FindFirstObjectByType_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindAnyObjectByType", _m_FindAnyObjectByType_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Object(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Object leftside = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Object rightside = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Object!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInstanceID(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetInstanceID( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - - - - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Instantiate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - var gen_ret = UnityEngine.Object.Instantiate( _original ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - var gen_ret = UnityEngine.Object.Instantiate( _original ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _parent ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _parent ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - bool _instantiateInWorldSpace = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _parent, _instantiateInWorldSpace ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - bool _worldPositionStays = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _parent, _worldPositionStays ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _position, _rotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _position, _rotation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _position, _rotation, _parent ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Object _original = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.Object.Instantiate( _original, _position, _rotation, _parent ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.Instantiate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Destroy_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - UnityEngine.Object.Destroy( _obj ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - float _t = (float)LuaAPI.lua_tonumber(L, 2); - - UnityEngine.Object.Destroy( _obj, _t ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.Destroy!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DestroyImmediate_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - UnityEngine.Object.DestroyImmediate( _obj ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Object _obj = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - bool _allowDestroyingAssets = LuaAPI.lua_toboolean(L, 2); - - UnityEngine.Object.DestroyImmediate( _obj, _allowDestroyingAssets ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.DestroyImmediate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindObjectsOfType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = UnityEngine.Object.FindObjectsOfType( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = UnityEngine.Object.FindObjectsOfType( _type, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.FindObjectsOfType!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindObjectsByType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - UnityEngine.FindObjectsSortMode _sortMode;translator.Get(L, 2, out _sortMode); - - var gen_ret = UnityEngine.Object.FindObjectsByType( _type, _sortMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - UnityEngine.FindObjectsInactive _findObjectsInactive;translator.Get(L, 2, out _findObjectsInactive); - UnityEngine.FindObjectsSortMode _sortMode;translator.Get(L, 3, out _sortMode); - - var gen_ret = UnityEngine.Object.FindObjectsByType( _type, _findObjectsInactive, _sortMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.FindObjectsByType!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DontDestroyOnLoad_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Object _target = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - UnityEngine.Object.DontDestroyOnLoad( _target ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindObjectOfType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = UnityEngine.Object.FindObjectOfType( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - bool _includeInactive = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = UnityEngine.Object.FindObjectOfType( _type, _includeInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.FindObjectOfType!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindFirstObjectByType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = UnityEngine.Object.FindFirstObjectByType( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - UnityEngine.FindObjectsInactive _findObjectsInactive;translator.Get(L, 2, out _findObjectsInactive); - - var gen_ret = UnityEngine.Object.FindFirstObjectByType( _type, _findObjectsInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.FindFirstObjectByType!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindAnyObjectByType_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = UnityEngine.Object.FindAnyObjectByType( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - UnityEngine.FindObjectsInactive _findObjectsInactive;translator.Get(L, 2, out _findObjectsInactive); - - var gen_ret = UnityEngine.Object.FindAnyObjectByType( _type, _findObjectsInactive ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Object.FindAnyObjectByType!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hideFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.hideFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hideFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Object gen_to_be_invoked = (UnityEngine.Object)translator.FastGetCSObj(L, 1); - UnityEngine.HideFlags gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.hideFlags = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystemRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystemRendererWrap.cs deleted file mode 100644 index a5c461034..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystemRendererWrap.cs +++ /dev/null @@ -1,1112 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystemRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 23, 21); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMeshes", _m_GetMeshes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshes", _m_SetMeshes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMeshWeightings", _m_GetMeshWeightings); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshWeightings", _m_SetMeshWeightings); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BakeMesh", _m_BakeMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BakeTrailsMesh", _m_BakeTrailsMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActiveVertexStreams", _m_SetActiveVertexStreams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetActiveVertexStreams", _m_GetActiveVertexStreams); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderMode", _g_get_renderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshDistribution", _g_get_meshDistribution); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortMode", _g_get_sortMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lengthScale", _g_get_lengthScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocityScale", _g_get_velocityScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cameraVelocityScale", _g_get_cameraVelocityScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalDirection", _g_get_normalDirection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowBias", _g_get_shadowBias); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingFudge", _g_get_sortingFudge); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minParticleSize", _g_get_minParticleSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxParticleSize", _g_get_maxParticleSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flip", _g_get_flip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskInteraction", _g_get_maskInteraction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "trailMaterial", _g_get_trailMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableGPUInstancing", _g_get_enableGPUInstancing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowRoll", _g_get_allowRoll); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "freeformStretching", _g_get_freeformStretching); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotateWithStretchDirection", _g_get_rotateWithStretchDirection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshCount", _g_get_meshCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "activeVertexStreamsCount", _g_get_activeVertexStreamsCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderMode", _s_set_renderMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshDistribution", _s_set_meshDistribution); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortMode", _s_set_sortMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lengthScale", _s_set_lengthScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocityScale", _s_set_velocityScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cameraVelocityScale", _s_set_cameraVelocityScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalDirection", _s_set_normalDirection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowBias", _s_set_shadowBias); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingFudge", _s_set_sortingFudge); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minParticleSize", _s_set_minParticleSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxParticleSize", _s_set_maxParticleSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pivot", _s_set_pivot); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flip", _s_set_flip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskInteraction", _s_set_maskInteraction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "trailMaterial", _s_set_trailMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableGPUInstancing", _s_set_enableGPUInstancing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowRoll", _s_set_allowRoll); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "freeformStretching", _s_set_freeformStretching); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotateWithStretchDirection", _s_set_rotateWithStretchDirection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ParticleSystemRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystemRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMeshes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Mesh[] _meshes = (UnityEngine.Mesh[])translator.GetObject(L, 2, typeof(UnityEngine.Mesh[])); - - var gen_ret = gen_to_be_invoked.GetMeshes( _meshes ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh[] _meshes = (UnityEngine.Mesh[])translator.GetObject(L, 2, typeof(UnityEngine.Mesh[])); - - gen_to_be_invoked.SetMeshes( _meshes ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh[] _meshes = (UnityEngine.Mesh[])translator.GetObject(L, 2, typeof(UnityEngine.Mesh[])); - int _size = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetMeshes( _meshes, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystemRenderer.SetMeshes!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMeshWeightings(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - - { - float[] _weightings = (float[])translator.GetObject(L, 2, typeof(float[])); - - var gen_ret = gen_to_be_invoked.GetMeshWeightings( _weightings ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshWeightings(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - float[] _weightings = (float[])translator.GetObject(L, 2, typeof(float[])); - - gen_to_be_invoked.SetMeshWeightings( _weightings ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float[] _weightings = (float[])translator.GetObject(L, 2, typeof(float[])); - int _size = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetMeshWeightings( _weightings, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystemRenderer.SetMeshWeightings!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BakeMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - bool _useTransform = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.BakeMesh( _mesh, _useTransform ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.BakeMesh( _mesh ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - bool _useTransform = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.BakeMesh( _mesh, _camera, _useTransform ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.BakeMesh( _mesh, _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystemRenderer.BakeMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BakeTrailsMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - bool _useTransform = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.BakeTrailsMesh( _mesh, _useTransform ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.BakeTrailsMesh( _mesh ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - bool _useTransform = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.BakeTrailsMesh( _mesh, _camera, _useTransform ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - gen_to_be_invoked.BakeTrailsMesh( _mesh, _camera ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystemRenderer.BakeTrailsMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetActiveVertexStreams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _streams = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.SetActiveVertexStreams( _streams ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetActiveVertexStreams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _streams = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetActiveVertexStreams( _streams ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshDistribution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.meshDistribution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sortMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lengthScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lengthScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.velocityScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cameraVelocityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.cameraVelocityScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalDirection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingFudge(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sortingFudge); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minParticleSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxParticleSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.pivot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.flip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.maskInteraction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_trailMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.trailMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableGPUInstancing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableGPUInstancing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowRoll(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowRoll); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_freeformStretching(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.freeformStretching); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotateWithStretchDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.rotateWithStretchDirection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.meshCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_activeVertexStreamsCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.activeVertexStreamsCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystemRenderSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystemRenderMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.renderMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshDistribution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystemMeshDistribution gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.meshDistribution = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.ParticleSystemSortMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sortMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lengthScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lengthScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.velocityScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cameraVelocityScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cameraVelocityScale = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalDirection = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowBias = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingFudge(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingFudge = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minParticleSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxParticleSize = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pivot = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.flip = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteMaskInteraction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maskInteraction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_trailMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.trailMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableGPUInstancing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableGPUInstancing = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowRoll(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowRoll = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_freeformStretching(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.freeformStretching = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotateWithStretchDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rotateWithStretchDirection = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystemRenderer gen_to_be_invoked = (UnityEngine.ParticleSystemRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystemWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystemWrap.cs deleted file mode 100644 index caeb29360..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystemWrap.cs +++ /dev/null @@ -1,1520 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 32, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetParticles", _m_SetParticles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetParticles", _m_GetParticles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCustomParticleData", _m_SetCustomParticleData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCustomParticleData", _m_GetCustomParticleData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPlaybackState", _m_GetPlaybackState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPlaybackState", _m_SetPlaybackState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTrails", _m_GetTrails); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTrails", _m_SetTrails); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Simulate", _m_Simulate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAlive", _m_IsAlive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Emit", _m_Emit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TriggerSubEmitter", _m_TriggerSubEmitter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AllocateAxisOfRotationAttribute", _m_AllocateAxisOfRotationAttribute); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AllocateMeshIndexAttribute", _m_AllocateMeshIndexAttribute); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AllocateCustomDataAttribute", _m_AllocateCustomDataAttribute); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlaying", _g_get_isPlaying); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isEmitting", _g_get_isEmitting); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isStopped", _g_get_isStopped); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPaused", _g_get_isPaused); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "particleCount", _g_get_particleCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomSeed", _g_get_randomSeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useAutoRandomSeed", _g_get_useAutoRandomSeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "proceduralSimulationSupported", _g_get_proceduralSimulationSupported); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "main", _g_get_main); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "emission", _g_get_emission); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shape", _g_get_shape); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocityOverLifetime", _g_get_velocityOverLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitVelocityOverLifetime", _g_get_limitVelocityOverLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inheritVelocity", _g_get_inheritVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeByEmitterSpeed", _g_get_lifetimeByEmitterSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceOverLifetime", _g_get_forceOverLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorOverLifetime", _g_get_colorOverLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorBySpeed", _g_get_colorBySpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeOverLifetime", _g_get_sizeOverLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeBySpeed", _g_get_sizeBySpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationOverLifetime", _g_get_rotationOverLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationBySpeed", _g_get_rotationBySpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "externalForces", _g_get_externalForces); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "noise", _g_get_noise); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collision", _g_get_collision); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "trigger", _g_get_trigger); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subEmitters", _g_get_subEmitters); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureSheetAnimation", _g_get_textureSheetAnimation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lights", _g_get_lights); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "trails", _g_get_trails); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "customData", _g_get_customData); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomSeed", _s_set_randomSeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useAutoRandomSeed", _s_set_useAutoRandomSeed); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ResetPreMappedBufferMemory", _m_ResetPreMappedBufferMemory_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetMaximumPreMappedBufferCounts", _m_SetMaximumPreMappedBufferCounts_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ParticleSystem(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetParticles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[])); - - gen_to_be_invoked.SetParticles( _particles ); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _particles;translator.Get(L, 2, out _particles); - - gen_to_be_invoked.SetParticles( _particles ); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[])); - int _size = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetParticles( _particles, _size ); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _particles;translator.Get(L, 2, out _particles); - int _size = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetParticles( _particles, _size ); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[])); - int _size = LuaAPI.xlua_tointeger(L, 3); - int _offset = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetParticles( _particles, _size, _offset ); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - Unity.Collections.NativeArray _particles;translator.Get(L, 2, out _particles); - int _size = LuaAPI.xlua_tointeger(L, 3); - int _offset = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.SetParticles( _particles, _size, _offset ); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.SetParticles!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetParticles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[])); - - var gen_ret = gen_to_be_invoked.GetParticles( _particles ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - Unity.Collections.NativeArray _particles;translator.Get(L, 2, out _particles); - - var gen_ret = gen_to_be_invoked.GetParticles( _particles ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[])); - int _size = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetParticles( _particles, _size ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - Unity.Collections.NativeArray _particles;translator.Get(L, 2, out _particles); - int _size = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetParticles( _particles, _size ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[])); - int _size = LuaAPI.xlua_tointeger(L, 3); - int _offset = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetParticles( _particles, _size, _offset ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - Unity.Collections.NativeArray _particles;translator.Get(L, 2, out _particles); - int _size = LuaAPI.xlua_tointeger(L, 3); - int _offset = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetParticles( _particles, _size, _offset ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.GetParticles!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCustomParticleData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _customData = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.ParticleSystemCustomData _streamIndex;translator.Get(L, 3, out _streamIndex); - - gen_to_be_invoked.SetCustomParticleData( _customData, _streamIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCustomParticleData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _customData = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - UnityEngine.ParticleSystemCustomData _streamIndex;translator.Get(L, 3, out _streamIndex); - - var gen_ret = gen_to_be_invoked.GetCustomParticleData( _customData, _streamIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPlaybackState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPlaybackState( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPlaybackState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.ParticleSystem.PlaybackState _playbackState;translator.Get(L, 2, out _playbackState); - - gen_to_be_invoked.SetPlaybackState( _playbackState ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTrails(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetTrails( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ParticleSystem.Trails _trailData;translator.Get(L, 2, out _trailData); - - var gen_ret = gen_to_be_invoked.GetTrails( ref _trailData ); - LuaAPI.xlua_pushinteger(L, gen_ret); - translator.Push(L, _trailData); - translator.Update(L, 2, _trailData); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.GetTrails!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTrails(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.ParticleSystem.Trails _trailData;translator.Get(L, 2, out _trailData); - - gen_to_be_invoked.SetTrails( _trailData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Simulate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _t = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.Simulate( _t ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - float _t = (float)LuaAPI.lua_tonumber(L, 2); - bool _withChildren = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Simulate( _t, _withChildren ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _t = (float)LuaAPI.lua_tonumber(L, 2); - bool _withChildren = LuaAPI.lua_toboolean(L, 3); - bool _restart = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.Simulate( _t, _withChildren, _restart ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - float _t = (float)LuaAPI.lua_tonumber(L, 2); - bool _withChildren = LuaAPI.lua_toboolean(L, 3); - bool _restart = LuaAPI.lua_toboolean(L, 4); - bool _fixedTimeStep = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.Simulate( _t, _withChildren, _restart, _fixedTimeStep ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Simulate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withChildren = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Play( _withChildren ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Play!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withChildren = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Pause( _withChildren ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Pause!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withChildren = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Stop( _withChildren ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - bool _withChildren = LuaAPI.lua_toboolean(L, 2); - UnityEngine.ParticleSystemStopBehavior _stopBehavior;translator.Get(L, 3, out _stopBehavior); - - gen_to_be_invoked.Stop( _withChildren, _stopBehavior ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Stop!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withChildren = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Clear( _withChildren ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Clear!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsAlive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.IsAlive( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _withChildren = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = gen_to_be_invoked.IsAlive( _withChildren ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.IsAlive!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Emit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _count = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.Emit( _count ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.ParticleSystem.EmitParams _emitParams;translator.Get(L, 2, out _emitParams); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.Emit( _emitParams, _count ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Emit!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TriggerSubEmitter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.TriggerSubEmitter( _subEmitterIndex ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ParticleSystem.Particle _particle;translator.Get(L, 3, out _particle); - - gen_to_be_invoked.TriggerSubEmitter( _subEmitterIndex, ref _particle ); - translator.Push(L, _particle); - translator.Update(L, 3, _particle); - - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)) - { - int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _particles = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.TriggerSubEmitter( _subEmitterIndex, _particles ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TriggerSubEmitter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetPreMappedBufferMemory_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.ParticleSystem.ResetPreMappedBufferMemory( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaximumPreMappedBufferCounts_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _vertexBuffersCount = LuaAPI.xlua_tointeger(L, 1); - int _indexBuffersCount = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.ParticleSystem.SetMaximumPreMappedBufferCounts( _vertexBuffersCount, _indexBuffersCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AllocateAxisOfRotationAttribute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AllocateAxisOfRotationAttribute( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AllocateMeshIndexAttribute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.AllocateMeshIndexAttribute( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AllocateCustomDataAttribute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - - gen_to_be_invoked.AllocateCustomDataAttribute( _stream ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPlaying(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPlaying); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isEmitting(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isEmitting); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isStopped(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isStopped); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPaused(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPaused); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_particleCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.particleCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.randomSeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useAutoRandomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useAutoRandomSeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_proceduralSimulationSupported(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.proceduralSimulationSupported); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_main(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.main); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_emission(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.emission); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shape(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.shape); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocityOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.velocityOverLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitVelocityOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.limitVelocityOverLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inheritVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.inheritVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifetimeByEmitterSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lifetimeByEmitterSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.forceOverLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorOverLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorBySpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorBySpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sizeOverLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeBySpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sizeBySpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rotationOverLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationBySpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rotationBySpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_externalForces(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.externalForces); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_noise(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.noise); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collision(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collision); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_trigger(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.trigger); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subEmitters(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.subEmitters); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureSheetAnimation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textureSheetAnimation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lights(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lights); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_trails(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.trails); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.customData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.randomSeed = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useAutoRandomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useAutoRandomSeed = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_BurstWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_BurstWrap.cs deleted file mode 100644 index f20bef771..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_BurstWrap.cs +++ /dev/null @@ -1,370 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemBurstWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.Burst); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "count", _g_get_count); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minCount", _g_get_minCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxCount", _g_get_maxCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cycleCount", _g_get_cycleCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "repeatInterval", _g_get_repeatInterval); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "probability", _g_get_probability); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "count", _s_set_count); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minCount", _s_set_minCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxCount", _s_set_maxCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cycleCount", _s_set_cycleCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "repeatInterval", _s_set_repeatInterval); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "probability", _s_set_probability); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float __time = (float)LuaAPI.lua_tonumber(L, 2); - short __count = (short)LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.ParticleSystem.Burst(__time, __count); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float __time = (float)LuaAPI.lua_tonumber(L, 2); - short __minCount = (short)LuaAPI.xlua_tointeger(L, 3); - short __maxCount = (short)LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.ParticleSystem.Burst(__time, __minCount, __maxCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - float __time = (float)LuaAPI.lua_tonumber(L, 2); - short __minCount = (short)LuaAPI.xlua_tointeger(L, 3); - short __maxCount = (short)LuaAPI.xlua_tointeger(L, 4); - int __cycleCount = LuaAPI.xlua_tointeger(L, 5); - float __repeatInterval = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = new UnityEngine.ParticleSystem.Burst(__time, __minCount, __maxCount, __cycleCount, __repeatInterval); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - float __time = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.ParticleSystem.MinMaxCurve __count;translator.Get(L, 3, out __count); - - var gen_ret = new UnityEngine.ParticleSystem.Burst(__time, __count); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float __time = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.ParticleSystem.MinMaxCurve __count;translator.Get(L, 3, out __count); - int __cycleCount = LuaAPI.xlua_tointeger(L, 4); - float __repeatInterval = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new UnityEngine.ParticleSystem.Burst(__time, __count, __cycleCount, __repeatInterval); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.Burst)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Burst constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cycleCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cycleCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_repeatInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.repeatInterval); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_probability(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.probability); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.time = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.count = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.minCount = (short)LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxCount = (short)LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cycleCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.cycleCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_repeatInterval(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.repeatInterval = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_probability(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Burst gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.probability = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_CollisionModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_CollisionModuleWrap.cs deleted file mode 100644 index 134bda984..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_CollisionModuleWrap.cs +++ /dev/null @@ -1,972 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemCollisionModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.CollisionModule); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 23, 22); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddPlane", _m_AddPlane); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemovePlane", _m_RemovePlane); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPlane", _m_SetPlane); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPlane", _m_GetPlane); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampen", _g_get_dampen); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampenMultiplier", _g_get_dampenMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounce", _g_get_bounce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounceMultiplier", _g_get_bounceMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeLoss", _g_get_lifetimeLoss); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeLossMultiplier", _g_get_lifetimeLossMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minKillSpeed", _g_get_minKillSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxKillSpeed", _g_get_maxKillSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collidesWith", _g_get_collidesWith); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableDynamicColliders", _g_get_enableDynamicColliders); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxCollisionShapes", _g_get_maxCollisionShapes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "quality", _g_get_quality); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "voxelSize", _g_get_voxelSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusScale", _g_get_radiusScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sendCollisionMessages", _g_get_sendCollisionMessages); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderForce", _g_get_colliderForce); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyColliderForceByCollisionAngle", _g_get_multiplyColliderForceByCollisionAngle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyColliderForceByParticleSpeed", _g_get_multiplyColliderForceByParticleSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyColliderForceByParticleSize", _g_get_multiplyColliderForceByParticleSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "planeCount", _g_get_planeCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampen", _s_set_dampen); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampenMultiplier", _s_set_dampenMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounce", _s_set_bounce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounceMultiplier", _s_set_bounceMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lifetimeLoss", _s_set_lifetimeLoss); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lifetimeLossMultiplier", _s_set_lifetimeLossMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minKillSpeed", _s_set_minKillSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxKillSpeed", _s_set_maxKillSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collidesWith", _s_set_collidesWith); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableDynamicColliders", _s_set_enableDynamicColliders); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxCollisionShapes", _s_set_maxCollisionShapes); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "quality", _s_set_quality); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "voxelSize", _s_set_voxelSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusScale", _s_set_radiusScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sendCollisionMessages", _s_set_sendCollisionMessages); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colliderForce", _s_set_colliderForce); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyColliderForceByCollisionAngle", _s_set_multiplyColliderForceByCollisionAngle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyColliderForceByParticleSpeed", _s_set_multiplyColliderForceByParticleSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyColliderForceByParticleSize", _s_set_multiplyColliderForceByParticleSize); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.CollisionModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.CollisionModule constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddPlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.AddPlane( _transform ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemovePlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemovePlane( _index ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.RemovePlane( _transform ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.CollisionModule.RemovePlane!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.SetPlane( _index, _transform ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPlane(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPlane( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dampen(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.dampen); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dampenMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dampenMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.bounce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounceMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounceMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifetimeLoss(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.lifetimeLoss); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifetimeLossMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lifetimeLossMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minKillSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minKillSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxKillSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxKillSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collidesWith(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.collidesWith); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableDynamicColliders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableDynamicColliders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxCollisionShapes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxCollisionShapes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_quality(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.quality); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_voxelSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.voxelSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sendCollisionMessages(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sendCollisionMessages); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.colliderForce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyColliderForceByCollisionAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyColliderForceByCollisionAngle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyColliderForceByParticleSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyColliderForceByParticleSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyColliderForceByParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyColliderForceByParticleSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_planeCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.planeCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemCollisionType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.type = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemCollisionMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dampen(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.dampen = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dampenMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dampenMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bounce = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounceMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bounceMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lifetimeLoss(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lifetimeLoss = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lifetimeLossMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lifetimeLossMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minKillSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.minKillSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxKillSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxKillSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collidesWith(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.LayerMask gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.collidesWith = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableDynamicColliders(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enableDynamicColliders = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxCollisionShapes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxCollisionShapes = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_quality(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemCollisionQuality gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.quality = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_voxelSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.voxelSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radiusScale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sendCollisionMessages(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sendCollisionMessages = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colliderForce(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.colliderForce = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyColliderForceByCollisionAngle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.multiplyColliderForceByCollisionAngle = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyColliderForceByParticleSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.multiplyColliderForceByParticleSpeed = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyColliderForceByParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.multiplyColliderForceByParticleSize = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorBySpeedModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorBySpeedModuleWrap.cs deleted file mode 100644 index 0c2e648a4..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorBySpeedModuleWrap.cs +++ /dev/null @@ -1,183 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemColorBySpeedModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.ColorBySpeedModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "range", _g_get_range); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "range", _s_set_range); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.ColorBySpeedModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.ColorBySpeedModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.range); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxGradient gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.range = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorOverLifetimeModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorOverLifetimeModuleWrap.cs deleted file mode 100644 index a275510fb..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ColorOverLifetimeModuleWrap.cs +++ /dev/null @@ -1,149 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemColorOverLifetimeModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.ColorOverLifetimeModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.ColorOverLifetimeModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.ColorOverLifetimeModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ColorOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxGradient gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_CustomDataModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_CustomDataModuleWrap.cs deleted file mode 100644 index 82ab935df..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_CustomDataModuleWrap.cs +++ /dev/null @@ -1,373 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemCustomDataModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.CustomDataModule); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMode", _m_SetMode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMode", _m_GetMode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVectorComponentCount", _m_SetVectorComponentCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVectorComponentCount", _m_GetVectorComponentCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVector", _m_SetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVector", _m_GetVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetColor", _m_SetColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColor", _m_GetColor); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.CustomDataModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.CustomDataModule constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - UnityEngine.ParticleSystemCustomDataMode _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.SetMode( _stream, _mode ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - - var gen_ret = gen_to_be_invoked.GetMode( _stream ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVectorComponentCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - int _count = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetVectorComponentCount( _stream, _count ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVectorComponentCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - - var gen_ret = gen_to_be_invoked.GetVectorComponentCount( _stream ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - int _component = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.ParticleSystem.MinMaxCurve _curve;translator.Get(L, 4, out _curve); - - gen_to_be_invoked.SetVector( _stream, _component, _curve ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - int _component = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetVector( _stream, _component ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - UnityEngine.ParticleSystem.MinMaxGradient _gradient;translator.Get(L, 3, out _gradient); - - gen_to_be_invoked.SetColor( _stream, _gradient ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemCustomData _stream;translator.Get(L, 2, out _stream); - - var gen_ret = gen_to_be_invoked.GetColor( _stream ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.CustomDataModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_EmissionModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_EmissionModuleWrap.cs deleted file mode 100644 index d59c5313f..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_EmissionModuleWrap.cs +++ /dev/null @@ -1,426 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemEmissionModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.EmissionModule); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBursts", _m_SetBursts); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBursts", _m_GetBursts); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBurst", _m_SetBurst); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBurst", _m_GetBurst); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rateOverTime", _g_get_rateOverTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rateOverTimeMultiplier", _g_get_rateOverTimeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rateOverDistance", _g_get_rateOverDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rateOverDistanceMultiplier", _g_get_rateOverDistanceMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "burstCount", _g_get_burstCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rateOverTime", _s_set_rateOverTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rateOverTimeMultiplier", _s_set_rateOverTimeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rateOverDistance", _s_set_rateOverDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rateOverDistanceMultiplier", _s_set_rateOverDistanceMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "burstCount", _s_set_burstCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.EmissionModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.EmissionModule constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBursts(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ParticleSystem.Burst[] _bursts = (UnityEngine.ParticleSystem.Burst[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Burst[])); - - gen_to_be_invoked.SetBursts( _bursts ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.ParticleSystem.Burst[] _bursts = (UnityEngine.ParticleSystem.Burst[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Burst[])); - int _size = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetBursts( _bursts, _size ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.EmissionModule.SetBursts!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBursts(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystem.Burst[] _bursts = (UnityEngine.ParticleSystem.Burst[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Burst[])); - - var gen_ret = gen_to_be_invoked.GetBursts( _bursts ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBurst(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ParticleSystem.Burst _burst;translator.Get(L, 3, out _burst); - - gen_to_be_invoked.SetBurst( _index, _burst ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBurst(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetBurst( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rateOverTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.rateOverTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rateOverTimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rateOverTimeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rateOverDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.rateOverDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rateOverDistanceMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rateOverDistanceMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_burstCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.burstCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rateOverTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rateOverTime = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rateOverTimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rateOverTimeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rateOverDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rateOverDistance = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rateOverDistanceMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rateOverDistanceMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_burstCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmissionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.burstCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_EmitParamsWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_EmitParamsWrap.cs deleted file mode 100644 index c30afd47a..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_EmitParamsWrap.cs +++ /dev/null @@ -1,870 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemEmitParamsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.EmitParams); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 14, 15); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetPosition", _m_ResetPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetVelocity", _m_ResetVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAxisOfRotation", _m_ResetAxisOfRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetRotation", _m_ResetRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetAngularVelocity", _m_ResetAngularVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetStartSize", _m_ResetStartSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetStartColor", _m_ResetStartColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetRandomSeed", _m_ResetRandomSeed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetStartLifetime", _m_ResetStartLifetime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetMeshIndex", _m_ResetMeshIndex); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "particle", _g_get_particle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "applyShapeToPosition", _g_get_applyShapeToPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startLifetime", _g_get_startLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSize", _g_get_startSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSize3D", _g_get_startSize3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "axisOfRotation", _g_get_axisOfRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation3D", _g_get_rotation3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity", _g_get_angularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity3D", _g_get_angularVelocity3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startColor", _g_get_startColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomSeed", _g_get_randomSeed); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "particle", _s_set_particle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "applyShapeToPosition", _s_set_applyShapeToPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocity", _s_set_velocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startLifetime", _s_set_startLifetime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSize", _s_set_startSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSize3D", _s_set_startSize3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "axisOfRotation", _s_set_axisOfRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation3D", _s_set_rotation3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularVelocity", _s_set_angularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularVelocity3D", _s_set_angularVelocity3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startColor", _s_set_startColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomSeed", _s_set_randomSeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshIndex", _s_set_meshIndex); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.EmitParams)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.EmitParams constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetPosition( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetVelocity( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetAxisOfRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetAxisOfRotation( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetRotation( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetAngularVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetAngularVelocity( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetStartSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetStartSize( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetStartColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetStartColor( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetRandomSeed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetRandomSeed( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetStartLifetime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetStartLifetime( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetMeshIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.ResetMeshIndex( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_particle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.particle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_applyShapeToPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.applyShapeToPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSize3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.startSize3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_axisOfRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.axisOfRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rotation3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.angularVelocity3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.randomSeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_particle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.Particle gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.particle = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_applyShapeToPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.applyShapeToPosition = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocity = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startLifetime = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSize3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startSize3D = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_axisOfRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.axisOfRotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rotation = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation3D = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.angularVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularVelocity3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularVelocity3D = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.randomSeed = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.EmitParams gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.meshIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ExternalForcesModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_ExternalForcesModuleWrap.cs deleted file mode 100644 index 0a9b01b8f..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ExternalForcesModuleWrap.cs +++ /dev/null @@ -1,469 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemExternalForcesModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.ExternalForcesModule); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 6, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAffectedBy", _m_IsAffectedBy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddInfluence", _m_AddInfluence); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveInfluence", _m_RemoveInfluence); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllInfluences", _m_RemoveAllInfluences); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInfluence", _m_SetInfluence); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInfluence", _m_GetInfluence); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplier", _g_get_multiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplierCurve", _g_get_multiplierCurve); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "influenceFilter", _g_get_influenceFilter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "influenceMask", _g_get_influenceMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "influenceCount", _g_get_influenceCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplier", _s_set_multiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplierCurve", _s_set_multiplierCurve); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "influenceFilter", _s_set_influenceFilter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "influenceMask", _s_set_influenceMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.ExternalForcesModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.ExternalForcesModule constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsAffectedBy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemForceField _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystemForceField)); - - var gen_ret = gen_to_be_invoked.IsAffectedBy( _field ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddInfluence(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystemForceField _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystemForceField)); - - gen_to_be_invoked.AddInfluence( _field ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveInfluence(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveInfluence( _index ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ParticleSystemForceField _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystemForceField)); - - gen_to_be_invoked.RemoveInfluence( _field ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.ExternalForcesModule.RemoveInfluence!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveAllInfluences(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.RemoveAllInfluences( ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInfluence(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ParticleSystemForceField _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 3, typeof(UnityEngine.ParticleSystemForceField)); - - gen_to_be_invoked.SetInfluence( _index, _field ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInfluence(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetInfluence( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.multiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplierCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.multiplierCurve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_influenceFilter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.influenceFilter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_influenceMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.influenceMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_influenceCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.influenceCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.multiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplierCurve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.multiplierCurve = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_influenceFilter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemGameObjectFilter gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.influenceFilter = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_influenceMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.LayerMask gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.influenceMask = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ForceOverLifetimeModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_ForceOverLifetimeModuleWrap.cs deleted file mode 100644 index 4232b3323..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ForceOverLifetimeModuleWrap.cs +++ /dev/null @@ -1,383 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemForceOverLifetimeModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.ForceOverLifetimeModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 9); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMultiplier", _g_get_xMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMultiplier", _g_get_yMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMultiplier", _g_get_zMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "space", _g_get_space); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomized", _g_get_randomized); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMultiplier", _s_set_xMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMultiplier", _s_set_yMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMultiplier", _s_set_zMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "space", _s_set_space); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomized", _s_set_randomized); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.ForceOverLifetimeModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.ForceOverLifetimeModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_space(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.space); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.randomized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.x = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.y = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.z = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_space(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemSimulationSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.space = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ForceOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.randomized = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_InheritVelocityModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_InheritVelocityModuleWrap.cs deleted file mode 100644 index 8df36ccce..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_InheritVelocityModuleWrap.cs +++ /dev/null @@ -1,216 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemInheritVelocityModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.InheritVelocityModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curve", _g_get_curve); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveMultiplier", _g_get_curveMultiplier); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curve", _s_set_curve); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveMultiplier", _s_set_curveMultiplier); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.InheritVelocityModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.InheritVelocityModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.curve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.curveMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemInheritVelocityMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.curve = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.InheritVelocityModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.curveMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_LightsModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_LightsModuleWrap.cs deleted file mode 100644 index 4f790d6ba..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_LightsModuleWrap.cs +++ /dev/null @@ -1,480 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemLightsModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.LightsModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 12); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ratio", _g_get_ratio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useRandomDistribution", _g_get_useRandomDistribution); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "light", _g_get_light); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useParticleColor", _g_get_useParticleColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeAffectsRange", _g_get_sizeAffectsRange); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaAffectsIntensity", _g_get_alphaAffectsIntensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "range", _g_get_range); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rangeMultiplier", _g_get_rangeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "intensity", _g_get_intensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "intensityMultiplier", _g_get_intensityMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxLights", _g_get_maxLights); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ratio", _s_set_ratio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useRandomDistribution", _s_set_useRandomDistribution); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "light", _s_set_light); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useParticleColor", _s_set_useParticleColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeAffectsRange", _s_set_sizeAffectsRange); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaAffectsIntensity", _s_set_alphaAffectsIntensity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "range", _s_set_range); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rangeMultiplier", _s_set_rangeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "intensity", _s_set_intensity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "intensityMultiplier", _s_set_intensityMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxLights", _s_set_maxLights); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.LightsModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.LightsModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ratio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ratio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useRandomDistribution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useRandomDistribution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_light(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.light); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useParticleColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useParticleColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeAffectsRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sizeAffectsRange); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alphaAffectsIntensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.alphaAffectsIntensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.range); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rangeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rangeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.intensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_intensityMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.intensityMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxLights(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxLights); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ratio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ratio = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useRandomDistribution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useRandomDistribution = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_light(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.light = (UnityEngine.Light)translator.GetObject(L, 2, typeof(UnityEngine.Light)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useParticleColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useParticleColor = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeAffectsRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sizeAffectsRange = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alphaAffectsIntensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.alphaAffectsIntensity = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.range = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rangeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rangeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.intensity = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_intensityMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.intensityMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxLights(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LightsModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxLights = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_LimitVelocityOverLifetimeModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_LimitVelocityOverLifetimeModuleWrap.cs deleted file mode 100644 index 6a1f69ed4..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_LimitVelocityOverLifetimeModuleWrap.cs +++ /dev/null @@ -1,616 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemLimitVelocityOverLifetimeModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 16, 16); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitX", _g_get_limitX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitXMultiplier", _g_get_limitXMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitY", _g_get_limitY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitYMultiplier", _g_get_limitYMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitZ", _g_get_limitZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitZMultiplier", _g_get_limitZMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limit", _g_get_limit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "limitMultiplier", _g_get_limitMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampen", _g_get_dampen); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separateAxes", _g_get_separateAxes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "space", _g_get_space); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drag", _g_get_drag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dragMultiplier", _g_get_dragMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyDragByParticleSize", _g_get_multiplyDragByParticleSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyDragByParticleVelocity", _g_get_multiplyDragByParticleVelocity); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limitX", _s_set_limitX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limitXMultiplier", _s_set_limitXMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limitY", _s_set_limitY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limitYMultiplier", _s_set_limitYMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limitZ", _s_set_limitZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limitZMultiplier", _s_set_limitZMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limit", _s_set_limit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "limitMultiplier", _s_set_limitMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampen", _s_set_dampen); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "separateAxes", _s_set_separateAxes); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "space", _s_set_space); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drag", _s_set_drag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dragMultiplier", _s_set_dragMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyDragByParticleSize", _s_set_multiplyDragByParticleSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyDragByParticleVelocity", _s_set_multiplyDragByParticleVelocity); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.limitX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.limitXMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.limitY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.limitYMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.limitZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.limitZMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.limit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_limitMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.limitMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dampen(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dampen); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.separateAxes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_space(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.space); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.drag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dragMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dragMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyDragByParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyDragByParticleSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiplyDragByParticleVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyDragByParticleVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limitX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limitX = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limitXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.limitXMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limitY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limitY = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limitYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.limitYMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limitZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limitZ = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limitZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.limitZMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.limit = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_limitMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.limitMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dampen(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dampen = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.separateAxes = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_space(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemSimulationSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.space = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.drag = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dragMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dragMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyDragByParticleSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.multiplyDragByParticleSize = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_multiplyDragByParticleVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.multiplyDragByParticleVelocity = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_MainModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_MainModuleWrap.cs deleted file mode 100644 index 81f30ffb2..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_MainModuleWrap.cs +++ /dev/null @@ -1,1555 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemMainModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.MainModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 44, 44); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "emitterVelocity", _g_get_emitterVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loop", _g_get_loop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "prewarm", _g_get_prewarm); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startDelay", _g_get_startDelay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startDelayMultiplier", _g_get_startDelayMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startLifetime", _g_get_startLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startLifetimeMultiplier", _g_get_startLifetimeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSpeed", _g_get_startSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSpeedMultiplier", _g_get_startSpeedMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSize3D", _g_get_startSize3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSize", _g_get_startSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSizeMultiplier", _g_get_startSizeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSizeX", _g_get_startSizeX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSizeXMultiplier", _g_get_startSizeXMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSizeY", _g_get_startSizeY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSizeYMultiplier", _g_get_startSizeYMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSizeZ", _g_get_startSizeZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSizeZMultiplier", _g_get_startSizeZMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotation3D", _g_get_startRotation3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotation", _g_get_startRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotationMultiplier", _g_get_startRotationMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotationX", _g_get_startRotationX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotationXMultiplier", _g_get_startRotationXMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotationY", _g_get_startRotationY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotationYMultiplier", _g_get_startRotationYMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotationZ", _g_get_startRotationZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startRotationZMultiplier", _g_get_startRotationZMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flipRotation", _g_get_flipRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startColor", _g_get_startColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gravityModifier", _g_get_gravityModifier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gravityModifierMultiplier", _g_get_gravityModifierMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "simulationSpace", _g_get_simulationSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "customSimulationSpace", _g_get_customSimulationSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "simulationSpeed", _g_get_simulationSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useUnscaledTime", _g_get_useUnscaledTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scalingMode", _g_get_scalingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playOnAwake", _g_get_playOnAwake); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxParticles", _g_get_maxParticles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "emitterVelocityMode", _g_get_emitterVelocityMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stopAction", _g_get_stopAction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ringBufferMode", _g_get_ringBufferMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ringBufferLoopRange", _g_get_ringBufferLoopRange); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullingMode", _g_get_cullingMode); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "emitterVelocity", _s_set_emitterVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "duration", _s_set_duration); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "loop", _s_set_loop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "prewarm", _s_set_prewarm); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startDelay", _s_set_startDelay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startDelayMultiplier", _s_set_startDelayMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startLifetime", _s_set_startLifetime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startLifetimeMultiplier", _s_set_startLifetimeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSpeed", _s_set_startSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSpeedMultiplier", _s_set_startSpeedMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSize3D", _s_set_startSize3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSize", _s_set_startSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSizeMultiplier", _s_set_startSizeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSizeX", _s_set_startSizeX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSizeXMultiplier", _s_set_startSizeXMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSizeY", _s_set_startSizeY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSizeYMultiplier", _s_set_startSizeYMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSizeZ", _s_set_startSizeZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSizeZMultiplier", _s_set_startSizeZMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotation3D", _s_set_startRotation3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotation", _s_set_startRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotationMultiplier", _s_set_startRotationMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotationX", _s_set_startRotationX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotationXMultiplier", _s_set_startRotationXMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotationY", _s_set_startRotationY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotationYMultiplier", _s_set_startRotationYMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotationZ", _s_set_startRotationZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startRotationZMultiplier", _s_set_startRotationZMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flipRotation", _s_set_flipRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startColor", _s_set_startColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gravityModifier", _s_set_gravityModifier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gravityModifierMultiplier", _s_set_gravityModifierMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "simulationSpace", _s_set_simulationSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "customSimulationSpace", _s_set_customSimulationSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "simulationSpeed", _s_set_simulationSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useUnscaledTime", _s_set_useUnscaledTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scalingMode", _s_set_scalingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playOnAwake", _s_set_playOnAwake); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxParticles", _s_set_maxParticles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "emitterVelocityMode", _s_set_emitterVelocityMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stopAction", _s_set_stopAction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ringBufferMode", _s_set_ringBufferMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ringBufferLoopRange", _s_set_ringBufferLoopRange); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullingMode", _s_set_cullingMode); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.MainModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.MainModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_emitterVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.emitterVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.loop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_prewarm(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.prewarm); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startDelay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startDelayMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startDelayMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startLifetimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startLifetimeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startSpeedMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSize3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.startSize3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSizeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startSizeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSizeX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startSizeX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSizeXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startSizeXMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSizeY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startSizeY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSizeYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startSizeYMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSizeZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startSizeZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSizeZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startSizeZMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotation3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.startRotation3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotationMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startRotationMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotationX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startRotationX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotationXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startRotationXMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotationY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startRotationY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotationYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startRotationYMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotationZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startRotationZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startRotationZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startRotationZMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flipRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flipRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravityModifier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gravityModifier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravityModifierMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.gravityModifierMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_simulationSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.simulationSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customSimulationSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.customSimulationSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_simulationSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.simulationSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useUnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useUnscaledTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scalingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.scalingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playOnAwake); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxParticles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_emitterVelocityMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.emitterVelocityMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stopAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.stopAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ringBufferMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.ringBufferMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ringBufferLoopRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.ringBufferLoopRange); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.cullingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_emitterVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.emitterVelocity = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.duration = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_loop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.loop = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_prewarm(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.prewarm = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startDelay = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startDelayMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startDelayMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startLifetime = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startLifetimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startLifetimeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startSpeed = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSpeedMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSize3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSize3D = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startSize = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSizeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSizeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSizeX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startSizeX = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSizeXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSizeXMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSizeY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startSizeY = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSizeYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSizeYMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSizeZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startSizeZ = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSizeZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSizeZMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotation3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startRotation3D = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startRotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotationMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startRotationMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotationX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startRotationX = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotationXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startRotationXMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotationY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startRotationY = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotationYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startRotationYMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotationZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startRotationZ = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startRotationZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startRotationZMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flipRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.flipRotation = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxGradient gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gravityModifier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.gravityModifier = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gravityModifierMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gravityModifierMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_simulationSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemSimulationSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.simulationSpace = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_customSimulationSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.customSimulationSpace = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_simulationSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.simulationSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useUnscaledTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useUnscaledTime = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scalingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemScalingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.scalingMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.playOnAwake = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.maxParticles = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_emitterVelocityMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemEmitterVelocityMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.emitterVelocityMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stopAction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemStopAction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.stopAction = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ringBufferMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemRingBufferMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.ringBufferMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ringBufferLoopRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.ringBufferLoopRange = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MainModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemCullingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cullingMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxCurveWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxCurveWrap.cs deleted file mode 100644 index c0a5b4d2d..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxCurveWrap.cs +++ /dev/null @@ -1,437 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemMinMaxCurveWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.MinMaxCurve); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 8, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Evaluate", _m_Evaluate); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveMultiplier", _g_get_curveMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveMax", _g_get_curveMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curveMin", _g_get_curveMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "constantMax", _g_get_constantMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "constantMin", _g_get_constantMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "constant", _g_get_constant); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "curve", _g_get_curve); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveMultiplier", _s_set_curveMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveMax", _s_set_curveMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curveMin", _s_set_curveMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "constantMax", _s_set_constantMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "constantMin", _s_set_constantMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "constant", _s_set_constant); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "curve", _s_set_curve); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _constant = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxCurve(_constant); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - float _multiplier = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.AnimationCurve _curve = (UnityEngine.AnimationCurve)translator.GetObject(L, 3, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxCurve(_multiplier, _curve); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3) && translator.Assignable(L, 4)) - { - float _multiplier = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.AnimationCurve _min = (UnityEngine.AnimationCurve)translator.GetObject(L, 3, typeof(UnityEngine.AnimationCurve)); - UnityEngine.AnimationCurve _max = (UnityEngine.AnimationCurve)translator.GetObject(L, 4, typeof(UnityEngine.AnimationCurve)); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxCurve(_multiplier, _min, _max); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _min = (float)LuaAPI.lua_tonumber(L, 2); - float _max = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxCurve(_min, _max); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.MinMaxCurve)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.MinMaxCurve constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Evaluate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Evaluate( _time ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - float _lerpFactor = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.Evaluate( _time, _lerpFactor ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.MinMaxCurve.Evaluate!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.curveMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curveMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.curveMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curveMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.curveMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constantMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.constantMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constantMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.constantMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constant(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.constant); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_curve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.curve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemCurveMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.curveMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curveMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.curveMax = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curveMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.curveMin = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_constantMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.constantMax = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_constantMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.constantMin = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_constant(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.constant = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_curve(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxCurve gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.curve = (UnityEngine.AnimationCurve)translator.GetObject(L, 2, typeof(UnityEngine.AnimationCurve)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxGradientWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxGradientWrap.cs deleted file mode 100644 index c886bbdd2..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_MinMaxGradientWrap.cs +++ /dev/null @@ -1,405 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemMinMaxGradientWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.MinMaxGradient); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 7, 7); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Evaluate", _m_Evaluate); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gradientMax", _g_get_gradientMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gradientMin", _g_get_gradientMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorMax", _g_get_colorMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorMin", _g_get_colorMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "gradient", _g_get_gradient); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gradientMax", _s_set_gradientMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gradientMin", _s_set_gradientMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorMax", _s_set_colorMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorMin", _s_set_colorMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "gradient", _s_set_gradient); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Color _color;translator.Get(L, 2, out _color); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxGradient(_color); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Gradient _gradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxGradient(_gradient); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Color _min;translator.Get(L, 2, out _min); - UnityEngine.Color _max;translator.Get(L, 3, out _max); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxGradient(_min, _max); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Gradient _min = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - UnityEngine.Gradient _max = (UnityEngine.Gradient)translator.GetObject(L, 3, typeof(UnityEngine.Gradient)); - - var gen_ret = new UnityEngine.ParticleSystem.MinMaxGradient(_min, _max); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.MinMaxGradient)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.MinMaxGradient constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Evaluate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.Evaluate( _time ); - translator.PushUnityEngineColor(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _time = (float)LuaAPI.lua_tonumber(L, 2); - float _lerpFactor = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.Evaluate( _time, _lerpFactor ); - translator.PushUnityEngineColor(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.MinMaxGradient.Evaluate!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gradientMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gradientMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gradientMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gradientMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.colorMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.colorMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.gradient); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemGradientMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gradientMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gradientMax = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gradientMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gradientMin = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorMax = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorMin = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gradient(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.MinMaxGradient gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.gradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_NoiseModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_NoiseModuleWrap.cs deleted file mode 100644 index 612bbaced..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_NoiseModuleWrap.cs +++ /dev/null @@ -1,1085 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemNoiseModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.NoiseModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 30, 30); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separateAxes", _g_get_separateAxes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strength", _g_get_strength); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strengthMultiplier", _g_get_strengthMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strengthX", _g_get_strengthX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strengthXMultiplier", _g_get_strengthXMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strengthY", _g_get_strengthY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strengthYMultiplier", _g_get_strengthYMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strengthZ", _g_get_strengthZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strengthZMultiplier", _g_get_strengthZMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frequency", _g_get_frequency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "damping", _g_get_damping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "octaveCount", _g_get_octaveCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "octaveMultiplier", _g_get_octaveMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "octaveScale", _g_get_octaveScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "quality", _g_get_quality); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scrollSpeed", _g_get_scrollSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scrollSpeedMultiplier", _g_get_scrollSpeedMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapEnabled", _g_get_remapEnabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remap", _g_get_remap); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapMultiplier", _g_get_remapMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapX", _g_get_remapX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapXMultiplier", _g_get_remapXMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapY", _g_get_remapY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapYMultiplier", _g_get_remapYMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapZ", _g_get_remapZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remapZMultiplier", _g_get_remapZMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "positionAmount", _g_get_positionAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotationAmount", _g_get_rotationAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeAmount", _g_get_sizeAmount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "separateAxes", _s_set_separateAxes); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strength", _s_set_strength); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strengthMultiplier", _s_set_strengthMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strengthX", _s_set_strengthX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strengthXMultiplier", _s_set_strengthXMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strengthY", _s_set_strengthY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strengthYMultiplier", _s_set_strengthYMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strengthZ", _s_set_strengthZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strengthZMultiplier", _s_set_strengthZMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frequency", _s_set_frequency); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "damping", _s_set_damping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "octaveCount", _s_set_octaveCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "octaveMultiplier", _s_set_octaveMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "octaveScale", _s_set_octaveScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "quality", _s_set_quality); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scrollSpeed", _s_set_scrollSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scrollSpeedMultiplier", _s_set_scrollSpeedMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapEnabled", _s_set_remapEnabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remap", _s_set_remap); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapMultiplier", _s_set_remapMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapX", _s_set_remapX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapXMultiplier", _s_set_remapXMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapY", _s_set_remapY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapYMultiplier", _s_set_remapYMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapZ", _s_set_remapZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remapZMultiplier", _s_set_remapZMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "positionAmount", _s_set_positionAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotationAmount", _s_set_rotationAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeAmount", _s_set_sizeAmount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.NoiseModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.NoiseModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.separateAxes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.strength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strengthMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strengthMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strengthX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.strengthX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strengthXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strengthXMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strengthY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.strengthY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strengthYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strengthYMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strengthZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.strengthZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strengthZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strengthZMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_damping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.damping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_octaveCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.octaveCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_octaveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.octaveMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_octaveScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.octaveScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_quality(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.quality); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scrollSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.scrollSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scrollSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scrollSpeedMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.remapEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.remap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.remapMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.remapX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.remapXMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.remapY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.remapYMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.remapZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remapZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.remapZMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.positionAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotationAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.rotationAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.sizeAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.separateAxes = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strength(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.strength = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strengthMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.strengthMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strengthX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.strengthX = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strengthXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.strengthXMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strengthY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.strengthY = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strengthYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.strengthYMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strengthZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.strengthZ = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strengthZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.strengthZMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frequency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.frequency = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_damping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.damping = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_octaveCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.octaveCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_octaveMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.octaveMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_octaveScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.octaveScale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_quality(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemNoiseQuality gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.quality = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scrollSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.scrollSpeed = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scrollSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.scrollSpeedMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapEnabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.remapEnabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.remap = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.remapMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.remapX = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.remapXMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.remapY = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.remapYMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.remapZ = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remapZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.remapZMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_positionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.positionAmount = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotationAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotationAmount = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.NoiseModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sizeAmount = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ParticleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_ParticleWrap.cs deleted file mode 100644 index 4305986bf..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ParticleWrap.cs +++ /dev/null @@ -1,707 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemParticleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.Particle); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 15, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentSize", _m_GetCurrentSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentSize3D", _m_GetCurrentSize3D); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCurrentColor", _m_GetCurrentColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMeshIndex", _m_SetMeshIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMeshIndex", _m_GetMeshIndex); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animatedVelocity", _g_get_animatedVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "totalVelocity", _g_get_totalVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "remainingLifetime", _g_get_remainingLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startLifetime", _g_get_startLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startColor", _g_get_startColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomSeed", _g_get_randomSeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "axisOfRotation", _g_get_axisOfRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSize", _g_get_startSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startSize3D", _g_get_startSize3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation3D", _g_get_rotation3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity", _g_get_angularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity3D", _g_get_angularVelocity3D); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocity", _s_set_velocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "remainingLifetime", _s_set_remainingLifetime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startLifetime", _s_set_startLifetime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startColor", _s_set_startColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomSeed", _s_set_randomSeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "axisOfRotation", _s_set_axisOfRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSize", _s_set_startSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startSize3D", _s_set_startSize3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation3D", _s_set_rotation3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularVelocity", _s_set_angularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularVelocity3D", _s_set_angularVelocity3D); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.Particle)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Particle constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystem _system = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - - var gen_ret = gen_to_be_invoked.GetCurrentSize( _system ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentSize3D(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystem _system = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - - var gen_ret = gen_to_be_invoked.GetCurrentSize3D( _system ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCurrentColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystem _system = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - - var gen_ret = gen_to_be_invoked.GetCurrentColor( _system ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMeshIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetMeshIndex( _index ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMeshIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.ParticleSystem _system = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - - var gen_ret = gen_to_be_invoked.GetMeshIndex( _system ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animatedVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.animatedVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_totalVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.totalVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_remainingLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.remainingLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.randomSeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_axisOfRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.axisOfRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startSize3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.startSize3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rotation3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.angularVelocity3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocity = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_remainingLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.remainingLifetime = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startLifetime = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Color32 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startColor = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomSeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.randomSeed = LuaAPI.xlua_touint(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_axisOfRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.axisOfRotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startSize3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startSize3D = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rotation = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation3D = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.angularVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularVelocity3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.Particle gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularVelocity3D = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationBySpeedModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationBySpeedModuleWrap.cs deleted file mode 100644 index 176bc2738..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationBySpeedModuleWrap.cs +++ /dev/null @@ -1,383 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemRotationBySpeedModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.RotationBySpeedModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 9); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMultiplier", _g_get_xMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMultiplier", _g_get_yMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMultiplier", _g_get_zMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separateAxes", _g_get_separateAxes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "range", _g_get_range); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMultiplier", _s_set_xMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMultiplier", _s_set_yMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMultiplier", _s_set_zMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "separateAxes", _s_set_separateAxes); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "range", _s_set_range); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.RotationBySpeedModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.RotationBySpeedModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.separateAxes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.range); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.x = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.y = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.z = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.separateAxes = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.range = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationOverLifetimeModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationOverLifetimeModuleWrap.cs deleted file mode 100644 index f052047c1..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_RotationOverLifetimeModuleWrap.cs +++ /dev/null @@ -1,349 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemRotationOverLifetimeModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.RotationOverLifetimeModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 8, 8); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMultiplier", _g_get_xMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMultiplier", _g_get_yMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMultiplier", _g_get_zMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separateAxes", _g_get_separateAxes); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMultiplier", _s_set_xMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMultiplier", _s_set_yMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMultiplier", _s_set_zMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "separateAxes", _s_set_separateAxes); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.RotationOverLifetimeModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.RotationOverLifetimeModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.separateAxes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.x = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.y = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.z = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.RotationOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.separateAxes = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ShapeModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_ShapeModuleWrap.cs deleted file mode 100644 index 864012824..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_ShapeModuleWrap.cs +++ /dev/null @@ -1,1580 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemShapeModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.ShapeModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 45, 45); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shapeType", _g_get_shapeType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomDirectionAmount", _g_get_randomDirectionAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sphericalDirectionAmount", _g_get_sphericalDirectionAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomPositionAmount", _g_get_randomPositionAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignToDirection", _g_get_alignToDirection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusMode", _g_get_radiusMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusSpread", _g_get_radiusSpread); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusSpeed", _g_get_radiusSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusSpeedMultiplier", _g_get_radiusSpeedMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusThickness", _g_get_radiusThickness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angle", _g_get_angle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boxThickness", _g_get_boxThickness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshShapeType", _g_get_meshShapeType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshRenderer", _g_get_meshRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skinnedMeshRenderer", _g_get_skinnedMeshRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteRenderer", _g_get_spriteRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMeshMaterialIndex", _g_get_useMeshMaterialIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshMaterialIndex", _g_get_meshMaterialIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMeshColors", _g_get_useMeshColors); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalOffset", _g_get_normalOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnMode", _g_get_meshSpawnMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnSpread", _g_get_meshSpawnSpread); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnSpeed", _g_get_meshSpawnSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnSpeedMultiplier", _g_get_meshSpawnSpeedMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "arc", _g_get_arc); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcMode", _g_get_arcMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcSpread", _g_get_arcSpread); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcSpeed", _g_get_arcSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcSpeedMultiplier", _g_get_arcSpeedMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "donutRadius", _g_get_donutRadius); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texture", _g_get_texture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureClipChannel", _g_get_textureClipChannel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureClipThreshold", _g_get_textureClipThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureColorAffectsParticles", _g_get_textureColorAffectsParticles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureAlphaAffectsParticles", _g_get_textureAlphaAffectsParticles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureBilinearFiltering", _g_get_textureBilinearFiltering); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureUVChannel", _g_get_textureUVChannel); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shapeType", _s_set_shapeType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomDirectionAmount", _s_set_randomDirectionAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sphericalDirectionAmount", _s_set_sphericalDirectionAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomPositionAmount", _s_set_randomPositionAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignToDirection", _s_set_alignToDirection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusMode", _s_set_radiusMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusSpread", _s_set_radiusSpread); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusSpeed", _s_set_radiusSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusSpeedMultiplier", _s_set_radiusSpeedMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusThickness", _s_set_radiusThickness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angle", _s_set_angle); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "length", _s_set_length); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boxThickness", _s_set_boxThickness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshShapeType", _s_set_meshShapeType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshRenderer", _s_set_meshRenderer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skinnedMeshRenderer", _s_set_skinnedMeshRenderer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteRenderer", _s_set_spriteRenderer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMeshMaterialIndex", _s_set_useMeshMaterialIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshMaterialIndex", _s_set_meshMaterialIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMeshColors", _s_set_useMeshColors); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalOffset", _s_set_normalOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnMode", _s_set_meshSpawnMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnSpread", _s_set_meshSpawnSpread); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnSpeed", _s_set_meshSpawnSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnSpeedMultiplier", _s_set_meshSpawnSpeedMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "arc", _s_set_arc); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcMode", _s_set_arcMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcSpread", _s_set_arcSpread); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcSpeed", _s_set_arcSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcSpeedMultiplier", _s_set_arcSpeedMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "donutRadius", _s_set_donutRadius); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "texture", _s_set_texture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureClipChannel", _s_set_textureClipChannel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureClipThreshold", _s_set_textureClipThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureColorAffectsParticles", _s_set_textureColorAffectsParticles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureAlphaAffectsParticles", _s_set_textureAlphaAffectsParticles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureBilinearFiltering", _s_set_textureBilinearFiltering); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureUVChannel", _s_set_textureUVChannel); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.ShapeModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.ShapeModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shapeType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.shapeType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomDirectionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.randomDirectionAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sphericalDirectionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sphericalDirectionAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_randomPositionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.randomPositionAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignToDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.alignToDirection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.radiusMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusSpread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusSpread); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.radiusSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusSpeedMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusThickness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boxThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.boxThickness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshShapeType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.meshShapeType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.meshRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skinnedMeshRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.skinnedMeshRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.sprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.spriteRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMeshMaterialIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMeshMaterialIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshMaterialIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.meshMaterialIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMeshColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMeshColors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshSpawnMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.meshSpawnMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshSpawnSpread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.meshSpawnSpread); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshSpawnSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.meshSpawnSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meshSpawnSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.meshSpawnSpeedMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_arc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.arc); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_arcMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.arcMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_arcSpread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.arcSpread); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_arcSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.arcSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_arcSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.arcSpeedMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_donutRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.donutRadius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.texture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureClipChannel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.textureClipChannel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureClipThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.textureClipThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureColorAffectsParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.textureColorAffectsParticles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureAlphaAffectsParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.textureAlphaAffectsParticles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureBilinearFiltering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.textureBilinearFiltering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureUVChannel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.textureUVChannel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shapeType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemShapeType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shapeType = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomDirectionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.randomDirectionAmount = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sphericalDirectionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sphericalDirectionAmount = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_randomPositionAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.randomPositionAmount = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignToDirection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.alignToDirection = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemShapeMultiModeValue gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.radiusMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusSpread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radiusSpread = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.radiusSpeed = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radiusSpeedMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radiusThickness = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.angle = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.length = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boxThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.boxThickness = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshShapeType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemMeshShapeType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.meshShapeType = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.meshRenderer = (UnityEngine.MeshRenderer)translator.GetObject(L, 2, typeof(UnityEngine.MeshRenderer)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skinnedMeshRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.skinnedMeshRenderer = (UnityEngine.SkinnedMeshRenderer)translator.GetObject(L, 2, typeof(UnityEngine.SkinnedMeshRenderer)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.spriteRenderer = (UnityEngine.SpriteRenderer)translator.GetObject(L, 2, typeof(UnityEngine.SpriteRenderer)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMeshMaterialIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useMeshMaterialIndex = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshMaterialIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.meshMaterialIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMeshColors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useMeshColors = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.normalOffset = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshSpawnMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemShapeMultiModeValue gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.meshSpawnMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshSpawnSpread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.meshSpawnSpread = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshSpawnSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.meshSpawnSpeed = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meshSpawnSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.meshSpawnSpeedMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_arc(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.arc = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_arcMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemShapeMultiModeValue gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.arcMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_arcSpread(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.arcSpread = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_arcSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.arcSpeed = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_arcSpeedMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.arcSpeedMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_donutRadius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.donutRadius = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.scale = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.texture = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureClipChannel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemShapeTextureChannel gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.textureClipChannel = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureClipThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textureClipThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureColorAffectsParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textureColorAffectsParticles = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureAlphaAffectsParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textureAlphaAffectsParticles = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureBilinearFiltering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textureBilinearFiltering = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureUVChannel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.textureUVChannel = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeBySpeedModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeBySpeedModuleWrap.cs deleted file mode 100644 index 4e169a784..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeBySpeedModuleWrap.cs +++ /dev/null @@ -1,450 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemSizeBySpeedModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.SizeBySpeedModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 11, 11); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeMultiplier", _g_get_sizeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMultiplier", _g_get_xMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMultiplier", _g_get_yMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMultiplier", _g_get_zMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separateAxes", _g_get_separateAxes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "range", _g_get_range); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeMultiplier", _s_set_sizeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMultiplier", _s_set_xMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMultiplier", _s_set_yMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMultiplier", _s_set_zMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "separateAxes", _s_set_separateAxes); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "range", _s_set_range); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.SizeBySpeedModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.SizeBySpeedModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sizeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.separateAxes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.range); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sizeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.x = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.y = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.z = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.separateAxes = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_range(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeBySpeedModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.range = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeOverLifetimeModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeOverLifetimeModuleWrap.cs deleted file mode 100644 index 126657808..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_SizeOverLifetimeModuleWrap.cs +++ /dev/null @@ -1,416 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemSizeOverLifetimeModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.SizeOverLifetimeModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 10); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeMultiplier", _g_get_sizeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMultiplier", _g_get_xMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMultiplier", _g_get_yMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMultiplier", _g_get_zMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "separateAxes", _g_get_separateAxes); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeMultiplier", _s_set_sizeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMultiplier", _s_set_xMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMultiplier", _s_set_yMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMultiplier", _s_set_zMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "separateAxes", _s_set_separateAxes); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.SizeOverLifetimeModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.SizeOverLifetimeModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sizeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.separateAxes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sizeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.x = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.y = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.z = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_separateAxes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SizeOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.separateAxes = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_SubEmittersModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_SubEmittersModuleWrap.cs deleted file mode 100644 index 49e15fb68..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_SubEmittersModuleWrap.cs +++ /dev/null @@ -1,485 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemSubEmittersModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.SubEmittersModule); - Utils.BeginObjectRegister(type, L, translator, 0, 10, 2, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSubEmitter", _m_AddSubEmitter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveSubEmitter", _m_RemoveSubEmitter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSubEmitterSystem", _m_SetSubEmitterSystem); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSubEmitterType", _m_SetSubEmitterType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSubEmitterProperties", _m_SetSubEmitterProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSubEmitterEmitProbability", _m_SetSubEmitterEmitProbability); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSubEmitterSystem", _m_GetSubEmitterSystem); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSubEmitterType", _m_GetSubEmitterType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSubEmitterProperties", _m_GetSubEmitterProperties); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSubEmitterEmitProbability", _m_GetSubEmitterEmitProbability); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subEmittersCount", _g_get_subEmittersCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.SubEmittersModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.SubEmittersModule constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSubEmitter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.ParticleSystem _subEmitter = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - UnityEngine.ParticleSystemSubEmitterType _type;translator.Get(L, 3, out _type); - UnityEngine.ParticleSystemSubEmitterProperties _properties;translator.Get(L, 4, out _properties); - - gen_to_be_invoked.AddSubEmitter( _subEmitter, _type, _properties ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.ParticleSystem _subEmitter = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - UnityEngine.ParticleSystemSubEmitterType _type;translator.Get(L, 3, out _type); - UnityEngine.ParticleSystemSubEmitterProperties _properties;translator.Get(L, 4, out _properties); - float _emitProbability = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.AddSubEmitter( _subEmitter, _type, _properties, _emitProbability ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.SubEmittersModule.AddSubEmitter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveSubEmitter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveSubEmitter( _index ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.ParticleSystem _subEmitter = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem)); - - gen_to_be_invoked.RemoveSubEmitter( _subEmitter ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.SubEmittersModule.RemoveSubEmitter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSubEmitterSystem(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ParticleSystem _subEmitter = (UnityEngine.ParticleSystem)translator.GetObject(L, 3, typeof(UnityEngine.ParticleSystem)); - - gen_to_be_invoked.SetSubEmitterSystem( _index, _subEmitter ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSubEmitterType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ParticleSystemSubEmitterType _type;translator.Get(L, 3, out _type); - - gen_to_be_invoked.SetSubEmitterType( _index, _type ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSubEmitterProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.ParticleSystemSubEmitterProperties _properties;translator.Get(L, 3, out _properties); - - gen_to_be_invoked.SetSubEmitterProperties( _index, _properties ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSubEmitterEmitProbability(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _emitProbability = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetSubEmitterEmitProbability( _index, _emitProbability ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSubEmitterSystem(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSubEmitterSystem( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSubEmitterType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSubEmitterType( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSubEmitterProperties(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSubEmitterProperties( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSubEmitterEmitProbability(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSubEmitterEmitProbability( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subEmittersCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.subEmittersCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.SubEmittersModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TextureSheetAnimationModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_TextureSheetAnimationModuleWrap.cs deleted file mode 100644 index 4a394b708..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TextureSheetAnimationModuleWrap.cs +++ /dev/null @@ -1,759 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemTextureSheetAnimationModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.TextureSheetAnimationModule); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 17, 16); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddSprite", _m_AddSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveSprite", _m_RemoveSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSprite", _m_SetSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSprite", _m_GetSprite); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeMode", _g_get_timeMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fps", _g_get_fps); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numTilesX", _g_get_numTilesX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numTilesY", _g_get_numTilesY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animation", _g_get_animation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rowMode", _g_get_rowMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameOverTime", _g_get_frameOverTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameOverTimeMultiplier", _g_get_frameOverTimeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startFrame", _g_get_startFrame); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startFrameMultiplier", _g_get_startFrameMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cycleCount", _g_get_cycleCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rowIndex", _g_get_rowIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvChannelMask", _g_get_uvChannelMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteCount", _g_get_spriteCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speedRange", _g_get_speedRange); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeMode", _s_set_timeMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fps", _s_set_fps); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numTilesX", _s_set_numTilesX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numTilesY", _s_set_numTilesY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animation", _s_set_animation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rowMode", _s_set_rowMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frameOverTime", _s_set_frameOverTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frameOverTimeMultiplier", _s_set_frameOverTimeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startFrame", _s_set_startFrame); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startFrameMultiplier", _s_set_startFrameMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cycleCount", _s_set_cycleCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rowIndex", _s_set_rowIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvChannelMask", _s_set_uvChannelMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speedRange", _s_set_speedRange); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.TextureSheetAnimationModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TextureSheetAnimationModule constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Sprite _sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - gen_to_be_invoked.AddSprite( _sprite ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveSprite( _index ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Sprite _sprite = (UnityEngine.Sprite)translator.GetObject(L, 3, typeof(UnityEngine.Sprite)); - - gen_to_be_invoked.SetSprite( _index, _sprite ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetSprite( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.timeMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fps); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numTilesX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numTilesX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numTilesY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numTilesY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.animation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rowMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.rowMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameOverTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.frameOverTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameOverTimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frameOverTimeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.startFrame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startFrameMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startFrameMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cycleCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cycleCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rowIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.rowIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvChannelMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.uvChannelMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spriteCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speedRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.speedRange); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemAnimationMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemAnimationTimeMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.timeMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.fps = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numTilesX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.numTilesX = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numTilesY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.numTilesY = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemAnimationType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.animation = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rowMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemAnimationRowMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rowMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frameOverTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.frameOverTime = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frameOverTimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.frameOverTimeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startFrame = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startFrameMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.startFrameMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cycleCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.cycleCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rowIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.rowIndex = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvChannelMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Rendering.UVChannelFlags gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uvChannelMask = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speedRange(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TextureSheetAnimationModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.speedRange = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TrailModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_TrailModuleWrap.cs deleted file mode 100644 index d31928b22..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TrailModuleWrap.cs +++ /dev/null @@ -1,781 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemTrailModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.TrailModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 21, 21); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ratio", _g_get_ratio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetime", _g_get_lifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeMultiplier", _g_get_lifetimeMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minVertexDistance", _g_get_minVertexDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureMode", _g_get_textureMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldSpace", _g_get_worldSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dieWithParticles", _g_get_dieWithParticles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeAffectsWidth", _g_get_sizeAffectsWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeAffectsLifetime", _g_get_sizeAffectsLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inheritParticleColor", _g_get_inheritParticleColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorOverLifetime", _g_get_colorOverLifetime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "widthOverTrail", _g_get_widthOverTrail); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "widthOverTrailMultiplier", _g_get_widthOverTrailMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorOverTrail", _g_get_colorOverTrail); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "generateLightingData", _g_get_generateLightingData); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ribbonCount", _g_get_ribbonCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowBias", _g_get_shadowBias); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "splitSubEmitterRibbons", _g_get_splitSubEmitterRibbons); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "attachRibbonsToTransform", _g_get_attachRibbonsToTransform); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ratio", _s_set_ratio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lifetime", _s_set_lifetime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lifetimeMultiplier", _s_set_lifetimeMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minVertexDistance", _s_set_minVertexDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureMode", _s_set_textureMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "worldSpace", _s_set_worldSpace); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dieWithParticles", _s_set_dieWithParticles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeAffectsWidth", _s_set_sizeAffectsWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeAffectsLifetime", _s_set_sizeAffectsLifetime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inheritParticleColor", _s_set_inheritParticleColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorOverLifetime", _s_set_colorOverLifetime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "widthOverTrail", _s_set_widthOverTrail); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "widthOverTrailMultiplier", _s_set_widthOverTrailMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorOverTrail", _s_set_colorOverTrail); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "generateLightingData", _s_set_generateLightingData); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ribbonCount", _s_set_ribbonCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowBias", _s_set_shadowBias); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "splitSubEmitterRibbons", _s_set_splitSubEmitterRibbons); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "attachRibbonsToTransform", _s_set_attachRibbonsToTransform); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.TrailModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TrailModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ratio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ratio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.lifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lifetimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lifetimeMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minVertexDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minVertexDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.textureMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.worldSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dieWithParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.dieWithParticles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeAffectsWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sizeAffectsWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeAffectsLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sizeAffectsLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inheritParticleColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.inheritParticleColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colorOverLifetime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthOverTrail(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.widthOverTrail); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_widthOverTrailMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.widthOverTrailMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorOverTrail(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colorOverTrail); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_generateLightingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.generateLightingData); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ribbonCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ribbonCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_splitSubEmitterRibbons(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.splitSubEmitterRibbons); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_attachRibbonsToTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.attachRibbonsToTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemTrailMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ratio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ratio = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lifetime = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lifetimeMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lifetimeMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minVertexDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.minVertexDistance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textureMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemTrailTextureMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.textureMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_worldSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.worldSpace = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dieWithParticles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.dieWithParticles = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeAffectsWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sizeAffectsWidth = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeAffectsLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sizeAffectsLifetime = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inheritParticleColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.inheritParticleColor = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorOverLifetime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxGradient gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorOverLifetime = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_widthOverTrail(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.widthOverTrail = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_widthOverTrailMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.widthOverTrailMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorOverTrail(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxGradient gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorOverTrail = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_generateLightingData(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.generateLightingData = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ribbonCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ribbonCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.shadowBias = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_splitSubEmitterRibbons(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.splitSubEmitterRibbons = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_attachRibbonsToTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TrailModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.attachRibbonsToTransform = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TriggerModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_TriggerModuleWrap.cs deleted file mode 100644 index 84ceb6049..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_TriggerModuleWrap.cs +++ /dev/null @@ -1,475 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemTriggerModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.TriggerModule); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 8, 7); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCollider", _m_AddCollider); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCollider", _m_RemoveCollider); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCollider", _m_SetCollider); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCollider", _m_GetCollider); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inside", _g_get_inside); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outside", _g_get_outside); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enter", _g_get_enter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "exit", _g_get_exit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderQueryMode", _g_get_colliderQueryMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusScale", _g_get_radiusScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderCount", _g_get_colliderCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inside", _s_set_inside); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "outside", _s_set_outside); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enter", _s_set_enter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "exit", _s_set_exit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colliderQueryMode", _s_set_colliderQueryMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusScale", _s_set_radiusScale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.TriggerModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TriggerModule constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddCollider(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Component _collider = (UnityEngine.Component)translator.GetObject(L, 2, typeof(UnityEngine.Component)); - - gen_to_be_invoked.AddCollider( _collider ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveCollider(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.RemoveCollider( _index ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Component _collider = (UnityEngine.Component)translator.GetObject(L, 2, typeof(UnityEngine.Component)); - - gen_to_be_invoked.RemoveCollider( _collider ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TriggerModule.RemoveCollider!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCollider(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Component _collider = (UnityEngine.Component)translator.GetObject(L, 3, typeof(UnityEngine.Component)); - - gen_to_be_invoked.SetCollider( _index, _collider ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCollider(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetCollider( _index ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inside(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.inside); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outside(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.outside); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.enter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_exit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.exit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderQueryMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.colliderQueryMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radiusScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.colliderCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inside(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.inside = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_outside(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.outside = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.enter = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_exit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.exit = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colliderQueryMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemColliderQueryMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colliderQueryMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radiusScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radiusScale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ParticleSystem_VelocityOverLifetimeModuleWrap.cs b/Assets/XLua/Gen/UnityEngine_ParticleSystem_VelocityOverLifetimeModuleWrap.cs deleted file mode 100644 index 65aea15c9..000000000 --- a/Assets/XLua/Gen/UnityEngine_ParticleSystem_VelocityOverLifetimeModuleWrap.cs +++ /dev/null @@ -1,886 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineParticleSystemVelocityOverLifetimeModuleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ParticleSystem.VelocityOverLifetimeModule); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 24, 24); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMultiplier", _g_get_xMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMultiplier", _g_get_yMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "zMultiplier", _g_get_zMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalX", _g_get_orbitalX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalY", _g_get_orbitalY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalZ", _g_get_orbitalZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalXMultiplier", _g_get_orbitalXMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalYMultiplier", _g_get_orbitalYMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalZMultiplier", _g_get_orbitalZMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalOffsetX", _g_get_orbitalOffsetX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalOffsetY", _g_get_orbitalOffsetY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalOffsetZ", _g_get_orbitalOffsetZ); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalOffsetXMultiplier", _g_get_orbitalOffsetXMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalOffsetYMultiplier", _g_get_orbitalOffsetYMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "orbitalOffsetZMultiplier", _g_get_orbitalOffsetZMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radial", _g_get_radial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radialMultiplier", _g_get_radialMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speedModifier", _g_get_speedModifier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "speedModifierMultiplier", _g_get_speedModifierMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "space", _g_get_space); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMultiplier", _s_set_xMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMultiplier", _s_set_yMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "zMultiplier", _s_set_zMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalX", _s_set_orbitalX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalY", _s_set_orbitalY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalZ", _s_set_orbitalZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalXMultiplier", _s_set_orbitalXMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalYMultiplier", _s_set_orbitalYMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalZMultiplier", _s_set_orbitalZMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalOffsetX", _s_set_orbitalOffsetX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalOffsetY", _s_set_orbitalOffsetY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalOffsetZ", _s_set_orbitalOffsetZ); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalOffsetXMultiplier", _s_set_orbitalOffsetXMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalOffsetYMultiplier", _s_set_orbitalOffsetYMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "orbitalOffsetZMultiplier", _s_set_orbitalOffsetZMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radial", _s_set_radial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radialMultiplier", _s_set_radialMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speedModifier", _s_set_speedModifier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "speedModifierMultiplier", _s_set_speedModifierMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "space", _s_set_space); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ParticleSystem.VelocityOverLifetimeModule)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.VelocityOverLifetimeModule constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.zMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.orbitalX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.orbitalY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.orbitalZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orbitalXMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orbitalYMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orbitalZMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalOffsetX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.orbitalOffsetX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalOffsetY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.orbitalOffsetY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalOffsetZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.orbitalOffsetZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalOffsetXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orbitalOffsetXMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalOffsetYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orbitalOffsetYMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orbitalOffsetZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.orbitalOffsetZMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.radial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radialMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radialMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speedModifier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.speedModifier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_speedModifierMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speedModifierMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_space(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.space); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.x = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.y = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.z = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_zMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.zMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.orbitalX = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.orbitalY = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.orbitalZ = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.orbitalXMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.orbitalYMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.orbitalZMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalOffsetX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.orbitalOffsetX = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalOffsetY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.orbitalOffsetY = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalOffsetZ(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.orbitalOffsetZ = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalOffsetXMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.orbitalOffsetXMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalOffsetYMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.orbitalOffsetYMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orbitalOffsetZMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.orbitalOffsetZMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.radial = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radialMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.radialMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speedModifier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.speedModifier = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_speedModifierMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.speedModifierMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_space(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ParticleSystem.VelocityOverLifetimeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.ParticleSystemSimulationSpace gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.space = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicMaterialWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicMaterialWrap.cs deleted file mode 100644 index d2ab2dd22..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicMaterialWrap.cs +++ /dev/null @@ -1,250 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicMaterialWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PhysicMaterial); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 5); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounciness", _g_get_bounciness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dynamicFriction", _g_get_dynamicFriction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "staticFriction", _g_get_staticFriction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frictionCombine", _g_get_frictionCombine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounceCombine", _g_get_bounceCombine); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounciness", _s_set_bounciness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dynamicFriction", _s_set_dynamicFriction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "staticFriction", _s_set_staticFriction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frictionCombine", _s_set_frictionCombine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounceCombine", _s_set_bounceCombine); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PhysicMaterial(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.PhysicMaterial(_name); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PhysicMaterial constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounciness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dynamicFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dynamicFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_staticFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.staticFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frictionCombine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.frictionCombine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounceCombine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bounceCombine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounciness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bounciness = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dynamicFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dynamicFriction = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_staticFriction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.staticFriction = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frictionCombine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - UnityEngine.PhysicMaterialCombine gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.frictionCombine = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounceCombine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.PhysicMaterial gen_to_be_invoked = (UnityEngine.PhysicMaterial)translator.FastGetCSObj(L, 1); - UnityEngine.PhysicMaterialCombine gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bounceCombine = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PhysicsWrap.cs b/Assets/XLua/Gen/UnityEngine_PhysicsWrap.cs deleted file mode 100644 index cedbfd849..000000000 --- a/Assets/XLua/Gen/UnityEngine_PhysicsWrap.cs +++ /dev/null @@ -1,3381 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePhysicsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Physics); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 38, 19, 18); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IgnoreCollision", _m_IgnoreCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IgnoreLayerCollision", _m_IgnoreLayerCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIgnoreLayerCollision", _m_GetIgnoreLayerCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetIgnoreCollision", _m_GetIgnoreCollision_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Raycast", _m_Raycast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Linecast", _m_Linecast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CapsuleCast", _m_CapsuleCast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SphereCast", _m_SphereCast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BoxCast", _m_BoxCast_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RaycastAll", _m_RaycastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RaycastNonAlloc", _m_RaycastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CapsuleCastAll", _m_CapsuleCastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SphereCastAll", _m_SphereCastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCapsule", _m_OverlapCapsule_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapSphere", _m_OverlapSphere_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Simulate", _m_Simulate_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SyncTransforms", _m_SyncTransforms_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ComputePenetration", _m_ComputePenetration_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClosestPoint", _m_ClosestPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapSphereNonAlloc", _m_OverlapSphereNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckSphere", _m_CheckSphere_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CapsuleCastNonAlloc", _m_CapsuleCastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SphereCastNonAlloc", _m_SphereCastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckCapsule", _m_CheckCapsule_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CheckBox", _m_CheckBox_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapBox", _m_OverlapBox_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapBoxNonAlloc", _m_OverlapBoxNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BoxCastNonAlloc", _m_BoxCastNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BoxCastAll", _m_BoxCastAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OverlapCapsuleNonAlloc", _m_OverlapCapsuleNonAlloc_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RebuildBroadphaseRegions", _m_RebuildBroadphaseRegions_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BakeMesh", _m_BakeMesh_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "ContactModifyEvent", _e_ContactModifyEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ContactModifyEventCCD", _e_ContactModifyEventCCD); - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IgnoreRaycastLayer", UnityEngine.Physics.IgnoreRaycastLayer); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DefaultRaycastLayers", UnityEngine.Physics.DefaultRaycastLayers); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AllLayers", UnityEngine.Physics.AllLayers); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "gravity", _g_get_gravity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultContactOffset", _g_get_defaultContactOffset); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "sleepThreshold", _g_get_sleepThreshold); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "queriesHitTriggers", _g_get_queriesHitTriggers); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "queriesHitBackfaces", _g_get_queriesHitBackfaces); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "bounceThreshold", _g_get_bounceThreshold); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultMaxDepenetrationVelocity", _g_get_defaultMaxDepenetrationVelocity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultSolverIterations", _g_get_defaultSolverIterations); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultSolverVelocityIterations", _g_get_defaultSolverVelocityIterations); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultMaxAngularSpeed", _g_get_defaultMaxAngularSpeed); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "improvedPatchFriction", _g_get_improvedPatchFriction); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultPhysicsScene", _g_get_defaultPhysicsScene); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autoSimulation", _g_get_autoSimulation); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autoSyncTransforms", _g_get_autoSyncTransforms); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "reuseCollisionCallbacks", _g_get_reuseCollisionCallbacks); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "interCollisionDistance", _g_get_interCollisionDistance); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "interCollisionStiffness", _g_get_interCollisionStiffness); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "interCollisionSettingsToggle", _g_get_interCollisionSettingsToggle); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "clothGravity", _g_get_clothGravity); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "gravity", _s_set_gravity); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultContactOffset", _s_set_defaultContactOffset); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "sleepThreshold", _s_set_sleepThreshold); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "queriesHitTriggers", _s_set_queriesHitTriggers); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "queriesHitBackfaces", _s_set_queriesHitBackfaces); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "bounceThreshold", _s_set_bounceThreshold); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultMaxDepenetrationVelocity", _s_set_defaultMaxDepenetrationVelocity); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultSolverIterations", _s_set_defaultSolverIterations); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultSolverVelocityIterations", _s_set_defaultSolverVelocityIterations); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultMaxAngularSpeed", _s_set_defaultMaxAngularSpeed); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "improvedPatchFriction", _s_set_improvedPatchFriction); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "autoSimulation", _s_set_autoSimulation); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "autoSyncTransforms", _s_set_autoSyncTransforms); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "reuseCollisionCallbacks", _s_set_reuseCollisionCallbacks); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "interCollisionDistance", _s_set_interCollisionDistance); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "interCollisionStiffness", _s_set_interCollisionStiffness); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "interCollisionSettingsToggle", _s_set_interCollisionSettingsToggle); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "clothGravity", _s_set_clothGravity); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Physics(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IgnoreCollision_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Collider _collider1 = (UnityEngine.Collider)translator.GetObject(L, 1, typeof(UnityEngine.Collider)); - UnityEngine.Collider _collider2 = (UnityEngine.Collider)translator.GetObject(L, 2, typeof(UnityEngine.Collider)); - - UnityEngine.Physics.IgnoreCollision( _collider1, _collider2 ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Collider _collider1 = (UnityEngine.Collider)translator.GetObject(L, 1, typeof(UnityEngine.Collider)); - UnityEngine.Collider _collider2 = (UnityEngine.Collider)translator.GetObject(L, 2, typeof(UnityEngine.Collider)); - bool _ignore = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.Physics.IgnoreCollision( _collider1, _collider2, _ignore ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.IgnoreCollision!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IgnoreLayerCollision_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _layer1 = LuaAPI.xlua_tointeger(L, 1); - int _layer2 = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Physics.IgnoreLayerCollision( _layer1, _layer2 ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _layer1 = LuaAPI.xlua_tointeger(L, 1); - int _layer2 = LuaAPI.xlua_tointeger(L, 2); - bool _ignore = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.Physics.IgnoreLayerCollision( _layer1, _layer2, _ignore ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.IgnoreLayerCollision!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIgnoreLayerCollision_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _layer1 = LuaAPI.xlua_tointeger(L, 1); - int _layer2 = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Physics.GetIgnoreLayerCollision( _layer1, _layer2 ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetIgnoreCollision_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Collider _collider1 = (UnityEngine.Collider)translator.GetObject(L, 1, typeof(UnityEngine.Collider)); - UnityEngine.Collider _collider2 = (UnityEngine.Collider)translator.GetObject(L, 2, typeof(UnityEngine.Collider)); - - var gen_ret = UnityEngine.Physics.GetIgnoreCollision( _collider1, _collider2 ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - - var gen_ret = UnityEngine.Physics.Raycast( _ray ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics.Raycast( _ray, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = UnityEngine.Physics.Raycast( _ray, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics.Raycast( _ray, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics.Raycast( _ray, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics.Raycast( _ray, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.Raycast( _ray, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.Raycast( _ray, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.Raycast( _origin, _direction, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.Raycast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Linecast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - - var gen_ret = UnityEngine.Physics.Linecast( _start, _end ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics.Linecast( _start, _end, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = UnityEngine.Physics.Linecast( _start, _end, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - UnityEngine.RaycastHit _hitInfo; - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics.Linecast( _start, _end, out _hitInfo, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.Linecast( _start, _end, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - UnityEngine.RaycastHit _hitInfo; - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.Linecast( _start, _end, out _hitInfo, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.Linecast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.CapsuleCast( _point1, _point2, _radius, _direction, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.CapsuleCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SphereCast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = UnityEngine.Physics.SphereCast( _origin, _radius, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics.SphereCast( _origin, _radius, _direction, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics.SphereCast( _origin, _radius, _direction, out _hitInfo, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.SphereCast( _ray, _radius, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.SphereCast( _origin, _radius, _direction, out _hitInfo, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.SphereCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCast_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, _orientation ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, _orientation, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, _orientation, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation, _maxDistance, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, _orientation, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit _hitInfo; - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.BoxCast( _center, _halfExtents, _direction, out _hitInfo, _orientation, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.BoxCast!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RaycastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - - var gen_ret = UnityEngine.Physics.RaycastAll( _ray ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics.RaycastAll( _ray, _maxDistance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics.RaycastAll( _ray, _maxDistance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - - var gen_ret = UnityEngine.Physics.RaycastAll( _origin, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.RaycastAll( _origin, _direction, _maxDistance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.RaycastAll( _origin, _direction, _maxDistance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.RaycastAll( _ray, _maxDistance, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.RaycastAll( _origin, _direction, _maxDistance, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.RaycastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RaycastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 2, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _ray, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 2, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _ray, _results, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 2, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _ray, _results, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _origin, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _origin, _direction, _results, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 2, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _ray, _results, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _origin, _direction, _results, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.RaycastNonAlloc( _origin, _direction, _results, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.RaycastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - - var gen_ret = UnityEngine.Physics.CapsuleCastAll( _point1, _point2, _radius, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics.CapsuleCastAll( _point1, _point2, _radius, _direction, _maxDistance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics.CapsuleCastAll( _point1, _point2, _radius, _direction, _maxDistance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.CapsuleCastAll( _point1, _point2, _radius, _direction, _maxDistance, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.CapsuleCastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SphereCastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _ray, _radius ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _ray, _radius, _maxDistance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _ray, _radius, _maxDistance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _origin, _radius, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _origin, _radius, _direction, _maxDistance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _origin, _radius, _direction, _maxDistance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _ray, _radius, _maxDistance, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.SphereCastAll( _origin, _radius, _direction, _maxDistance, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.SphereCastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCapsule_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 1, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.OverlapCapsule( _point0, _point1, _radius ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 1, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.OverlapCapsule( _point0, _point1, _radius, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 1, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.OverlapCapsule( _point0, _point1, _radius, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.OverlapCapsule!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapSphere_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics.OverlapSphere( _position, _radius ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics.OverlapSphere( _position, _radius, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.OverlapSphere( _position, _radius, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.OverlapSphere!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Simulate_xlua_st_(RealStatePtr L) - { - try { - - - - - { - float _step = (float)LuaAPI.lua_tonumber(L, 1); - - UnityEngine.Physics.Simulate( _step ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SyncTransforms_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Physics.SyncTransforms( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ComputePenetration_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Collider _colliderA = (UnityEngine.Collider)translator.GetObject(L, 1, typeof(UnityEngine.Collider)); - UnityEngine.Vector3 _positionA;translator.Get(L, 2, out _positionA); - UnityEngine.Quaternion _rotationA;translator.Get(L, 3, out _rotationA); - UnityEngine.Collider _colliderB = (UnityEngine.Collider)translator.GetObject(L, 4, typeof(UnityEngine.Collider)); - UnityEngine.Vector3 _positionB;translator.Get(L, 5, out _positionB); - UnityEngine.Quaternion _rotationB;translator.Get(L, 6, out _rotationB); - UnityEngine.Vector3 _direction; - float _distance; - - var gen_ret = UnityEngine.Physics.ComputePenetration( _colliderA, _positionA, _rotationA, _colliderB, _positionB, _rotationB, out _direction, out _distance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.PushUnityEngineVector3(L, _direction); - - LuaAPI.lua_pushnumber(L, _distance); - - - - - return 3; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 1, out _point); - UnityEngine.Collider _collider = (UnityEngine.Collider)translator.GetObject(L, 2, typeof(UnityEngine.Collider)); - UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 4, out _rotation); - - var gen_ret = UnityEngine.Physics.ClosestPoint( _point, _collider, _position, _rotation ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapSphereNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 3, typeof(UnityEngine.Collider[])); - - var gen_ret = UnityEngine.Physics.OverlapSphereNonAlloc( _position, _radius, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 3, typeof(UnityEngine.Collider[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.OverlapSphereNonAlloc( _position, _radius, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 3, typeof(UnityEngine.Collider[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.OverlapSphereNonAlloc( _position, _radius, _results, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.OverlapSphereNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckSphere_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Physics.CheckSphere( _position, _radius ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.Physics.CheckSphere( _position, _radius, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _position;translator.Get(L, 1, out _position); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - int _layerMask = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.CheckSphere( _position, _radius, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.CheckSphere!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CapsuleCastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = UnityEngine.Physics.CapsuleCastNonAlloc( _point1, _point2, _radius, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics.CapsuleCastNonAlloc( _point1, _point2, _radius, _direction, _results, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = UnityEngine.Physics.CapsuleCastNonAlloc( _point1, _point2, _radius, _direction, _results, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector3 _point1;translator.Get(L, 1, out _point1); - UnityEngine.Vector3 _point2;translator.Get(L, 2, out _point2); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Vector3 _direction;translator.Get(L, 4, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 5, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 8, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.CapsuleCastNonAlloc( _point1, _point2, _radius, _direction, _results, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.CapsuleCastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SphereCastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _ray, _radius, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _ray, _radius, _results, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _ray, _radius, _results, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _origin, _radius, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _origin, _radius, _direction, _results, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _origin, _radius, _direction, _results, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Ray _ray;translator.Get(L, 1, out _ray); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 3, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 4); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _ray, _radius, _results, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 1, out _origin); - float _radius = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.SphereCastNonAlloc( _origin, _radius, _direction, _results, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.SphereCastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckCapsule_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Physics.CheckCapsule( _start, _end, _radius ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.CheckCapsule( _start, _end, _radius, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _start;translator.Get(L, 1, out _start); - UnityEngine.Vector3 _end;translator.Get(L, 2, out _end); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.CheckCapsule( _start, _end, _radius, _layerMask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.CheckCapsule!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CheckBox_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - - var gen_ret = UnityEngine.Physics.CheckBox( _center, _halfExtents ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 3, out _orientation); - - var gen_ret = UnityEngine.Physics.CheckBox( _center, _halfExtents, _orientation ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 3, out _orientation); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.CheckBox( _center, _halfExtents, _orientation, _layerMask ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 3, out _orientation); - int _layermask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.CheckBox( _center, _halfExtents, _orientation, _layermask, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.CheckBox!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapBox_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - - var gen_ret = UnityEngine.Physics.OverlapBox( _center, _halfExtents ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 3, out _orientation); - - var gen_ret = UnityEngine.Physics.OverlapBox( _center, _halfExtents, _orientation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 3, out _orientation); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = UnityEngine.Physics.OverlapBox( _center, _halfExtents, _orientation, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Quaternion _orientation;translator.Get(L, 3, out _orientation); - int _layerMask = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 5, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.OverlapBox( _center, _halfExtents, _orientation, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.OverlapBox!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapBoxNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 3, typeof(UnityEngine.Collider[])); - - var gen_ret = UnityEngine.Physics.OverlapBoxNonAlloc( _center, _halfExtents, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 3, typeof(UnityEngine.Collider[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - - var gen_ret = UnityEngine.Physics.OverlapBoxNonAlloc( _center, _halfExtents, _results, _orientation ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 3, typeof(UnityEngine.Collider[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - int _mask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics.OverlapBoxNonAlloc( _center, _halfExtents, _results, _orientation, _mask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 3, typeof(UnityEngine.Collider[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - int _mask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.OverlapBoxNonAlloc( _center, _halfExtents, _results, _orientation, _mask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.OverlapBoxNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCastNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - - var gen_ret = UnityEngine.Physics.BoxCastNonAlloc( _center, _halfExtents, _direction, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - - var gen_ret = UnityEngine.Physics.BoxCastNonAlloc( _center, _halfExtents, _direction, _results, _orientation ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Physics.BoxCastNonAlloc( _center, _halfExtents, _direction, _results, _orientation, _maxDistance ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - - var gen_ret = UnityEngine.Physics.BoxCastNonAlloc( _center, _halfExtents, _direction, _results, _orientation, _maxDistance, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)&& translator.Assignable(L, 8)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.RaycastHit[] _results = (UnityEngine.RaycastHit[])translator.GetObject(L, 4, typeof(UnityEngine.RaycastHit[])); - UnityEngine.Quaternion _orientation;translator.Get(L, 5, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 6); - int _layerMask = LuaAPI.xlua_tointeger(L, 7); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 8, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.BoxCastNonAlloc( _center, _halfExtents, _direction, _results, _orientation, _maxDistance, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.BoxCastNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BoxCastAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = UnityEngine.Physics.BoxCastAll( _center, _halfExtents, _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - - var gen_ret = UnityEngine.Physics.BoxCastAll( _center, _halfExtents, _direction, _orientation ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Physics.BoxCastAll( _center, _halfExtents, _direction, _orientation, _maxDistance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.Physics.BoxCastAll( _center, _halfExtents, _direction, _orientation, _maxDistance, _layerMask ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Vector3 _center;translator.Get(L, 1, out _center); - UnityEngine.Vector3 _halfExtents;translator.Get(L, 2, out _halfExtents); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - UnityEngine.Quaternion _orientation;translator.Get(L, 4, out _orientation); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 5); - int _layerMask = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 7, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.BoxCastAll( _center, _halfExtents, _direction, _orientation, _maxDistance, _layerMask, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.BoxCastAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverlapCapsuleNonAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 1, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - - var gen_ret = UnityEngine.Physics.OverlapCapsuleNonAlloc( _point0, _point1, _radius, _results ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 1, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.Physics.OverlapCapsuleNonAlloc( _point0, _point1, _radius, _results, _layerMask ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Vector3 _point0;translator.Get(L, 1, out _point0); - UnityEngine.Vector3 _point1;translator.Get(L, 2, out _point1); - float _radius = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Collider[] _results = (UnityEngine.Collider[])translator.GetObject(L, 4, typeof(UnityEngine.Collider[])); - int _layerMask = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 6, out _queryTriggerInteraction); - - var gen_ret = UnityEngine.Physics.OverlapCapsuleNonAlloc( _point0, _point1, _radius, _results, _layerMask, _queryTriggerInteraction ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.OverlapCapsuleNonAlloc!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RebuildBroadphaseRegions_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Bounds _worldBounds;translator.Get(L, 1, out _worldBounds); - int _subdivisions = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Physics.RebuildBroadphaseRegions( _worldBounds, _subdivisions ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BakeMesh_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _meshID = LuaAPI.xlua_tointeger(L, 1); - bool _convex = LuaAPI.lua_toboolean(L, 2); - - UnityEngine.Physics.BakeMesh( _meshID, _convex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_gravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Physics.gravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultContactOffset(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics.defaultContactOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sleepThreshold(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics.sleepThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_queriesHitTriggers(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics.queriesHitTriggers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_queriesHitBackfaces(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics.queriesHitBackfaces); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounceThreshold(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics.bounceThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultMaxDepenetrationVelocity(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics.defaultMaxDepenetrationVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultSolverIterations(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Physics.defaultSolverIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultSolverVelocityIterations(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Physics.defaultSolverVelocityIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultMaxAngularSpeed(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics.defaultMaxAngularSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_improvedPatchFriction(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics.improvedPatchFriction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultPhysicsScene(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Physics.defaultPhysicsScene); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoSimulation(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics.autoSimulation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoSyncTransforms(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics.autoSyncTransforms); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reuseCollisionCallbacks(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics.reuseCollisionCallbacks); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interCollisionDistance(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics.interCollisionDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interCollisionStiffness(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Physics.interCollisionStiffness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interCollisionSettingsToggle(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Physics.interCollisionSettingsToggle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clothGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Physics.clothGravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_gravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Vector3 gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics.gravity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultContactOffset(RealStatePtr L) - { - try { - - UnityEngine.Physics.defaultContactOffset = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sleepThreshold(RealStatePtr L) - { - try { - - UnityEngine.Physics.sleepThreshold = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_queriesHitTriggers(RealStatePtr L) - { - try { - - UnityEngine.Physics.queriesHitTriggers = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_queriesHitBackfaces(RealStatePtr L) - { - try { - - UnityEngine.Physics.queriesHitBackfaces = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounceThreshold(RealStatePtr L) - { - try { - - UnityEngine.Physics.bounceThreshold = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultMaxDepenetrationVelocity(RealStatePtr L) - { - try { - - UnityEngine.Physics.defaultMaxDepenetrationVelocity = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultSolverIterations(RealStatePtr L) - { - try { - - UnityEngine.Physics.defaultSolverIterations = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultSolverVelocityIterations(RealStatePtr L) - { - try { - - UnityEngine.Physics.defaultSolverVelocityIterations = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultMaxAngularSpeed(RealStatePtr L) - { - try { - - UnityEngine.Physics.defaultMaxAngularSpeed = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_improvedPatchFriction(RealStatePtr L) - { - try { - - UnityEngine.Physics.improvedPatchFriction = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoSimulation(RealStatePtr L) - { - try { - - UnityEngine.Physics.autoSimulation = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoSyncTransforms(RealStatePtr L) - { - try { - - UnityEngine.Physics.autoSyncTransforms = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reuseCollisionCallbacks(RealStatePtr L) - { - try { - - UnityEngine.Physics.reuseCollisionCallbacks = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interCollisionDistance(RealStatePtr L) - { - try { - - UnityEngine.Physics.interCollisionDistance = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interCollisionStiffness(RealStatePtr L) - { - try { - - UnityEngine.Physics.interCollisionStiffness = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interCollisionSettingsToggle(RealStatePtr L) - { - try { - - UnityEngine.Physics.interCollisionSettingsToggle = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clothGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Vector3 gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Physics.clothGravity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_ContactModifyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action> gen_delegate = translator.GetDelegate>>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action>!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Physics.ContactModifyEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Physics.ContactModifyEvent -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.ContactModifyEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_ContactModifyEventCCD(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action> gen_delegate = translator.GetDelegate>>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action>!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.Physics.ContactModifyEventCCD += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.Physics.ContactModifyEventCCD -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Physics.ContactModifyEventCCD!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Playables_PlayableAssetWrap.cs b/Assets/XLua/Gen/UnityEngine_Playables_PlayableAssetWrap.cs deleted file mode 100644 index bafb6a8b8..000000000 --- a/Assets/XLua/Gen/UnityEngine_Playables_PlayableAssetWrap.cs +++ /dev/null @@ -1,128 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePlayablesPlayableAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Playables.PlayableAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreatePlayable", _m_CreatePlayable); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "outputs", _g_get_outputs); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Playables.PlayableAsset does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreatePlayable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableAsset gen_to_be_invoked = (UnityEngine.Playables.PlayableAsset)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Playables.PlayableGraph _graph;translator.Get(L, 2, out _graph); - UnityEngine.GameObject _owner = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject)); - - var gen_ret = gen_to_be_invoked.CreatePlayable( _graph, _owner ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableAsset gen_to_be_invoked = (UnityEngine.Playables.PlayableAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_outputs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableAsset gen_to_be_invoked = (UnityEngine.Playables.PlayableAsset)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.outputs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Playables_PlayableDirectorWrap.cs b/Assets/XLua/Gen/UnityEngine_Playables_PlayableDirectorWrap.cs deleted file mode 100644 index 1019768ff..000000000 --- a/Assets/XLua/Gen/UnityEngine_Playables_PlayableDirectorWrap.cs +++ /dev/null @@ -1,852 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePlayablesPlayableDirectorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Playables.PlayableDirector); - Utils.BeginObjectRegister(type, L, translator, 0, 17, 9, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DeferredEvaluate", _m_DeferredEvaluate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGenericBinding", _m_SetGenericBinding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Evaluate", _m_Evaluate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Resume", _m_Resume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RebuildGraph", _m_RebuildGraph); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearReferenceValue", _m_ClearReferenceValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetReferenceValue", _m_SetReferenceValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetReferenceValue", _m_GetReferenceValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGenericBinding", _m_GetGenericBinding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearGenericBinding", _m_ClearGenericBinding); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RebindPlayableGraphOutputs", _m_RebindPlayableGraphOutputs); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "played", _e_played); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "paused", _e_paused); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "stopped", _e_stopped); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "state", _g_get_state); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "extrapolationMode", _g_get_extrapolationMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playableAsset", _g_get_playableAsset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playableGraph", _g_get_playableGraph); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playOnAwake", _g_get_playOnAwake); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeUpdateMode", _g_get_timeUpdateMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "initialTime", _g_get_initialTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "duration", _g_get_duration); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "extrapolationMode", _s_set_extrapolationMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playableAsset", _s_set_playableAsset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playOnAwake", _s_set_playOnAwake); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeUpdateMode", _s_set_timeUpdateMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "initialTime", _s_set_initialTime); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Playables.PlayableDirector(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.PlayableDirector constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeferredEvaluate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.DeferredEvaluate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Playables.PlayableAsset _asset = (UnityEngine.Playables.PlayableAsset)translator.GetObject(L, 2, typeof(UnityEngine.Playables.PlayableAsset)); - - gen_to_be_invoked.Play( _asset ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Playables.PlayableAsset _asset = (UnityEngine.Playables.PlayableAsset)translator.GetObject(L, 2, typeof(UnityEngine.Playables.PlayableAsset)); - UnityEngine.Playables.DirectorWrapMode _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.Play( _asset, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.PlayableDirector.Play!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGenericBinding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Object _key = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - UnityEngine.Object _value = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - - gen_to_be_invoked.SetGenericBinding( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Evaluate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Evaluate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Resume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Resume( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RebuildGraph(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RebuildGraph( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearReferenceValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.PropertyName _id;translator.Get(L, 2, out _id); - - gen_to_be_invoked.ClearReferenceValue( _id ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetReferenceValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.PropertyName _id;translator.Get(L, 2, out _id); - UnityEngine.Object _value = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); - - gen_to_be_invoked.SetReferenceValue( _id, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetReferenceValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.PropertyName _id;translator.Get(L, 2, out _id); - bool _idValid; - - var gen_ret = gen_to_be_invoked.GetReferenceValue( _id, out _idValid ); - translator.Push(L, gen_ret); - LuaAPI.lua_pushboolean(L, _idValid); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGenericBinding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Object _key = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - var gen_ret = gen_to_be_invoked.GetGenericBinding( _key ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearGenericBinding(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Object _key = (UnityEngine.Object)translator.GetObject(L, 2, typeof(UnityEngine.Object)); - - gen_to_be_invoked.ClearGenericBinding( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RebindPlayableGraphOutputs(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RebindPlayableGraphOutputs( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_state(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.state); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_extrapolationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.extrapolationMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playableAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.playableAsset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playableGraph(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.playableGraph); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playOnAwake); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeUpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.timeUpdateMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_initialTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.initialTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_duration(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.duration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_extrapolationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - UnityEngine.Playables.DirectorWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.extrapolationMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playableAsset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playableAsset = (UnityEngine.Playables.PlayableAsset)translator.GetObject(L, 2, typeof(UnityEngine.Playables.PlayableAsset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playOnAwake = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeUpdateMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - UnityEngine.Playables.DirectorUpdateMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.timeUpdateMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.time = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_initialTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.initialTime = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_played(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.played += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.played -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.PlayableDirector.played!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_paused(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.paused += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.paused -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.PlayableDirector.paused!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_stopped(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Playables.PlayableDirector gen_to_be_invoked = (UnityEngine.Playables.PlayableDirector)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.stopped += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.stopped -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.PlayableDirector.stopped!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Playables_PlayableWrap.cs b/Assets/XLua/Gen/UnityEngine_Playables_PlayableWrap.cs deleted file mode 100644 index a12939ea6..000000000 --- a/Assets/XLua/Gen/UnityEngine_Playables_PlayableWrap.cs +++ /dev/null @@ -1,233 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePlayablesPlayableWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Playables.Playable); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHandle", _m_GetHandle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPlayableType", _m_GetPlayableType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Null", _g_get_Null); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Playables.Playable)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.Playable constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Playables.PlayableGraph _graph;translator.Get(L, 1, out _graph); - int _inputCount = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.Playables.Playable.Create( _graph, _inputCount ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Playables.PlayableGraph _graph;translator.Get(L, 1, out _graph); - - var gen_ret = UnityEngine.Playables.Playable.Create( _graph ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Playables.Playable.Create!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHandle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.Playable gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHandle( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPlayableType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.Playable gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetPlayableType( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Playables.Playable gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Playables.Playable _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Null(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Playables.Playable.Null); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_PlayerPrefsWrap.cs b/Assets/XLua/Gen/UnityEngine_PlayerPrefsWrap.cs deleted file mode 100644 index f4a3d283a..000000000 --- a/Assets/XLua/Gen/UnityEngine_PlayerPrefsWrap.cs +++ /dev/null @@ -1,387 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePlayerPrefsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.PlayerPrefs); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 11, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetInt", _m_SetInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInt", _m_GetInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetFloat", _m_SetFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFloat", _m_GetFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetString", _m_SetString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetString", _m_GetString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "HasKey", _m_HasKey_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DeleteKey", _m_DeleteKey_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DeleteAll", _m_DeleteAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Save", _m_Save_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.PlayerPrefs(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PlayerPrefs constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInt_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - int _value = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.PlayerPrefs.SetInt( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetInt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.PlayerPrefs.GetInt( _key ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _key = LuaAPI.lua_tostring(L, 1); - int _defaultValue = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.PlayerPrefs.GetInt( _key, _defaultValue ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PlayerPrefs.GetInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloat_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - UnityEngine.PlayerPrefs.SetFloat( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFloat_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.PlayerPrefs.GetFloat( _key ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _key = LuaAPI.lua_tostring(L, 1); - float _defaultValue = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.PlayerPrefs.GetFloat( _key, _defaultValue ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PlayerPrefs.GetFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetString_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - - UnityEngine.PlayerPrefs.SetString( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetString_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.PlayerPrefs.GetString( _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 1); - string _defaultValue = LuaAPI.lua_tostring(L, 2); - - var gen_ret = UnityEngine.PlayerPrefs.GetString( _key, _defaultValue ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.PlayerPrefs.GetString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasKey_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.PlayerPrefs.HasKey( _key ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeleteKey_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - UnityEngine.PlayerPrefs.DeleteKey( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeleteAll_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.PlayerPrefs.DeleteAll( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Save_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.PlayerPrefs.Save( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Purchasing_ProductDefinitionWrap.cs b/Assets/XLua/Gen/UnityEngine_Purchasing_ProductDefinitionWrap.cs deleted file mode 100644 index 57c9f2a4e..000000000 --- a/Assets/XLua/Gen/UnityEngine_Purchasing_ProductDefinitionWrap.cs +++ /dev/null @@ -1,284 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePurchasingProductDefinitionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Purchasing.ProductDefinition); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 6, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "storeSpecificId", _g_get_storeSpecificId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "payouts", _g_get_payouts); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "payout", _g_get_payout); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 4)) - { - string _id = LuaAPI.lua_tostring(L, 2); - string _storeSpecificId = LuaAPI.lua_tostring(L, 3); - UnityEngine.Purchasing.ProductType _type;translator.Get(L, 4, out _type); - - var gen_ret = new UnityEngine.Purchasing.ProductDefinition(_id, _storeSpecificId, _type); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - string _id = LuaAPI.lua_tostring(L, 2); - string _storeSpecificId = LuaAPI.lua_tostring(L, 3); - UnityEngine.Purchasing.ProductType _type;translator.Get(L, 4, out _type); - bool _enabled = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = new UnityEngine.Purchasing.ProductDefinition(_id, _storeSpecificId, _type, _enabled); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && translator.Assignable(L, 6)) - { - string _id = LuaAPI.lua_tostring(L, 2); - string _storeSpecificId = LuaAPI.lua_tostring(L, 3); - UnityEngine.Purchasing.ProductType _type;translator.Get(L, 4, out _type); - bool _enabled = LuaAPI.lua_toboolean(L, 5); - UnityEngine.Purchasing.PayoutDefinition _payout = (UnityEngine.Purchasing.PayoutDefinition)translator.GetObject(L, 6, typeof(UnityEngine.Purchasing.PayoutDefinition)); - - var gen_ret = new UnityEngine.Purchasing.ProductDefinition(_id, _storeSpecificId, _type, _enabled, _payout); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && translator.Assignable>(L, 6)) - { - string _id = LuaAPI.lua_tostring(L, 2); - string _storeSpecificId = LuaAPI.lua_tostring(L, 3); - UnityEngine.Purchasing.ProductType _type;translator.Get(L, 4, out _type); - bool _enabled = LuaAPI.lua_toboolean(L, 5); - System.Collections.Generic.IEnumerable _payouts = (System.Collections.Generic.IEnumerable)translator.GetObject(L, 6, typeof(System.Collections.Generic.IEnumerable)); - - var gen_ret = new UnityEngine.Purchasing.ProductDefinition(_id, _storeSpecificId, _type, _enabled, _payouts); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _id = LuaAPI.lua_tostring(L, 2); - UnityEngine.Purchasing.ProductType _type;translator.Get(L, 3, out _type); - - var gen_ret = new UnityEngine.Purchasing.ProductDefinition(_id, _type); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.ProductDefinition constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_id(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.id); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_storeSpecificId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.storeSpecificId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - translator.PushUnityEnginePurchasingProductType(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_payouts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.payouts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_payout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductDefinition gen_to_be_invoked = (UnityEngine.Purchasing.ProductDefinition)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.payout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Purchasing_ProductMetadataWrap.cs b/Assets/XLua/Gen/UnityEngine_Purchasing_ProductMetadataWrap.cs deleted file mode 100644 index ee1627552..000000000 --- a/Assets/XLua/Gen/UnityEngine_Purchasing_ProductMetadataWrap.cs +++ /dev/null @@ -1,181 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePurchasingProductMetadataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Purchasing.ProductMetadata); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 5, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localizedPriceString", _g_get_localizedPriceString); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localizedTitle", _g_get_localizedTitle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localizedDescription", _g_get_localizedDescription); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isoCurrencyCode", _g_get_isoCurrencyCode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localizedPrice", _g_get_localizedPrice); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) || translator.IsDecimal(L, 6))) - { - string _priceString = LuaAPI.lua_tostring(L, 2); - string _title = LuaAPI.lua_tostring(L, 3); - string _description = LuaAPI.lua_tostring(L, 4); - string _currencyCode = LuaAPI.lua_tostring(L, 5); - decimal _localizedPrice;translator.Get(L, 6, out _localizedPrice); - - var gen_ret = new UnityEngine.Purchasing.ProductMetadata(_priceString, _title, _description, _currencyCode, _localizedPrice); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Purchasing.ProductMetadata _productMetadata = (UnityEngine.Purchasing.ProductMetadata)translator.GetObject(L, 2, typeof(UnityEngine.Purchasing.ProductMetadata)); - - var gen_ret = new UnityEngine.Purchasing.ProductMetadata(_productMetadata); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Purchasing.ProductMetadata(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.ProductMetadata constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localizedPriceString(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductMetadata gen_to_be_invoked = (UnityEngine.Purchasing.ProductMetadata)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.localizedPriceString); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localizedTitle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductMetadata gen_to_be_invoked = (UnityEngine.Purchasing.ProductMetadata)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.localizedTitle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localizedDescription(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductMetadata gen_to_be_invoked = (UnityEngine.Purchasing.ProductMetadata)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.localizedDescription); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isoCurrencyCode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductMetadata gen_to_be_invoked = (UnityEngine.Purchasing.ProductMetadata)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.isoCurrencyCode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localizedPrice(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.ProductMetadata gen_to_be_invoked = (UnityEngine.Purchasing.ProductMetadata)translator.FastGetCSObj(L, 1); - translator.PushDecimal(L, gen_to_be_invoked.localizedPrice); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Purchasing_ProductWrap.cs b/Assets/XLua/Gen/UnityEngine_Purchasing_ProductWrap.cs deleted file mode 100644 index bf666f447..000000000 --- a/Assets/XLua/Gen/UnityEngine_Purchasing_ProductWrap.cs +++ /dev/null @@ -1,246 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePurchasingProductWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Purchasing.Product); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 8, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "definition", _g_get_definition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "metadata", _g_get_metadata); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "availableToPurchase", _g_get_availableToPurchase); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transactionID", _g_get_transactionID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "appleOriginalTransactionID", _g_get_appleOriginalTransactionID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "appleProductIsRestored", _g_get_appleProductIsRestored); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasReceipt", _g_get_hasReceipt); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "receipt", _g_get_receipt); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Purchasing.Product does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_definition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.definition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_metadata(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.metadata); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_availableToPurchase(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.availableToPurchase); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transactionID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.transactionID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_appleOriginalTransactionID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.appleOriginalTransactionID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_appleProductIsRestored(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.appleProductIsRestored); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasReceipt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasReceipt); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_receipt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Purchasing.Product gen_to_be_invoked = (UnityEngine.Purchasing.Product)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.receipt); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleStoreKitTestTangleWrap.cs b/Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleStoreKitTestTangleWrap.cs deleted file mode 100644 index b6bdb889b..000000000 --- a/Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleStoreKitTestTangleWrap.cs +++ /dev/null @@ -1,110 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePurchasingSecurityAppleStoreKitTestTangleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Purchasing.Security.AppleStoreKitTestTangle); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Data", _m_Data_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IsPopulated", UnityEngine.Purchasing.Security.AppleStoreKitTestTangle.IsPopulated); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Purchasing.Security.AppleStoreKitTestTangle(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.Security.AppleStoreKitTestTangle constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Data_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.Purchasing.Security.AppleStoreKitTestTangle.Data( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleTangleWrap.cs b/Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleTangleWrap.cs deleted file mode 100644 index 9cf6cfea5..000000000 --- a/Assets/XLua/Gen/UnityEngine_Purchasing_Security_AppleTangleWrap.cs +++ /dev/null @@ -1,110 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePurchasingSecurityAppleTangleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Purchasing.Security.AppleTangle); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Data", _m_Data_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IsPopulated", UnityEngine.Purchasing.Security.AppleTangle.IsPopulated); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Purchasing.Security.AppleTangle(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.Security.AppleTangle constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Data_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.Purchasing.Security.AppleTangle.Data( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Purchasing_Security_GooglePlayTangleWrap.cs b/Assets/XLua/Gen/UnityEngine_Purchasing_Security_GooglePlayTangleWrap.cs deleted file mode 100644 index 0e9edb4a3..000000000 --- a/Assets/XLua/Gen/UnityEngine_Purchasing_Security_GooglePlayTangleWrap.cs +++ /dev/null @@ -1,110 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEnginePurchasingSecurityGooglePlayTangleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Purchasing.Security.GooglePlayTangle); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Data", _m_Data_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IsPopulated", UnityEngine.Purchasing.Security.GooglePlayTangle.IsPopulated); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Purchasing.Security.GooglePlayTangle(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.Security.GooglePlayTangle constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Data_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = UnityEngine.Purchasing.Security.GooglePlayTangle.Data( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_QuaternionWrap.cs b/Assets/XLua/Gen/UnityEngine_QuaternionWrap.cs deleted file mode 100644 index 5532a358f..000000000 --- a/Assets/XLua/Gen/UnityEngine_QuaternionWrap.cs +++ /dev/null @@ -1,1138 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineQuaternionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Quaternion); - Utils.BeginObjectRegister(type, L, translator, 2, 8, 6, 5); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLookRotation", _m_SetLookRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToAngleAxis", _m_ToAngleAxis); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFromToRotation", _m_SetFromToRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Normalize", _m_Normalize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eulerAngles", _g_get_eulerAngles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalized", _g_get_normalized); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "w", _g_get_w); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eulerAngles", _s_set_eulerAngles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "w", _s_set_w); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 15, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Dot", _m_Dot_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Angle", _m_Angle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Euler", _m_Euler_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RotateTowards", _m_RotateTowards_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Normalize", _m_Normalize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FromToRotation", _m_FromToRotation_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Inverse", _m_Inverse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Slerp", _m_Slerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SlerpUnclamped", _m_SlerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AngleAxis", _m_AngleAxis_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LookRotation", _m_LookRotation_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilon", UnityEngine.Quaternion.kEpsilon); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "identity", _g_get_identity); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - float _w = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new UnityEngine.Quaternion(_x, _y, _z, _w); - translator.PushUnityEngineQuaternion(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineQuaternion(L, default(UnityEngine.Quaternion)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Quaternion leftside;translator.Get(L, 1, out leftside); - UnityEngine.Quaternion rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineQuaternion(L, leftside * rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Quaternion leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector3(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Quaternion!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Quaternion leftside;translator.Get(L, 1, out leftside); - UnityEngine.Quaternion rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Quaternion!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _newX = (float)LuaAPI.lua_tonumber(L, 2); - float _newY = (float)LuaAPI.lua_tonumber(L, 3); - float _newZ = (float)LuaAPI.lua_tonumber(L, 4); - float _newW = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.Set( _newX, _newY, _newZ, _newW ); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _a;translator.Get(L, 1, out _a); - UnityEngine.Quaternion _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Quaternion.Dot( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLookRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _view;translator.Get(L, 2, out _view); - - gen_to_be_invoked.SetLookRotation( _view ); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _view;translator.Get(L, 2, out _view); - UnityEngine.Vector3 _up;translator.Get(L, 3, out _up); - - gen_to_be_invoked.SetLookRotation( _view, _up ); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion.SetLookRotation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Angle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _a;translator.Get(L, 1, out _a); - UnityEngine.Quaternion _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Quaternion.Angle( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Euler_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 1); - float _y = (float)LuaAPI.lua_tonumber(L, 2); - float _z = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Quaternion.Euler( _x, _y, _z ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Vector3 _euler;translator.Get(L, 1, out _euler); - - var gen_ret = UnityEngine.Quaternion.Euler( _euler ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion.Euler!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToAngleAxis(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _angle; - UnityEngine.Vector3 _axis; - - gen_to_be_invoked.ToAngleAxis( out _angle, out _axis ); - LuaAPI.lua_pushnumber(L, _angle); - - translator.PushUnityEngineVector3(L, _axis); - - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFromToRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _fromDirection;translator.Get(L, 2, out _fromDirection); - UnityEngine.Vector3 _toDirection;translator.Get(L, 3, out _toDirection); - - gen_to_be_invoked.SetFromToRotation( _fromDirection, _toDirection ); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RotateTowards_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _from;translator.Get(L, 1, out _from); - UnityEngine.Quaternion _to;translator.Get(L, 2, out _to); - float _maxDegreesDelta = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Quaternion.RotateTowards( _from, _to, _maxDegreesDelta ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Normalize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _q;translator.Get(L, 1, out _q); - - var gen_ret = UnityEngine.Quaternion.Normalize( _q ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Normalize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.Normalize( ); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Quaternion _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FromToRotation_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _fromDirection;translator.Get(L, 1, out _fromDirection); - UnityEngine.Vector3 _toDirection;translator.Get(L, 2, out _toDirection); - - var gen_ret = UnityEngine.Quaternion.FromToRotation( _fromDirection, _toDirection ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Inverse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _rotation;translator.Get(L, 1, out _rotation); - - var gen_ret = UnityEngine.Quaternion.Inverse( _rotation ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Slerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _a;translator.Get(L, 1, out _a); - UnityEngine.Quaternion _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Quaternion.Slerp( _a, _b, _t ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SlerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _a;translator.Get(L, 1, out _a); - UnityEngine.Quaternion _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Quaternion.SlerpUnclamped( _a, _b, _t ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _a;translator.Get(L, 1, out _a); - UnityEngine.Quaternion _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Quaternion.Lerp( _a, _b, _t ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Quaternion _a;translator.Get(L, 1, out _a); - UnityEngine.Quaternion _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Quaternion.LerpUnclamped( _a, _b, _t ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AngleAxis_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _angle = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Vector3 _axis;translator.Get(L, 2, out _axis); - - var gen_ret = UnityEngine.Quaternion.AngleAxis( _angle, _axis ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LookRotation_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Vector3 _forward;translator.Get(L, 1, out _forward); - - var gen_ret = UnityEngine.Quaternion.LookRotation( _forward ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _forward;translator.Get(L, 1, out _forward); - UnityEngine.Vector3 _upwards;translator.Get(L, 2, out _upwards); - - var gen_ret = UnityEngine.Quaternion.LookRotation( _forward, _upwards ); - translator.PushUnityEngineQuaternion(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion.LookRotation!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_identity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineQuaternion(L, UnityEngine.Quaternion.identity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eulerAngles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.eulerAngles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.normalized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_w(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.w); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eulerAngles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.eulerAngles = gen_value; - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.z = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_w(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Quaternion gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.w = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineQuaternion(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Ray2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Ray2DWrap.cs deleted file mode 100644 index 1a05fd540..000000000 --- a/Assets/XLua/Gen/UnityEngine_Ray2DWrap.cs +++ /dev/null @@ -1,254 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRay2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Ray2D); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPoint", _m_GetPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "origin", _g_get_origin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "origin", _s_set_origin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector2 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = new UnityEngine.Ray2D(_origin, _direction); - translator.PushUnityEngineRay2D(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineRay2D(L, default(UnityEngine.Ray2D)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Ray2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Ray2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetPoint( _distance ); - translator.PushUnityEngineVector2(L, gen_ret); - - - translator.UpdateUnityEngineRay2D(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Ray2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineRay2D(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineRay2D(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineRay2D(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Ray2D.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.origin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.origin = gen_value; - - translator.UpdateUnityEngineRay2D(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray2D gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - translator.UpdateUnityEngineRay2D(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RayWrap.cs b/Assets/XLua/Gen/UnityEngine_RayWrap.cs deleted file mode 100644 index b89cf9d94..000000000 --- a/Assets/XLua/Gen/UnityEngine_RayWrap.cs +++ /dev/null @@ -1,254 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRayWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Ray); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPoint", _m_GetPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "origin", _g_get_origin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "origin", _s_set_origin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _origin;translator.Get(L, 2, out _origin); - UnityEngine.Vector3 _direction;translator.Get(L, 3, out _direction); - - var gen_ret = new UnityEngine.Ray(_origin, _direction); - translator.PushUnityEngineRay(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineRay(L, default(UnityEngine.Ray)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Ray constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Ray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _distance = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.GetPoint( _distance ); - translator.PushUnityEngineVector3(L, gen_ret); - - - translator.UpdateUnityEngineRay(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Ray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineRay(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineRay(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineRay(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Ray.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.origin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_origin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.origin = gen_value; - - translator.UpdateUnityEngineRay(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Ray gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - translator.UpdateUnityEngineRay(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RaycastHitWrap.cs b/Assets/XLua/Gen/UnityEngine_RaycastHitWrap.cs deleted file mode 100644 index 6f4d59f11..000000000 --- a/Assets/XLua/Gen/UnityEngine_RaycastHitWrap.cs +++ /dev/null @@ -1,352 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRaycastHitWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RaycastHit); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 13, 4); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderInstanceID", _g_get_colliderInstanceID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "barycentricCoordinate", _g_get_barycentricCoordinate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "triangleIndex", _g_get_triangleIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureCoord", _g_get_textureCoord); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureCoord2", _g_get_textureCoord2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "articulationBody", _g_get_articulationBody); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapCoord", _g_get_lightmapCoord); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "point", _s_set_point); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normal", _s_set_normal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "barycentricCoordinate", _s_set_barycentricCoordinate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RaycastHit)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RaycastHit constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collider(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.collider); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colliderInstanceID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.colliderInstanceID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.point); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_barycentricCoordinate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.barycentricCoordinate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_triangleIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.triangleIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureCoord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureCoord); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureCoord2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureCoord2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.transform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rigidbody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.rigidbody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_articulationBody(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.articulationBody); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapCoord(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.lightmapCoord); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_point(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.point = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.normal = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_barycentricCoordinate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.barycentricCoordinate = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_distance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RectTransformWrap.cs b/Assets/XLua/Gen/UnityEngine_RectTransformWrap.cs deleted file mode 100644 index b34f6e5d8..000000000 --- a/Assets/XLua/Gen/UnityEngine_RectTransformWrap.cs +++ /dev/null @@ -1,1423 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRectTransformWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RectTransform); - Utils.BeginObjectRegister(type, L, translator, 0, 21, 10, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceUpdateRectTransforms", _m_ForceUpdateRectTransforms); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalCorners", _m_GetLocalCorners); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWorldCorners", _m_GetWorldCorners); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInsetAndSizeFromParentEdge", _m_SetInsetAndSizeFromParentEdge); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSizeWithCurrentAnchors", _m_SetSizeWithCurrentAnchors); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorPos", _m_DOAnchorPos); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorPosX", _m_DOAnchorPosX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorPosY", _m_DOAnchorPosY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorPos3D", _m_DOAnchorPos3D); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorPos3DX", _m_DOAnchorPos3DX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorPos3DY", _m_DOAnchorPos3DY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorPos3DZ", _m_DOAnchorPos3DZ); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorMax", _m_DOAnchorMax); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOAnchorMin", _m_DOAnchorMin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPivot", _m_DOPivot); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPivotX", _m_DOPivotX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPivotY", _m_DOPivotY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOSizeDelta", _m_DOSizeDelta); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPunchAnchorPos", _m_DOPunchAnchorPos); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOShakeAnchorPos", _m_DOShakeAnchorPos); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOJumpAnchorPos", _m_DOJumpAnchorPos); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rect", _g_get_rect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchorMin", _g_get_anchorMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchorMax", _g_get_anchorMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchoredPosition", _g_get_anchoredPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sizeDelta", _g_get_sizeDelta); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anchoredPosition3D", _g_get_anchoredPosition3D); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "offsetMin", _g_get_offsetMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "offsetMax", _g_get_offsetMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drivenByObject", _g_get_drivenByObject); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchorMin", _s_set_anchorMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchorMax", _s_set_anchorMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchoredPosition", _s_set_anchoredPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sizeDelta", _s_set_sizeDelta); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pivot", _s_set_pivot); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anchoredPosition3D", _s_set_anchoredPosition3D); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "offsetMin", _s_set_offsetMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "offsetMax", _s_set_offsetMax); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "reapplyDrivenProperties", _e_reapplyDrivenProperties); - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.RectTransform(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceUpdateRectTransforms(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ForceUpdateRectTransforms( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLocalCorners(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3[] _fourCornersArray = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.GetLocalCorners( _fourCornersArray ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetWorldCorners(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3[] _fourCornersArray = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - - gen_to_be_invoked.GetWorldCorners( _fourCornersArray ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetInsetAndSizeFromParentEdge(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.RectTransform.Edge _edge;translator.Get(L, 2, out _edge); - float _inset = (float)LuaAPI.lua_tonumber(L, 3); - float _size = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.SetInsetAndSizeFromParentEdge( _edge, _inset, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSizeWithCurrentAnchors(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.RectTransform.Axis _axis;translator.Get(L, 2, out _axis); - float _size = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetSizeWithCurrentAnchors( _axis, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorPos( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorPos( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorPos!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorPosX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorPosX( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorPosX( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorPosX!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorPosY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorPosY( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorPosY( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorPosY!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorPos3D(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3D( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3D( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorPos3D!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorPos3DX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3DX( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3DX( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorPos3DX!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorPos3DY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3DY( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3DY( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorPos3DY!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorPos3DZ(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3DZ( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorPos3DZ( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorPos3DZ!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorMax(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorMax( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorMax( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorMax!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOAnchorMin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOAnchorMin( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOAnchorMin( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOAnchorMin!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPivot(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPivot( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPivotX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPivotX( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPivotY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPivotY( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOSizeDelta(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOSizeDelta( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOSizeDelta( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOSizeDelta!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPunchAnchorPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOPunchAnchorPos( _punch, _duration, _vibrato, _elasticity, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOPunchAnchorPos( _punch, _duration, _vibrato, _elasticity ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOPunchAnchorPos( _punch, _duration, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPunchAnchorPos( _punch, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOPunchAnchorPos!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOShakeAnchorPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - bool _fadeOut = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato, _randomness, _snapping, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato, _randomness, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - bool _fadeOut = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato, _randomness, _snapping, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato, _randomness, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector2 _strength;translator.Get(L, 3, out _strength); - - var gen_ret = gen_to_be_invoked.DOShakeAnchorPos( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOShakeAnchorPos!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOJumpAnchorPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _jumpPower = (float)LuaAPI.lua_tonumber(L, 3); - int _numJumps = LuaAPI.xlua_tointeger(L, 4); - float _duration = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOJumpAnchorPos( _endValue, _jumpPower, _numJumps, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _jumpPower = (float)LuaAPI.lua_tonumber(L, 3); - int _numJumps = LuaAPI.xlua_tointeger(L, 4); - float _duration = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOJumpAnchorPos( _endValue, _jumpPower, _numJumps, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.DOJumpAnchorPos!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchorMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.anchorMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchorMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.anchorMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchoredPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.anchoredPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sizeDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.sizeDelta); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.pivot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anchoredPosition3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.anchoredPosition3D); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_offsetMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.offsetMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_offsetMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.offsetMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drivenByObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.drivenByObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchorMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchorMin = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchorMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchorMax = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchoredPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchoredPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sizeDelta(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.sizeDelta = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.pivot = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anchoredPosition3D(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.anchoredPosition3D = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_offsetMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.offsetMin = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_offsetMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RectTransform gen_to_be_invoked = (UnityEngine.RectTransform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.offsetMax = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_reapplyDrivenProperties(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.RectTransform.ReapplyDrivenProperties gen_delegate = translator.GetDelegate(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.RectTransform.ReapplyDrivenProperties!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.RectTransform.reapplyDrivenProperties += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.RectTransform.reapplyDrivenProperties -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectTransform.reapplyDrivenProperties!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RectWrap.cs b/Assets/XLua/Gen/UnityEngine_RectWrap.cs deleted file mode 100644 index b0735e182..000000000 --- a/Assets/XLua/Gen/UnityEngine_RectWrap.cs +++ /dev/null @@ -1,965 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Rect); - Utils.BeginObjectRegister(type, L, translator, 1, 6, 13, 13); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Overlaps", _m_Overlaps); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMin", _g_get_xMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMin", _g_get_yMin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMax", _g_get_xMax); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMax", _g_get_yMax); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMin", _s_set_xMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMin", _s_set_yMin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMax", _s_set_xMax); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMax", _s_set_yMax); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MinMaxRect", _m_MinMaxRect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NormalizedToPoint", _m_NormalizedToPoint_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PointToNormalized", _m_PointToNormalized_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _width = (float)LuaAPI.lua_tonumber(L, 4); - float _height = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new UnityEngine.Rect(_x, _y, _width, _height); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) - { - UnityEngine.Vector2 _position;translator.Get(L, 2, out _position); - UnityEngine.Vector2 _size;translator.Get(L, 3, out _size); - - var gen_ret = new UnityEngine.Rect(_position, _size); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Rect _source;translator.Get(L, 2, out _source); - - var gen_ret = new UnityEngine.Rect(_source); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Rect)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Rect leftside;translator.Get(L, 1, out leftside); - UnityEngine.Rect rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Rect!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MinMaxRect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - float _xmin = (float)LuaAPI.lua_tonumber(L, 1); - float _ymin = (float)LuaAPI.lua_tonumber(L, 2); - float _xmax = (float)LuaAPI.lua_tonumber(L, 3); - float _ymax = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Rect.MinMaxRect( _xmin, _ymin, _xmax, _ymax ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _width = (float)LuaAPI.lua_tonumber(L, 4); - float _height = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.Set( _x, _y, _width, _height ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.Contains( _point ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.Contains( _point ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - bool _allowInverse = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.Contains( _point, _allowInverse ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.Contains!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Overlaps(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rect _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Overlaps( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Rect _other;translator.Get(L, 2, out _other); - bool _allowInverse = LuaAPI.lua_toboolean(L, 3); - - var gen_ret = gen_to_be_invoked.Overlaps( _other, _allowInverse ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.Overlaps!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NormalizedToPoint_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rect _rectangle;translator.Get(L, 1, out _rectangle); - UnityEngine.Vector2 _normalizedRectCoordinates;translator.Get(L, 2, out _normalizedRectCoordinates); - - var gen_ret = UnityEngine.Rect.NormalizedToPoint( _rectangle, _normalizedRectCoordinates ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PointToNormalized_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rect _rectangle;translator.Get(L, 1, out _rectangle); - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = UnityEngine.Rect.PointToNormalized( _rectangle, _point ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Rect _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rect.ToString!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Rect.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.min); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.max); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_xMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.xMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_yMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.yMax); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_min(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.min = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_max(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.max = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.width = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.height = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMin = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMin = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_xMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.xMax = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_yMax(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rect gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.yMax = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ReflectionProbeWrap.cs b/Assets/XLua/Gen/UnityEngine_ReflectionProbeWrap.cs deleted file mode 100644 index da3823d00..000000000 --- a/Assets/XLua/Gen/UnityEngine_ReflectionProbeWrap.cs +++ /dev/null @@ -1,1056 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineReflectionProbeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ReflectionProbe); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 24, 21); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RenderProbe", _m_RenderProbe); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFinishedRendering", _m_IsFinishedRendering); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "nearClipPlane", _g_get_nearClipPlane); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "farClipPlane", _g_get_farClipPlane); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "intensity", _g_get_intensity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounds", _g_get_bounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hdr", _g_get_hdr); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderDynamicObjects", _g_get_renderDynamicObjects); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowDistance", _g_get_shadowDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resolution", _g_get_resolution); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cullingMask", _g_get_cullingMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clearFlags", _g_get_clearFlags); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "backgroundColor", _g_get_backgroundColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blendDistance", _g_get_blendDistance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "boxProjection", _g_get_boxProjection); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "importance", _g_get_importance); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "refreshMode", _g_get_refreshMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeSlicingMode", _g_get_timeSlicingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bakedTexture", _g_get_bakedTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "customBakedTexture", _g_get_customBakedTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "realtimeTexture", _g_get_realtimeTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texture", _g_get_texture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureHDRDecodeValues", _g_get_textureHDRDecodeValues); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "nearClipPlane", _s_set_nearClipPlane); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "farClipPlane", _s_set_farClipPlane); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "intensity", _s_set_intensity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hdr", _s_set_hdr); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderDynamicObjects", _s_set_renderDynamicObjects); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowDistance", _s_set_shadowDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resolution", _s_set_resolution); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cullingMask", _s_set_cullingMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clearFlags", _s_set_clearFlags); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "backgroundColor", _s_set_backgroundColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "blendDistance", _s_set_blendDistance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "boxProjection", _s_set_boxProjection); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "importance", _s_set_importance); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "refreshMode", _s_set_refreshMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeSlicingMode", _s_set_timeSlicingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bakedTexture", _s_set_bakedTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "customBakedTexture", _s_set_customBakedTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "realtimeTexture", _s_set_realtimeTexture); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 5, 4, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "BlendCubemap", _m_BlendCubemap_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateCachedState", _m_UpdateCachedState_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "reflectionProbeChanged", _e_reflectionProbeChanged); - Utils.RegisterFunc(L, Utils.CLS_IDX, "defaultReflectionTexture", _e_defaultReflectionTexture); - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "minBakedCubemapResolution", _g_get_minBakedCubemapResolution); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxBakedCubemapResolution", _g_get_maxBakedCubemapResolution); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultTextureHDRDecodeValues", _g_get_defaultTextureHDRDecodeValues); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultTexture", _g_get_defaultTexture); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ReflectionProbe(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ReflectionProbe constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Reset( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RenderProbe(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.RenderProbe( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.RenderTexture _targetTexture = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - var gen_ret = gen_to_be_invoked.RenderProbe( _targetTexture ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ReflectionProbe.RenderProbe!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsFinishedRendering(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - - - - { - int _renderId = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsFinishedRendering( _renderId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BlendCubemap_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Texture _src = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - UnityEngine.Texture _dst = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - float _blend = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.RenderTexture _target = (UnityEngine.RenderTexture)translator.GetObject(L, 4, typeof(UnityEngine.RenderTexture)); - - var gen_ret = UnityEngine.ReflectionProbe.BlendCubemap( _src, _dst, _blend, _target ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateCachedState_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.ReflectionProbe.UpdateCachedState( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nearClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.nearClipPlane); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_farClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.farClipPlane); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.intensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hdr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hdr); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderDynamicObjects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.renderDynamicObjects); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.shadowDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.resolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cullingMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clearFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.clearFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_backgroundColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.backgroundColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blendDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.blendDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_boxProjection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.boxProjection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_importance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.importance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_refreshMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.refreshMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeSlicingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.timeSlicingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bakedTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bakedTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customBakedTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.customBakedTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_realtimeTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.realtimeTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.texture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureHDRDecodeValues(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.textureHDRDecodeValues); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minBakedCubemapResolution(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.ReflectionProbe.minBakedCubemapResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxBakedCubemapResolution(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.ReflectionProbe.maxBakedCubemapResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTextureHDRDecodeValues(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector4(L, UnityEngine.ReflectionProbe.defaultTextureHDRDecodeValues); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.ReflectionProbe.defaultTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_nearClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.nearClipPlane = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_farClipPlane(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.farClipPlane = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_intensity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.intensity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hdr(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hdr = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderDynamicObjects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.renderDynamicObjects = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shadowDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.resolution = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cullingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.cullingMask = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clearFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.ReflectionProbeClearFlags gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.clearFlags = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_backgroundColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.backgroundColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_blendDistance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.blendDistance = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_boxProjection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.boxProjection = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.ReflectionProbeMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.mode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_importance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.importance = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_refreshMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.ReflectionProbeRefreshMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.refreshMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeSlicingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.ReflectionProbeTimeSlicingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.timeSlicingMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bakedTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bakedTexture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_customBakedTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.customBakedTexture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_realtimeTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ReflectionProbe gen_to_be_invoked = (UnityEngine.ReflectionProbe)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.realtimeTexture = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_reflectionProbeChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.ReflectionProbe.reflectionProbeChanged += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.ReflectionProbe.reflectionProbeChanged -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ReflectionProbe.reflectionProbeChanged!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_defaultReflectionTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.ReflectionProbe.defaultReflectionTexture += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.ReflectionProbe.defaultReflectionTexture -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ReflectionProbe.defaultReflectionTexture!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RenderSettingsWrap.cs b/Assets/XLua/Gen/UnityEngine_RenderSettingsWrap.cs deleted file mode 100644 index 3e77b8367..000000000 --- a/Assets/XLua/Gen/UnityEngine_RenderSettingsWrap.cs +++ /dev/null @@ -1,725 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRenderSettingsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RenderSettings); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 24, 24); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fog", _g_get_fog); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fogStartDistance", _g_get_fogStartDistance); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fogEndDistance", _g_get_fogEndDistance); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fogMode", _g_get_fogMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fogColor", _g_get_fogColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fogDensity", _g_get_fogDensity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ambientMode", _g_get_ambientMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ambientSkyColor", _g_get_ambientSkyColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ambientEquatorColor", _g_get_ambientEquatorColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ambientGroundColor", _g_get_ambientGroundColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ambientIntensity", _g_get_ambientIntensity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ambientLight", _g_get_ambientLight); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "subtractiveShadowColor", _g_get_subtractiveShadowColor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "skybox", _g_get_skybox); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "sun", _g_get_sun); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ambientProbe", _g_get_ambientProbe); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "customReflection", _g_get_customReflection); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "reflectionIntensity", _g_get_reflectionIntensity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "reflectionBounces", _g_get_reflectionBounces); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultReflectionMode", _g_get_defaultReflectionMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultReflectionResolution", _g_get_defaultReflectionResolution); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "haloStrength", _g_get_haloStrength); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "flareStrength", _g_get_flareStrength); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "flareFadeSpeed", _g_get_flareFadeSpeed); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fog", _s_set_fog); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fogStartDistance", _s_set_fogStartDistance); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fogEndDistance", _s_set_fogEndDistance); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fogMode", _s_set_fogMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fogColor", _s_set_fogColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fogDensity", _s_set_fogDensity); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ambientMode", _s_set_ambientMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ambientSkyColor", _s_set_ambientSkyColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ambientEquatorColor", _s_set_ambientEquatorColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ambientGroundColor", _s_set_ambientGroundColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ambientIntensity", _s_set_ambientIntensity); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ambientLight", _s_set_ambientLight); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "subtractiveShadowColor", _s_set_subtractiveShadowColor); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "skybox", _s_set_skybox); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "sun", _s_set_sun); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ambientProbe", _s_set_ambientProbe); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "customReflection", _s_set_customReflection); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "reflectionIntensity", _s_set_reflectionIntensity); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "reflectionBounces", _s_set_reflectionBounces); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultReflectionMode", _s_set_defaultReflectionMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "defaultReflectionResolution", _s_set_defaultReflectionResolution); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "haloStrength", _s_set_haloStrength); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "flareStrength", _s_set_flareStrength); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "flareFadeSpeed", _s_set_flareFadeSpeed); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.RenderSettings does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fog(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.RenderSettings.fog); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fogStartDistance(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.fogStartDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fogEndDistance(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.fogEndDistance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fogMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderSettings.fogMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fogColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.RenderSettings.fogColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fogDensity(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.fogDensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambientMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderSettings.ambientMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambientSkyColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.RenderSettings.ambientSkyColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambientEquatorColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.RenderSettings.ambientEquatorColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambientGroundColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.RenderSettings.ambientGroundColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambientIntensity(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.ambientIntensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambientLight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.RenderSettings.ambientLight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subtractiveShadowColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineColor(L, UnityEngine.RenderSettings.subtractiveShadowColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skybox(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderSettings.skybox); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sun(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderSettings.sun); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ambientProbe(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderSettings.ambientProbe); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customReflection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderSettings.customReflection); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reflectionIntensity(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.reflectionIntensity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reflectionBounces(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.RenderSettings.reflectionBounces); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultReflectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderSettings.defaultReflectionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultReflectionResolution(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.RenderSettings.defaultReflectionResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_haloStrength(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.haloStrength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flareStrength(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.flareStrength); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flareFadeSpeed(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.RenderSettings.flareFadeSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fog(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.fog = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fogStartDistance(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.fogStartDistance = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fogEndDistance(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.fogEndDistance = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fogMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.FogMode gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.fogMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fogColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.fogColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fogDensity(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.fogDensity = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ambientMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Rendering.AmbientMode gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.ambientMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ambientSkyColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.ambientSkyColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ambientEquatorColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.ambientEquatorColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ambientGroundColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.ambientGroundColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ambientIntensity(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.ambientIntensity = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ambientLight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.ambientLight = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_subtractiveShadowColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.subtractiveShadowColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skybox(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.RenderSettings.skybox = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sun(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.RenderSettings.sun = (UnityEngine.Light)translator.GetObject(L, 1, typeof(UnityEngine.Light)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ambientProbe(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Rendering.SphericalHarmonicsL2 gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.ambientProbe = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_customReflection(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.RenderSettings.customReflection = (UnityEngine.Texture)translator.GetObject(L, 1, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reflectionIntensity(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.reflectionIntensity = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reflectionBounces(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.reflectionBounces = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultReflectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.Rendering.DefaultReflectionMode gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.RenderSettings.defaultReflectionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultReflectionResolution(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.defaultReflectionResolution = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_haloStrength(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.haloStrength = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flareStrength(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.flareStrength = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flareFadeSpeed(RealStatePtr L) - { - try { - - UnityEngine.RenderSettings.flareFadeSpeed = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RenderTextureDescriptorWrap.cs b/Assets/XLua/Gen/UnityEngine_RenderTextureDescriptorWrap.cs deleted file mode 100644 index 07fa6c2ea..000000000 --- a/Assets/XLua/Gen/UnityEngine_RenderTextureDescriptorWrap.cs +++ /dev/null @@ -1,875 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRenderTextureDescriptorWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RenderTextureDescriptor); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 21, 20); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "msaaSamples", _g_get_msaaSamples); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "volumeDepth", _g_get_volumeDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mipCount", _g_get_mipCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "graphicsFormat", _g_get_graphicsFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stencilFormat", _g_get_stencilFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthStencilFormat", _g_get_depthStencilFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorFormat", _g_get_colorFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sRGB", _g_get_sRGB); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthBufferBits", _g_get_depthBufferBits); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dimension", _g_get_dimension); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowSamplingMode", _g_get_shadowSamplingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vrUsage", _g_get_vrUsage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flags", _g_get_flags); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "memoryless", _g_get_memoryless); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMipMap", _g_get_useMipMap); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoGenerateMips", _g_get_autoGenerateMips); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableRandomWrite", _g_get_enableRandomWrite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bindMS", _g_get_bindMS); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useDynamicScale", _g_get_useDynamicScale); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "msaaSamples", _s_set_msaaSamples); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "volumeDepth", _s_set_volumeDepth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mipCount", _s_set_mipCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "graphicsFormat", _s_set_graphicsFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stencilFormat", _s_set_stencilFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthStencilFormat", _s_set_depthStencilFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colorFormat", _s_set_colorFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sRGB", _s_set_sRGB); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthBufferBits", _s_set_depthBufferBits); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dimension", _s_set_dimension); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowSamplingMode", _s_set_shadowSamplingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vrUsage", _s_set_vrUsage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "memoryless", _s_set_memoryless); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMipMap", _s_set_useMipMap); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoGenerateMips", _s_set_autoGenerateMips); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableRandomWrite", _s_set_enableRandomWrite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bindMS", _s_set_bindMS); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useDynamicScale", _s_set_useDynamicScale); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - int _depthBufferBits = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat, _depthBufferBits); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - int _depthBufferBits = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat, _depthBufferBits); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - int _depthBufferBits = LuaAPI.xlua_tointeger(L, 5); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat, _depthBufferBits, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - int _depthBufferBits = LuaAPI.xlua_tointeger(L, 5); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 7, out _readWrite); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat, _depthBufferBits, _mipCount, _readWrite); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - int _depthBufferBits = LuaAPI.xlua_tointeger(L, 5); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat, _depthBufferBits, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - UnityEngine.Experimental.Rendering.GraphicsFormat _depthStencilFormat;translator.Get(L, 5, out _depthStencilFormat); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat, _depthStencilFormat); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - UnityEngine.Experimental.Rendering.GraphicsFormat _depthStencilFormat;translator.Get(L, 5, out _depthStencilFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RenderTextureDescriptor(_width, _height, _colorFormat, _depthStencilFormat, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.RenderTextureDescriptor)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTextureDescriptor constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_msaaSamples(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.msaaSamples); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_volumeDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.volumeDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mipCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mipCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.graphicsFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.stencilFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthStencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.depthStencilFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineRenderTextureFormat(L, gen_to_be_invoked.colorFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sRGB(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sRGB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthBufferBits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.depthBufferBits); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dimension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.dimension); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowSamplingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.shadowSamplingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vrUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.vrUsage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.flags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_memoryless(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.memoryless); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMipMap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMipMap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoGenerateMips(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoGenerateMips); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableRandomWrite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableRandomWrite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bindMS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.bindMS); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useDynamicScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useDynamicScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.width = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_msaaSamples(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.msaaSamples = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_volumeDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.volumeDepth = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mipCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.mipCount = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_graphicsFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Experimental.Rendering.GraphicsFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.graphicsFormat = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Experimental.Rendering.GraphicsFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.stencilFormat = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depthStencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Experimental.Rendering.GraphicsFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.depthStencilFormat = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colorFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.RenderTextureFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colorFormat = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sRGB(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.sRGB = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depthBufferBits(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.depthBufferBits = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dimension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Rendering.TextureDimension gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.dimension = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowSamplingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Rendering.ShadowSamplingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shadowSamplingMode = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vrUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.VRTextureUsage gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vrUsage = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_memoryless(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.RenderTextureMemoryless gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.memoryless = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMipMap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useMipMap = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoGenerateMips(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.autoGenerateMips = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableRandomWrite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.enableRandomWrite = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bindMS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.bindMS = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useDynamicScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTextureDescriptor gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.useDynamicScale = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RenderTextureWrap.cs b/Assets/XLua/Gen/UnityEngine_RenderTextureWrap.cs deleted file mode 100644 index 1121ffafe..000000000 --- a/Assets/XLua/Gen/UnityEngine_RenderTextureWrap.cs +++ /dev/null @@ -1,1466 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRenderTextureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RenderTexture); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 22, 19); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNativeDepthBufferPtr", _m_GetNativeDepthBufferPtr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DiscardContents", _m_DiscardContents); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResolveAntiAliasedSurface", _m_ResolveAntiAliasedSurface); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetGlobalShaderProperty", _m_SetGlobalShaderProperty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Create", _m_Create); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Release", _m_Release); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsCreated", _m_IsCreated); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GenerateMips", _m_GenerateMips); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConvertToEquirect", _m_ConvertToEquirect); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "descriptor", _g_get_descriptor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dimension", _g_get_dimension); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "graphicsFormat", _g_get_graphicsFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMipMap", _g_get_useMipMap); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sRGB", _g_get_sRGB); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vrUsage", _g_get_vrUsage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "memorylessMode", _g_get_memorylessMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "stencilFormat", _g_get_stencilFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthStencilFormat", _g_get_depthStencilFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoGenerateMips", _g_get_autoGenerateMips); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "volumeDepth", _g_get_volumeDepth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "antiAliasing", _g_get_antiAliasing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bindTextureMS", _g_get_bindTextureMS); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableRandomWrite", _g_get_enableRandomWrite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useDynamicScale", _g_get_useDynamicScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPowerOfTwo", _g_get_isPowerOfTwo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorBuffer", _g_get_colorBuffer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthBuffer", _g_get_depthBuffer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "descriptor", _s_set_descriptor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dimension", _s_set_dimension); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "graphicsFormat", _s_set_graphicsFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMipMap", _s_set_useMipMap); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vrUsage", _s_set_vrUsage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "memorylessMode", _s_set_memorylessMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "format", _s_set_format); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "stencilFormat", _s_set_stencilFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depthStencilFormat", _s_set_depthStencilFormat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "autoGenerateMips", _s_set_autoGenerateMips); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "volumeDepth", _s_set_volumeDepth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "antiAliasing", _s_set_antiAliasing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bindTextureMS", _s_set_bindTextureMS); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableRandomWrite", _s_set_enableRandomWrite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useDynamicScale", _s_set_useDynamicScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isPowerOfTwo", _s_set_isPowerOfTwo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "depth", _s_set_depth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 1); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTemporary", _m_GetTemporary_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsStencil", _m_SupportsStencil_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ReleaseTemporary", _m_ReleaseTemporary_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "active", _g_get_active); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "active", _s_set_active); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.RenderTextureDescriptor _desc;translator.Get(L, 2, out _desc); - - var gen_ret = new UnityEngine.RenderTexture(_desc); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.RenderTexture _textureToCopy = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - var gen_ret = new UnityEngine.RenderTexture(_textureToCopy); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 5, out _format); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _depth, _format); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 5, out _format); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _depth, _format); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 5, out _format); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _depth, _format, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - UnityEngine.Experimental.Rendering.GraphicsFormat _depthStencilFormat;translator.Get(L, 5, out _depthStencilFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _colorFormat, _depthStencilFormat, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _colorFormat;translator.Get(L, 4, out _colorFormat); - UnityEngine.Experimental.Rendering.GraphicsFormat _depthStencilFormat;translator.Get(L, 5, out _depthStencilFormat); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _colorFormat, _depthStencilFormat); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && translator.Assignable(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 5, out _format); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 6, out _readWrite); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _depth, _format, _readWrite); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 5, out _format); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _depth, _format); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _depth); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - int _depth = LuaAPI.xlua_tointeger(L, 4); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 5, out _format); - int _mipCount = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = new UnityEngine.RenderTexture(_width, _height, _depth, _format, _mipCount); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTexture constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTemporary_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.RenderTextureDescriptor _desc;translator.Get(L, 1, out _desc); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _desc ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode); - UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 7, out _vrUsage); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode, _vrUsage ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode); - UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 7, out _vrUsage); - bool _useDynamicScale = LuaAPI.lua_toboolean(L, 8); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode, _vrUsage, _useDynamicScale ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode); - UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 8, out _vrUsage); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode, _vrUsage ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 9&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable(L, 7)&& translator.Assignable(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - int _depthBuffer = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format); - UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite); - int _antiAliasing = LuaAPI.xlua_tointeger(L, 6); - UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode); - UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 8, out _vrUsage); - bool _useDynamicScale = LuaAPI.lua_toboolean(L, 9); - - var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode, _vrUsage, _useDynamicScale ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTexture.GetTemporary!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNativeDepthBufferPtr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNativeDepthBufferPtr( ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DiscardContents(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.DiscardContents( ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _discardColor = LuaAPI.lua_toboolean(L, 2); - bool _discardDepth = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.DiscardContents( _discardColor, _discardDepth ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTexture.DiscardContents!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResolveAntiAliasedSurface(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.ResolveAntiAliasedSurface( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.RenderTexture _target = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - gen_to_be_invoked.ResolveAntiAliasedSurface( _target ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTexture.ResolveAntiAliasedSurface!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalShaderProperty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - - { - string _propertyName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetGlobalShaderProperty( _propertyName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Create( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Release(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Release( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsCreated(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsCreated( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateMips(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GenerateMips( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertToEquirect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.RenderTexture _equirect = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Camera.MonoOrStereoscopicEye _eye;translator.Get(L, 3, out _eye); - - gen_to_be_invoked.ConvertToEquirect( _equirect, _eye ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.RenderTexture _equirect = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - gen_to_be_invoked.ConvertToEquirect( _equirect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTexture.ConvertToEquirect!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SupportsStencil_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RenderTexture _rt = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - - var gen_ret = UnityEngine.RenderTexture.SupportsStencil( _rt ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReleaseTemporary_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RenderTexture _temp = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - - UnityEngine.RenderTexture.ReleaseTemporary( _temp ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_descriptor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.descriptor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dimension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.dimension); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.graphicsFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useMipMap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMipMap); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sRGB(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sRGB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vrUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vrUsage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_memorylessMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.memorylessMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineRenderTextureFormat(L, gen_to_be_invoked.format); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_stencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.stencilFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthStencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.depthStencilFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autoGenerateMips(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.autoGenerateMips); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_volumeDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.volumeDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_antiAliasing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.antiAliasing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bindTextureMS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.bindTextureMS); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enableRandomWrite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableRandomWrite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useDynamicScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useDynamicScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPowerOfTwo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPowerOfTwo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_active(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.RenderTexture.active); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colorBuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colorBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depthBuffer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.depthBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.depth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_descriptor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.RenderTextureDescriptor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.descriptor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.width = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dimension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.TextureDimension gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.dimension = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_graphicsFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.Experimental.Rendering.GraphicsFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.graphicsFormat = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useMipMap(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useMipMap = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vrUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.VRTextureUsage gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vrUsage = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_memorylessMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.RenderTextureMemoryless gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.memorylessMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.RenderTextureFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.format = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_stencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.Experimental.Rendering.GraphicsFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.stencilFormat = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depthStencilFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - UnityEngine.Experimental.Rendering.GraphicsFormat gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.depthStencilFormat = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autoGenerateMips(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.autoGenerateMips = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_volumeDepth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.volumeDepth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_antiAliasing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.antiAliasing = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bindTextureMS(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bindTextureMS = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enableRandomWrite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enableRandomWrite = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useDynamicScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useDynamicScale = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isPowerOfTwo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isPowerOfTwo = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_active(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.RenderTexture.active = (UnityEngine.RenderTexture)translator.GetObject(L, 1, typeof(UnityEngine.RenderTexture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.depth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RendererWrap.cs b/Assets/XLua/Gen/UnityEngine_RendererWrap.cs deleted file mode 100644 index 0c72f4756..000000000 --- a/Assets/XLua/Gen/UnityEngine_RendererWrap.cs +++ /dev/null @@ -1,1250 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Renderer); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 31, 27); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetBounds", _m_ResetBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetLocalBounds", _m_ResetLocalBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasPropertyBlock", _m_HasPropertyBlock); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPropertyBlock", _m_SetPropertyBlock); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyBlock", _m_GetPropertyBlock); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMaterials", _m_GetMaterials); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSharedMaterials", _m_GetSharedMaterials); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetClosestReflectionProbes", _m_GetClosestReflectionProbes); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounds", _g_get_bounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localBounds", _g_get_localBounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isVisible", _g_get_isVisible); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shadowCastingMode", _g_get_shadowCastingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "receiveShadows", _g_get_receiveShadows); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceRenderingOff", _g_get_forceRenderingOff); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "staticShadowCaster", _g_get_staticShadowCaster); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "motionVectorGenerationMode", _g_get_motionVectorGenerationMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightProbeUsage", _g_get_lightProbeUsage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "reflectionProbeUsage", _g_get_reflectionProbeUsage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderingLayerMask", _g_get_renderingLayerMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rendererPriority", _g_get_rendererPriority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rayTracingMode", _g_get_rayTracingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingLayerName", _g_get_sortingLayerName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingLayerID", _g_get_sortingLayerID); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortingOrder", _g_get_sortingOrder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowOcclusionWhenDynamic", _g_get_allowOcclusionWhenDynamic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPartOfStaticBatch", _g_get_isPartOfStaticBatch); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldToLocalMatrix", _g_get_worldToLocalMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localToWorldMatrix", _g_get_localToWorldMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightProbeProxyVolumeOverride", _g_get_lightProbeProxyVolumeOverride); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "probeAnchor", _g_get_probeAnchor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapIndex", _g_get_lightmapIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "realtimeLightmapIndex", _g_get_realtimeLightmapIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapScaleOffset", _g_get_lightmapScaleOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "realtimeLightmapScaleOffset", _g_get_realtimeLightmapScaleOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materials", _g_get_materials); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMaterial", _g_get_sharedMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMaterials", _g_get_sharedMaterials); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounds", _s_set_bounds); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localBounds", _s_set_localBounds); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shadowCastingMode", _s_set_shadowCastingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "receiveShadows", _s_set_receiveShadows); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceRenderingOff", _s_set_forceRenderingOff); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "staticShadowCaster", _s_set_staticShadowCaster); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "motionVectorGenerationMode", _s_set_motionVectorGenerationMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightProbeUsage", _s_set_lightProbeUsage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "reflectionProbeUsage", _s_set_reflectionProbeUsage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderingLayerMask", _s_set_renderingLayerMask); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rendererPriority", _s_set_rendererPriority); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rayTracingMode", _s_set_rayTracingMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingLayerName", _s_set_sortingLayerName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingLayerID", _s_set_sortingLayerID); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sortingOrder", _s_set_sortingOrder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowOcclusionWhenDynamic", _s_set_allowOcclusionWhenDynamic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightProbeProxyVolumeOverride", _s_set_lightProbeProxyVolumeOverride); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "probeAnchor", _s_set_probeAnchor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightmapIndex", _s_set_lightmapIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "realtimeLightmapIndex", _s_set_realtimeLightmapIndex); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lightmapScaleOffset", _s_set_lightmapScaleOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "realtimeLightmapScaleOffset", _s_set_realtimeLightmapScaleOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "materials", _s_set_materials); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMaterial", _s_set_sharedMaterial); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMaterials", _s_set_sharedMaterials); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Renderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Renderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetBounds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetLocalBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetLocalBounds( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_HasPropertyBlock(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.HasPropertyBlock( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPropertyBlock(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock)); - - gen_to_be_invoked.SetPropertyBlock( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock)); - int _materialIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPropertyBlock( _properties, _materialIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Renderer.SetPropertyBlock!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyBlock(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock)); - - gen_to_be_invoked.GetPropertyBlock( _properties ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock)); - int _materialIndex = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.GetPropertyBlock( _properties, _materialIndex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Renderer.GetPropertyBlock!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetMaterials(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _m = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetMaterials( _m ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSharedMaterials(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _m = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetSharedMaterials( _m ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetClosestReflectionProbes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.List _result = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetClosestReflectionProbes( _result ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.localBounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isVisible(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isVisible); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shadowCastingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineRenderingShadowCastingMode(L, gen_to_be_invoked.shadowCastingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_receiveShadows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.receiveShadows); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceRenderingOff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.forceRenderingOff); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_staticShadowCaster(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.staticShadowCaster); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_motionVectorGenerationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.motionVectorGenerationMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightProbeUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lightProbeUsage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_reflectionProbeUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.reflectionProbeUsage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderingLayerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.renderingLayerMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rendererPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.rendererPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rayTracingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rayTracingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingLayerName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.sortingLayerName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sortingLayerID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sortingOrder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowOcclusionWhenDynamic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowOcclusionWhenDynamic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPartOfStaticBatch(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPartOfStaticBatch); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldToLocalMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.worldToLocalMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localToWorldMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.localToWorldMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightProbeProxyVolumeOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.lightProbeProxyVolumeOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_probeAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.probeAnchor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lightmapIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_realtimeLightmapIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.realtimeLightmapIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.lightmapScaleOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_realtimeLightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.realtimeLightmapScaleOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.materials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMaterials); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Bounds gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.bounds = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localBounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Bounds gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localBounds = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_enabled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shadowCastingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.ShadowCastingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.shadowCastingMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_receiveShadows(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.receiveShadows = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceRenderingOff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceRenderingOff = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_staticShadowCaster(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.staticShadowCaster = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_motionVectorGenerationMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.MotionVectorGenerationMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.motionVectorGenerationMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightProbeUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.LightProbeUsage gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lightProbeUsage = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_reflectionProbeUsage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.ReflectionProbeUsage gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.reflectionProbeUsage = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderingLayerMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.renderingLayerMask = LuaAPI.xlua_touint(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rendererPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rendererPriority = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rayTracingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Experimental.Rendering.RayTracingMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rayTracingMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingLayerName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingLayerName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingLayerID(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingLayerID = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sortingOrder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sortingOrder = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowOcclusionWhenDynamic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowOcclusionWhenDynamic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightProbeProxyVolumeOverride(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lightProbeProxyVolumeOverride = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_probeAnchor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.probeAnchor = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmapIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lightmapIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_realtimeLightmapIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.realtimeLightmapIndex = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lightmapScaleOffset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_realtimeLightmapScaleOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.realtimeLightmapScaleOffset = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_materials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.materials = (UnityEngine.Material[])translator.GetObject(L, 2, typeof(UnityEngine.Material[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMaterials(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Renderer gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMaterials = (UnityEngine.Material[])translator.GetObject(L, 2, typeof(UnityEngine.Material[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ResolutionWrap.cs b/Assets/XLua/Gen/UnityEngine_ResolutionWrap.cs deleted file mode 100644 index 52578a5d6..000000000 --- a/Assets/XLua/Gen/UnityEngine_ResolutionWrap.cs +++ /dev/null @@ -1,212 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineResolutionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Resolution); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "refreshRate", _g_get_refreshRate); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "refreshRate", _s_set_refreshRate); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.Resolution)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Resolution constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Resolution gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Resolution gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Resolution gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_refreshRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Resolution gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.refreshRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Resolution gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.width = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Resolution gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_refreshRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Resolution gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.refreshRate = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ResourcesWrap.cs b/Assets/XLua/Gen/UnityEngine_ResourcesWrap.cs deleted file mode 100644 index b5d403a42..000000000 --- a/Assets/XLua/Gen/UnityEngine_ResourcesWrap.cs +++ /dev/null @@ -1,383 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineResourcesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Resources); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 10, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindObjectsOfTypeAll", _m_FindObjectsOfTypeAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Load", _m_Load_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAsync", _m_LoadAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAll", _m_LoadAll_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBuiltinResource", _m_GetBuiltinResource_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadAsset", _m_UnloadAsset_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadUnusedAssets", _m_UnloadUnusedAssets_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "InstanceIDToObject", _m_InstanceIDToObject_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "InstanceIDToObjectList", _m_InstanceIDToObjectList_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Resources(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Resources constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindObjectsOfTypeAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = UnityEngine.Resources.FindObjectsOfTypeAll( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Load_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Resources.Load( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Type _systemTypeInstance = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = UnityEngine.Resources.Load( _path, _systemTypeInstance ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Resources.Load!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Resources.LoadAsync( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = UnityEngine.Resources.LoadAsync( _path, _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Resources.LoadAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadAll_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _path = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Resources.LoadAll( _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _path = LuaAPI.lua_tostring(L, 1); - System.Type _systemTypeInstance = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); - - var gen_ret = UnityEngine.Resources.LoadAll( _path, _systemTypeInstance ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Resources.LoadAll!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBuiltinResource_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - string _path = LuaAPI.lua_tostring(L, 2); - - var gen_ret = UnityEngine.Resources.GetBuiltinResource( _type, _path ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadAsset_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Object _assetToUnload = (UnityEngine.Object)translator.GetObject(L, 1, typeof(UnityEngine.Object)); - - UnityEngine.Resources.UnloadAsset( _assetToUnload ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadUnusedAssets_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.Resources.UnloadUnusedAssets( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InstanceIDToObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _instanceID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Resources.InstanceIDToObject( _instanceID ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InstanceIDToObjectList_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - Unity.Collections.NativeArray _instanceIDs;translator.Get(L, 1, out _instanceIDs); - System.Collections.Generic.List _objects = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Resources.InstanceIDToObjectList( _instanceIDs, _objects ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RigidbodyWrap.cs b/Assets/XLua/Gen/UnityEngine_RigidbodyWrap.cs deleted file mode 100644 index b14cf0f5d..000000000 --- a/Assets/XLua/Gen/UnityEngine_RigidbodyWrap.cs +++ /dev/null @@ -1,1620 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRigidbodyWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Rigidbody); - Utils.BeginObjectRegister(type, L, translator, 0, 19, 23, 22); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDensity", _m_SetDensity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MovePosition", _m_MovePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveRotation", _m_MoveRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Sleep", _m_Sleep); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSleeping", _m_IsSleeping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WakeUp", _m_WakeUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetCenterOfMass", _m_ResetCenterOfMass); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetInertiaTensor", _m_ResetInertiaTensor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRelativePointVelocity", _m_GetRelativePointVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPointVelocity", _m_GetPointVelocity); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddForce", _m_AddForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRelativeForce", _m_AddRelativeForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddTorque", _m_AddTorque); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddRelativeTorque", _m_AddRelativeTorque); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddForceAtPosition", _m_AddForceAtPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddExplosionForce", _m_AddExplosionForce); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPointOnBounds", _m_ClosestPointOnBounds); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SweepTest", _m_SweepTest); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SweepTestAll", _m_SweepTestAll); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularVelocity", _g_get_angularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drag", _g_get_drag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "angularDrag", _g_get_angularDrag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mass", _g_get_mass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useGravity", _g_get_useGravity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxDepenetrationVelocity", _g_get_maxDepenetrationVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isKinematic", _g_get_isKinematic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "freezeRotation", _g_get_freezeRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "constraints", _g_get_constraints); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "collisionDetectionMode", _g_get_collisionDetectionMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "centerOfMass", _g_get_centerOfMass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldCenterOfMass", _g_get_worldCenterOfMass); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inertiaTensorRotation", _g_get_inertiaTensorRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inertiaTensor", _g_get_inertiaTensor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "detectCollisions", _g_get_detectCollisions); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "interpolation", _g_get_interpolation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "solverIterations", _g_get_solverIterations); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sleepThreshold", _g_get_sleepThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxAngularVelocity", _g_get_maxAngularVelocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "solverVelocityIterations", _g_get_solverVelocityIterations); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocity", _s_set_velocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularVelocity", _s_set_angularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drag", _s_set_drag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "angularDrag", _s_set_angularDrag); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mass", _s_set_mass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useGravity", _s_set_useGravity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxDepenetrationVelocity", _s_set_maxDepenetrationVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isKinematic", _s_set_isKinematic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "freezeRotation", _s_set_freezeRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "constraints", _s_set_constraints); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "collisionDetectionMode", _s_set_collisionDetectionMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "centerOfMass", _s_set_centerOfMass); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inertiaTensorRotation", _s_set_inertiaTensorRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inertiaTensor", _s_set_inertiaTensor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "detectCollisions", _s_set_detectCollisions); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "interpolation", _s_set_interpolation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "solverIterations", _s_set_solverIterations); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sleepThreshold", _s_set_sleepThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxAngularVelocity", _s_set_maxAngularVelocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "solverVelocityIterations", _s_set_solverVelocityIterations); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Rigidbody(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDensity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - float _density = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetDensity( _density ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MovePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - gen_to_be_invoked.MovePosition( _position ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Quaternion _rot;translator.Get(L, 2, out _rot); - - gen_to_be_invoked.MoveRotation( _rot ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Sleep(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Sleep( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsSleeping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsSleeping( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WakeUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.WakeUp( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetCenterOfMass(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetCenterOfMass( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ResetInertiaTensor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ResetInertiaTensor( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRelativePointVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _relativePoint;translator.Get(L, 2, out _relativePoint); - - var gen_ret = gen_to_be_invoked.GetRelativePointVelocity( _relativePoint ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPointVelocity(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _worldPoint;translator.Get(L, 2, out _worldPoint); - - var gen_ret = gen_to_be_invoked.GetPointVelocity( _worldPoint ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.AddForce( _x, _y, _z ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - - gen_to_be_invoked.AddForce( _force ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ForceMode _mode;translator.Get(L, 5, out _mode); - - gen_to_be_invoked.AddForce( _x, _y, _z, _mode ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - UnityEngine.ForceMode _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.AddForce( _force, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.AddForce!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRelativeForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.AddRelativeForce( _x, _y, _z ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - - gen_to_be_invoked.AddRelativeForce( _force ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ForceMode _mode;translator.Get(L, 5, out _mode); - - gen_to_be_invoked.AddRelativeForce( _x, _y, _z, _mode ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - UnityEngine.ForceMode _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.AddRelativeForce( _force, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.AddRelativeForce!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.AddTorque( _x, _y, _z ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _torque;translator.Get(L, 2, out _torque); - - gen_to_be_invoked.AddTorque( _torque ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ForceMode _mode;translator.Get(L, 5, out _mode); - - gen_to_be_invoked.AddTorque( _x, _y, _z, _mode ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _torque;translator.Get(L, 2, out _torque); - UnityEngine.ForceMode _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.AddTorque( _torque, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.AddTorque!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddRelativeTorque(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.AddRelativeTorque( _x, _y, _z ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _torque;translator.Get(L, 2, out _torque); - - gen_to_be_invoked.AddRelativeTorque( _torque ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.ForceMode _mode;translator.Get(L, 5, out _mode); - - gen_to_be_invoked.AddRelativeTorque( _x, _y, _z, _mode ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _torque;translator.Get(L, 2, out _torque); - UnityEngine.ForceMode _mode;translator.Get(L, 3, out _mode); - - gen_to_be_invoked.AddRelativeTorque( _torque, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.AddRelativeTorque!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddForceAtPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.AddForceAtPosition( _force, _position ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _force;translator.Get(L, 2, out _force); - UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); - UnityEngine.ForceMode _mode;translator.Get(L, 4, out _mode); - - gen_to_be_invoked.AddForceAtPosition( _force, _position, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.AddForceAtPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddExplosionForce(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _explosionForce = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _explosionPosition;translator.Get(L, 3, out _explosionPosition); - float _explosionRadius = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.AddExplosionForce( _explosionForce, _explosionPosition, _explosionRadius ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _explosionForce = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _explosionPosition;translator.Get(L, 3, out _explosionPosition); - float _explosionRadius = (float)LuaAPI.lua_tonumber(L, 4); - float _upwardsModifier = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.AddExplosionForce( _explosionForce, _explosionPosition, _explosionRadius, _upwardsModifier ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - float _explosionForce = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _explosionPosition;translator.Get(L, 3, out _explosionPosition); - float _explosionRadius = (float)LuaAPI.lua_tonumber(L, 4); - float _upwardsModifier = (float)LuaAPI.lua_tonumber(L, 5); - UnityEngine.ForceMode _mode;translator.Get(L, 6, out _mode); - - gen_to_be_invoked.AddExplosionForce( _explosionForce, _explosionPosition, _explosionRadius, _upwardsModifier, _mode ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.AddExplosionForce!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClosestPointOnBounds(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.ClosestPointOnBounds( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SweepTest(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit _hitInfo; - - var gen_ret = gen_to_be_invoked.SweepTest( _direction, out _hitInfo ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SweepTest( _direction, out _hitInfo, _maxDistance ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - UnityEngine.RaycastHit _hitInfo; - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.SweepTest( _direction, out _hitInfo, _maxDistance, _queryTriggerInteraction ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _hitInfo); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.SweepTest!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SweepTestAll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - - var gen_ret = gen_to_be_invoked.SweepTestAll( _direction ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.SweepTestAll( _direction, _maxDistance ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - float _maxDistance = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.QueryTriggerInteraction _queryTriggerInteraction;translator.Get(L, 4, out _queryTriggerInteraction); - - var gen_ret = gen_to_be_invoked.SweepTestAll( _direction, _maxDistance, _queryTriggerInteraction ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Rigidbody.SweepTestAll!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.angularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.drag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angularDrag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.mass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useGravity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxDepenetrationVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxDepenetrationVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isKinematic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isKinematic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_freezeRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.freezeRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineRigidbodyConstraints(L, gen_to_be_invoked.constraints); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_collisionDetectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.collisionDetectionMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_centerOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.centerOfMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldCenterOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.worldCenterOfMass); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inertiaTensorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.inertiaTensorRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inertiaTensor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.inertiaTensor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_detectCollisions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.detectCollisions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interpolation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.interpolation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_solverIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.solverIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sleepThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sleepThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxAngularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxAngularVelocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_solverVelocityIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.solverVelocityIterations); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.angularVelocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.drag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_angularDrag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.angularDrag = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mass = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useGravity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useGravity = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxDepenetrationVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxDepenetrationVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isKinematic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isKinematic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_freezeRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.freezeRotation = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_constraints(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.RigidbodyConstraints gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.constraints = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_collisionDetectionMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.CollisionDetectionMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.collisionDetectionMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_centerOfMass(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.centerOfMass = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inertiaTensorRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.inertiaTensorRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inertiaTensor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.inertiaTensor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_detectCollisions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.detectCollisions = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interpolation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - UnityEngine.RigidbodyInterpolation gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.interpolation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_solverIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.solverIterations = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sleepThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sleepThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxAngularVelocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxAngularVelocity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_solverVelocityIterations(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Rigidbody gen_to_be_invoked = (UnityEngine.Rigidbody)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.solverVelocityIterations = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_RuntimeAnimatorControllerWrap.cs b/Assets/XLua/Gen/UnityEngine_RuntimeAnimatorControllerWrap.cs deleted file mode 100644 index 2f774da9d..000000000 --- a/Assets/XLua/Gen/UnityEngine_RuntimeAnimatorControllerWrap.cs +++ /dev/null @@ -1,82 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineRuntimeAnimatorControllerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.RuntimeAnimatorController); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationClips", _g_get_animationClips); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.RuntimeAnimatorController does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationClips(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.RuntimeAnimatorController gen_to_be_invoked = (UnityEngine.RuntimeAnimatorController)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animationClips); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SceneManagement_SceneManagerWrap.cs b/Assets/XLua/Gen/UnityEngine_SceneManagement_SceneManagerWrap.cs deleted file mode 100644 index a8c69804c..000000000 --- a/Assets/XLua/Gen/UnityEngine_SceneManagement_SceneManagerWrap.cs +++ /dev/null @@ -1,735 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSceneManagementSceneManagerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SceneManagement.SceneManager); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 16, 2, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetActiveScene", _m_GetActiveScene_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetActiveScene", _m_SetActiveScene_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSceneByPath", _m_GetSceneByPath_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSceneByName", _m_GetSceneByName_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSceneByBuildIndex", _m_GetSceneByBuildIndex_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSceneAt", _m_GetSceneAt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateScene", _m_CreateScene_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MergeScenes", _m_MergeScenes_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveGameObjectToScene", _m_MoveGameObjectToScene_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadScene", _m_LoadScene_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadSceneAsync", _m_LoadSceneAsync_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadSceneAsync", _m_UnloadSceneAsync_xlua_st_); - - Utils.RegisterFunc(L, Utils.CLS_IDX, "sceneLoaded", _e_sceneLoaded); - Utils.RegisterFunc(L, Utils.CLS_IDX, "sceneUnloaded", _e_sceneUnloaded); - Utils.RegisterFunc(L, Utils.CLS_IDX, "activeSceneChanged", _e_activeSceneChanged); - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "sceneCount", _g_get_sceneCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "sceneCountInBuildSettings", _g_get_sceneCountInBuildSettings); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SceneManagement.SceneManager(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetActiveScene_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = UnityEngine.SceneManagement.SceneManager.GetActiveScene( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetActiveScene_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.SceneManagement.Scene _scene;translator.Get(L, 1, out _scene); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.SetActiveScene( _scene ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneByPath_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _scenePath = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.GetSceneByPath( _scenePath ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneByName_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.GetSceneByName( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneByBuildIndex_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _buildIndex = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.GetSceneByBuildIndex( _buildIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSceneAt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _index = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.GetSceneAt( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateScene_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.CreateScene( _sceneName ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - UnityEngine.SceneManagement.CreateSceneParameters _parameters;translator.Get(L, 2, out _parameters); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.CreateScene( _sceneName, _parameters ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager.CreateScene!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MergeScenes_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.SceneManagement.Scene _sourceScene;translator.Get(L, 1, out _sourceScene); - UnityEngine.SceneManagement.Scene _destinationScene;translator.Get(L, 2, out _destinationScene); - - UnityEngine.SceneManagement.SceneManager.MergeScenes( _sourceScene, _destinationScene ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveGameObjectToScene_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); - UnityEngine.SceneManagement.Scene _scene;translator.Get(L, 2, out _scene); - - UnityEngine.SceneManagement.SceneManager.MoveGameObjectToScene( _go, _scene ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadScene_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - - UnityEngine.SceneManagement.SceneManager.LoadScene( _sceneBuildIndex ); - - - - return 0; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - - UnityEngine.SceneManagement.SceneManager.LoadScene( _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.SceneManagement.LoadSceneMode _mode;translator.Get(L, 2, out _mode); - - UnityEngine.SceneManagement.SceneManager.LoadScene( _sceneBuildIndex, _mode ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.SceneManagement.LoadSceneParameters _parameters;translator.Get(L, 2, out _parameters); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadScene( _sceneBuildIndex, _parameters ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - UnityEngine.SceneManagement.LoadSceneMode _mode;translator.Get(L, 2, out _mode); - - UnityEngine.SceneManagement.SceneManager.LoadScene( _sceneName, _mode ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - UnityEngine.SceneManagement.LoadSceneParameters _parameters;translator.Get(L, 2, out _parameters); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadScene( _sceneName, _parameters ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager.LoadScene!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadSceneAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync( _sceneBuildIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync( _sceneName ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.SceneManagement.LoadSceneMode _mode;translator.Get(L, 2, out _mode); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync( _sceneBuildIndex, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.SceneManagement.LoadSceneParameters _parameters;translator.Get(L, 2, out _parameters); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync( _sceneBuildIndex, _parameters ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - UnityEngine.SceneManagement.LoadSceneMode _mode;translator.Get(L, 2, out _mode); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync( _sceneName, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - UnityEngine.SceneManagement.LoadSceneParameters _parameters;translator.Get(L, 2, out _parameters); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync( _sceneName, _parameters ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager.LoadSceneAsync!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnloadSceneAsync_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync( _sceneBuildIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync( _sceneName ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.SceneManagement.Scene _scene;translator.Get(L, 1, out _scene); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync( _scene ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _sceneBuildIndex = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.SceneManagement.UnloadSceneOptions _options;translator.Get(L, 2, out _options); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync( _sceneBuildIndex, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _sceneName = LuaAPI.lua_tostring(L, 1); - UnityEngine.SceneManagement.UnloadSceneOptions _options;translator.Get(L, 2, out _options); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync( _sceneName, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.SceneManagement.Scene _scene;translator.Get(L, 1, out _scene); - UnityEngine.SceneManagement.UnloadSceneOptions _options;translator.Get(L, 2, out _options); - - var gen_ret = UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync( _scene, _options ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sceneCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SceneManagement.SceneManager.sceneCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sceneCountInBuildSettings(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SceneManagement.SceneManager.sceneCountInBuildSettings); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_sceneLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Events.UnityAction gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Events.UnityAction!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.SceneManagement.SceneManager.sceneLoaded += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.SceneManagement.SceneManager.sceneLoaded -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager.sceneLoaded!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_sceneUnloaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Events.UnityAction gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Events.UnityAction!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.SceneManagement.SceneManager.sceneUnloaded += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.SceneManagement.SceneManager.sceneUnloaded -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager.sceneUnloaded!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_activeSceneChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Events.UnityAction gen_delegate = translator.GetDelegate>(L, 2); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need UnityEngine.Events.UnityAction!"); - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - UnityEngine.SceneManagement.SceneManager.activeSceneChanged += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - UnityEngine.SceneManagement.SceneManager.activeSceneChanged -= gen_delegate; - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.SceneManager.activeSceneChanged!"); - } - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SceneManagement_SceneWrap.cs b/Assets/XLua/Gen/UnityEngine_SceneManagement_SceneWrap.cs deleted file mode 100644 index 97cfd946c..000000000 --- a/Assets/XLua/Gen/UnityEngine_SceneManagement_SceneWrap.cs +++ /dev/null @@ -1,406 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSceneManagementSceneWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SceneManagement.Scene); - Utils.BeginObjectRegister(type, L, translator, 1, 4, 8, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsValid", _m_IsValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRootGameObjects", _m_GetRootGameObjects); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "handle", _g_get_handle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "path", _g_get_path); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isLoaded", _g_get_isLoaded); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "buildIndex", _g_get_buildIndex); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDirty", _g_get_isDirty); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootCount", _g_get_rootCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isSubScene", _g_get_isSubScene); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isSubScene", _s_set_isSubScene); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SceneManagement.Scene)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.Scene constructor!"); - - } - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.SceneManagement.Scene leftside;translator.Get(L, 1, out leftside); - UnityEngine.SceneManagement.Scene rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.SceneManagement.Scene!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.IsValid( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRootGameObjects(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetRootGameObjects( ); - translator.Push(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _rootGameObjects = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.GetRootGameObjects( _rootGameObjects ); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.Scene.GetRootGameObjects!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_handle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.handle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_path(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.path); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isLoaded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_buildIndex(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.buildIndex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDirty(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDirty); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rootCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.rootCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isSubScene(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isSubScene); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_name(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isSubScene(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.isSubScene = LuaAPI.lua_toboolean(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ScreenWrap.cs b/Assets/XLua/Gen/UnityEngine_ScreenWrap.cs deleted file mode 100644 index f73751f7c..000000000 --- a/Assets/XLua/Gen/UnityEngine_ScreenWrap.cs +++ /dev/null @@ -1,576 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineScreenWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Screen); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 18, 9); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetResolution", _m_SetResolution_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDisplayLayout", _m_GetDisplayLayout_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveMainWindowTo", _m_MoveMainWindowTo_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "dpi", _g_get_dpi); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "currentResolution", _g_get_currentResolution); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "resolutions", _g_get_resolutions); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fullScreen", _g_get_fullScreen); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fullScreenMode", _g_get_fullScreenMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "safeArea", _g_get_safeArea); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "cutouts", _g_get_cutouts); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autorotateToPortrait", _g_get_autorotateToPortrait); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autorotateToPortraitUpsideDown", _g_get_autorotateToPortraitUpsideDown); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autorotateToLandscapeLeft", _g_get_autorotateToLandscapeLeft); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "autorotateToLandscapeRight", _g_get_autorotateToLandscapeRight); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "orientation", _g_get_orientation); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "sleepTimeout", _g_get_sleepTimeout); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "brightness", _g_get_brightness); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mainWindowPosition", _g_get_mainWindowPosition); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "mainWindowDisplayInfo", _g_get_mainWindowDisplayInfo); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fullScreen", _s_set_fullScreen); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fullScreenMode", _s_set_fullScreenMode); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "autorotateToPortrait", _s_set_autorotateToPortrait); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "autorotateToPortraitUpsideDown", _s_set_autorotateToPortraitUpsideDown); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "autorotateToLandscapeLeft", _s_set_autorotateToLandscapeLeft); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "autorotateToLandscapeRight", _s_set_autorotateToLandscapeRight); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "orientation", _s_set_orientation); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "sleepTimeout", _s_set_sleepTimeout); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "brightness", _s_set_brightness); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Screen(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Screen constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetResolution_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - bool _fullscreen = LuaAPI.lua_toboolean(L, 3); - - UnityEngine.Screen.SetResolution( _width, _height, _fullscreen ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - bool _fullscreen = LuaAPI.lua_toboolean(L, 3); - int _preferredRefreshRate = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Screen.SetResolution( _width, _height, _fullscreen, _preferredRefreshRate ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.FullScreenMode _fullscreenMode;translator.Get(L, 3, out _fullscreenMode); - - UnityEngine.Screen.SetResolution( _width, _height, _fullscreenMode ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.FullScreenMode _fullscreenMode;translator.Get(L, 3, out _fullscreenMode); - int _preferredRefreshRate = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Screen.SetResolution( _width, _height, _fullscreenMode, _preferredRefreshRate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Screen.SetResolution!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDisplayLayout_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.List _displayLayout = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - UnityEngine.Screen.GetDisplayLayout( _displayLayout ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveMainWindowTo_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.DisplayInfo _display;translator.Get(L, 1, out _display); - UnityEngine.Vector2Int _position;translator.Get(L, 2, out _position); - - var gen_ret = UnityEngine.Screen.MoveMainWindowTo( _display, _position ); - translator.Push(L, gen_ret); - translator.Push(L, _display); - translator.Update(L, 1, _display); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Screen.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Screen.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dpi(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Screen.dpi); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.currentResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resolutions(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.resolutions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fullScreen(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Screen.fullScreen); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fullScreenMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.fullScreenMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_safeArea(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.safeArea); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cutouts(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.cutouts); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autorotateToPortrait(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Screen.autorotateToPortrait); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autorotateToPortraitUpsideDown(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Screen.autorotateToPortraitUpsideDown); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autorotateToLandscapeLeft(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Screen.autorotateToLandscapeLeft); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_autorotateToLandscapeRight(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Screen.autorotateToLandscapeRight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_orientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.orientation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sleepTimeout(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Screen.sleepTimeout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_brightness(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Screen.brightness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainWindowPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.mainWindowPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainWindowDisplayInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Screen.mainWindowDisplayInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fullScreen(RealStatePtr L) - { - try { - - UnityEngine.Screen.fullScreen = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fullScreenMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.FullScreenMode gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Screen.fullScreenMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autorotateToPortrait(RealStatePtr L) - { - try { - - UnityEngine.Screen.autorotateToPortrait = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autorotateToPortraitUpsideDown(RealStatePtr L) - { - try { - - UnityEngine.Screen.autorotateToPortraitUpsideDown = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autorotateToLandscapeLeft(RealStatePtr L) - { - try { - - UnityEngine.Screen.autorotateToLandscapeLeft = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_autorotateToLandscapeRight(RealStatePtr L) - { - try { - - UnityEngine.Screen.autorotateToLandscapeRight = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_orientation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.ScreenOrientation gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Screen.orientation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sleepTimeout(RealStatePtr L) - { - try { - - UnityEngine.Screen.sleepTimeout = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_brightness(RealStatePtr L) - { - try { - - UnityEngine.Screen.brightness = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ScriptableObjectWrap.cs b/Assets/XLua/Gen/UnityEngine_ScriptableObjectWrap.cs deleted file mode 100644 index bcd58e640..000000000 --- a/Assets/XLua/Gen/UnityEngine_ScriptableObjectWrap.cs +++ /dev/null @@ -1,127 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineScriptableObjectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ScriptableObject); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateInstance", _m_CreateInstance_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ScriptableObject(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ScriptableObject constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateInstance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _className = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.ScriptableObject.CreateInstance( _className ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - System.Type _type = (System.Type)translator.GetObject(L, 1, typeof(System.Type)); - - var gen_ret = UnityEngine.ScriptableObject.CreateInstance( _type ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ScriptableObject.CreateInstance!"); - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ShaderVariantCollectionWrap.cs b/Assets/XLua/Gen/UnityEngine_ShaderVariantCollectionWrap.cs deleted file mode 100644 index af3619fe5..000000000 --- a/Assets/XLua/Gen/UnityEngine_ShaderVariantCollectionWrap.cs +++ /dev/null @@ -1,275 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineShaderVariantCollectionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ShaderVariantCollection); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "WarmUp", _m_WarmUp); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shaderCount", _g_get_shaderCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "variantCount", _g_get_variantCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isWarmedUp", _g_get_isWarmedUp); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.ShaderVariantCollection(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ShaderVariantCollection constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.ShaderVariantCollection.ShaderVariant _variant;translator.Get(L, 2, out _variant); - - var gen_ret = gen_to_be_invoked.Add( _variant ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.ShaderVariantCollection.ShaderVariant _variant;translator.Get(L, 2, out _variant); - - var gen_ret = gen_to_be_invoked.Remove( _variant ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Contains(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.ShaderVariantCollection.ShaderVariant _variant;translator.Get(L, 2, out _variant); - - var gen_ret = gen_to_be_invoked.Contains( _variant ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Clear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Clear( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WarmUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.WarmUp( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shaderCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.shaderCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_variantCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.variantCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isWarmedUp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isWarmedUp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ShaderVariantCollection_ShaderVariantWrap.cs b/Assets/XLua/Gen/UnityEngine_ShaderVariantCollection_ShaderVariantWrap.cs deleted file mode 100644 index cd7ed1ad2..000000000 --- a/Assets/XLua/Gen/UnityEngine_ShaderVariantCollection_ShaderVariantWrap.cs +++ /dev/null @@ -1,193 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineShaderVariantCollectionShaderVariantWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.ShaderVariantCollection.ShaderVariant); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shader", _g_get_shader); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "passType", _g_get_passType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keywords", _g_get_keywords); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shader", _s_set_shader); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "passType", _s_set_passType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "keywords", _s_set_keywords); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) >= 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING))) - { - UnityEngine.Shader _shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader)); - UnityEngine.Rendering.PassType _passType;translator.Get(L, 3, out _passType); - string[] _keywords = translator.GetParams(L, 4); - - var gen_ret = new UnityEngine.ShaderVariantCollection.ShaderVariant(_shader, _passType, _keywords); - translator.Push(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.ShaderVariantCollection.ShaderVariant)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ShaderVariantCollection.ShaderVariant constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shader(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection.ShaderVariant gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.shader); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_passType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection.ShaderVariant gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.passType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection.ShaderVariant gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.keywords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shader(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection.ShaderVariant gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.shader = (UnityEngine.Shader)translator.GetObject(L, 2, typeof(UnityEngine.Shader)); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_passType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection.ShaderVariant gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.Rendering.PassType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.passType = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.ShaderVariantCollection.ShaderVariant gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.keywords = (string[])translator.GetObject(L, 2, typeof(string[])); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_ShaderWrap.cs b/Assets/XLua/Gen/UnityEngine_ShaderWrap.cs deleted file mode 100644 index 44d2046bf..000000000 --- a/Assets/XLua/Gen/UnityEngine_ShaderWrap.cs +++ /dev/null @@ -1,2229 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineShaderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Shader); - Utils.BeginObjectRegister(type, L, translator, 0, 18, 6, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDependency", _m_GetDependency); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPassCountInSubshader", _m_GetPassCountInSubshader); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPassTagValue", _m_FindPassTagValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSubshaderTagValue", _m_FindSubshaderTagValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyCount", _m_GetPropertyCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPropertyIndex", _m_FindPropertyIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyName", _m_GetPropertyName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyNameId", _m_GetPropertyNameId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyType", _m_GetPropertyType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyDescription", _m_GetPropertyDescription); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyFlags", _m_GetPropertyFlags); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyAttributes", _m_GetPropertyAttributes); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyDefaultFloatValue", _m_GetPropertyDefaultFloatValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyDefaultVectorValue", _m_GetPropertyDefaultVectorValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyRangeLimits", _m_GetPropertyRangeLimits); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyTextureDimension", _m_GetPropertyTextureDimension); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPropertyTextureDefaultName", _m_GetPropertyTextureDefaultName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindTextureStack", _m_FindTextureStack); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maximumLOD", _g_get_maximumLOD); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isSupported", _g_get_isSupported); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keywordSpace", _g_get_keywordSpace); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderQueue", _g_get_renderQueue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "passCount", _g_get_passCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subshaderCount", _g_get_subshaderCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maximumLOD", _s_set_maximumLOD); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 30, 5, 3); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Find", _m_Find_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableKeyword", _m_EnableKeyword_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "DisableKeyword", _m_DisableKeyword_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsKeywordEnabled", _m_IsKeywordEnabled_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetKeyword", _m_SetKeyword_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WarmupAllShaders", _m_WarmupAllShaders_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "PropertyToID", _m_PropertyToID_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalInt", _m_SetGlobalInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalFloat", _m_SetGlobalFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalInteger", _m_SetGlobalInteger_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalVector", _m_SetGlobalVector_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalColor", _m_SetGlobalColor_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalMatrix", _m_SetGlobalMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalTexture", _m_SetGlobalTexture_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalBuffer", _m_SetGlobalBuffer_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalConstantBuffer", _m_SetGlobalConstantBuffer_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalFloatArray", _m_SetGlobalFloatArray_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalVectorArray", _m_SetGlobalVectorArray_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalMatrixArray", _m_SetGlobalMatrixArray_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalInt", _m_GetGlobalInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalFloat", _m_GetGlobalFloat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalInteger", _m_GetGlobalInteger_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalVector", _m_GetGlobalVector_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalColor", _m_GetGlobalColor_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalMatrix", _m_GetGlobalMatrix_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalTexture", _m_GetGlobalTexture_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalFloatArray", _m_GetGlobalFloatArray_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalVectorArray", _m_GetGlobalVectorArray_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGlobalMatrixArray", _m_GetGlobalMatrixArray_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maximumChunksOverride", _g_get_maximumChunksOverride); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "globalMaximumLOD", _g_get_globalMaximumLOD); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "globalRenderPipeline", _g_get_globalRenderPipeline); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "enabledGlobalKeywords", _g_get_enabledGlobalKeywords); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "globalKeywords", _g_get_globalKeywords); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maximumChunksOverride", _s_set_maximumChunksOverride); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "globalMaximumLOD", _s_set_globalMaximumLOD); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "globalRenderPipeline", _s_set_globalRenderPipeline); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Shader does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.Find( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableKeyword_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _keyword = LuaAPI.lua_tostring(L, 1); - - UnityEngine.Shader.EnableKeyword( _keyword ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Rendering.GlobalKeyword _keyword;translator.Get(L, 1, out _keyword); - - UnityEngine.Shader.EnableKeyword( _keyword ); - translator.Push(L, _keyword); - translator.Update(L, 1, _keyword); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.EnableKeyword!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DisableKeyword_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _keyword = LuaAPI.lua_tostring(L, 1); - - UnityEngine.Shader.DisableKeyword( _keyword ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Rendering.GlobalKeyword _keyword;translator.Get(L, 1, out _keyword); - - UnityEngine.Shader.DisableKeyword( _keyword ); - translator.Push(L, _keyword); - translator.Update(L, 1, _keyword); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.DisableKeyword!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsKeywordEnabled_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _keyword = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.IsKeywordEnabled( _keyword ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - UnityEngine.Rendering.GlobalKeyword _keyword;translator.Get(L, 1, out _keyword); - - var gen_ret = UnityEngine.Shader.IsKeywordEnabled( _keyword ); - LuaAPI.lua_pushboolean(L, gen_ret); - translator.Push(L, _keyword); - translator.Update(L, 1, _keyword); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.IsKeywordEnabled!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetKeyword_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rendering.GlobalKeyword _keyword;translator.Get(L, 1, out _keyword); - bool _value = LuaAPI.lua_toboolean(L, 2); - - UnityEngine.Shader.SetKeyword( _keyword, _value ); - translator.Push(L, _keyword); - translator.Update(L, 1, _keyword); - - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WarmupAllShaders_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Shader.WarmupAllShaders( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PropertyToID_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.PropertyToID( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDependency(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetDependency( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPassCountInSubshader(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _subshaderIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPassCountInSubshader( _subshaderIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindPassTagValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - int _passIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.ShaderTagId _tagName;translator.Get(L, 3, out _tagName); - - var gen_ret = gen_to_be_invoked.FindPassTagValue( _passIndex, _tagName ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - int _subshaderIndex = LuaAPI.xlua_tointeger(L, 2); - int _passIndex = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Rendering.ShaderTagId _tagName;translator.Get(L, 4, out _tagName); - - var gen_ret = gen_to_be_invoked.FindPassTagValue( _subshaderIndex, _passIndex, _tagName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.FindPassTagValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSubshaderTagValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _subshaderIndex = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.Rendering.ShaderTagId _tagName;translator.Get(L, 3, out _tagName); - - var gen_ret = gen_to_be_invoked.FindSubshaderTagValue( _subshaderIndex, _tagName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalInt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - int _value = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Shader.SetGlobalInt( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - int _value = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Shader.SetGlobalInt( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalFloat_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - UnityEngine.Shader.SetGlobalFloat( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - float _value = (float)LuaAPI.lua_tonumber(L, 2); - - UnityEngine.Shader.SetGlobalFloat( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalInteger_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - int _value = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Shader.SetGlobalInteger( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - int _value = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Shader.SetGlobalInteger( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalVector_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Vector4 _value;translator.Get(L, 2, out _value); - - UnityEngine.Shader.SetGlobalVector( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.Vector4 _value;translator.Get(L, 2, out _value); - - UnityEngine.Shader.SetGlobalVector( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalColor_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Color _value;translator.Get(L, 2, out _value); - - UnityEngine.Shader.SetGlobalColor( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.Color _value;translator.Get(L, 2, out _value); - - UnityEngine.Shader.SetGlobalColor( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalMatrix_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Matrix4x4 _value;translator.Get(L, 2, out _value); - - UnityEngine.Shader.SetGlobalMatrix( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.Matrix4x4 _value;translator.Get(L, 2, out _value); - - UnityEngine.Shader.SetGlobalMatrix( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Texture _value = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - UnityEngine.Shader.SetGlobalTexture( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.Texture _value = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - UnityEngine.Shader.SetGlobalTexture( _name, _value ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.RenderTexture _value = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 3, out _element); - - UnityEngine.Shader.SetGlobalTexture( _nameID, _value, _element ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.RenderTexture _value = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - UnityEngine.Rendering.RenderTextureSubElement _element;translator.Get(L, 3, out _element); - - UnityEngine.Shader.SetGlobalTexture( _name, _value, _element ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalBuffer_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Shader.SetGlobalBuffer( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Shader.SetGlobalBuffer( _nameID, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - - UnityEngine.Shader.SetGlobalBuffer( _name, _value ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - - UnityEngine.Shader.SetGlobalBuffer( _name, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalConstantBuffer_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 3); - int _size = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Shader.SetGlobalConstantBuffer( _nameID, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 3); - int _size = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Shader.SetGlobalConstantBuffer( _nameID, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.ComputeBuffer _value = (UnityEngine.ComputeBuffer)translator.GetObject(L, 2, typeof(UnityEngine.ComputeBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 3); - int _size = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Shader.SetGlobalConstantBuffer( _name, _value, _offset, _size ); - - - - return 0; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.GraphicsBuffer _value = (UnityEngine.GraphicsBuffer)translator.GetObject(L, 2, typeof(UnityEngine.GraphicsBuffer)); - int _offset = LuaAPI.xlua_tointeger(L, 3); - int _size = LuaAPI.xlua_tointeger(L, 4); - - UnityEngine.Shader.SetGlobalConstantBuffer( _name, _value, _offset, _size ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalConstantBuffer!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalFloatArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.SetGlobalFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - float[] _values = (float[])translator.GetObject(L, 2, typeof(float[])); - - UnityEngine.Shader.SetGlobalFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.SetGlobalFloatArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - float[] _values = (float[])translator.GetObject(L, 2, typeof(float[])); - - UnityEngine.Shader.SetGlobalFloatArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalFloatArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalVectorArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.SetGlobalVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - - UnityEngine.Shader.SetGlobalVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.SetGlobalVectorArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.Vector4[] _values = (UnityEngine.Vector4[])translator.GetObject(L, 2, typeof(UnityEngine.Vector4[])); - - UnityEngine.Shader.SetGlobalVectorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalVectorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalMatrixArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.SetGlobalMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 2, typeof(UnityEngine.Matrix4x4[])); - - UnityEngine.Shader.SetGlobalMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.SetGlobalMatrixArray( _name, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - UnityEngine.Matrix4x4[] _values = (UnityEngine.Matrix4x4[])translator.GetObject(L, 2, typeof(UnityEngine.Matrix4x4[])); - - UnityEngine.Shader.SetGlobalMatrixArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.SetGlobalMatrixArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalInt_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalInt( _nameID ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalInt( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalInt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalFloat_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalFloat( _nameID ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalFloat( _name ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalFloat!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalInteger_xlua_st_(RealStatePtr L) - { - try { - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalInteger( _nameID ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalInteger( _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalInteger!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalVector_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalVector( _nameID ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalVector( _name ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalColor_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalColor( _nameID ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalColor( _name ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalMatrix_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalMatrix( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalMatrix( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalMatrix!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalTexture( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalTexture( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalTexture!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalFloatArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalFloatArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalFloatArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.GetGlobalFloatArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.GetGlobalFloatArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalFloatArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalVectorArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalVectorArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalVectorArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.GetGlobalVectorArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.GetGlobalVectorArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalVectorArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGlobalMatrixArray_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalMatrixArray( _nameID ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) - { - string _name = LuaAPI.lua_tostring(L, 1); - - var gen_ret = UnityEngine.Shader.GetGlobalMatrixArray( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _nameID = LuaAPI.xlua_tointeger(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.GetGlobalMatrixArray( _nameID, _values ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable>(L, 2)) - { - string _name = LuaAPI.lua_tostring(L, 1); - System.Collections.Generic.List _values = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.Shader.GetGlobalMatrixArray( _name, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Shader.GetGlobalMatrixArray!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPropertyCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindPropertyIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - string _propertyName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.FindPropertyIndex( _propertyName ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyName( _propertyIndex ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyNameId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyNameId( _propertyIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyType( _propertyIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyDescription(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyDescription( _propertyIndex ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyFlags(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyFlags( _propertyIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyAttributes(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyAttributes( _propertyIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyDefaultFloatValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyDefaultFloatValue( _propertyIndex ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyDefaultVectorValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyDefaultVectorValue( _propertyIndex ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyRangeLimits(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyRangeLimits( _propertyIndex ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyTextureDimension(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyTextureDimension( _propertyIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPropertyTextureDefaultName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPropertyTextureDefaultName( _propertyIndex ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindTextureStack(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - - - - { - int _propertyIndex = LuaAPI.xlua_tointeger(L, 2); - string _stackName; - int _layerIndex; - - var gen_ret = gen_to_be_invoked.FindTextureStack( _propertyIndex, out _stackName, out _layerIndex ); - LuaAPI.lua_pushboolean(L, gen_ret); - LuaAPI.lua_pushstring(L, _stackName); - - LuaAPI.xlua_pushinteger(L, _layerIndex); - - - - - return 3; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumChunksOverride(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Shader.maximumChunksOverride); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumLOD(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maximumLOD); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_globalMaximumLOD(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Shader.globalMaximumLOD); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isSupported(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isSupported); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_globalRenderPipeline(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.Shader.globalRenderPipeline); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_enabledGlobalKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Shader.enabledGlobalKeywords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_globalKeywords(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Shader.globalKeywords); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keywordSpace(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.keywordSpace); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderQueue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderQueue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_passCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.passCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subshaderCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.subshaderCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumChunksOverride(RealStatePtr L) - { - try { - - UnityEngine.Shader.maximumChunksOverride = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumLOD(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Shader gen_to_be_invoked = (UnityEngine.Shader)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maximumLOD = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_globalMaximumLOD(RealStatePtr L) - { - try { - - UnityEngine.Shader.globalMaximumLOD = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_globalRenderPipeline(RealStatePtr L) - { - try { - - UnityEngine.Shader.globalRenderPipeline = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleEventWrap.cs b/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleEventWrap.cs deleted file mode 100644 index 0385cde1b..000000000 --- a/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSignInWithAppleSignInWithAppleEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SignInWithApple.SignInWithAppleEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithAppleEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleWrap.cs b/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleWrap.cs deleted file mode 100644 index 0bf184585..000000000 --- a/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithAppleWrap.cs +++ /dev/null @@ -1,291 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSignInWithAppleSignInWithAppleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithApple); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCredentialState", _m_GetCredentialState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onLogin", _g_get_onLogin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onCredentialState", _g_get_onCredentialState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onError", _g_get_onError); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onLogin", _s_set_onLogin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onCredentialState", _s_set_onCredentialState); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onError", _s_set_onError); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SignInWithApple.SignInWithApple(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCredentialState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _userID = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.GetCredentialState( _userID ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _userID = LuaAPI.lua_tostring(L, 2); - UnityEngine.SignInWithApple.SignInWithApple.Callback _callback = translator.GetDelegate(L, 3); - - gen_to_be_invoked.GetCredentialState( _userID, _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.GetCredentialState!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Login(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Login( ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.SignInWithApple.SignInWithApple.Callback _callback = translator.GetDelegate(L, 2); - - gen_to_be_invoked.Login( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.Login!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Update(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Update( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onLogin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onLogin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onCredentialState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onCredentialState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onError(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onError); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onLogin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onLogin = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onCredentialState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onCredentialState = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onError(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onError = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithApple_CallbackArgsWrap.cs b/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithApple_CallbackArgsWrap.cs deleted file mode 100644 index ead6c3deb..000000000 --- a/Assets/XLua/Gen/UnityEngine_SignInWithApple_SignInWithApple_CallbackArgsWrap.cs +++ /dev/null @@ -1,183 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSignInWithAppleSignInWithAppleCallbackArgsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "credentialState", _g_get_credentialState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "userInfo", _g_get_userInfo); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "error", _g_get_error); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "credentialState", _s_set_credentialState); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "userInfo", _s_set_userInfo); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "error", _s_set_error); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_credentialState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.credentialState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_userInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.userInfo); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_error(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.error); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_credentialState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.SignInWithApple.UserCredentialState gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.credentialState = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_userInfo(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.SignInWithApple.UserInfo gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.userInfo = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_error(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.error = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SignInWithApple_UserInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_SignInWithApple_UserInfoWrap.cs deleted file mode 100644 index 0321bbf90..000000000 --- a/Assets/XLua/Gen/UnityEngine_SignInWithApple_UserInfoWrap.cs +++ /dev/null @@ -1,281 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSignInWithAppleUserInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SignInWithApple.UserInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "userId", _g_get_userId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "email", _g_get_email); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "displayName", _g_get_displayName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "idToken", _g_get_idToken); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "error", _g_get_error); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "userDetectionStatus", _g_get_userDetectionStatus); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "userId", _s_set_userId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "email", _s_set_email); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "displayName", _s_set_displayName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "idToken", _s_set_idToken); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "error", _s_set_error); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "userDetectionStatus", _s_set_userDetectionStatus); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.SignInWithApple.UserInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.UserInfo constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_userId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.userId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_email(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.email); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_displayName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.displayName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_idToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.idToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_error(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.error); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_userDetectionStatus(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.Push(L, gen_to_be_invoked.userDetectionStatus); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_userId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.userId = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_email(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.email = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_displayName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.displayName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_idToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.idToken = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_error(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.error = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_userDetectionStatus(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - UnityEngine.SignInWithApple.UserDetectionStatus gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.userDetectionStatus = gen_value; - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SkinnedMeshRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_SkinnedMeshRendererWrap.cs deleted file mode 100644 index 9c3e7c5a3..000000000 --- a/Assets/XLua/Gen/UnityEngine_SkinnedMeshRendererWrap.cs +++ /dev/null @@ -1,496 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSkinnedMeshRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SkinnedMeshRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 8, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeWeight", _m_GetBlendShapeWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlendShapeWeight", _m_SetBlendShapeWeight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BakeMesh", _m_BakeMesh); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexBuffer", _m_GetVertexBuffer); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreviousVertexBuffer", _m_GetPreviousVertexBuffer); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "quality", _g_get_quality); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateWhenOffscreen", _g_get_updateWhenOffscreen); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceMatrixRecalculationPerRender", _g_get_forceMatrixRecalculationPerRender); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootBone", _g_get_rootBone); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bones", _g_get_bones); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMesh", _g_get_sharedMesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skinnedMotionVectors", _g_get_skinnedMotionVectors); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexBufferTarget", _g_get_vertexBufferTarget); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "quality", _s_set_quality); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateWhenOffscreen", _s_set_updateWhenOffscreen); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceMatrixRecalculationPerRender", _s_set_forceMatrixRecalculationPerRender); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rootBone", _s_set_rootBone); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "bones", _s_set_bones); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMesh", _s_set_sharedMesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skinnedMotionVectors", _s_set_skinnedMotionVectors); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexBufferTarget", _s_set_vertexBufferTarget); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SkinnedMeshRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SkinnedMeshRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetBlendShapeWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetBlendShapeWeight( _index ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetBlendShapeWeight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - float _value = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetBlendShapeWeight( _index, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BakeMesh(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - gen_to_be_invoked.BakeMesh( _mesh ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - bool _useScale = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.BakeMesh( _mesh, _useScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SkinnedMeshRenderer.BakeMesh!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetVertexBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetVertexBuffer( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPreviousVertexBuffer(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPreviousVertexBuffer( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_quality(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.quality); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateWhenOffscreen(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.updateWhenOffscreen); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forceMatrixRecalculationPerRender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.forceMatrixRecalculationPerRender); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rootBone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rootBone); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.bones); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sharedMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sharedMesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skinnedMotionVectors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.skinnedMotionVectors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertexBufferTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vertexBufferTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_quality(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SkinQuality gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.quality = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_updateWhenOffscreen(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.updateWhenOffscreen = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forceMatrixRecalculationPerRender(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.forceMatrixRecalculationPerRender = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rootBone(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.rootBone = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_bones(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.bones = (UnityEngine.Transform[])translator.GetObject(L, 2, typeof(UnityEngine.Transform[])); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sharedMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sharedMesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skinnedMotionVectors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skinnedMotionVectors = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertexBufferTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.GraphicsBuffer.Target gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.vertexBufferTarget = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SphereColliderWrap.cs b/Assets/XLua/Gen/UnityEngine_SphereColliderWrap.cs deleted file mode 100644 index d92f597d7..000000000 --- a/Assets/XLua/Gen/UnityEngine_SphereColliderWrap.cs +++ /dev/null @@ -1,147 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSphereColliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SphereCollider); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "center", _s_set_center); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SphereCollider(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SphereCollider constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SphereCollider gen_to_be_invoked = (UnityEngine.SphereCollider)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.center); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SphereCollider gen_to_be_invoked = (UnityEngine.SphereCollider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_center(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SphereCollider gen_to_be_invoked = (UnityEngine.SphereCollider)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.center = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_radius(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SphereCollider gen_to_be_invoked = (UnityEngine.SphereCollider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.radius = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SpriteRendererWrap.cs b/Assets/XLua/Gen/UnityEngine_SpriteRendererWrap.cs deleted file mode 100644 index aa03846a3..000000000 --- a/Assets/XLua/Gen/UnityEngine_SpriteRendererWrap.cs +++ /dev/null @@ -1,582 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSpriteRendererWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SpriteRenderer); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 10, 10); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterSpriteChangeCallback", _m_RegisterSpriteChangeCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnregisterSpriteChangeCallback", _m_UnregisterSpriteChangeCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOGradientColor", _m_DOGradientColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableColor", _m_DOBlendableColor); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "drawMode", _g_get_drawMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adaptiveModeThreshold", _g_get_adaptiveModeThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tileMode", _g_get_tileMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskInteraction", _g_get_maskInteraction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flipX", _g_get_flipX); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flipY", _g_get_flipY); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteSortPoint", _g_get_spriteSortPoint); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "drawMode", _s_set_drawMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adaptiveModeThreshold", _s_set_adaptiveModeThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tileMode", _s_set_tileMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskInteraction", _s_set_maskInteraction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flipX", _s_set_flipX); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flipY", _s_set_flipY); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteSortPoint", _s_set_spriteSortPoint); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SpriteRenderer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SpriteRenderer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterSpriteChangeCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.RegisterSpriteChangeCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterSpriteChangeCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _callback = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.UnregisterSpriteChangeCallback( _callback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOGradientColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Gradient _gradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOGradientColor( _gradient, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_drawMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.drawMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adaptiveModeThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.adaptiveModeThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tileMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.tileMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.maskInteraction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flipX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.flipX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flipY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.flipY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteSortPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteSortPoint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_drawMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteDrawMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.drawMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.size = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adaptiveModeThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.adaptiveModeThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tileMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteTileMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.tileMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskInteraction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteMaskInteraction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.maskInteraction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flipX(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flipX = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flipY(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flipY = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteSortPoint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.SpriteRenderer gen_to_be_invoked = (UnityEngine.SpriteRenderer)translator.FastGetCSObj(L, 1); - UnityEngine.SpriteSortPoint gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.spriteSortPoint = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SpriteWrap.cs b/Assets/XLua/Gen/UnityEngine_SpriteWrap.cs deleted file mode 100644 index 7aee52056..000000000 --- a/Assets/XLua/Gen/UnityEngine_SpriteWrap.cs +++ /dev/null @@ -1,570 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSpriteWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Sprite); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 16, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPhysicsShapeCount", _m_GetPhysicsShapeCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPhysicsShapePointCount", _m_GetPhysicsShapePointCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPhysicsShape", _m_GetPhysicsShape); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverridePhysicsShape", _m_OverridePhysicsShape); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OverrideGeometry", _m_OverrideGeometry); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounds", _g_get_bounds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rect", _g_get_rect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "border", _g_get_border); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texture", _g_get_texture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelsPerUnit", _g_get_pixelsPerUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteAtlasTextureScale", _g_get_spriteAtlasTextureScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "associatedAlphaSplitTexture", _g_get_associatedAlphaSplitTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pivot", _g_get_pivot); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "packed", _g_get_packed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "packingMode", _g_get_packingMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "packingRotation", _g_get_packingRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureRect", _g_get_textureRect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureRectOffset", _g_get_textureRectOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertices", _g_get_vertices); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "triangles", _g_get_triangles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uv", _g_get_uv); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Sprite does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPhysicsShapeCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPhysicsShapeCount( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPhysicsShapePointCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - - - - { - int _shapeIdx = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPhysicsShapePointCount( _shapeIdx ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPhysicsShape(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - - - - { - int _shapeIdx = LuaAPI.xlua_tointeger(L, 2); - System.Collections.Generic.List _physicsShape = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - var gen_ret = gen_to_be_invoked.GetPhysicsShape( _shapeIdx, _physicsShape ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverridePhysicsShape(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.IList _physicsShapes = (System.Collections.Generic.IList)translator.GetObject(L, 2, typeof(System.Collections.Generic.IList)); - - gen_to_be_invoked.OverridePhysicsShape( _physicsShapes ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OverrideGeometry(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2[] _vertices = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); - ushort[] _triangles = (ushort[])translator.GetObject(L, 3, typeof(ushort[])); - - gen_to_be_invoked.OverrideGeometry( _vertices, _triangles ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Create_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Texture2D _texture = (UnityEngine.Texture2D)translator.GetObject(L, 1, typeof(UnityEngine.Texture2D)); - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - UnityEngine.Vector2 _pivot;translator.Get(L, 3, out _pivot); - - var gen_ret = UnityEngine.Sprite.Create( _texture, _rect, _pivot ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Texture2D _texture = (UnityEngine.Texture2D)translator.GetObject(L, 1, typeof(UnityEngine.Texture2D)); - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - UnityEngine.Vector2 _pivot;translator.Get(L, 3, out _pivot); - float _pixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Sprite.Create( _texture, _rect, _pivot, _pixelsPerUnit ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Texture2D _texture = (UnityEngine.Texture2D)translator.GetObject(L, 1, typeof(UnityEngine.Texture2D)); - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - UnityEngine.Vector2 _pivot;translator.Get(L, 3, out _pivot); - float _pixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 4); - uint _extrude = LuaAPI.xlua_touint(L, 5); - - var gen_ret = UnityEngine.Sprite.Create( _texture, _rect, _pivot, _pixelsPerUnit, _extrude ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - UnityEngine.Texture2D _texture = (UnityEngine.Texture2D)translator.GetObject(L, 1, typeof(UnityEngine.Texture2D)); - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - UnityEngine.Vector2 _pivot;translator.Get(L, 3, out _pivot); - float _pixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 4); - uint _extrude = LuaAPI.xlua_touint(L, 5); - UnityEngine.SpriteMeshType _meshType;translator.Get(L, 6, out _meshType); - - var gen_ret = UnityEngine.Sprite.Create( _texture, _rect, _pivot, _pixelsPerUnit, _extrude, _meshType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)) - { - UnityEngine.Texture2D _texture = (UnityEngine.Texture2D)translator.GetObject(L, 1, typeof(UnityEngine.Texture2D)); - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - UnityEngine.Vector2 _pivot;translator.Get(L, 3, out _pivot); - float _pixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 4); - uint _extrude = LuaAPI.xlua_touint(L, 5); - UnityEngine.SpriteMeshType _meshType;translator.Get(L, 6, out _meshType); - UnityEngine.Vector4 _border;translator.Get(L, 7, out _border); - - var gen_ret = UnityEngine.Sprite.Create( _texture, _rect, _pivot, _pixelsPerUnit, _extrude, _meshType, _border ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 8&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& translator.Assignable(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8)) - { - UnityEngine.Texture2D _texture = (UnityEngine.Texture2D)translator.GetObject(L, 1, typeof(UnityEngine.Texture2D)); - UnityEngine.Rect _rect;translator.Get(L, 2, out _rect); - UnityEngine.Vector2 _pivot;translator.Get(L, 3, out _pivot); - float _pixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 4); - uint _extrude = LuaAPI.xlua_touint(L, 5); - UnityEngine.SpriteMeshType _meshType;translator.Get(L, 6, out _meshType); - UnityEngine.Vector4 _border;translator.Get(L, 7, out _border); - bool _generateFallbackPhysicsShape = LuaAPI.lua_toboolean(L, 8); - - var gen_ret = UnityEngine.Sprite.Create( _texture, _rect, _pivot, _pixelsPerUnit, _extrude, _meshType, _border, _generateFallbackPhysicsShape ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Sprite.Create!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bounds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineBounds(L, gen_to_be_invoked.bounds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_border(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.border); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.texture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteAtlasTextureScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.spriteAtlasTextureScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_associatedAlphaSplitTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.associatedAlphaSplitTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pivot(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.pivot); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_packed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.packed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_packingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.packingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_packingRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.packingRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textureRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textureRectOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureRectOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertices(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.vertices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_triangles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.triangles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uv(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Sprite gen_to_be_invoked = (UnityEngine.Sprite)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uv); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_SystemInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_SystemInfoWrap.cs deleted file mode 100644 index d9b5a2cd0..000000000 --- a/Assets/XLua/Gen/UnityEngine_SystemInfoWrap.cs +++ /dev/null @@ -1,1497 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineSystemInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.SystemInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 11, 89, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsRenderTextureFormat", _m_SupportsRenderTextureFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsBlendingOnRenderTextureFormat", _m_SupportsBlendingOnRenderTextureFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsRandomWriteOnRenderTextureFormat", _m_SupportsRandomWriteOnRenderTextureFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsTextureFormat", _m_SupportsTextureFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsVertexAttributeFormat", _m_SupportsVertexAttributeFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsFormatSupported", _m_IsFormatSupported_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCompatibleFormat", _m_GetCompatibleFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetGraphicsFormat", _m_GetGraphicsFormat_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRenderTextureSupportedMSAASampleCount", _m_GetRenderTextureSupportedMSAASampleCount_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "unsupportedIdentifier", UnityEngine.SystemInfo.unsupportedIdentifier); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "batteryLevel", _g_get_batteryLevel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "batteryStatus", _g_get_batteryStatus); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "operatingSystem", _g_get_operatingSystem); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "operatingSystemFamily", _g_get_operatingSystemFamily); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "processorType", _g_get_processorType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "processorFrequency", _g_get_processorFrequency); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "processorCount", _g_get_processorCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "systemMemorySize", _g_get_systemMemorySize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "deviceUniqueIdentifier", _g_get_deviceUniqueIdentifier); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "deviceName", _g_get_deviceName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "deviceModel", _g_get_deviceModel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsAccelerometer", _g_get_supportsAccelerometer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsGyroscope", _g_get_supportsGyroscope); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsLocationService", _g_get_supportsLocationService); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsVibration", _g_get_supportsVibration); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsAudio", _g_get_supportsAudio); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "deviceType", _g_get_deviceType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsMemorySize", _g_get_graphicsMemorySize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsDeviceName", _g_get_graphicsDeviceName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsDeviceVendor", _g_get_graphicsDeviceVendor); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsDeviceID", _g_get_graphicsDeviceID); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsDeviceVendorID", _g_get_graphicsDeviceVendorID); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsDeviceType", _g_get_graphicsDeviceType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsUVStartsAtTop", _g_get_graphicsUVStartsAtTop); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsDeviceVersion", _g_get_graphicsDeviceVersion); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsShaderLevel", _g_get_graphicsShaderLevel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "graphicsMultiThreaded", _g_get_graphicsMultiThreaded); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "renderingThreadingMode", _g_get_renderingThreadingMode); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hasHiddenSurfaceRemovalOnGPU", _g_get_hasHiddenSurfaceRemovalOnGPU); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hasDynamicUniformArrayIndexingInFragmentShaders", _g_get_hasDynamicUniformArrayIndexingInFragmentShaders); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsShadows", _g_get_supportsShadows); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsRawShadowDepthSampling", _g_get_supportsRawShadowDepthSampling); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsMotionVectors", _g_get_supportsMotionVectors); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supports3DTextures", _g_get_supports3DTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsCompressed3DTextures", _g_get_supportsCompressed3DTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supports2DArrayTextures", _g_get_supports2DArrayTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supports3DRenderTextures", _g_get_supports3DRenderTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsCubemapArrayTextures", _g_get_supportsCubemapArrayTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsAnisotropicFilter", _g_get_supportsAnisotropicFilter); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "copyTextureSupport", _g_get_copyTextureSupport); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsComputeShaders", _g_get_supportsComputeShaders); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsGeometryShaders", _g_get_supportsGeometryShaders); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsTessellationShaders", _g_get_supportsTessellationShaders); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsRenderTargetArrayIndexFromVertexShader", _g_get_supportsRenderTargetArrayIndexFromVertexShader); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsInstancing", _g_get_supportsInstancing); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsHardwareQuadTopology", _g_get_supportsHardwareQuadTopology); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supports32bitsIndexBuffer", _g_get_supports32bitsIndexBuffer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsSparseTextures", _g_get_supportsSparseTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportedRenderTargetCount", _g_get_supportedRenderTargetCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsSeparatedRenderTargetsBlend", _g_get_supportsSeparatedRenderTargetsBlend); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportedRandomWriteTargetCount", _g_get_supportedRandomWriteTargetCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsMultisampledTextures", _g_get_supportsMultisampledTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsMultisampled2DArrayTextures", _g_get_supportsMultisampled2DArrayTextures); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsMultisampleAutoResolve", _g_get_supportsMultisampleAutoResolve); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsTextureWrapMirrorOnce", _g_get_supportsTextureWrapMirrorOnce); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "usesReversedZBuffer", _g_get_usesReversedZBuffer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "npotSupport", _g_get_npotSupport); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxTextureSize", _g_get_maxTextureSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxTexture3DSize", _g_get_maxTexture3DSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxTextureArraySlices", _g_get_maxTextureArraySlices); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxCubemapSize", _g_get_maxCubemapSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxAnisotropyLevel", _g_get_maxAnisotropyLevel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeBufferInputsVertex", _g_get_maxComputeBufferInputsVertex); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeBufferInputsFragment", _g_get_maxComputeBufferInputsFragment); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeBufferInputsGeometry", _g_get_maxComputeBufferInputsGeometry); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeBufferInputsDomain", _g_get_maxComputeBufferInputsDomain); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeBufferInputsHull", _g_get_maxComputeBufferInputsHull); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeBufferInputsCompute", _g_get_maxComputeBufferInputsCompute); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeWorkGroupSize", _g_get_maxComputeWorkGroupSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeWorkGroupSizeX", _g_get_maxComputeWorkGroupSizeX); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeWorkGroupSizeY", _g_get_maxComputeWorkGroupSizeY); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxComputeWorkGroupSizeZ", _g_get_maxComputeWorkGroupSizeZ); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "computeSubGroupSize", _g_get_computeSubGroupSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsAsyncCompute", _g_get_supportsAsyncCompute); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsGpuRecorder", _g_get_supportsGpuRecorder); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsGraphicsFence", _g_get_supportsGraphicsFence); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsAsyncGPUReadback", _g_get_supportsAsyncGPUReadback); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsRayTracing", _g_get_supportsRayTracing); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsSetConstantBuffer", _g_get_supportsSetConstantBuffer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "constantBufferOffsetAlignment", _g_get_constantBufferOffsetAlignment); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maxGraphicsBufferSize", _g_get_maxGraphicsBufferSize); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hasMipMaxLevel", _g_get_hasMipMaxLevel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsMipStreaming", _g_get_supportsMipStreaming); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "usesLoadStoreActions", _g_get_usesLoadStoreActions); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "hdrDisplaySupportFlags", _g_get_hdrDisplaySupportFlags); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsConservativeRaster", _g_get_supportsConservativeRaster); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsMultiview", _g_get_supportsMultiview); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsStoreAndResolveAction", _g_get_supportsStoreAndResolveAction); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "supportsMultisampleResolveDepth", _g_get_supportsMultisampleResolveDepth); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.SystemInfo(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SystemInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SupportsRenderTextureFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RenderTextureFormat _format;translator.Get(L, 1, out _format); - - var gen_ret = UnityEngine.SystemInfo.SupportsRenderTextureFormat( _format ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SupportsBlendingOnRenderTextureFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RenderTextureFormat _format;translator.Get(L, 1, out _format); - - var gen_ret = UnityEngine.SystemInfo.SupportsBlendingOnRenderTextureFormat( _format ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SupportsRandomWriteOnRenderTextureFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RenderTextureFormat _format;translator.Get(L, 1, out _format); - - var gen_ret = UnityEngine.SystemInfo.SupportsRandomWriteOnRenderTextureFormat( _format ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SupportsTextureFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.TextureFormat _format;translator.Get(L, 1, out _format); - - var gen_ret = UnityEngine.SystemInfo.SupportsTextureFormat( _format ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SupportsVertexAttributeFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Rendering.VertexAttributeFormat _format;translator.Get(L, 1, out _format); - int _dimension = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = UnityEngine.SystemInfo.SupportsVertexAttributeFormat( _format, _dimension ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsFormatSupported_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 1, out _format); - UnityEngine.Experimental.Rendering.FormatUsage _usage;translator.Get(L, 2, out _usage); - - var gen_ret = UnityEngine.SystemInfo.IsFormatSupported( _format, _usage ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetCompatibleFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 1, out _format); - UnityEngine.Experimental.Rendering.FormatUsage _usage;translator.Get(L, 2, out _usage); - - var gen_ret = UnityEngine.SystemInfo.GetCompatibleFormat( _format, _usage ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGraphicsFormat_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 1, out _format); - - var gen_ret = UnityEngine.SystemInfo.GetGraphicsFormat( _format ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRenderTextureSupportedMSAASampleCount_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.RenderTextureDescriptor _desc;translator.Get(L, 1, out _desc); - - var gen_ret = UnityEngine.SystemInfo.GetRenderTextureSupportedMSAASampleCount( _desc ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_batteryLevel(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.SystemInfo.batteryLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_batteryStatus(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineBatteryStatus(L, UnityEngine.SystemInfo.batteryStatus); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_operatingSystem(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.operatingSystem); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_operatingSystemFamily(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SystemInfo.operatingSystemFamily); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_processorType(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.processorType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_processorFrequency(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.processorFrequency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_processorCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.processorCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_systemMemorySize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.systemMemorySize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deviceUniqueIdentifier(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.deviceUniqueIdentifier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deviceName(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.deviceName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deviceModel(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.deviceModel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsAccelerometer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAccelerometer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsGyroscope(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGyroscope); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsLocationService(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsLocationService); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsVibration(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsVibration); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsAudio(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAudio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deviceType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SystemInfo.deviceType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsMemorySize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.graphicsMemorySize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsDeviceName(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsDeviceVendor(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceVendor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsDeviceID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.graphicsDeviceID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsDeviceVendorID(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.graphicsDeviceVendorID); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsDeviceType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SystemInfo.graphicsDeviceType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsUVStartsAtTop(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.graphicsUVStartsAtTop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsDeviceVersion(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, UnityEngine.SystemInfo.graphicsDeviceVersion); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsShaderLevel(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.graphicsShaderLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsMultiThreaded(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.graphicsMultiThreaded); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderingThreadingMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SystemInfo.renderingThreadingMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasHiddenSurfaceRemovalOnGPU(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.hasHiddenSurfaceRemovalOnGPU); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasDynamicUniformArrayIndexingInFragmentShaders(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.hasDynamicUniformArrayIndexingInFragmentShaders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsShadows(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsShadows); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsRawShadowDepthSampling(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsRawShadowDepthSampling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsMotionVectors(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMotionVectors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supports3DTextures(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supports3DTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsCompressed3DTextures(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsCompressed3DTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supports2DArrayTextures(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supports2DArrayTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supports3DRenderTextures(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supports3DRenderTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsCubemapArrayTextures(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsCubemapArrayTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsAnisotropicFilter(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAnisotropicFilter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_copyTextureSupport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SystemInfo.copyTextureSupport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsComputeShaders(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsComputeShaders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsGeometryShaders(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGeometryShaders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsTessellationShaders(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsTessellationShaders); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsRenderTargetArrayIndexFromVertexShader(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsRenderTargetArrayIndexFromVertexShader); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsInstancing(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsInstancing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsHardwareQuadTopology(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsHardwareQuadTopology); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supports32bitsIndexBuffer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supports32bitsIndexBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsSparseTextures(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsSparseTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportedRenderTargetCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.supportedRenderTargetCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsSeparatedRenderTargetsBlend(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsSeparatedRenderTargetsBlend); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportedRandomWriteTargetCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.supportedRandomWriteTargetCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsMultisampledTextures(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.supportsMultisampledTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsMultisampled2DArrayTextures(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMultisampled2DArrayTextures); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsMultisampleAutoResolve(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMultisampleAutoResolve); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsTextureWrapMirrorOnce(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.supportsTextureWrapMirrorOnce); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_usesReversedZBuffer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.usesReversedZBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_npotSupport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SystemInfo.npotSupport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxTextureSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxTextureSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxTexture3DSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxTexture3DSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxTextureArraySlices(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxTextureArraySlices); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxCubemapSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxCubemapSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxAnisotropyLevel(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxAnisotropyLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeBufferInputsVertex(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeBufferInputsVertex); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeBufferInputsFragment(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeBufferInputsFragment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeBufferInputsGeometry(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeBufferInputsGeometry); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeBufferInputsDomain(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeBufferInputsDomain); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeBufferInputsHull(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeBufferInputsHull); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeBufferInputsCompute(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeBufferInputsCompute); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeWorkGroupSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeWorkGroupSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeWorkGroupSizeX(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeWorkGroupSizeX); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeWorkGroupSizeY(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeWorkGroupSizeY); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxComputeWorkGroupSizeZ(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.maxComputeWorkGroupSizeZ); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_computeSubGroupSize(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.computeSubGroupSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsAsyncCompute(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAsyncCompute); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsGpuRecorder(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGpuRecorder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsGraphicsFence(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsGraphicsFence); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsAsyncGPUReadback(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsAsyncGPUReadback); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsRayTracing(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsRayTracing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsSetConstantBuffer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsSetConstantBuffer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constantBufferOffsetAlignment(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.SystemInfo.constantBufferOffsetAlignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxGraphicsBufferSize(RealStatePtr L) - { - try { - - LuaAPI.lua_pushint64(L, UnityEngine.SystemInfo.maxGraphicsBufferSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasMipMaxLevel(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.hasMipMaxLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsMipStreaming(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMipStreaming); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_usesLoadStoreActions(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.usesLoadStoreActions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hdrDisplaySupportFlags(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.SystemInfo.hdrDisplaySupportFlags); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsConservativeRaster(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsConservativeRaster); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsMultiview(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMultiview); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsStoreAndResolveAction(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsStoreAndResolveAction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportsMultisampleResolveDepth(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.SystemInfo.supportsMultisampleResolveDepth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TextAssetWrap.cs b/Assets/XLua/Gen/UnityEngine_TextAssetWrap.cs deleted file mode 100644 index d122bad25..000000000 --- a/Assets/XLua/Gen/UnityEngine_TextAssetWrap.cs +++ /dev/null @@ -1,167 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTextAssetWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.TextAsset); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "bytes", _g_get_bytes); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dataSize", _g_get_dataSize); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.TextAsset(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.TextAsset(_text); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TextAsset constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_bytes(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.bytes); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dataSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.dataSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TextCore_FaceInfoWrap.cs b/Assets/XLua/Gen/UnityEngine_TextCore_FaceInfoWrap.cs deleted file mode 100644 index dd8a3bd52..000000000 --- a/Assets/XLua/Gen/UnityEngine_TextCore_FaceInfoWrap.cs +++ /dev/null @@ -1,741 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTextCoreFaceInfoWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.TextCore.FaceInfo); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 19, 19); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Compare", _m_Compare); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "familyName", _g_get_familyName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "styleName", _g_get_styleName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pointSize", _g_get_pointSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineHeight", _g_get_lineHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ascentLine", _g_get_ascentLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "capLine", _g_get_capLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "meanLine", _g_get_meanLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "baseline", _g_get_baseline); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "descentLine", _g_get_descentLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "superscriptOffset", _g_get_superscriptOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "superscriptSize", _g_get_superscriptSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subscriptOffset", _g_get_subscriptOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "subscriptSize", _g_get_subscriptSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "underlineOffset", _g_get_underlineOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "underlineThickness", _g_get_underlineThickness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethroughOffset", _g_get_strikethroughOffset); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "strikethroughThickness", _g_get_strikethroughThickness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tabWidth", _g_get_tabWidth); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "familyName", _s_set_familyName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "styleName", _s_set_styleName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pointSize", _s_set_pointSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineHeight", _s_set_lineHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ascentLine", _s_set_ascentLine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "capLine", _s_set_capLine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "meanLine", _s_set_meanLine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "baseline", _s_set_baseline); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "descentLine", _s_set_descentLine); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "superscriptOffset", _s_set_superscriptOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "superscriptSize", _s_set_superscriptSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "subscriptOffset", _s_set_subscriptOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "subscriptSize", _s_set_subscriptSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "underlineOffset", _s_set_underlineOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "underlineThickness", _s_set_underlineThickness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethroughOffset", _s_set_strikethroughOffset); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "strikethroughThickness", _s_set_strikethroughThickness); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "tabWidth", _s_set_tabWidth); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.Push(L, default(UnityEngine.TextCore.FaceInfo)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TextCore.FaceInfo constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compare(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.TextCore.FaceInfo _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Compare( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.Update(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_familyName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.familyName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_styleName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.styleName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.pointSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ascentLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.ascentLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_capLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.capLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_meanLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.meanLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_baseline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.baseline); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_descentLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.descentLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_superscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.superscriptOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_superscriptSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.superscriptSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.subscriptOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_subscriptSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.subscriptSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_underlineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.underlineOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_underlineThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.underlineThickness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethroughOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strikethroughOffset); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_strikethroughThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.strikethroughThickness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tabWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.tabWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_familyName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.familyName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_styleName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.styleName = LuaAPI.lua_tostring(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pointSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.pointSize = LuaAPI.xlua_tointeger(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.scale = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.lineHeight = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ascentLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.ascentLine = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_capLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.capLine = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_meanLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.meanLine = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_baseline(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.baseline = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_descentLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.descentLine = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_superscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.superscriptOffset = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_superscriptSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.superscriptSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_subscriptOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.subscriptOffset = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_subscriptSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.subscriptSize = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_underlineOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.underlineOffset = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_underlineThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.underlineThickness = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethroughOffset(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.strikethroughOffset = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_strikethroughThickness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.strikethroughThickness = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_tabWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.TextCore.FaceInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.tabWidth = (float)LuaAPI.lua_tonumber(L, 2); - - translator.Update(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Texture2DWrap.cs b/Assets/XLua/Gen/UnityEngine_Texture2DWrap.cs deleted file mode 100644 index 01819d851..000000000 --- a/Assets/XLua/Gen/UnityEngine_Texture2DWrap.cs +++ /dev/null @@ -1,1380 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTexture2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Texture2D); - Utils.BeginObjectRegister(type, L, translator, 0, 18, 12, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixel", _m_SetPixel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels", _m_SetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixel", _m_GetPixel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixelBilinear", _m_GetPixelBilinear); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoadRawTextureData", _m_LoadRawTextureData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Apply", _m_Apply); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reinitialize", _m_Reinitialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReadPixels", _m_ReadPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels32", _m_SetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Compress", _m_Compress); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearRequestedMipmapLevel", _m_ClearRequestedMipmapLevel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRequestedMipmapLevelLoaded", _m_IsRequestedMipmapLevelLoaded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMinimumMipmapLevel", _m_ClearMinimumMipmapLevel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateExternalTexture", _m_UpdateExternalTexture); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRawTextureData", _m_GetRawTextureData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels32", _m_GetPixels32); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PackTextures", _m_PackTextures); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreMipmapLimit", _g_get_ignoreMipmapLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReadable", _g_get_isReadable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vtOnly", _g_get_vtOnly); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "streamingMipmaps", _g_get_streamingMipmaps); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "streamingMipmapsPriority", _g_get_streamingMipmapsPriority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "requestedMipmapLevel", _g_get_requestedMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minimumMipmapLevel", _g_get_minimumMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "calculatedMipmapLevel", _g_get_calculatedMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "desiredMipmapLevel", _g_get_desiredMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadingMipmapLevel", _g_get_loadingMipmapLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadedMipmapLevel", _g_get_loadedMipmapLevel); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreMipmapLimit", _s_set_ignoreMipmapLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "requestedMipmapLevel", _s_set_requestedMipmapLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minimumMipmapLevel", _s_set_minimumMipmapLevel); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 6, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateExternalTexture", _m_CreateExternalTexture_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateAtlas", _m_GenerateAtlas_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "whiteTexture", _g_get_whiteTexture); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "blackTexture", _g_get_blackTexture); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "redTexture", _g_get_redTexture); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "grayTexture", _g_get_grayTexture); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "linearGrayTexture", _g_get_linearGrayTexture); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "normalTexture", _g_get_normalTexture); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.DefaultFormat _format;translator.Get(L, 4, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 5, out _flags); - - var gen_ret = new UnityEngine.Texture2D(_width, _height, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && translator.Assignable(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 5, out _flags); - - var gen_ret = new UnityEngine.Texture2D(_width, _height, _format, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && translator.Assignable(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Experimental.Rendering.TextureCreationFlags _flags;translator.Get(L, 6, out _flags); - - var gen_ret = new UnityEngine.Texture2D(_width, _height, _format, _mipCount, _flags); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - int _mipCount = LuaAPI.xlua_tointeger(L, 5); - bool _linear = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new UnityEngine.Texture2D(_width, _height, _textureFormat, _mipCount, _linear); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 5); - bool _linear = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = new UnityEngine.Texture2D(_width, _height, _textureFormat, _mipChain, _linear); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _textureFormat;translator.Get(L, 4, out _textureFormat); - bool _mipChain = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = new UnityEngine.Texture2D(_width, _height, _textureFormat, _mipChain); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = new UnityEngine.Texture2D(_width, _height); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CreateExternalTexture_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - int _width = LuaAPI.xlua_tointeger(L, 1); - int _height = LuaAPI.xlua_tointeger(L, 2); - UnityEngine.TextureFormat _format;translator.Get(L, 3, out _format); - bool _mipChain = LuaAPI.lua_toboolean(L, 4); - bool _linear = LuaAPI.lua_toboolean(L, 5); - System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 6); - - var gen_ret = UnityEngine.Texture2D.CreateExternalTexture( _width, _height, _format, _mipChain, _linear, _nativeTex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Color _color;translator.Get(L, 4, out _color); - - gen_to_be_invoked.SetPixel( _x, _y, _color ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Color _color;translator.Get(L, 4, out _color); - int _mipLevel = LuaAPI.xlua_tointeger(L, 5); - - gen_to_be_invoked.SetPixel( _x, _y, _color, _mipLevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.SetPixel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - - gen_to_be_invoked.SetPixels( _colors ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 2, typeof(UnityEngine.Color[])); - int _miplevel = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPixels( _colors, _miplevel ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _blockWidth = LuaAPI.xlua_tointeger(L, 4); - int _blockHeight = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 6, typeof(UnityEngine.Color[])); - - gen_to_be_invoked.SetPixels( _x, _y, _blockWidth, _blockHeight, _colors ); - - - - return 0; - } - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _blockWidth = LuaAPI.xlua_tointeger(L, 4); - int _blockHeight = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Color[] _colors = (UnityEngine.Color[])translator.GetObject(L, 6, typeof(UnityEngine.Color[])); - int _miplevel = LuaAPI.xlua_tointeger(L, 7); - - gen_to_be_invoked.SetPixels( _x, _y, _blockWidth, _blockHeight, _colors, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.SetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixel( _x, _y ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _mipLevel = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetPixel( _x, _y, _mipLevel ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixel!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixelBilinear(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _u = (float)LuaAPI.lua_tonumber(L, 2); - float _v = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.GetPixelBilinear( _u, _v ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _u = (float)LuaAPI.lua_tonumber(L, 2); - float _v = (float)LuaAPI.lua_tonumber(L, 3); - int _mipLevel = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.GetPixelBilinear( _u, _v, _mipLevel ); - translator.PushUnityEngineColor(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixelBilinear!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadRawTextureData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TLIGHTUSERDATA == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - System.IntPtr _data = LuaAPI.lua_touserdata(L, 2); - int _size = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.LoadRawTextureData( _data, _size ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - byte[] _data = LuaAPI.lua_tobytes(L, 2); - - gen_to_be_invoked.LoadRawTextureData( _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.LoadRawTextureData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Apply(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.Apply( ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Apply( _updateMipmaps ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - bool _updateMipmaps = LuaAPI.lua_toboolean(L, 2); - bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Apply( _updateMipmaps, _makeNoLongerReadable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.Apply!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reinitialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.Reinitialize( _width, _height ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.TextureFormat _format;translator.Get(L, 4, out _format); - bool _hasMipMap = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = gen_to_be_invoked.Reinitialize( _width, _height, _format, _hasMipMap ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - int _width = LuaAPI.xlua_tointeger(L, 2); - int _height = LuaAPI.xlua_tointeger(L, 3); - UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format); - bool _hasMipMap = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = gen_to_be_invoked.Reinitialize( _width, _height, _format, _hasMipMap ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.Reinitialize!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ReadPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Rect _source;translator.Get(L, 2, out _source); - int _destX = LuaAPI.xlua_tointeger(L, 3); - int _destY = LuaAPI.xlua_tointeger(L, 4); - - gen_to_be_invoked.ReadPixels( _source, _destX, _destY ); - - - - return 0; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Rect _source;translator.Get(L, 2, out _source); - int _destX = LuaAPI.xlua_tointeger(L, 3); - int _destY = LuaAPI.xlua_tointeger(L, 4); - bool _recalculateMipMaps = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.ReadPixels( _source, _destX, _destY, _recalculateMipMaps ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.ReadPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GenerateAtlas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2[] _sizes = (UnityEngine.Vector2[])translator.GetObject(L, 1, typeof(UnityEngine.Vector2[])); - int _padding = LuaAPI.xlua_tointeger(L, 2); - int _atlasSize = LuaAPI.xlua_tointeger(L, 3); - System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 4, typeof(System.Collections.Generic.List)); - - var gen_ret = UnityEngine.Texture2D.GenerateAtlas( _sizes, _padding, _atlasSize, _results ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - - gen_to_be_invoked.SetPixels32( _colors ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 2, typeof(UnityEngine.Color32[])); - int _miplevel = LuaAPI.xlua_tointeger(L, 3); - - gen_to_be_invoked.SetPixels32( _colors, _miplevel ); - - - - return 0; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _blockWidth = LuaAPI.xlua_tointeger(L, 4); - int _blockHeight = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 6, typeof(UnityEngine.Color32[])); - - gen_to_be_invoked.SetPixels32( _x, _y, _blockWidth, _blockHeight, _colors ); - - - - return 0; - } - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _blockWidth = LuaAPI.xlua_tointeger(L, 4); - int _blockHeight = LuaAPI.xlua_tointeger(L, 5); - UnityEngine.Color32[] _colors = (UnityEngine.Color32[])translator.GetObject(L, 6, typeof(UnityEngine.Color32[])); - int _miplevel = LuaAPI.xlua_tointeger(L, 7); - - gen_to_be_invoked.SetPixels32( _x, _y, _blockWidth, _blockHeight, _colors, _miplevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.SetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPixels( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _miplevel = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPixels( _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _blockWidth = LuaAPI.xlua_tointeger(L, 4); - int _blockHeight = LuaAPI.xlua_tointeger(L, 5); - - var gen_ret = gen_to_be_invoked.GetPixels( _x, _y, _blockWidth, _blockHeight ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - int _x = LuaAPI.xlua_tointeger(L, 2); - int _y = LuaAPI.xlua_tointeger(L, 3); - int _blockWidth = LuaAPI.xlua_tointeger(L, 4); - int _blockHeight = LuaAPI.xlua_tointeger(L, 5); - int _miplevel = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.GetPixels( _x, _y, _blockWidth, _blockHeight, _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixels!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Compress(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - - { - bool _highQuality = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.Compress( _highQuality ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearRequestedMipmapLevel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearRequestedMipmapLevel( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRequestedMipmapLevelLoaded(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsRequestedMipmapLevelLoaded( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearMinimumMipmapLevel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearMinimumMipmapLevel( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateExternalTexture(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - - { - System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 2); - - gen_to_be_invoked.UpdateExternalTexture( _nativeTex ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRawTextureData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetRawTextureData( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixels32(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.GetPixels32( ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _miplevel = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetPixels32( _miplevel ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixels32!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PackTextures(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[])); - int _padding = LuaAPI.xlua_tointeger(L, 3); - - var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[])); - int _padding = LuaAPI.xlua_tointeger(L, 3); - int _maximumAtlasSize = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding, _maximumAtlasSize ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[])); - int _padding = LuaAPI.xlua_tointeger(L, 3); - int _maximumAtlasSize = LuaAPI.xlua_tointeger(L, 4); - bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding, _maximumAtlasSize, _makeNoLongerReadable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.PackTextures!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_format(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.format); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreMipmapLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreMipmapLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_whiteTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Texture2D.whiteTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blackTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Texture2D.blackTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_redTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Texture2D.redTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_grayTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Texture2D.grayTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linearGrayTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Texture2D.linearGrayTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Texture2D.normalTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isReadable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vtOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.vtOnly); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmaps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.streamingMipmaps); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapsPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.streamingMipmapsPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_requestedMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.requestedMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minimumMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.minimumMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_calculatedMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.calculatedMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_desiredMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.desiredMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loadingMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.loadingMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_loadedMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.loadedMipmapLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreMipmapLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreMipmapLimit = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_requestedMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.requestedMipmapLevel = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minimumMipmapLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minimumMipmapLevel = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TextureWrap.cs b/Assets/XLua/Gen/UnityEngine_TextureWrap.cs deleted file mode 100644 index b155313e6..000000000 --- a/Assets/XLua/Gen/UnityEngine_TextureWrap.cs +++ /dev/null @@ -1,860 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTextureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Texture); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 16, 10); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNativeTexturePtr", _m_GetNativeTexturePtr); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IncrementUpdateCount", _m_IncrementUpdateCount); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mipmapCount", _g_get_mipmapCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "graphicsFormat", _g_get_graphicsFormat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dimension", _g_get_dimension); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReadable", _g_get_isReadable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapMode", _g_get_wrapMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapModeU", _g_get_wrapModeU); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapModeV", _g_get_wrapModeV); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wrapModeW", _g_get_wrapModeW); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "filterMode", _g_get_filterMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "anisoLevel", _g_get_anisoLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mipMapBias", _g_get_mipMapBias); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texelSize", _g_get_texelSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateCount", _g_get_updateCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDataSRGB", _g_get_isDataSRGB); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dimension", _s_set_dimension); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapMode", _s_set_wrapMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapModeU", _s_set_wrapModeU); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapModeV", _s_set_wrapModeV); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wrapModeW", _s_set_wrapModeW); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "filterMode", _s_set_filterMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "anisoLevel", _s_set_anisoLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "mipMapBias", _s_set_mipMapBias); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 4, 16, 5); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGlobalAnisotropicFilteringLimits", _m_SetGlobalAnisotropicFilteringLimits_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetStreamingTextureMaterialDebugProperties", _m_SetStreamingTextureMaterialDebugProperties_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GenerateAllMips", UnityEngine.Texture.GenerateAllMips); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "masterTextureLimit", _g_get_masterTextureLimit); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "anisotropicFiltering", _g_get_anisotropicFiltering); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "totalTextureMemory", _g_get_totalTextureMemory); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "desiredTextureMemory", _g_get_desiredTextureMemory); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "targetTextureMemory", _g_get_targetTextureMemory); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "currentTextureMemory", _g_get_currentTextureMemory); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "nonStreamingTextureMemory", _g_get_nonStreamingTextureMemory); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingMipmapUploadCount", _g_get_streamingMipmapUploadCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingRendererCount", _g_get_streamingRendererCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingTextureCount", _g_get_streamingTextureCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "nonStreamingTextureCount", _g_get_nonStreamingTextureCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingTexturePendingLoadCount", _g_get_streamingTexturePendingLoadCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingTextureLoadingCount", _g_get_streamingTextureLoadingCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingTextureForceLoadAll", _g_get_streamingTextureForceLoadAll); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "streamingTextureDiscardUnusedMips", _g_get_streamingTextureDiscardUnusedMips); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "allowThreadedTextureCreation", _g_get_allowThreadedTextureCreation); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "masterTextureLimit", _s_set_masterTextureLimit); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "anisotropicFiltering", _s_set_anisotropicFiltering); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingTextureForceLoadAll", _s_set_streamingTextureForceLoadAll); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "streamingTextureDiscardUnusedMips", _s_set_streamingTextureDiscardUnusedMips); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "allowThreadedTextureCreation", _s_set_allowThreadedTextureCreation); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Texture does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetGlobalAnisotropicFilteringLimits_xlua_st_(RealStatePtr L) - { - try { - - - - - { - int _forcedMin = LuaAPI.xlua_tointeger(L, 1); - int _globalMax = LuaAPI.xlua_tointeger(L, 2); - - UnityEngine.Texture.SetGlobalAnisotropicFilteringLimits( _forcedMin, _globalMax ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetNativeTexturePtr(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetNativeTexturePtr( ); - LuaAPI.lua_pushlightuserdata(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IncrementUpdateCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.IncrementUpdateCount( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetStreamingTextureMaterialDebugProperties_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - UnityEngine.Texture.SetStreamingTextureMaterialDebugProperties( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_masterTextureLimit(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Texture.masterTextureLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mipmapCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mipmapCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anisotropicFiltering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.Texture.anisotropicFiltering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphicsFormat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.graphicsFormat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dimension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.dimension); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isReadable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReadable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wrapMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapModeU(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wrapModeU); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapModeV(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wrapModeV); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wrapModeW(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.wrapModeW); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_filterMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.filterMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_anisoLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.anisoLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mipMapBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.mipMapBias); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texelSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.texelSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_updateCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.updateCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isDataSRGB(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDataSRGB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_totalTextureMemory(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.totalTextureMemory); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_desiredTextureMemory(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.desiredTextureMemory); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetTextureMemory(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.targetTextureMemory); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_currentTextureMemory(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.currentTextureMemory); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nonStreamingTextureMemory(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.nonStreamingTextureMemory); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingMipmapUploadCount(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.streamingMipmapUploadCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingRendererCount(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.streamingRendererCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingTextureCount(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.streamingTextureCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_nonStreamingTextureCount(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.nonStreamingTextureCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingTexturePendingLoadCount(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.streamingTexturePendingLoadCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingTextureLoadingCount(RealStatePtr L) - { - try { - - LuaAPI.lua_pushuint64(L, UnityEngine.Texture.streamingTextureLoadingCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingTextureForceLoadAll(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Texture.streamingTextureForceLoadAll); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_streamingTextureDiscardUnusedMips(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Texture.streamingTextureDiscardUnusedMips); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowThreadedTextureCreation(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Texture.allowThreadedTextureCreation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_masterTextureLimit(RealStatePtr L) - { - try { - - UnityEngine.Texture.masterTextureLimit = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anisotropicFiltering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - UnityEngine.AnisotropicFiltering gen_value;translator.Get(L, 1, out gen_value); - UnityEngine.Texture.anisotropicFiltering = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.width = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dimension(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - UnityEngine.Rendering.TextureDimension gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.dimension = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - UnityEngine.TextureWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.wrapMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapModeU(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - UnityEngine.TextureWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.wrapModeU = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapModeV(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - UnityEngine.TextureWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.wrapModeV = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wrapModeW(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - UnityEngine.TextureWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.wrapModeW = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_filterMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - UnityEngine.FilterMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.filterMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_anisoLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.anisoLevel = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_mipMapBias(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Texture gen_to_be_invoked = (UnityEngine.Texture)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.mipMapBias = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingTextureForceLoadAll(RealStatePtr L) - { - try { - - UnityEngine.Texture.streamingTextureForceLoadAll = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_streamingTextureDiscardUnusedMips(RealStatePtr L) - { - try { - - UnityEngine.Texture.streamingTextureDiscardUnusedMips = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowThreadedTextureCreation(RealStatePtr L) - { - try { - - UnityEngine.Texture.allowThreadedTextureCreation = LuaAPI.lua_toboolean(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TimeWrap.cs b/Assets/XLua/Gen/UnityEngine_TimeWrap.cs deleted file mode 100644 index 7fabfc24d..000000000 --- a/Assets/XLua/Gen/UnityEngine_TimeWrap.cs +++ /dev/null @@ -1,493 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTimeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Time); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 25, 6); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "timeAsDouble", _g_get_timeAsDouble); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "timeSinceLevelLoad", _g_get_timeSinceLevelLoad); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "timeSinceLevelLoadAsDouble", _g_get_timeSinceLevelLoadAsDouble); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "deltaTime", _g_get_deltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fixedTime", _g_get_fixedTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fixedTimeAsDouble", _g_get_fixedTimeAsDouble); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "unscaledTime", _g_get_unscaledTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "unscaledTimeAsDouble", _g_get_unscaledTimeAsDouble); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fixedUnscaledTime", _g_get_fixedUnscaledTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fixedUnscaledTimeAsDouble", _g_get_fixedUnscaledTimeAsDouble); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "unscaledDeltaTime", _g_get_unscaledDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fixedUnscaledDeltaTime", _g_get_fixedUnscaledDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "fixedDeltaTime", _g_get_fixedDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maximumDeltaTime", _g_get_maximumDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "smoothDeltaTime", _g_get_smoothDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "maximumParticleDeltaTime", _g_get_maximumParticleDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "timeScale", _g_get_timeScale); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "frameCount", _g_get_frameCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "renderedFrameCount", _g_get_renderedFrameCount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "realtimeSinceStartup", _g_get_realtimeSinceStartup); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "realtimeSinceStartupAsDouble", _g_get_realtimeSinceStartupAsDouble); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "captureDeltaTime", _g_get_captureDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "captureFramerate", _g_get_captureFramerate); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "inFixedTimeStep", _g_get_inFixedTimeStep); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "fixedDeltaTime", _s_set_fixedDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maximumDeltaTime", _s_set_maximumDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "maximumParticleDeltaTime", _s_set_maximumParticleDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "timeScale", _s_set_timeScale); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "captureDeltaTime", _s_set_captureDeltaTime); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "captureFramerate", _s_set_captureFramerate); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Time(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Time constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeAsDouble(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.timeAsDouble); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeSinceLevelLoad(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.timeSinceLevelLoad); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeSinceLevelLoadAsDouble(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.timeSinceLevelLoadAsDouble); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_deltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.deltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fixedTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.fixedTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fixedTimeAsDouble(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.fixedTimeAsDouble); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_unscaledTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.unscaledTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_unscaledTimeAsDouble(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.unscaledTimeAsDouble); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fixedUnscaledTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.fixedUnscaledTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fixedUnscaledTimeAsDouble(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.fixedUnscaledTimeAsDouble); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_unscaledDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.unscaledDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fixedUnscaledDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.fixedUnscaledDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fixedDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.fixedDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.maximumDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_smoothDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.smoothDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maximumParticleDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.maximumParticleDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeScale(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.timeScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Time.frameCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderedFrameCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Time.renderedFrameCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_realtimeSinceStartup(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.realtimeSinceStartup); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_realtimeSinceStartupAsDouble(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.realtimeSinceStartupAsDouble); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_captureDeltaTime(RealStatePtr L) - { - try { - - LuaAPI.lua_pushnumber(L, UnityEngine.Time.captureDeltaTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_captureFramerate(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Time.captureFramerate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inFixedTimeStep(RealStatePtr L) - { - try { - - LuaAPI.lua_pushboolean(L, UnityEngine.Time.inFixedTimeStep); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fixedDeltaTime(RealStatePtr L) - { - try { - - UnityEngine.Time.fixedDeltaTime = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumDeltaTime(RealStatePtr L) - { - try { - - UnityEngine.Time.maximumDeltaTime = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maximumParticleDeltaTime(RealStatePtr L) - { - try { - - UnityEngine.Time.maximumParticleDeltaTime = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeScale(RealStatePtr L) - { - try { - - UnityEngine.Time.timeScale = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_captureDeltaTime(RealStatePtr L) - { - try { - - UnityEngine.Time.captureDeltaTime = (float)LuaAPI.lua_tonumber(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_captureFramerate(RealStatePtr L) - { - try { - - UnityEngine.Time.captureFramerate = LuaAPI.xlua_tointeger(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_TransformWrap.cs b/Assets/XLua/Gen/UnityEngine_TransformWrap.cs deleted file mode 100644 index d6ebf387b..000000000 --- a/Assets/XLua/Gen/UnityEngine_TransformWrap.cs +++ /dev/null @@ -1,3594 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineTransformWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Transform); - Utils.BeginObjectRegister(type, L, translator, 0, 57, 19, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetParent", _m_SetParent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPositionAndRotation", _m_SetPositionAndRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPositionAndRotation", _m_SetLocalPositionAndRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPositionAndRotation", _m_GetPositionAndRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalPositionAndRotation", _m_GetLocalPositionAndRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Translate", _m_Translate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rotate", _m_Rotate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RotateAround", _m_RotateAround); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LookAt", _m_LookAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransformDirection", _m_TransformDirection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InverseTransformDirection", _m_InverseTransformDirection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransformVector", _m_TransformVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InverseTransformVector", _m_InverseTransformVector); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "TransformPoint", _m_TransformPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "InverseTransformPoint", _m_InverseTransformPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DetachChildren", _m_DetachChildren); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAsFirstSibling", _m_SetAsFirstSibling); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAsLastSibling", _m_SetAsLastSibling); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSiblingIndex", _m_SetSiblingIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSiblingIndex", _m_GetSiblingIndex); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Find", _m_Find); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsChildOf", _m_IsChildOf); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetChild", _m_GetChild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOMove", _m_DOMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOMoveX", _m_DOMoveX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOMoveY", _m_DOMoveY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOMoveZ", _m_DOMoveZ); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalMove", _m_DOLocalMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalMoveX", _m_DOLocalMoveX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalMoveY", _m_DOLocalMoveY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalMoveZ", _m_DOLocalMoveZ); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORotate", _m_DORotate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DORotateQuaternion", _m_DORotateQuaternion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalRotate", _m_DOLocalRotate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalRotateQuaternion", _m_DOLocalRotateQuaternion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOScale", _m_DOScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOScaleX", _m_DOScaleX); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOScaleY", _m_DOScaleY); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOScaleZ", _m_DOScaleZ); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLookAt", _m_DOLookAt); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPunchPosition", _m_DOPunchPosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPunchScale", _m_DOPunchScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPunchRotation", _m_DOPunchRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOShakePosition", _m_DOShakePosition); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOShakeRotation", _m_DOShakeRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOShakeScale", _m_DOShakeScale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOJump", _m_DOJump); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalJump", _m_DOLocalJump); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPath", _m_DOPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOLocalPath", _m_DOLocalPath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableMoveBy", _m_DOBlendableMoveBy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableLocalMoveBy", _m_DOBlendableLocalMoveBy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableRotateBy", _m_DOBlendableRotateBy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableLocalRotateBy", _m_DOBlendableLocalRotateBy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendablePunchRotation", _m_DOBlendablePunchRotation); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableScaleBy", _m_DOBlendableScaleBy); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localPosition", _g_get_localPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eulerAngles", _g_get_eulerAngles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localEulerAngles", _g_get_localEulerAngles); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "up", _g_get_up); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "forward", _g_get_forward); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localRotation", _g_get_localRotation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localScale", _g_get_localScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "parent", _g_get_parent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "worldToLocalMatrix", _g_get_worldToLocalMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "localToWorldMatrix", _g_get_localToWorldMatrix); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "root", _g_get_root); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childCount", _g_get_childCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lossyScale", _g_get_lossyScale); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasChanged", _g_get_hasChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hierarchyCapacity", _g_get_hierarchyCapacity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hierarchyCount", _g_get_hierarchyCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localPosition", _s_set_localPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eulerAngles", _s_set_eulerAngles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localEulerAngles", _s_set_localEulerAngles); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "right", _s_set_right); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "up", _s_set_up); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "forward", _s_set_forward); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localRotation", _s_set_localRotation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "localScale", _s_set_localScale); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "parent", _s_set_parent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hasChanged", _s_set_hasChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "hierarchyCapacity", _s_set_hierarchyCapacity); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Transform does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetParent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _p = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.SetParent( _p ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - bool _worldPositionStays = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetParent( _parent, _worldPositionStays ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.SetParent!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPositionAndRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - UnityEngine.Quaternion _rotation;translator.Get(L, 3, out _rotation); - - gen_to_be_invoked.SetPositionAndRotation( _position, _rotation ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLocalPositionAndRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _localPosition;translator.Get(L, 2, out _localPosition); - UnityEngine.Quaternion _localRotation;translator.Get(L, 3, out _localRotation); - - gen_to_be_invoked.SetLocalPositionAndRotation( _localPosition, _localRotation ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPositionAndRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _position; - UnityEngine.Quaternion _rotation; - - gen_to_be_invoked.GetPositionAndRotation( out _position, out _rotation ); - translator.PushUnityEngineVector3(L, _position); - - translator.PushUnityEngineQuaternion(L, _rotation); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetLocalPositionAndRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _localPosition; - UnityEngine.Quaternion _localRotation; - - gen_to_be_invoked.GetLocalPositionAndRotation( out _localPosition, out _localRotation ); - translator.PushUnityEngineVector3(L, _localPosition); - - translator.PushUnityEngineQuaternion(L, _localRotation); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Translate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.Translate( _x, _y, _z ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _translation;translator.Get(L, 2, out _translation); - - gen_to_be_invoked.Translate( _translation ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Space _relativeTo;translator.Get(L, 5, out _relativeTo); - - gen_to_be_invoked.Translate( _x, _y, _z, _relativeTo ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Transform _relativeTo = (UnityEngine.Transform)translator.GetObject(L, 5, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.Translate( _x, _y, _z, _relativeTo ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _translation;translator.Get(L, 2, out _translation); - UnityEngine.Space _relativeTo;translator.Get(L, 3, out _relativeTo); - - gen_to_be_invoked.Translate( _translation, _relativeTo ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _translation;translator.Get(L, 2, out _translation); - UnityEngine.Transform _relativeTo = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.Translate( _translation, _relativeTo ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.Translate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rotate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _xAngle = (float)LuaAPI.lua_tonumber(L, 2); - float _yAngle = (float)LuaAPI.lua_tonumber(L, 3); - float _zAngle = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.Rotate( _xAngle, _yAngle, _zAngle ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _eulers;translator.Get(L, 2, out _eulers); - - gen_to_be_invoked.Rotate( _eulers ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _axis;translator.Get(L, 2, out _axis); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Rotate( _axis, _angle ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - float _xAngle = (float)LuaAPI.lua_tonumber(L, 2); - float _yAngle = (float)LuaAPI.lua_tonumber(L, 3); - float _zAngle = (float)LuaAPI.lua_tonumber(L, 4); - UnityEngine.Space _relativeTo;translator.Get(L, 5, out _relativeTo); - - gen_to_be_invoked.Rotate( _xAngle, _yAngle, _zAngle, _relativeTo ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _eulers;translator.Get(L, 2, out _eulers); - UnityEngine.Space _relativeTo;translator.Get(L, 3, out _relativeTo); - - gen_to_be_invoked.Rotate( _eulers, _relativeTo ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _axis;translator.Get(L, 2, out _axis); - float _angle = (float)LuaAPI.lua_tonumber(L, 3); - UnityEngine.Space _relativeTo;translator.Get(L, 4, out _relativeTo); - - gen_to_be_invoked.Rotate( _axis, _angle, _relativeTo ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.Rotate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RotateAround(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _point;translator.Get(L, 2, out _point); - UnityEngine.Vector3 _axis;translator.Get(L, 3, out _axis); - float _angle = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.RotateAround( _point, _axis, _angle ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LookAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Transform _target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - gen_to_be_invoked.LookAt( _target ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _worldPosition;translator.Get(L, 2, out _worldPosition); - - gen_to_be_invoked.LookAt( _worldPosition ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Transform _target = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - UnityEngine.Vector3 _worldUp;translator.Get(L, 3, out _worldUp); - - gen_to_be_invoked.LookAt( _target, _worldUp ); - - - - return 0; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _worldPosition;translator.Get(L, 2, out _worldPosition); - UnityEngine.Vector3 _worldUp;translator.Get(L, 3, out _worldUp); - - gen_to_be_invoked.LookAt( _worldPosition, _worldUp ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.LookAt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformDirection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.TransformDirection( _x, _y, _z ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - - var gen_ret = gen_to_be_invoked.TransformDirection( _direction ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.TransformDirection!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InverseTransformDirection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.InverseTransformDirection( _x, _y, _z ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _direction;translator.Get(L, 2, out _direction); - - var gen_ret = gen_to_be_invoked.InverseTransformDirection( _direction ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.InverseTransformDirection!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.TransformVector( _x, _y, _z ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _vector;translator.Get(L, 2, out _vector); - - var gen_ret = gen_to_be_invoked.TransformVector( _vector ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.TransformVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InverseTransformVector(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.InverseTransformVector( _x, _y, _z ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _vector;translator.Get(L, 2, out _vector); - - var gen_ret = gen_to_be_invoked.InverseTransformVector( _vector ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.InverseTransformVector!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TransformPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.TransformPoint( _x, _y, _z ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.TransformPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.TransformPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_InverseTransformPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.InverseTransformPoint( _x, _y, _z ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _position;translator.Get(L, 2, out _position); - - var gen_ret = gen_to_be_invoked.InverseTransformPoint( _position ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.InverseTransformPoint!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DetachChildren(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.DetachChildren( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAsFirstSibling(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetAsFirstSibling( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAsLastSibling(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetAsLastSibling( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetSiblingIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetSiblingIndex( _index ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSiblingIndex(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetSiblingIndex( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Find(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - string _n = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Find( _n ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsChildOf(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = gen_to_be_invoked.IsChildOf( _parent ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetChild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - int _index = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetChild( _index ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOMove( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOMove( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOMove!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOMoveX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOMoveX( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOMoveX( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOMoveX!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOMoveY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOMoveY( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOMoveY( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOMoveY!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOMoveZ(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOMoveZ( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOMoveZ( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOMoveZ!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOLocalMove( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalMove( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLocalMove!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalMoveX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOLocalMoveX( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalMoveX( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLocalMoveX!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalMoveY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOLocalMoveY( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalMoveY( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLocalMoveY!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalMoveZ(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOLocalMoveZ( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalMoveZ( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLocalMoveZ!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DORotate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.RotateMode _mode;translator.Get(L, 4, out _mode); - - var gen_ret = gen_to_be_invoked.DORotate( _endValue, _duration, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DORotate( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DORotate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DORotateQuaternion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Quaternion _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DORotateQuaternion( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalRotate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.RotateMode _mode;translator.Get(L, 4, out _mode); - - var gen_ret = gen_to_be_invoked.DOLocalRotate( _endValue, _duration, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalRotate( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLocalRotate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalRotateQuaternion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Quaternion _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalRotateQuaternion( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOScale( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOScale( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOScale!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOScaleX(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOScaleX( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOScaleY(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOScaleY( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOScaleZ(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOScaleZ( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLookAt(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable>(L, 5)) - { - UnityEngine.Vector3 _towards;translator.Get(L, 2, out _towards); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 4, out _axisConstraint); - System.Nullable _up;translator.Get(L, 5, out _up); - - var gen_ret = gen_to_be_invoked.DOLookAt( _towards, _duration, _axisConstraint, _up ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _towards;translator.Get(L, 2, out _towards); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.AxisConstraint _axisConstraint;translator.Get(L, 4, out _axisConstraint); - - var gen_ret = gen_to_be_invoked.DOLookAt( _towards, _duration, _axisConstraint ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _towards;translator.Get(L, 2, out _towards); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLookAt( _towards, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLookAt!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPunchPosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOPunchPosition( _punch, _duration, _vibrato, _elasticity, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOPunchPosition( _punch, _duration, _vibrato, _elasticity ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOPunchPosition( _punch, _duration, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPunchPosition( _punch, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOPunchPosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPunchScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOPunchScale( _punch, _duration, _vibrato, _elasticity ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOPunchScale( _punch, _duration, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPunchScale( _punch, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOPunchScale!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPunchRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOPunchRotation( _punch, _duration, _vibrato, _elasticity ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOPunchRotation( _punch, _duration, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPunchRotation( _punch, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOPunchRotation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOShakePosition(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - bool _fadeOut = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness, _snapping, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - bool _fadeOut = LuaAPI.lua_toboolean(L, 7); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness, _snapping, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - - var gen_ret = gen_to_be_invoked.DOShakePosition( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOShakePosition!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOShakeRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - - var gen_ret = gen_to_be_invoked.DOShakeRotation( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOShakeRotation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOShakeScale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - float _strength = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - bool _fadeOut = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength, _vibrato, _randomness, _fadeOut ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _randomness = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength, _vibrato, _randomness ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable(L, 3)) - { - float _duration = (float)LuaAPI.lua_tonumber(L, 2); - UnityEngine.Vector3 _strength;translator.Get(L, 3, out _strength); - - var gen_ret = gen_to_be_invoked.DOShakeScale( _duration, _strength ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOShakeScale!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOJump(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _jumpPower = (float)LuaAPI.lua_tonumber(L, 3); - int _numJumps = LuaAPI.xlua_tointeger(L, 4); - float _duration = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOJump( _endValue, _jumpPower, _numJumps, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _jumpPower = (float)LuaAPI.lua_tonumber(L, 3); - int _numJumps = LuaAPI.xlua_tointeger(L, 4); - float _duration = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOJump( _endValue, _jumpPower, _numJumps, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOJump!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalJump(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _jumpPower = (float)LuaAPI.lua_tonumber(L, 3); - int _numJumps = LuaAPI.xlua_tointeger(L, 4); - float _duration = (float)LuaAPI.lua_tonumber(L, 5); - bool _snapping = LuaAPI.lua_toboolean(L, 6); - - var gen_ret = gen_to_be_invoked.DOLocalJump( _endValue, _jumpPower, _numJumps, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _endValue;translator.Get(L, 2, out _endValue); - float _jumpPower = (float)LuaAPI.lua_tonumber(L, 3); - int _numJumps = LuaAPI.xlua_tointeger(L, 4); - float _duration = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOLocalJump( _endValue, _jumpPower, _numJumps, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLocalJump!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - DG.Tweening.Plugins.Core.PathCore.Path _path = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathMode _pathMode;translator.Get(L, 4, out _pathMode); - - var gen_ret = gen_to_be_invoked.DOPath( _path, _duration, _pathMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Plugins.Core.PathCore.Path _path = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPath( _path, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable>(L, 7)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - DG.Tweening.PathMode _pathMode;translator.Get(L, 5, out _pathMode); - int _resolution = LuaAPI.xlua_tointeger(L, 6); - System.Nullable _gizmoColor;translator.Get(L, 7, out _gizmoColor); - - var gen_ret = gen_to_be_invoked.DOPath( _path, _duration, _pathType, _pathMode, _resolution, _gizmoColor ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - DG.Tweening.PathMode _pathMode;translator.Get(L, 5, out _pathMode); - int _resolution = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.DOPath( _path, _duration, _pathType, _pathMode, _resolution ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - DG.Tweening.PathMode _pathMode;translator.Get(L, 5, out _pathMode); - - var gen_ret = gen_to_be_invoked.DOPath( _path, _duration, _pathType, _pathMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - - var gen_ret = gen_to_be_invoked.DOPath( _path, _duration, _pathType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPath( _path, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOPath!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOLocalPath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - DG.Tweening.Plugins.Core.PathCore.Path _path = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathMode _pathMode;translator.Get(L, 4, out _pathMode); - - var gen_ret = gen_to_be_invoked.DOLocalPath( _path, _duration, _pathMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - DG.Tweening.Plugins.Core.PathCore.Path _path = (DG.Tweening.Plugins.Core.PathCore.Path)translator.GetObject(L, 2, typeof(DG.Tweening.Plugins.Core.PathCore.Path)); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalPath( _path, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 7&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable>(L, 7)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - DG.Tweening.PathMode _pathMode;translator.Get(L, 5, out _pathMode); - int _resolution = LuaAPI.xlua_tointeger(L, 6); - System.Nullable _gizmoColor;translator.Get(L, 7, out _gizmoColor); - - var gen_ret = gen_to_be_invoked.DOLocalPath( _path, _duration, _pathType, _pathMode, _resolution, _gizmoColor ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - DG.Tweening.PathMode _pathMode;translator.Get(L, 5, out _pathMode); - int _resolution = LuaAPI.xlua_tointeger(L, 6); - - var gen_ret = gen_to_be_invoked.DOLocalPath( _path, _duration, _pathType, _pathMode, _resolution ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)&& translator.Assignable(L, 5)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - DG.Tweening.PathMode _pathMode;translator.Get(L, 5, out _pathMode); - - var gen_ret = gen_to_be_invoked.DOLocalPath( _path, _duration, _pathType, _pathMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.PathType _pathType;translator.Get(L, 4, out _pathType); - - var gen_ret = gen_to_be_invoked.DOLocalPath( _path, _duration, _pathType ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3[] _path = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[])); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOLocalPath( _path, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOLocalPath!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableMoveBy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOBlendableMoveBy( _byValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableMoveBy( _byValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOBlendableMoveBy!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableLocalMoveBy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOBlendableLocalMoveBy( _byValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableLocalMoveBy( _byValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOBlendableLocalMoveBy!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableRotateBy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.RotateMode _mode;translator.Get(L, 4, out _mode); - - var gen_ret = gen_to_be_invoked.DOBlendableRotateBy( _byValue, _duration, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableRotateBy( _byValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOBlendableRotateBy!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableLocalRotateBy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable(L, 4)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - DG.Tweening.RotateMode _mode;translator.Get(L, 4, out _mode); - - var gen_ret = gen_to_be_invoked.DOBlendableLocalRotateBy( _byValue, _duration, _mode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableLocalRotateBy( _byValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOBlendableLocalRotateBy!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendablePunchRotation(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - float _elasticity = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = gen_to_be_invoked.DOBlendablePunchRotation( _punch, _duration, _vibrato, _elasticity ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - int _vibrato = LuaAPI.xlua_tointeger(L, 4); - - var gen_ret = gen_to_be_invoked.DOBlendablePunchRotation( _punch, _duration, _vibrato ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector3 _punch;translator.Get(L, 2, out _punch); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendablePunchRotation( _punch, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Transform.DOBlendablePunchRotation!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableScaleBy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _byValue;translator.Get(L, 2, out _byValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableScaleBy( _byValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.localPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eulerAngles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.eulerAngles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localEulerAngles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.localEulerAngles); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.up); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forward(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.forward); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.rotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineQuaternion(L, gen_to_be_invoked.localRotation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.localScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_parent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.parent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_worldToLocalMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.worldToLocalMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_localToWorldMatrix(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.localToWorldMatrix); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_root(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.root); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.childCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lossyScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.lossyScale); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hierarchyCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hierarchyCapacity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hierarchyCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.hierarchyCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_position(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.position = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eulerAngles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.eulerAngles = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localEulerAngles(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localEulerAngles = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.right = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.up = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_forward(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.forward = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_rotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.rotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localRotation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Quaternion gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localRotation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_localScale(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.localScale = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_parent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.parent = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hasChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hasChanged = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_hierarchyCapacity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Transform gen_to_be_invoked = (UnityEngine.Transform)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.hierarchyCapacity = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_U2D_SpriteAtlasWrap.cs b/Assets/XLua/Gen/UnityEngine_U2D_SpriteAtlasWrap.cs deleted file mode 100644 index f93f17829..000000000 --- a/Assets/XLua/Gen/UnityEngine_U2D_SpriteAtlasWrap.cs +++ /dev/null @@ -1,235 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineU2DSpriteAtlasWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.U2D.SpriteAtlas); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CanBindTo", _m_CanBindTo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSprite", _m_GetSprite); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSprites", _m_GetSprites); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isVariant", _g_get_isVariant); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "tag", _g_get_tag); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteCount", _g_get_spriteCount); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.U2D.SpriteAtlas(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteAtlas constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CanBindTo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.U2D.SpriteAtlas gen_to_be_invoked = (UnityEngine.U2D.SpriteAtlas)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Sprite _sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - var gen_ret = gen_to_be_invoked.CanBindTo( _sprite ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSprite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.U2D.SpriteAtlas gen_to_be_invoked = (UnityEngine.U2D.SpriteAtlas)translator.FastGetCSObj(L, 1); - - - - { - string _name = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.GetSprite( _name ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSprites(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.U2D.SpriteAtlas gen_to_be_invoked = (UnityEngine.U2D.SpriteAtlas)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Sprite[] _sprites = (UnityEngine.Sprite[])translator.GetObject(L, 2, typeof(UnityEngine.Sprite[])); - - var gen_ret = gen_to_be_invoked.GetSprites( _sprites ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - UnityEngine.Sprite[] _sprites = (UnityEngine.Sprite[])translator.GetObject(L, 2, typeof(UnityEngine.Sprite[])); - string _name = LuaAPI.lua_tostring(L, 3); - - var gen_ret = gen_to_be_invoked.GetSprites( _sprites, _name ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.U2D.SpriteAtlas.GetSprites!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isVariant(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteAtlas gen_to_be_invoked = (UnityEngine.U2D.SpriteAtlas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isVariant); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_tag(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteAtlas gen_to_be_invoked = (UnityEngine.U2D.SpriteAtlas)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.tag); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.U2D.SpriteAtlas gen_to_be_invoked = (UnityEngine.U2D.SpriteAtlas)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.spriteCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ButtonWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ButtonWrap.cs deleted file mode 100644 index 8a202b26b..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ButtonWrap.cs +++ /dev/null @@ -1,156 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIButtonWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Button); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSubmit", _m_OnSubmit); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onClick", _g_get_onClick); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onClick", _s_set_onClick); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Button does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Button gen_to_be_invoked = (UnityEngine.UI.Button)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSubmit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Button gen_to_be_invoked = (UnityEngine.UI.Button)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSubmit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onClick(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Button gen_to_be_invoked = (UnityEngine.UI.Button)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onClick); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onClick(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Button gen_to_be_invoked = (UnityEngine.UI.Button)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onClick = (UnityEngine.UI.Button.ButtonClickedEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.Button.ButtonClickedEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_Button_ButtonClickedEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_Button_ButtonClickedEventWrap.cs deleted file mode 100644 index 71ee134ff..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_Button_ButtonClickedEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIButtonButtonClickedEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Button.ButtonClickedEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.Button.ButtonClickedEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Button.ButtonClickedEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_CanvasScalerWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_CanvasScalerWrap.cs deleted file mode 100644 index c06bbf713..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_CanvasScalerWrap.cs +++ /dev/null @@ -1,381 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUICanvasScalerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.CanvasScaler); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 10, 10); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uiScaleMode", _g_get_uiScaleMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referencePixelsPerUnit", _g_get_referencePixelsPerUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scaleFactor", _g_get_scaleFactor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "referenceResolution", _g_get_referenceResolution); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "screenMatchMode", _g_get_screenMatchMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "matchWidthOrHeight", _g_get_matchWidthOrHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "physicalUnit", _g_get_physicalUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fallbackScreenDPI", _g_get_fallbackScreenDPI); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultSpriteDPI", _g_get_defaultSpriteDPI); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "dynamicPixelsPerUnit", _g_get_dynamicPixelsPerUnit); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uiScaleMode", _s_set_uiScaleMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "referencePixelsPerUnit", _s_set_referencePixelsPerUnit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scaleFactor", _s_set_scaleFactor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "referenceResolution", _s_set_referenceResolution); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "screenMatchMode", _s_set_screenMatchMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "matchWidthOrHeight", _s_set_matchWidthOrHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "physicalUnit", _s_set_physicalUnit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fallbackScreenDPI", _s_set_fallbackScreenDPI); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultSpriteDPI", _s_set_defaultSpriteDPI); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "dynamicPixelsPerUnit", _s_set_dynamicPixelsPerUnit); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.CanvasScaler does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uiScaleMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uiScaleMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referencePixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.referencePixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scaleFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scaleFactor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_referenceResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.referenceResolution); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_screenMatchMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.screenMatchMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_matchWidthOrHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.matchWidthOrHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_physicalUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.physicalUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fallbackScreenDPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fallbackScreenDPI); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultSpriteDPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.defaultSpriteDPI); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_dynamicPixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dynamicPixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uiScaleMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - UnityEngine.UI.CanvasScaler.ScaleMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uiScaleMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_referencePixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.referencePixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scaleFactor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scaleFactor = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_referenceResolution(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.referenceResolution = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_screenMatchMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - UnityEngine.UI.CanvasScaler.ScreenMatchMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.screenMatchMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_matchWidthOrHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.matchWidthOrHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_physicalUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - UnityEngine.UI.CanvasScaler.Unit gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.physicalUnit = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fallbackScreenDPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fallbackScreenDPI = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultSpriteDPI(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultSpriteDPI = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_dynamicPixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.CanvasScaler gen_to_be_invoked = (UnityEngine.UI.CanvasScaler)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.dynamicPixelsPerUnit = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_DropdownWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_DropdownWrap.cs deleted file mode 100644 index a831851be..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_DropdownWrap.cs +++ /dev/null @@ -1,627 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIDropdownWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Dropdown); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 9, 9); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetValueWithoutNotify", _m_SetValueWithoutNotify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshShownValue", _m_RefreshShownValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOptions", _m_AddOptions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearOptions", _m_ClearOptions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSubmit", _m_OnSubmit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCancel", _m_OnCancel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Show", _m_Show); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Hide", _m_Hide); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "template", _g_get_template); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "captionText", _g_get_captionText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "captionImage", _g_get_captionImage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "itemText", _g_get_itemText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "itemImage", _g_get_itemImage); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "options", _g_get_options); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaFadeSpeed", _g_get_alphaFadeSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "template", _s_set_template); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "captionText", _s_set_captionText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "captionImage", _s_set_captionImage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "itemText", _s_set_itemText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "itemImage", _s_set_itemImage); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "options", _s_set_options); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaFadeSpeed", _s_set_alphaFadeSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Dropdown does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetValueWithoutNotify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - int _input = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.SetValueWithoutNotify( _input ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RefreshShownValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RefreshShownValue( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddOptions( _options ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddOptions( _options ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Collections.Generic.List _options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.AddOptions( _options ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Dropdown.AddOptions!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClearOptions(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ClearOptions( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSubmit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSubmit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCancel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnCancel( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Show(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Show( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Hide(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Hide( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_template(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.template); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_captionText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.captionText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_captionImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.captionImage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_itemText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.itemText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_itemImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.itemImage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.options); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alphaFadeSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alphaFadeSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_template(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.template = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_captionText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.captionText = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_captionImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.captionImage = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_itemText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.itemText = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_itemImage(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.itemImage = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (UnityEngine.UI.Dropdown.DropdownEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.Dropdown.DropdownEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alphaFadeSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alphaFadeSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown gen_to_be_invoked = (UnityEngine.UI.Dropdown)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.value = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_Dropdown_DropdownEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_Dropdown_DropdownEventWrap.cs deleted file mode 100644 index 44529849e..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_Dropdown_DropdownEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIDropdownDropdownEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Dropdown.DropdownEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.Dropdown.DropdownEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Dropdown.DropdownEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataListWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataListWrap.cs deleted file mode 100644 index ab9ee9487..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataListWrap.cs +++ /dev/null @@ -1,115 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIDropdownOptionDataListWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Dropdown.OptionDataList); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "options", _g_get_options); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "options", _s_set_options); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.Dropdown.OptionDataList(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Dropdown.OptionDataList constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown.OptionDataList gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionDataList)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.options); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_options(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown.OptionDataList gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionDataList)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.options = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataWrap.cs deleted file mode 100644 index 2de1e6398..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_Dropdown_OptionDataWrap.cs +++ /dev/null @@ -1,174 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIDropdownOptionDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Dropdown.OptionData); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "image", _g_get_image); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "image", _s_set_image); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.Dropdown.OptionData(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _text = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new UnityEngine.UI.Dropdown.OptionData(_text); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable(L, 2)) - { - UnityEngine.Sprite _image = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - var gen_ret = new UnityEngine.UI.Dropdown.OptionData(_image); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _text = LuaAPI.lua_tostring(L, 2); - UnityEngine.Sprite _image = (UnityEngine.Sprite)translator.GetObject(L, 3, typeof(UnityEngine.Sprite)); - - var gen_ret = new UnityEngine.UI.Dropdown.OptionData(_text, _image); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Dropdown.OptionData constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown.OptionData gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown.OptionData gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionData)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.image); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown.OptionData gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Dropdown.OptionData gen_to_be_invoked = (UnityEngine.UI.Dropdown.OptionData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.image = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_GraphicRaycasterWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_GraphicRaycasterWrap.cs deleted file mode 100644 index 5487be91e..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_GraphicRaycasterWrap.cs +++ /dev/null @@ -1,237 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIGraphicRaycasterWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.GraphicRaycaster); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 6, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Raycast", _m_Raycast); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sortOrderPriority", _g_get_sortOrderPriority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderOrderPriority", _g_get_renderOrderPriority); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreReversedGraphics", _g_get_ignoreReversedGraphics); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blockingObjects", _g_get_blockingObjects); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "blockingMask", _g_get_blockingMask); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eventCamera", _g_get_eventCamera); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreReversedGraphics", _s_set_ignoreReversedGraphics); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "blockingObjects", _s_set_blockingObjects); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "blockingMask", _s_set_blockingMask); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.GraphicRaycaster does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - System.Collections.Generic.List _resultAppendList = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); - - gen_to_be_invoked.Raycast( _eventData, _resultAppendList ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sortOrderPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.sortOrderPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderOrderPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.renderOrderPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreReversedGraphics(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreReversedGraphics); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blockingObjects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, gen_to_be_invoked.blockingObjects); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_blockingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.blockingMask); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eventCamera(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.eventCamera); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreReversedGraphics(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreReversedGraphics = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_blockingObjects(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - UnityEngine.UI.GraphicRaycaster.BlockingObjects gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.blockingObjects = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_blockingMask(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GraphicRaycaster gen_to_be_invoked = (UnityEngine.UI.GraphicRaycaster)translator.FastGetCSObj(L, 1); - UnityEngine.LayerMask gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.blockingMask = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_GraphicWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_GraphicWrap.cs deleted file mode 100644 index 07a5ee8f6..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_GraphicWrap.cs +++ /dev/null @@ -1,1030 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIGraphicWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Graphic); - Utils.BeginObjectRegister(type, L, translator, 0, 24, 11, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAllDirty", _m_SetAllDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutDirty", _m_SetLayoutDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVerticesDirty", _m_SetVerticesDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMaterialDirty", _m_SetMaterialDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRaycastDirty", _m_SetRaycastDirty); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCullingChanged", _m_OnCullingChanged); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNativeSize", _m_SetNativeSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Raycast", _m_Raycast); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PixelAdjustPoint", _m_PixelAdjustPoint); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixelAdjustedRect", _m_GetPixelAdjustedRect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFadeColor", _m_CrossFadeColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CrossFadeAlpha", _m_CrossFadeAlpha); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterDirtyLayoutCallback", _m_RegisterDirtyLayoutCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnregisterDirtyLayoutCallback", _m_UnregisterDirtyLayoutCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterDirtyVerticesCallback", _m_RegisterDirtyVerticesCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnregisterDirtyVerticesCallback", _m_UnregisterDirtyVerticesCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterDirtyMaterialCallback", _m_RegisterDirtyMaterialCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnregisterDirtyMaterialCallback", _m_UnregisterDirtyMaterialCallback); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableColor", _m_DOBlendableColor); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "color", _g_get_color); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "raycastTarget", _g_get_raycastTarget); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "raycastPadding", _g_get_raycastPadding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rectTransform", _g_get_rectTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvas", _g_get_canvas); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvasRenderer", _g_get_canvasRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultMaterial", _g_get_defaultMaterial); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "materialForRendering", _g_get_materialForRendering); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "color", _s_set_color); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "raycastTarget", _s_set_raycastTarget); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "raycastPadding", _s_set_raycastPadding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultGraphicMaterial", _g_get_defaultGraphicMaterial); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Graphic does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAllDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetAllDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetVerticesDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetVerticesDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetMaterialDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetMaterialDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetRaycastDirty(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetRaycastDirty( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnCullingChanged(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnCullingChanged( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _update;translator.Get(L, 2, out _update); - - gen_to_be_invoked.Rebuild( _update ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNativeSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetNativeSize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Raycast(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _sp;translator.Get(L, 2, out _sp); - UnityEngine.Camera _eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.Raycast( _sp, _eventCamera ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PixelAdjustPoint(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _point;translator.Get(L, 2, out _point); - - var gen_ret = gen_to_be_invoked.PixelAdjustPoint( _point ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPixelAdjustedRect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPixelAdjustedRect( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFadeColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 5&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Color _targetColor;translator.Get(L, 2, out _targetColor); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _ignoreTimeScale = LuaAPI.lua_toboolean(L, 4); - bool _useAlpha = LuaAPI.lua_toboolean(L, 5); - - gen_to_be_invoked.CrossFadeColor( _targetColor, _duration, _ignoreTimeScale, _useAlpha ); - - - - return 0; - } - if(gen_param_count == 6&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Color _targetColor;translator.Get(L, 2, out _targetColor); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _ignoreTimeScale = LuaAPI.lua_toboolean(L, 4); - bool _useAlpha = LuaAPI.lua_toboolean(L, 5); - bool _useRGB = LuaAPI.lua_toboolean(L, 6); - - gen_to_be_invoked.CrossFadeColor( _targetColor, _duration, _ignoreTimeScale, _useAlpha, _useRGB ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Graphic.CrossFadeColor!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CrossFadeAlpha(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - float _alpha = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _ignoreTimeScale = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.CrossFadeAlpha( _alpha, _duration, _ignoreTimeScale ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterDirtyLayoutCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.RegisterDirtyLayoutCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterDirtyLayoutCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.UnregisterDirtyLayoutCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterDirtyVerticesCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.RegisterDirtyVerticesCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterDirtyVerticesCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.UnregisterDirtyVerticesCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterDirtyMaterialCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.RegisterDirtyMaterialCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterDirtyMaterialCallback(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Events.UnityAction _action = translator.GetDelegate(L, 2); - - gen_to_be_invoked.UnregisterDirtyMaterialCallback( _action ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultGraphicMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.Graphic.defaultGraphicMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.color); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_raycastTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.raycastTarget); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_raycastPadding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.raycastPadding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_depth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.depth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rectTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rectTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canvas(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.canvas); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canvasRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.canvasRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.defaultMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_materialForRendering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.materialForRendering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_color(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.color = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_raycastTarget(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.raycastTarget = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_raycastPadding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.raycastPadding = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Graphic gen_to_be_invoked = (UnityEngine.UI.Graphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_GridLayoutGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_GridLayoutGroupWrap.cs deleted file mode 100644 index b324d5375..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_GridLayoutGroupWrap.cs +++ /dev/null @@ -1,370 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIGridLayoutGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.GridLayoutGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startCorner", _g_get_startCorner); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startAxis", _g_get_startAxis); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cellSize", _g_get_cellSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spacing", _g_get_spacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "constraint", _g_get_constraint); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "constraintCount", _g_get_constraintCount); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startCorner", _s_set_startCorner); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startAxis", _s_set_startAxis); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "cellSize", _s_set_cellSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spacing", _s_set_spacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "constraint", _s_set_constraint); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "constraintCount", _s_set_constraintCount); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.GridLayoutGroup does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startCorner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIGridLayoutGroupCorner(L, gen_to_be_invoked.startCorner); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIGridLayoutGroupAxis(L, gen_to_be_invoked.startAxis); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cellSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.cellSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.spacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constraint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIGridLayoutGroupConstraint(L, gen_to_be_invoked.constraint); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_constraintCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.constraintCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startCorner(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - UnityEngine.UI.GridLayoutGroup.Corner gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startCorner = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startAxis(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - UnityEngine.UI.GridLayoutGroup.Axis gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.startAxis = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_cellSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.cellSize = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.spacing = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_constraint(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - UnityEngine.UI.GridLayoutGroup.Constraint gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.constraint = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_constraintCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.GridLayoutGroup gen_to_be_invoked = (UnityEngine.UI.GridLayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.constraintCount = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ImageWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ImageWrap.cs deleted file mode 100644 index 5b39b7e10..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ImageWrap.cs +++ /dev/null @@ -1,989 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIImageWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Image); - Utils.BeginObjectRegister(type, L, translator, 0, 12, 23, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisableSpriteOptimizations", _m_DisableSpriteOptimizations); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforeSerialize", _m_OnBeforeSerialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAfterDeserialize", _m_OnAfterDeserialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNativeSize", _m_SetNativeSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRaycastLocationValid", _m_IsRaycastLocationValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFillAmount", _m_DOFillAmount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOGradientColor", _m_DOGradientColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableColor", _m_DOBlendableColor); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "overrideSprite", _g_get_overrideSprite); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preserveAspect", _g_get_preserveAspect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillCenter", _g_get_fillCenter); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillMethod", _g_get_fillMethod); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillAmount", _g_get_fillAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillClockwise", _g_get_fillClockwise); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillOrigin", _g_get_fillOrigin); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alphaHitTestMinimumThreshold", _g_get_alphaHitTestMinimumThreshold); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "useSpriteMesh", _g_get_useSpriteMesh); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasBorder", _g_get_hasBorder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelsPerUnitMultiplier", _g_get_pixelsPerUnitMultiplier); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelsPerUnit", _g_get_pixelsPerUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "material", _g_get_material); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "overrideSprite", _s_set_overrideSprite); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preserveAspect", _s_set_preserveAspect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillCenter", _s_set_fillCenter); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillMethod", _s_set_fillMethod); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillAmount", _s_set_fillAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillClockwise", _s_set_fillClockwise); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillOrigin", _s_set_fillOrigin); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alphaHitTestMinimumThreshold", _s_set_alphaHitTestMinimumThreshold); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "useSpriteMesh", _s_set_useSpriteMesh); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "pixelsPerUnitMultiplier", _s_set_pixelsPerUnitMultiplier); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "material", _s_set_material); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "defaultETC1GraphicMaterial", _g_get_defaultETC1GraphicMaterial); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Image does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DisableSpriteOptimizations(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.DisableSpriteOptimizations( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeforeSerialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnBeforeSerialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnAfterDeserialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.OnAfterDeserialize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNativeSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetNativeSize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRaycastLocationValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _screenPoint;translator.Get(L, 2, out _screenPoint); - UnityEngine.Camera _eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.IsRaycastLocationValid( _screenPoint, _eventCamera ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFillAmount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFillAmount( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOGradientColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Gradient _gradient = (UnityEngine.Gradient)translator.GetObject(L, 2, typeof(UnityEngine.Gradient)); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOGradientColor( _gradient, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.sprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_overrideSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.overrideSprite); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIImageType(L, gen_to_be_invoked.type); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preserveAspect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.preserveAspect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.fillCenter); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillMethod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIImageFillMethod(L, gen_to_be_invoked.fillMethod); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fillAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillClockwise(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.fillClockwise); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillOrigin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fillOrigin); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alphaHitTestMinimumThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.alphaHitTestMinimumThreshold); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_useSpriteMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useSpriteMesh); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultETC1GraphicMaterial(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.Image.defaultETC1GraphicMaterial); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_hasBorder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasBorder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelsPerUnitMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelsPerUnitMultiplier); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.material); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_overrideSprite(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.overrideSprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_type(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - UnityEngine.UI.Image.Type gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.type = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preserveAspect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preserveAspect = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillCenter(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fillCenter = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillMethod(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - UnityEngine.UI.Image.FillMethod gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fillMethod = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fillAmount = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillClockwise(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fillClockwise = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillOrigin(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fillOrigin = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alphaHitTestMinimumThreshold(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alphaHitTestMinimumThreshold = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_useSpriteMesh(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.useSpriteMesh = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_pixelsPerUnitMultiplier(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.pixelsPerUnitMultiplier = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_material(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Image gen_to_be_invoked = (UnityEngine.UI.Image)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.material = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_InputFieldWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_InputFieldWrap.cs deleted file mode 100644 index 970fab059..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_InputFieldWrap.cs +++ /dev/null @@ -1,1616 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIInputFieldWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.InputField); - Utils.BeginObjectRegister(type, L, translator, 0, 21, 36, 25); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTextWithoutNotify", _m_SetTextWithoutNotify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveTextEnd", _m_MoveTextEnd); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MoveTextStart", _m_MoveTextStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessEvent", _m_ProcessEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnUpdateSelected", _m_OnUpdateSelected); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForceLabelUpdate", _m_ForceLabelUpdate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ActivateInputField", _m_ActivateInputField); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSelect", _m_OnSelect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DeactivateInputField", _m_DeactivateInputField); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDeselect", _m_OnDeselect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSubmit", _m_OnSubmit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shouldHideMobileInput", _g_get_shouldHideMobileInput); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "shouldActivateOnSelect", _g_get_shouldActivateOnSelect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFocused", _g_get_isFocused); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretBlinkRate", _g_get_caretBlinkRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretWidth", _g_get_caretWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "textComponent", _g_get_textComponent); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "placeholder", _g_get_placeholder); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretColor", _g_get_caretColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "customCaretColor", _g_get_customCaretColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionColor", _g_get_selectionColor); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onEndEdit", _g_get_onEndEdit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onSubmit", _g_get_onSubmit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValidateInput", _g_get_onValidateInput); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterLimit", _g_get_characterLimit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "contentType", _g_get_contentType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineType", _g_get_lineType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inputType", _g_get_inputType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "touchScreenKeyboard", _g_get_touchScreenKeyboard); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "keyboardType", _g_get_keyboardType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "characterValidation", _g_get_characterValidation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "readOnly", _g_get_readOnly); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiLine", _g_get_multiLine); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "asteriskChar", _g_get_asteriskChar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wasCanceled", _g_get_wasCanceled); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "caretPosition", _g_get_caretPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionAnchorPosition", _g_get_selectionAnchorPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectionFocusPosition", _g_get_selectionFocusPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shouldHideMobileInput", _s_set_shouldHideMobileInput); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "shouldActivateOnSelect", _s_set_shouldActivateOnSelect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretBlinkRate", _s_set_caretBlinkRate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretWidth", _s_set_caretWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "textComponent", _s_set_textComponent); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "placeholder", _s_set_placeholder); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretColor", _s_set_caretColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "customCaretColor", _s_set_customCaretColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionColor", _s_set_selectionColor); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onEndEdit", _s_set_onEndEdit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onSubmit", _s_set_onSubmit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValidateInput", _s_set_onValidateInput); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterLimit", _s_set_characterLimit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "contentType", _s_set_contentType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineType", _s_set_lineType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inputType", _s_set_inputType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "keyboardType", _s_set_keyboardType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "characterValidation", _s_set_characterValidation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "readOnly", _s_set_readOnly); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "asteriskChar", _s_set_asteriskChar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "caretPosition", _s_set_caretPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionAnchorPosition", _s_set_selectionAnchorPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectionFocusPosition", _s_set_selectionFocusPosition); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.InputField does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTextWithoutNotify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - string _input = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SetTextWithoutNotify( _input ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTextEnd(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - bool _shift = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.MoveTextEnd( _shift ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTextStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - bool _shift = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.MoveTextStart( _shift ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ProcessEvent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Event _e = (UnityEngine.Event)translator.GetObject(L, 2, typeof(UnityEngine.Event)); - - gen_to_be_invoked.ProcessEvent( _e ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnUpdateSelected(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnUpdateSelected( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ForceLabelUpdate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ForceLabelUpdate( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _update;translator.Get(L, 2, out _update); - - gen_to_be_invoked.Rebuild( _update ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ActivateInputField(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.ActivateInputField( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSelect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSelect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DeactivateInputField(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.DeactivateInputField( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDeselect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnDeselect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSubmit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSubmit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shouldHideMobileInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.shouldHideMobileInput); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_shouldActivateOnSelect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.shouldActivateOnSelect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isFocused(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFocused); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretBlinkRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.caretBlinkRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.caretWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.textComponent); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_placeholder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.placeholder); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.caretColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_customCaretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.customCaretColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineColor(L, gen_to_be_invoked.selectionColor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onEndEdit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onEndEdit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onSubmit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onSubmit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValidateInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValidateInput); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.characterLimit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_contentType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIInputFieldContentType(L, gen_to_be_invoked.contentType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIInputFieldLineType(L, gen_to_be_invoked.lineType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inputType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIInputFieldInputType(L, gen_to_be_invoked.inputType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_touchScreenKeyboard(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.touchScreenKeyboard); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_keyboardType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.keyboardType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_characterValidation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIInputFieldCharacterValidation(L, gen_to_be_invoked.characterValidation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_readOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.readOnly); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_multiLine(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiLine); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_asteriskChar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.asteriskChar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wasCanceled(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.wasCanceled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_caretPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.caretPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectionAnchorPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_selectionFocusPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectionFocusPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shouldHideMobileInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shouldHideMobileInput = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_shouldActivateOnSelect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.shouldActivateOnSelect = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretBlinkRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.caretBlinkRate = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.caretWidth = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_textComponent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.textComponent = (UnityEngine.UI.Text)translator.GetObject(L, 2, typeof(UnityEngine.UI.Text)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_placeholder(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.placeholder = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.caretColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_customCaretColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.customCaretColor = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionColor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.selectionColor = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onEndEdit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onEndEdit = (UnityEngine.UI.InputField.EndEditEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField.EndEditEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onSubmit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onSubmit = (UnityEngine.UI.InputField.SubmitEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField.SubmitEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (UnityEngine.UI.InputField.OnChangeEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.InputField.OnChangeEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValidateInput(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValidateInput = translator.GetDelegate(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterLimit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.characterLimit = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_contentType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - UnityEngine.UI.InputField.ContentType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.contentType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - UnityEngine.UI.InputField.LineType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.lineType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inputType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - UnityEngine.UI.InputField.InputType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.inputType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_keyboardType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - UnityEngine.TouchScreenKeyboardType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.keyboardType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_characterValidation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - UnityEngine.UI.InputField.CharacterValidation gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.characterValidation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_readOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.readOnly = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_asteriskChar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.asteriskChar = (char)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_caretPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.caretPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionAnchorPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selectionAnchorPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_selectionFocusPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.InputField gen_to_be_invoked = (UnityEngine.UI.InputField)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.selectionFocusPosition = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_InputField_EndEditEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_InputField_EndEditEventWrap.cs deleted file mode 100644 index f8ecfae69..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_InputField_EndEditEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIInputFieldEndEditEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.InputField.EndEditEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.InputField.EndEditEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.InputField.EndEditEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_InputField_OnChangeEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_InputField_OnChangeEventWrap.cs deleted file mode 100644 index d83c55391..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_InputField_OnChangeEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIInputFieldOnChangeEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.InputField.OnChangeEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.InputField.OnChangeEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.InputField.OnChangeEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_InputField_SubmitEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_InputField_SubmitEventWrap.cs deleted file mode 100644 index fd8ac54e1..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_InputField_SubmitEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIInputFieldSubmitEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.InputField.SubmitEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.InputField.SubmitEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.InputField.SubmitEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_LayoutElementWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_LayoutElementWrap.cs deleted file mode 100644 index 8b883e7b8..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_LayoutElementWrap.cs +++ /dev/null @@ -1,515 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUILayoutElementWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.LayoutElement); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 8, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFlexibleSize", _m_DOFlexibleSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOMinSize", _m_DOMinSize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOPreferredSize", _m_DOPreferredSize); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "ignoreLayout", _g_get_ignoreLayout); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "ignoreLayout", _s_set_ignoreLayout); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minWidth", _s_set_minWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minHeight", _s_set_minHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preferredWidth", _s_set_preferredWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preferredHeight", _s_set_preferredHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flexibleWidth", _s_set_flexibleWidth); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "flexibleHeight", _s_set_flexibleHeight); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "layoutPriority", _s_set_layoutPriority); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.LayoutElement does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFlexibleSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOFlexibleSize( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFlexibleSize( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.LayoutElement.DOFlexibleSize!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOMinSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOMinSize( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOMinSize( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.LayoutElement.DOMinSize!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOPreferredSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOPreferredSize( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOPreferredSize( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.LayoutElement.DOPreferredSize!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_ignoreLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.ignoreLayout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_ignoreLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.ignoreLayout = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preferredWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preferredHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flexibleWidth = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.flexibleHeight = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutElement gen_to_be_invoked = (UnityEngine.UI.LayoutElement)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.layoutPriority = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_LayoutGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_LayoutGroupWrap.cs deleted file mode 100644 index 7c243cf4e..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_LayoutGroupWrap.cs +++ /dev/null @@ -1,347 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUILayoutGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.LayoutGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 9, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "childAlignment", _g_get_childAlignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "childAlignment", _s_set_childAlignment); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.LayoutGroup does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_childAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineTextAnchor(L, gen_to_be_invoked.childAlignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.padding = (UnityEngine.RectOffset)translator.GetObject(L, 2, typeof(UnityEngine.RectOffset)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_childAlignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.LayoutGroup gen_to_be_invoked = (UnityEngine.UI.LayoutGroup)translator.FastGetCSObj(L, 1); - UnityEngine.TextAnchor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.childAlignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_MaskUtilitiesWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_MaskUtilitiesWrap.cs deleted file mode 100644 index 0bcdaa374..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_MaskUtilitiesWrap.cs +++ /dev/null @@ -1,280 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIMaskUtilitiesWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.MaskUtilities); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Notify2DMaskStateChanged", _m_Notify2DMaskStateChanged_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "NotifyStencilStateChanged", _m_NotifyStencilStateChanged_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "FindRootSortOverrideCanvas", _m_FindRootSortOverrideCanvas_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetStencilDepth", _m_GetStencilDepth_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "IsDescendantOrSelf", _m_IsDescendantOrSelf_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRectMaskForClippable", _m_GetRectMaskForClippable_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRectMasksForClip", _m_GetRectMasksForClip_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.MaskUtilities(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.MaskUtilities constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Notify2DMaskStateChanged_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Component _mask = (UnityEngine.Component)translator.GetObject(L, 1, typeof(UnityEngine.Component)); - - UnityEngine.UI.MaskUtilities.Notify2DMaskStateChanged( _mask ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NotifyStencilStateChanged_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Component _mask = (UnityEngine.Component)translator.GetObject(L, 1, typeof(UnityEngine.Component)); - - UnityEngine.UI.MaskUtilities.NotifyStencilStateChanged( _mask ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindRootSortOverrideCanvas_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Transform _start = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.UI.MaskUtilities.FindRootSortOverrideCanvas( _start ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetStencilDepth_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - UnityEngine.Transform _stopAfter = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.UI.MaskUtilities.GetStencilDepth( _transform, _stopAfter ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsDescendantOrSelf_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Transform _father = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform)); - UnityEngine.Transform _child = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); - - var gen_ret = UnityEngine.UI.MaskUtilities.IsDescendantOrSelf( _father, _child ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRectMaskForClippable_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.IClippable _clippable = (UnityEngine.UI.IClippable)translator.GetObject(L, 1, typeof(UnityEngine.UI.IClippable)); - - var gen_ret = UnityEngine.UI.MaskUtilities.GetRectMaskForClippable( _clippable ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetRectMasksForClip_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.RectMask2D _clipper = (UnityEngine.UI.RectMask2D)translator.GetObject(L, 1, typeof(UnityEngine.UI.RectMask2D)); - System.Collections.Generic.List _masks = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); - - UnityEngine.UI.MaskUtilities.GetRectMasksForClip( _clipper, _masks ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_MaskWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_MaskWrap.cs deleted file mode 100644 index e80359731..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_MaskWrap.cs +++ /dev/null @@ -1,218 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIMaskWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Mask); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "MaskEnabled", _m_MaskEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRaycastLocationValid", _m_IsRaycastLocationValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModifiedMaterial", _m_GetModifiedMaterial); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rectTransform", _g_get_rectTransform); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "showMaskGraphic", _g_get_showMaskGraphic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "graphic", _g_get_graphic); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "showMaskGraphic", _s_set_showMaskGraphic); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Mask does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MaskEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Mask gen_to_be_invoked = (UnityEngine.UI.Mask)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.MaskEnabled( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRaycastLocationValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Mask gen_to_be_invoked = (UnityEngine.UI.Mask)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _sp;translator.Get(L, 2, out _sp); - UnityEngine.Camera _eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.IsRaycastLocationValid( _sp, _eventCamera ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetModifiedMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Mask gen_to_be_invoked = (UnityEngine.UI.Mask)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = gen_to_be_invoked.GetModifiedMaterial( _baseMaterial ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rectTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Mask gen_to_be_invoked = (UnityEngine.UI.Mask)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rectTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_showMaskGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Mask gen_to_be_invoked = (UnityEngine.UI.Mask)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.showMaskGraphic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Mask gen_to_be_invoked = (UnityEngine.UI.Mask)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.graphic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_showMaskGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Mask gen_to_be_invoked = (UnityEngine.UI.Mask)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.showMaskGraphic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_MaskableGraphicWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_MaskableGraphicWrap.cs deleted file mode 100644 index edd933932..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_MaskableGraphicWrap.cs +++ /dev/null @@ -1,335 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIMaskableGraphicWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.MaskableGraphic); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 3, 3); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetModifiedMaterial", _m_GetModifiedMaterial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cull", _m_Cull); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetClipRect", _m_SetClipRect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetClipSoftness", _m_SetClipSoftness); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateClipping", _m_RecalculateClipping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecalculateMasking", _m_RecalculateMasking); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onCullStateChanged", _g_get_onCullStateChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maskable", _g_get_maskable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isMaskingGraphic", _g_get_isMaskingGraphic); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onCullStateChanged", _s_set_onCullStateChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maskable", _s_set_maskable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isMaskingGraphic", _s_set_isMaskingGraphic); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.MaskableGraphic does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetModifiedMaterial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Material _baseMaterial = (UnityEngine.Material)translator.GetObject(L, 2, typeof(UnityEngine.Material)); - - var gen_ret = gen_to_be_invoked.GetModifiedMaterial( _baseMaterial ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cull(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _clipRect;translator.Get(L, 2, out _clipRect); - bool _validRect = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.Cull( _clipRect, _validRect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetClipRect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Rect _clipRect;translator.Get(L, 2, out _clipRect); - bool _validRect = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetClipRect( _clipRect, _validRect ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetClipSoftness(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _clipSoftness;translator.Get(L, 2, out _clipSoftness); - - gen_to_be_invoked.SetClipSoftness( _clipSoftness ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateClipping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RecalculateClipping( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RecalculateMasking(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.RecalculateMasking( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onCullStateChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onCullStateChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maskable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.maskable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isMaskingGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isMaskingGraphic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onCullStateChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onCullStateChanged = (UnityEngine.UI.MaskableGraphic.CullStateChangedEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.MaskableGraphic.CullStateChangedEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maskable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maskable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isMaskingGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.MaskableGraphic gen_to_be_invoked = (UnityEngine.UI.MaskableGraphic)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isMaskingGraphic = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_MaskableGraphic_CullStateChangedEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_MaskableGraphic_CullStateChangedEventWrap.cs deleted file mode 100644 index c6580b142..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_MaskableGraphic_CullStateChangedEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIMaskableGraphicCullStateChangedEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.MaskableGraphic.CullStateChangedEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.MaskableGraphic.CullStateChangedEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.MaskableGraphic.CullStateChangedEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_RawImageWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_RawImageWrap.cs deleted file mode 100644 index f831138dd..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_RawImageWrap.cs +++ /dev/null @@ -1,173 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIRawImageWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.RawImage); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 3, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetNativeSize", _m_SetNativeSize); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texture", _g_get_texture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "uvRect", _g_get_uvRect); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "texture", _s_set_texture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "uvRect", _s_set_uvRect); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.RawImage does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetNativeSize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.RawImage gen_to_be_invoked = (UnityEngine.UI.RawImage)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetNativeSize( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RawImage gen_to_be_invoked = (UnityEngine.UI.RawImage)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RawImage gen_to_be_invoked = (UnityEngine.UI.RawImage)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.texture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_uvRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RawImage gen_to_be_invoked = (UnityEngine.UI.RawImage)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.uvRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RawImage gen_to_be_invoked = (UnityEngine.UI.RawImage)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.texture = (UnityEngine.Texture)translator.GetObject(L, 2, typeof(UnityEngine.Texture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_uvRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RawImage gen_to_be_invoked = (UnityEngine.UI.RawImage)translator.FastGetCSObj(L, 1); - UnityEngine.Rect gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.uvRect = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_RectMask2DWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_RectMask2DWrap.cs deleted file mode 100644 index 4a436a74a..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_RectMask2DWrap.cs +++ /dev/null @@ -1,306 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIRectMask2DWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.RectMask2D); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 2); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRaycastLocationValid", _m_IsRaycastLocationValid); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "PerformClipping", _m_PerformClipping); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateClipSoftness", _m_UpdateClipSoftness); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddClippable", _m_AddClippable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveClippable", _m_RemoveClippable); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "padding", _g_get_padding); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "softness", _g_get_softness); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canvasRect", _g_get_canvasRect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "rectTransform", _g_get_rectTransform); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "padding", _s_set_padding); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "softness", _s_set_softness); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.RectMask2D does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsRaycastLocationValid(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _sp;translator.Get(L, 2, out _sp); - UnityEngine.Camera _eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); - - var gen_ret = gen_to_be_invoked.IsRaycastLocationValid( _sp, _eventCamera ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_PerformClipping(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.PerformClipping( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UpdateClipSoftness(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.UpdateClipSoftness( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AddClippable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.IClippable _clippable = (UnityEngine.UI.IClippable)translator.GetObject(L, 2, typeof(UnityEngine.UI.IClippable)); - - gen_to_be_invoked.AddClippable( _clippable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RemoveClippable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.IClippable _clippable = (UnityEngine.UI.IClippable)translator.GetObject(L, 2, typeof(UnityEngine.UI.IClippable)); - - gen_to_be_invoked.RemoveClippable( _clippable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.padding); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_softness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.softness); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canvasRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.canvasRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_rectTransform(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.rectTransform); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_padding(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.padding = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_softness(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.softness = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ScrollRectWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ScrollRectWrap.cs deleted file mode 100644 index d65004d02..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ScrollRectWrap.cs +++ /dev/null @@ -1,1340 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIScrollRectWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.ScrollRect); - Utils.BeginObjectRegister(type, L, translator, 0, 17, 27, 20); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsActive", _m_IsActive); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopMovement", _m_StopMovement); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnScroll", _m_OnScroll); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInitializePotentialDrag", _m_OnInitializePotentialDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnEndDrag", _m_OnEndDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DONormalizedPos", _m_DONormalizedPos); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOHorizontalNormalizedPos", _m_DOHorizontalNormalizedPos); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOVerticalNormalizedPos", _m_DOVerticalNormalizedPos); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "content", _g_get_content); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontal", _g_get_horizontal); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertical", _g_get_vertical); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "movementType", _g_get_movementType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "elasticity", _g_get_elasticity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "inertia", _g_get_inertia); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "decelerationRate", _g_get_decelerationRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "scrollSensitivity", _g_get_scrollSensitivity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewport", _g_get_viewport); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalScrollbar", _g_get_horizontalScrollbar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalScrollbar", _g_get_verticalScrollbar); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalScrollbarVisibility", _g_get_horizontalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalScrollbarVisibility", _g_get_verticalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalScrollbarSpacing", _g_get_horizontalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalScrollbarSpacing", _g_get_verticalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "velocity", _g_get_velocity); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedPosition", _g_get_normalizedPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalNormalizedPosition", _g_get_horizontalNormalizedPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalNormalizedPosition", _g_get_verticalNormalizedPosition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "content", _s_set_content); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontal", _s_set_horizontal); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertical", _s_set_vertical); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "movementType", _s_set_movementType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "elasticity", _s_set_elasticity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "inertia", _s_set_inertia); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "decelerationRate", _s_set_decelerationRate); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "scrollSensitivity", _s_set_scrollSensitivity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "viewport", _s_set_viewport); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalScrollbar", _s_set_horizontalScrollbar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalScrollbar", _s_set_verticalScrollbar); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalScrollbarVisibility", _s_set_horizontalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalScrollbarVisibility", _s_set_verticalScrollbarVisibility); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalScrollbarSpacing", _s_set_horizontalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalScrollbarSpacing", _s_set_verticalScrollbarSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "velocity", _s_set_velocity); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalizedPosition", _s_set_normalizedPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalNormalizedPosition", _s_set_horizontalNormalizedPosition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalNormalizedPosition", _s_set_verticalNormalizedPosition); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.ScrollRect does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _executing;translator.Get(L, 2, out _executing); - - gen_to_be_invoked.Rebuild( _executing ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsActive(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsActive( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StopMovement(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StopMovement( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnScroll(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _data = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnScroll( _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnInitializePotentialDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnInitializePotentialDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnEndDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnEndDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DONormalizedPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DONormalizedPos( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - UnityEngine.Vector2 _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DONormalizedPos( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ScrollRect.DONormalizedPos!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOHorizontalNormalizedPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOHorizontalNormalizedPos( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOHorizontalNormalizedPos( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ScrollRect.DOHorizontalNormalizedPos!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOVerticalNormalizedPos(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOVerticalNormalizedPos( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOVerticalNormalizedPos( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ScrollRect.DOVerticalNormalizedPos!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_content(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.content); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.horizontal); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.vertical); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_movementType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIScrollRectMovementType(L, gen_to_be_invoked.movementType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_elasticity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.elasticity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_inertia(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.inertia); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_decelerationRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.decelerationRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_scrollSensitivity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.scrollSensitivity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_viewport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.viewport); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.horizontalScrollbar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.verticalScrollbar); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, gen_to_be_invoked.horizontalScrollbarVisibility); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, gen_to_be_invoked.verticalScrollbarVisibility); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.horizontalScrollbarSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.verticalScrollbarSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.velocity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.normalizedPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.horizontalNormalizedPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.verticalNormalizedPosition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_content(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.content = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontal(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.horizontal = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_vertical(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.vertical = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_movementType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - UnityEngine.UI.ScrollRect.MovementType gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.movementType = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_elasticity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.elasticity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_inertia(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.inertia = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_decelerationRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.decelerationRate = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_scrollSensitivity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.scrollSensitivity = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_viewport(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.viewport = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.horizontalScrollbar = (UnityEngine.UI.Scrollbar)translator.GetObject(L, 2, typeof(UnityEngine.UI.Scrollbar)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalScrollbar(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.verticalScrollbar = (UnityEngine.UI.Scrollbar)translator.GetObject(L, 2, typeof(UnityEngine.UI.Scrollbar)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - UnityEngine.UI.ScrollRect.ScrollbarVisibility gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalScrollbarVisibility = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalScrollbarVisibility(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - UnityEngine.UI.ScrollRect.ScrollbarVisibility gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.verticalScrollbarVisibility = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.horizontalScrollbarSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalScrollbarSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.verticalScrollbarSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (UnityEngine.UI.ScrollRect.ScrollRectEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.ScrollRect.ScrollRectEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_velocity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.velocity = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.normalizedPosition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.horizontalNormalizedPosition = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalNormalizedPosition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ScrollRect gen_to_be_invoked = (UnityEngine.UI.ScrollRect)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.verticalNormalizedPosition = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ScrollRect_ScrollRectEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ScrollRect_ScrollRectEventWrap.cs deleted file mode 100644 index 078e8f569..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ScrollRect_ScrollRectEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIScrollRectScrollRectEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.ScrollRect.ScrollRectEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.ScrollRect.ScrollRectEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ScrollRect.ScrollRectEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ScrollbarWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ScrollbarWrap.cs deleted file mode 100644 index e09735dc2..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ScrollbarWrap.cs +++ /dev/null @@ -1,688 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIScrollbarWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Scrollbar); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetValueWithoutNotify", _m_SetValueWithoutNotify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeginDrag", _m_OnBeginDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMove", _m_OnMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnLeft", _m_FindSelectableOnLeft); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnRight", _m_FindSelectableOnRight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnUp", _m_FindSelectableOnUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnDown", _m_FindSelectableOnDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInitializePotentialDrag", _m_OnInitializePotentialDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDirection", _m_SetDirection); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "handleRect", _g_get_handleRect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "numberOfSteps", _g_get_numberOfSteps); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "handleRect", _s_set_handleRect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "numberOfSteps", _s_set_numberOfSteps); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Scrollbar does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetValueWithoutNotify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - float _input = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetValueWithoutNotify( _input ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _executing;translator.Get(L, 2, out _executing); - - gen_to_be_invoked.Rebuild( _executing ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnBeginDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnBeginDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerUp( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.AxisEventData _eventData = (UnityEngine.EventSystems.AxisEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.AxisEventData)); - - gen_to_be_invoked.OnMove( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnLeft(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnLeft( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnRight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnRight( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnUp( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnDown( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnInitializePotentialDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnInitializePotentialDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDirection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.Scrollbar.Direction _direction;translator.Get(L, 2, out _direction); - bool _includeRectLayouts = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetDirection( _direction, _includeRectLayouts ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_handleRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.handleRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.size); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_numberOfSteps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numberOfSteps); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_handleRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.handleRect = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - UnityEngine.UI.Scrollbar.Direction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.value = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_size(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.size = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_numberOfSteps(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.numberOfSteps = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Scrollbar gen_to_be_invoked = (UnityEngine.UI.Scrollbar)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (UnityEngine.UI.Scrollbar.ScrollEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.Scrollbar.ScrollEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_SelectableWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_SelectableWrap.cs deleted file mode 100644 index ce33737dc..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_SelectableWrap.cs +++ /dev/null @@ -1,794 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUISelectableWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Selectable); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 9, 8); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInteractable", _m_IsInteractable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectable", _m_FindSelectable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnLeft", _m_FindSelectableOnLeft); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnRight", _m_FindSelectableOnRight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnUp", _m_FindSelectableOnUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnDown", _m_FindSelectableOnDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMove", _m_OnMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerUp", _m_OnPointerUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerEnter", _m_OnPointerEnter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerExit", _m_OnPointerExit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSelect", _m_OnSelect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDeselect", _m_OnDeselect); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Select", _m_Select); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "navigation", _g_get_navigation); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "transition", _g_get_transition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "colors", _g_get_colors); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteState", _g_get_spriteState); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animationTriggers", _g_get_animationTriggers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetGraphic", _g_get_targetGraphic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "interactable", _g_get_interactable); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "image", _g_get_image); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "animator", _g_get_animator); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "navigation", _s_set_navigation); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "transition", _s_set_transition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "colors", _s_set_colors); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteState", _s_set_spriteState); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "animationTriggers", _s_set_animationTriggers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetGraphic", _s_set_targetGraphic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "interactable", _s_set_interactable); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "image", _s_set_image); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "AllSelectablesNoAlloc", _m_AllSelectablesNoAlloc_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "allSelectablesArray", _g_get_allSelectablesArray); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "allSelectableCount", _g_get_allSelectableCount); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Selectable does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AllSelectablesNoAlloc_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.UI.Selectable[] _selectables = (UnityEngine.UI.Selectable[])translator.GetObject(L, 1, typeof(UnityEngine.UI.Selectable[])); - - var gen_ret = UnityEngine.UI.Selectable.AllSelectablesNoAlloc( _selectables ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsInteractable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.IsInteractable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector3 _dir;translator.Get(L, 2, out _dir); - - var gen_ret = gen_to_be_invoked.FindSelectable( _dir ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnLeft(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnLeft( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnRight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnRight( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnUp( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnDown( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.AxisEventData _eventData = (UnityEngine.EventSystems.AxisEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.AxisEventData)); - - gen_to_be_invoked.OnMove( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerUp( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerEnter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerEnter( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerExit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerExit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSelect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSelect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDeselect(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnDeselect( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Select(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Select( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allSelectablesArray(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UnityEngine.UI.Selectable.allSelectablesArray); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allSelectableCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.UI.Selectable.allSelectableCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_navigation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.navigation); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_transition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.transition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_colors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.colors); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_spriteState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.spriteState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animationTriggers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animationTriggers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetGraphic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_interactable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.interactable); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.image); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_animator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.animator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_navigation(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - UnityEngine.UI.Navigation gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.navigation = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_transition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - UnityEngine.UI.Selectable.Transition gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.transition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_colors(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - UnityEngine.UI.ColorBlock gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.colors = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_spriteState(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - UnityEngine.UI.SpriteState gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.spriteState = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_animationTriggers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.animationTriggers = (UnityEngine.UI.AnimationTriggers)translator.GetObject(L, 2, typeof(UnityEngine.UI.AnimationTriggers)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetGraphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetGraphic = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_interactable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.interactable = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_image(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Selectable gen_to_be_invoked = (UnityEngine.UI.Selectable)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.image = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_SliderWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_SliderWrap.cs deleted file mode 100644 index d15097c4f..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_SliderWrap.cs +++ /dev/null @@ -1,771 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUISliderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Slider); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 9, 9); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetValueWithoutNotify", _m_SetValueWithoutNotify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerDown", _m_OnPointerDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDrag", _m_OnDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMove", _m_OnMove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnLeft", _m_FindSelectableOnLeft); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnRight", _m_FindSelectableOnRight); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnUp", _m_FindSelectableOnUp); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindSelectableOnDown", _m_FindSelectableOnDown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInitializePotentialDrag", _m_OnInitializePotentialDrag); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDirection", _m_SetDirection); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOValue", _m_DOValue); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fillRect", _g_get_fillRect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "handleRect", _g_get_handleRect); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "direction", _g_get_direction); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minValue", _g_get_minValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxValue", _g_get_maxValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "wholeNumbers", _g_get_wholeNumbers); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalizedValue", _g_get_normalizedValue); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fillRect", _s_set_fillRect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "handleRect", _s_set_handleRect); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "direction", _s_set_direction); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "minValue", _s_set_minValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxValue", _s_set_maxValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "wholeNumbers", _s_set_wholeNumbers); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalizedValue", _s_set_normalizedValue); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Slider does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetValueWithoutNotify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - float _input = (float)LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.SetValueWithoutNotify( _input ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _executing;translator.Get(L, 2, out _executing); - - gen_to_be_invoked.Rebuild( _executing ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerDown( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnMove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.AxisEventData _eventData = (UnityEngine.EventSystems.AxisEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.AxisEventData)); - - gen_to_be_invoked.OnMove( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnLeft(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnLeft( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnRight(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnRight( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnUp(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnUp( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FindSelectableOnDown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.FindSelectableOnDown( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnInitializePotentialDrag(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnInitializePotentialDrag( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDirection(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.Slider.Direction _direction;translator.Get(L, 2, out _direction); - bool _includeRectLayouts = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetDirection( _direction, _includeRectLayouts ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _snapping = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOValue( _endValue, _duration, _snapping ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOValue( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Slider.DOValue!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fillRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fillRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_handleRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.handleRect); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUISliderDirection(L, gen_to_be_invoked.direction); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_maxValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_wholeNumbers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.wholeNumbers); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalizedValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalizedValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fillRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fillRect = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_handleRect(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.handleRect = (UnityEngine.RectTransform)translator.GetObject(L, 2, typeof(UnityEngine.RectTransform)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_direction(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - UnityEngine.UI.Slider.Direction gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.direction = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_minValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.minValue = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_maxValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.maxValue = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_wholeNumbers(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.wholeNumbers = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.value = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_normalizedValue(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.normalizedValue = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Slider gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (UnityEngine.UI.Slider.SliderEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.Slider.SliderEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_Slider_SliderEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_Slider_SliderEventWrap.cs deleted file mode 100644 index 579707e4c..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_Slider_SliderEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUISliderSliderEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Slider.SliderEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.Slider.SliderEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Slider.SliderEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_TextWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_TextWrap.cs deleted file mode 100644 index f978829e0..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_TextWrap.cs +++ /dev/null @@ -1,1016 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; -using DG.Tweening; - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUITextWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Text); - Utils.BeginObjectRegister(type, L, translator, 0, 9, 24, 13); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "FontTextureChanged", _m_FontTextureChanged); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGenerationSettings", _m_GetGenerationSettings); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOColor", _m_DOColor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOCounter", _m_DOCounter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOFade", _m_DOFade); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOText", _m_DOText); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "DOBlendableColor", _m_DOBlendableColor); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cachedTextGenerator", _g_get_cachedTextGenerator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "cachedTextGeneratorForLayout", _g_get_cachedTextGeneratorForLayout); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "mainTexture", _g_get_mainTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "font", _g_get_font); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "supportRichText", _g_get_supportRichText); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resizeTextForBestFit", _g_get_resizeTextForBestFit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resizeTextMinSize", _g_get_resizeTextMinSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "resizeTextMaxSize", _g_get_resizeTextMaxSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignment", _g_get_alignment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignByGeometry", _g_get_alignByGeometry); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontSize", _g_get_fontSize); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "horizontalOverflow", _g_get_horizontalOverflow); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "verticalOverflow", _g_get_verticalOverflow); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineSpacing", _g_get_lineSpacing); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fontStyle", _g_get_fontStyle); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelsPerUnit", _g_get_pixelsPerUnit); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minWidth", _g_get_minWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredWidth", _g_get_preferredWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleWidth", _g_get_flexibleWidth); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "minHeight", _g_get_minHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preferredHeight", _g_get_preferredHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "flexibleHeight", _g_get_flexibleHeight); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "layoutPriority", _g_get_layoutPriority); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "font", _s_set_font); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "text", _s_set_text); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "supportRichText", _s_set_supportRichText); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resizeTextForBestFit", _s_set_resizeTextForBestFit); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resizeTextMinSize", _s_set_resizeTextMinSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "resizeTextMaxSize", _s_set_resizeTextMaxSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignment", _s_set_alignment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignByGeometry", _s_set_alignByGeometry); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontSize", _s_set_fontSize); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "horizontalOverflow", _s_set_horizontalOverflow); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "verticalOverflow", _s_set_verticalOverflow); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "lineSpacing", _s_set_lineSpacing); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fontStyle", _s_set_fontStyle); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTextAnchorPivot", _m_GetTextAnchorPivot_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Text does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_FontTextureChanged(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.FontTextureChanged( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetGenerationSettings(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Vector2 _extents;translator.Get(L, 2, out _extents); - - var gen_ret = gen_to_be_invoked.GetGenerationSettings( _extents ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTextAnchorPivot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.TextAnchor _anchor;translator.Get(L, 1, out _anchor); - - var gen_ret = UnityEngine.UI.Text.GetTextAnchorPivot( _anchor ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOCounter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& translator.Assignable(L, 6)) - { - int _fromValue = LuaAPI.xlua_tointeger(L, 2); - int _endValue = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - bool _addThousandsSeparator = LuaAPI.lua_toboolean(L, 5); - System.Globalization.CultureInfo _culture = (System.Globalization.CultureInfo)translator.GetObject(L, 6, typeof(System.Globalization.CultureInfo)); - - var gen_ret = gen_to_be_invoked.DOCounter( _fromValue, _endValue, _duration, _addThousandsSeparator, _culture ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) - { - int _fromValue = LuaAPI.xlua_tointeger(L, 2); - int _endValue = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - bool _addThousandsSeparator = LuaAPI.lua_toboolean(L, 5); - - var gen_ret = gen_to_be_invoked.DOCounter( _fromValue, _endValue, _duration, _addThousandsSeparator ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - int _fromValue = LuaAPI.xlua_tointeger(L, 2); - int _endValue = LuaAPI.xlua_tointeger(L, 3); - float _duration = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = gen_to_be_invoked.DOCounter( _fromValue, _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Text.DOCounter!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOFade(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - - { - float _endValue = (float)LuaAPI.lua_tonumber(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOFade( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOText(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)&& (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING)) - { - string _endValue = LuaAPI.lua_tostring(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _richTextEnabled = LuaAPI.lua_toboolean(L, 4); - DG.Tweening.ScrambleMode _scrambleMode;translator.Get(L, 5, out _scrambleMode); - string _scrambleChars = LuaAPI.lua_tostring(L, 6); - - var gen_ret = gen_to_be_invoked.DOText( _endValue, _duration, _richTextEnabled, _scrambleMode, _scrambleChars ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)&& translator.Assignable(L, 5)) - { - string _endValue = LuaAPI.lua_tostring(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _richTextEnabled = LuaAPI.lua_toboolean(L, 4); - DG.Tweening.ScrambleMode _scrambleMode;translator.Get(L, 5, out _scrambleMode); - - var gen_ret = gen_to_be_invoked.DOText( _endValue, _duration, _richTextEnabled, _scrambleMode ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - string _endValue = LuaAPI.lua_tostring(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - bool _richTextEnabled = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = gen_to_be_invoked.DOText( _endValue, _duration, _richTextEnabled ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - string _endValue = LuaAPI.lua_tostring(L, 2); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOText( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Text.DOText!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_DOBlendableColor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.Color _endValue;translator.Get(L, 2, out _endValue); - float _duration = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = gen_to_be_invoked.DOBlendableColor( _endValue, _duration ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cachedTextGenerator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cachedTextGenerator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_cachedTextGeneratorForLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.cachedTextGeneratorForLayout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_mainTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.mainTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.font); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.text); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_supportRichText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.supportRichText); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resizeTextForBestFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.resizeTextForBestFit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resizeTextMinSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.resizeTextMinSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_resizeTextMaxSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.resizeTextMaxSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineTextAnchor(L, gen_to_be_invoked.alignment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_alignByGeometry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.alignByGeometry); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fontSize); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_horizontalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.horizontalOverflow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_verticalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.verticalOverflow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lineSpacing); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.fontStyle); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelsPerUnit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.pixelsPerUnit); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleWidth(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleWidth); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_minHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preferredHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.preferredHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_flexibleHeight(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.flexibleHeight); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_layoutPriority(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layoutPriority); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_font(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.font = (UnityEngine.Font)translator.GetObject(L, 2, typeof(UnityEngine.Font)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_text(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.text = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_supportRichText(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.supportRichText = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resizeTextForBestFit(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.resizeTextForBestFit = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resizeTextMinSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.resizeTextMinSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_resizeTextMaxSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.resizeTextMaxSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - UnityEngine.TextAnchor gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.alignment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_alignByGeometry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.alignByGeometry = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontSize(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fontSize = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_horizontalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - UnityEngine.HorizontalWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.horizontalOverflow = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_verticalOverflow(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - UnityEngine.VerticalWrapMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.verticalOverflow = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_lineSpacing(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.lineSpacing = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fontStyle(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Text gen_to_be_invoked = (UnityEngine.UI.Text)translator.FastGetCSObj(L, 1); - UnityEngine.FontStyle gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.fontStyle = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ToggleGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ToggleGroupWrap.cs deleted file mode 100644 index 754ae327e..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ToggleGroupWrap.cs +++ /dev/null @@ -1,357 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIToggleGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.ToggleGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 8, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "NotifyToggleOn", _m_NotifyToggleOn); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnregisterToggle", _m_UnregisterToggle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "RegisterToggle", _m_RegisterToggle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnsureValidState", _m_EnsureValidState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "AnyTogglesOn", _m_AnyTogglesOn); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ActiveToggles", _m_ActiveToggles); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirstActiveToggle", _m_GetFirstActiveToggle); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAllTogglesOff", _m_SetAllTogglesOff); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "allowSwitchOff", _g_get_allowSwitchOff); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "allowSwitchOff", _s_set_allowSwitchOff); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.ToggleGroup does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_NotifyToggleOn(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) - { - UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle)); - bool _sendCallback = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.NotifyToggleOn( _toggle, _sendCallback ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle)); - - gen_to_be_invoked.NotifyToggleOn( _toggle ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ToggleGroup.NotifyToggleOn!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UnregisterToggle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle)); - - gen_to_be_invoked.UnregisterToggle( _toggle ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RegisterToggle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.Toggle _toggle = (UnityEngine.UI.Toggle)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle)); - - gen_to_be_invoked.RegisterToggle( _toggle ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnsureValidState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.EnsureValidState( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_AnyTogglesOn(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.AnyTogglesOn( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ActiveToggles(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.ActiveToggles( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetFirstActiveToggle(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetFirstActiveToggle( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetAllTogglesOff(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _sendCallback = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetAllTogglesOff( _sendCallback ); - - - - return 0; - } - if(gen_param_count == 1) - { - - gen_to_be_invoked.SetAllTogglesOff( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.ToggleGroup.SetAllTogglesOff!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_allowSwitchOff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.allowSwitchOff); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_allowSwitchOff(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.ToggleGroup gen_to_be_invoked = (UnityEngine.UI.ToggleGroup)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.allowSwitchOff = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_ToggleWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_ToggleWrap.cs deleted file mode 100644 index 362851417..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_ToggleWrap.cs +++ /dev/null @@ -1,395 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIToggleWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Toggle); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "LayoutComplete", _m_LayoutComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GraphicUpdateComplete", _m_GraphicUpdateComplete); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetIsOnWithoutNotify", _m_SetIsOnWithoutNotify); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPointerClick", _m_OnPointerClick); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSubmit", _m_OnSubmit); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "group", _g_get_group); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isOn", _g_get_isOn); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "toggleTransition", _g_get_toggleTransition); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "graphic", _g_get_graphic); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "onValueChanged", _g_get_onValueChanged); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "group", _s_set_group); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isOn", _s_set_isOn); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "toggleTransition", _s_set_toggleTransition); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "graphic", _s_set_graphic); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "onValueChanged", _s_set_onValueChanged); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.Toggle does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Rebuild(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.UI.CanvasUpdate _executing;translator.Get(L, 2, out _executing); - - gen_to_be_invoked.Rebuild( _executing ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LayoutComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.LayoutComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GraphicUpdateComplete(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.GraphicUpdateComplete( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetIsOnWithoutNotify(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - - - - { - bool _value = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetIsOnWithoutNotify( _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnPointerClick(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.PointerEventData _eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); - - gen_to_be_invoked.OnPointerClick( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OnSubmit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - - - - { - UnityEngine.EventSystems.BaseEventData _eventData = (UnityEngine.EventSystems.BaseEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.BaseEventData)); - - gen_to_be_invoked.OnSubmit( _eventData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_group(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.group); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isOn(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isOn); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_toggleTransition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - translator.PushUnityEngineUIToggleToggleTransition(L, gen_to_be_invoked.toggleTransition); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_graphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.graphic); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.onValueChanged); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_group(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.group = (UnityEngine.UI.ToggleGroup)translator.GetObject(L, 2, typeof(UnityEngine.UI.ToggleGroup)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isOn(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isOn = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_toggleTransition(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - UnityEngine.UI.Toggle.ToggleTransition gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.toggleTransition = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_graphic(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.graphic = (UnityEngine.UI.Graphic)translator.GetObject(L, 2, typeof(UnityEngine.UI.Graphic)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_onValueChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.UI.Toggle gen_to_be_invoked = (UnityEngine.UI.Toggle)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.onValueChanged = (UnityEngine.UI.Toggle.ToggleEvent)translator.GetObject(L, 2, typeof(UnityEngine.UI.Toggle.ToggleEvent)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_Toggle_ToggleEventWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_Toggle_ToggleEventWrap.cs deleted file mode 100644 index 0165ca146..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_Toggle_ToggleEventWrap.cs +++ /dev/null @@ -1,84 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIToggleToggleEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.Toggle.ToggleEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.UI.Toggle.ToggleEvent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Toggle.ToggleEvent constructor!"); - - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_UI_VerticalLayoutGroupWrap.cs b/Assets/XLua/Gen/UnityEngine_UI_VerticalLayoutGroupWrap.cs deleted file mode 100644 index 438265228..000000000 --- a/Assets/XLua/Gen/UnityEngine_UI_VerticalLayoutGroupWrap.cs +++ /dev/null @@ -1,179 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineUIVerticalLayoutGroupWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.UI.VerticalLayoutGroup); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputHorizontal", _m_CalculateLayoutInputHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "CalculateLayoutInputVertical", _m_CalculateLayoutInputVertical); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutHorizontal", _m_SetLayoutHorizontal); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayoutVertical", _m_SetLayoutVertical); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.UI.VerticalLayoutGroup does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.VerticalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_CalculateLayoutInputVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.VerticalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.CalculateLayoutInputVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutHorizontal(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.VerticalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutHorizontal( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetLayoutVertical(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.UI.VerticalLayoutGroup gen_to_be_invoked = (UnityEngine.UI.VerticalLayoutGroup)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.SetLayoutVertical( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Vector2Wrap.cs b/Assets/XLua/Gen/UnityEngine_Vector2Wrap.cs deleted file mode 100644 index fd8b03066..000000000 --- a/Assets/XLua/Gen/UnityEngine_Vector2Wrap.cs +++ /dev/null @@ -1,1292 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineVector2Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Vector2); - Utils.BeginObjectRegister(type, L, translator, 6, 7, 5, 2); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__div", __DivMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__unm", __UnmMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Scale", _m_Scale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Normalize", _m_Normalize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SqrMagnitude", _m_SqrMagnitude); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalized", _g_get_normalized); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "magnitude", _g_get_magnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sqrMagnitude", _g_get_sqrMagnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 18, 8, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveTowards", _m_MoveTowards_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Scale", _m_Scale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Reflect", _m_Reflect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Perpendicular", _m_Perpendicular_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Dot", _m_Dot_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Angle", _m_Angle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SignedAngle", _m_SignedAngle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Distance", _m_Distance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClampMagnitude", _m_ClampMagnitude_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SqrMagnitude", _m_SqrMagnitude_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Min", _m_Min_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Max", _m_Max_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothDamp", _m_SmoothDamp_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilon", UnityEngine.Vector2.kEpsilon); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilonNormalSqrt", UnityEngine.Vector2.kEpsilonNormalSqrt); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "one", _g_get_one); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "up", _g_get_up); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "down", _g_get_down); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "left", _g_get_left); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "positiveInfinity", _g_get_positiveInfinity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "negativeInfinity", _g_get_negativeInfinity); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.Vector2(_x, _y); - translator.PushUnityEngineVector2(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineVector2(L, default(UnityEngine.Vector2)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2 constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector2(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need UnityEngine.Vector2!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector2(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need UnityEngine.Vector2!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector2(L, leftside * rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2 leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineVector2(L, leftside * rightside); - - return 1; - } - - - if (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable(L, 2)) - { - float leftside = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Vector2 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector2(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Vector2!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __DivMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector2(L, leftside / rightside); - - return 1; - } - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector2 leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineVector2(L, leftside / rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of / operator, need UnityEngine.Vector2!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __UnmMeta(RealStatePtr L) - { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - try { - UnityEngine.Vector2 rightside;translator.Get(L, 1, out rightside); - translator.PushUnityEngineVector2(L, - rightside); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector2 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector2 rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Vector2!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _newX = (float)LuaAPI.lua_tonumber(L, 2); - float _newY = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.Set( _newX, _newY ); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector2 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector2.Lerp( _a, _b, _t ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector2 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector2.LerpUnclamped( _a, _b, _t ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTowards_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector2 _target;translator.Get(L, 2, out _target); - float _maxDistanceDelta = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector2.MoveTowards( _current, _target, _maxDistanceDelta ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector2 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector2.Scale( _a, _b ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector2 _scale;translator.Get(L, 2, out _scale); - - gen_to_be_invoked.Scale( _scale ); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Normalize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.Normalize( ); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector2 _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reflect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _inDirection;translator.Get(L, 1, out _inDirection); - UnityEngine.Vector2 _inNormal;translator.Get(L, 2, out _inNormal); - - var gen_ret = UnityEngine.Vector2.Reflect( _inDirection, _inNormal ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Perpendicular_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _inDirection;translator.Get(L, 1, out _inDirection); - - var gen_ret = UnityEngine.Vector2.Perpendicular( _inDirection ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector2 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector2.Dot( _lhs, _rhs ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Angle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _from;translator.Get(L, 1, out _from); - UnityEngine.Vector2 _to;translator.Get(L, 2, out _to); - - var gen_ret = UnityEngine.Vector2.Angle( _from, _to ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SignedAngle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _from;translator.Get(L, 1, out _from); - UnityEngine.Vector2 _to;translator.Get(L, 2, out _to); - - var gen_ret = UnityEngine.Vector2.SignedAngle( _from, _to ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector2 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector2.Distance( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClampMagnitude_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _vector;translator.Get(L, 1, out _vector); - float _maxLength = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Vector2.ClampMagnitude( _vector, _maxLength ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SqrMagnitude_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _a;translator.Get(L, 1, out _a); - - var gen_ret = UnityEngine.Vector2.SqrMagnitude( _a ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SqrMagnitude(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.SqrMagnitude( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Min_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector2 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector2.Min( _lhs, _rhs ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Max_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector2 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector2 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector2.Max( _lhs, _rhs ); - translator.PushUnityEngineVector2(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothDamp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector2 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector2 _target;translator.Get(L, 2, out _target); - UnityEngine.Vector2 _currentVelocity;translator.Get(L, 3, out _currentVelocity); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Vector2.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime ); - translator.PushUnityEngineVector2(L, gen_ret); - translator.PushUnityEngineVector2(L, _currentVelocity); - translator.UpdateUnityEngineVector2(L, 3, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector2 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector2 _target;translator.Get(L, 2, out _target); - UnityEngine.Vector2 _currentVelocity;translator.Get(L, 3, out _currentVelocity); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Vector2.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed ); - translator.PushUnityEngineVector2(L, gen_ret); - translator.PushUnityEngineVector2(L, _currentVelocity); - translator.UpdateUnityEngineVector2(L, 3, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector2 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector2 _target;translator.Get(L, 2, out _target); - UnityEngine.Vector2 _currentVelocity;translator.Get(L, 3, out _currentVelocity); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Vector2.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed, _deltaTime ); - translator.PushUnityEngineVector2(L, gen_ret); - translator.PushUnityEngineVector2(L, _currentVelocity); - translator.UpdateUnityEngineVector2(L, 3, _currentVelocity); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector2.SmoothDamp!"); - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector2(L, gen_to_be_invoked.normalized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_magnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.magnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sqrMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sqrMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_one(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.one); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.up); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_down(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.down); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positiveInfinity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.positiveInfinity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_negativeInfinity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector2(L, UnityEngine.Vector2.negativeInfinity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector2 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector2(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Vector3Wrap.cs b/Assets/XLua/Gen/UnityEngine_Vector3Wrap.cs deleted file mode 100644 index 3d6f2526b..000000000 --- a/Assets/XLua/Gen/UnityEngine_Vector3Wrap.cs +++ /dev/null @@ -1,1576 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineVector3Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Vector3); - Utils.BeginObjectRegister(type, L, translator, 6, 6, 6, 3); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__unm", __UnmMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__div", __DivMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Scale", _m_Scale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Normalize", _m_Normalize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalized", _g_get_normalized); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "magnitude", _g_get_magnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sqrMagnitude", _g_get_sqrMagnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 26, 10, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveTowards", _m_MoveTowards_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothDamp", _m_SmoothDamp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Scale", _m_Scale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Cross", _m_Cross_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Reflect", _m_Reflect_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Normalize", _m_Normalize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Dot", _m_Dot_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Project", _m_Project_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ProjectOnPlane", _m_ProjectOnPlane_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Angle", _m_Angle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SignedAngle", _m_SignedAngle_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Distance", _m_Distance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ClampMagnitude", _m_ClampMagnitude_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Magnitude", _m_Magnitude_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SqrMagnitude", _m_SqrMagnitude_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Min", _m_Min_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Max", _m_Max_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Slerp", _m_Slerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SlerpUnclamped", _m_SlerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "OrthoNormalize", _m_OrthoNormalize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "RotateTowards", _m_RotateTowards_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilon", UnityEngine.Vector3.kEpsilon); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilonNormalSqrt", UnityEngine.Vector3.kEpsilonNormalSqrt); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "one", _g_get_one); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "forward", _g_get_forward); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "back", _g_get_back); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "up", _g_get_up); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "down", _g_get_down); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "left", _g_get_left); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "right", _g_get_right); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "positiveInfinity", _g_get_positiveInfinity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "negativeInfinity", _g_get_negativeInfinity); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = new UnityEngine.Vector3(_x, _y, _z); - translator.PushUnityEngineVector3(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.Vector3(_x, _y); - translator.PushUnityEngineVector3(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineVector3(L, default(UnityEngine.Vector3)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3 constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector3 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector3(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need UnityEngine.Vector3!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector3 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector3(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need UnityEngine.Vector3!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __UnmMeta(RealStatePtr L) - { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - try { - UnityEngine.Vector3 rightside;translator.Get(L, 1, out rightside); - translator.PushUnityEngineVector3(L, - rightside); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector3 leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineVector3(L, leftside * rightside); - - return 1; - } - - - if (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable(L, 2)) - { - float leftside = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Vector3 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector3(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Vector3!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __DivMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector3 leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineVector3(L, leftside / rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of / operator, need UnityEngine.Vector3!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector3 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector3 rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Vector3!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector3.Lerp( _a, _b, _t ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector3.LerpUnclamped( _a, _b, _t ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTowards_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector3 _target;translator.Get(L, 2, out _target); - float _maxDistanceDelta = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector3.MoveTowards( _current, _target, _maxDistanceDelta ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SmoothDamp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 4&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - UnityEngine.Vector3 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector3 _target;translator.Get(L, 2, out _target); - UnityEngine.Vector3 _currentVelocity;translator.Get(L, 3, out _currentVelocity); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Vector3.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime ); - translator.PushUnityEngineVector3(L, gen_ret); - translator.PushUnityEngineVector3(L, _currentVelocity); - translator.UpdateUnityEngineVector3(L, 3, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 5&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - UnityEngine.Vector3 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector3 _target;translator.Get(L, 2, out _target); - UnityEngine.Vector3 _currentVelocity;translator.Get(L, 3, out _currentVelocity); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = UnityEngine.Vector3.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed ); - translator.PushUnityEngineVector3(L, gen_ret); - translator.PushUnityEngineVector3(L, _currentVelocity); - translator.UpdateUnityEngineVector3(L, 3, _currentVelocity); - - - - - return 2; - } - if(gen_param_count == 6&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) - { - UnityEngine.Vector3 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector3 _target;translator.Get(L, 2, out _target); - UnityEngine.Vector3 _currentVelocity;translator.Get(L, 3, out _currentVelocity); - float _smoothTime = (float)LuaAPI.lua_tonumber(L, 4); - float _maxSpeed = (float)LuaAPI.lua_tonumber(L, 5); - float _deltaTime = (float)LuaAPI.lua_tonumber(L, 6); - - var gen_ret = UnityEngine.Vector3.SmoothDamp( _current, _target, ref _currentVelocity, _smoothTime, _maxSpeed, _deltaTime ); - translator.PushUnityEngineVector3(L, gen_ret); - translator.PushUnityEngineVector3(L, _currentVelocity); - translator.UpdateUnityEngineVector3(L, 3, _currentVelocity); - - - - - return 2; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3.SmoothDamp!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _newX = (float)LuaAPI.lua_tonumber(L, 2); - float _newY = (float)LuaAPI.lua_tonumber(L, 3); - float _newZ = (float)LuaAPI.lua_tonumber(L, 4); - - gen_to_be_invoked.Set( _newX, _newY, _newZ ); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector3.Scale( _a, _b ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector3 _scale;translator.Get(L, 2, out _scale); - - gen_to_be_invoked.Scale( _scale ); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Cross_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector3 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector3.Cross( _lhs, _rhs ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Reflect_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _inDirection;translator.Get(L, 1, out _inDirection); - UnityEngine.Vector3 _inNormal;translator.Get(L, 2, out _inNormal); - - var gen_ret = UnityEngine.Vector3.Reflect( _inDirection, _inNormal ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Normalize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _value;translator.Get(L, 1, out _value); - - var gen_ret = UnityEngine.Vector3.Normalize( _value ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Normalize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.Normalize( ); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector3 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector3.Dot( _lhs, _rhs ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Project_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 1, out _vector); - UnityEngine.Vector3 _onNormal;translator.Get(L, 2, out _onNormal); - - var gen_ret = UnityEngine.Vector3.Project( _vector, _onNormal ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ProjectOnPlane_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 1, out _vector); - UnityEngine.Vector3 _planeNormal;translator.Get(L, 2, out _planeNormal); - - var gen_ret = UnityEngine.Vector3.ProjectOnPlane( _vector, _planeNormal ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Angle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _from;translator.Get(L, 1, out _from); - UnityEngine.Vector3 _to;translator.Get(L, 2, out _to); - - var gen_ret = UnityEngine.Vector3.Angle( _from, _to ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SignedAngle_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _from;translator.Get(L, 1, out _from); - UnityEngine.Vector3 _to;translator.Get(L, 2, out _to); - UnityEngine.Vector3 _axis;translator.Get(L, 3, out _axis); - - var gen_ret = UnityEngine.Vector3.SignedAngle( _from, _to, _axis ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector3.Distance( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ClampMagnitude_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 1, out _vector); - float _maxLength = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = UnityEngine.Vector3.ClampMagnitude( _vector, _maxLength ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Magnitude_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 1, out _vector); - - var gen_ret = UnityEngine.Vector3.Magnitude( _vector ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SqrMagnitude_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _vector;translator.Get(L, 1, out _vector); - - var gen_ret = UnityEngine.Vector3.SqrMagnitude( _vector ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Min_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector3 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector3.Min( _lhs, _rhs ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Max_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector3 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector3.Max( _lhs, _rhs ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Slerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector3.Slerp( _a, _b, _t ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SlerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector3 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector3.SlerpUnclamped( _a, _b, _t ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_OrthoNormalize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)) - { - UnityEngine.Vector3 _normal;translator.Get(L, 1, out _normal); - UnityEngine.Vector3 _tangent;translator.Get(L, 2, out _tangent); - - UnityEngine.Vector3.OrthoNormalize( ref _normal, ref _tangent ); - translator.PushUnityEngineVector3(L, _normal); - translator.UpdateUnityEngineVector3(L, 1, _normal); - - translator.PushUnityEngineVector3(L, _tangent); - translator.UpdateUnityEngineVector3(L, 2, _tangent); - - - - - return 2; - } - if(gen_param_count == 3&& translator.Assignable(L, 1)&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - UnityEngine.Vector3 _normal;translator.Get(L, 1, out _normal); - UnityEngine.Vector3 _tangent;translator.Get(L, 2, out _tangent); - UnityEngine.Vector3 _binormal;translator.Get(L, 3, out _binormal); - - UnityEngine.Vector3.OrthoNormalize( ref _normal, ref _tangent, ref _binormal ); - translator.PushUnityEngineVector3(L, _normal); - translator.UpdateUnityEngineVector3(L, 1, _normal); - - translator.PushUnityEngineVector3(L, _tangent); - translator.UpdateUnityEngineVector3(L, 2, _tangent); - - translator.PushUnityEngineVector3(L, _binormal); - translator.UpdateUnityEngineVector3(L, 3, _binormal); - - - - - return 3; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3.OrthoNormalize!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_RotateTowards_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector3 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector3 _target;translator.Get(L, 2, out _target); - float _maxRadiansDelta = (float)LuaAPI.lua_tonumber(L, 3); - float _maxMagnitudeDelta = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = UnityEngine.Vector3.RotateTowards( _current, _target, _maxRadiansDelta, _maxMagnitudeDelta ); - translator.PushUnityEngineVector3(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector3(L, gen_to_be_invoked.normalized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_magnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.magnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sqrMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sqrMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_one(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.one); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_forward(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.forward); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_back(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.back); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_up(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.up); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_down(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.down); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_left(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.left); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_right(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.right); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positiveInfinity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.positiveInfinity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_negativeInfinity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector3(L, UnityEngine.Vector3.negativeInfinity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector3 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.z = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector3(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Vector4Wrap.cs b/Assets/XLua/Gen/UnityEngine_Vector4Wrap.cs deleted file mode 100644 index 9b38ee557..000000000 --- a/Assets/XLua/Gen/UnityEngine_Vector4Wrap.cs +++ /dev/null @@ -1,1174 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineVector4Wrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Vector4); - Utils.BeginObjectRegister(type, L, translator, 6, 7, 7, 4); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__unm", __UnmMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__mul", __MulMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__div", __DivMeta); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Set", _m_Set); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Scale", _m_Scale); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Normalize", _m_Normalize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SqrMagnitude", _m_SqrMagnitude); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalized", _g_get_normalized); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "magnitude", _g_get_magnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sqrMagnitude", _g_get_sqrMagnitude); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "z", _g_get_z); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "w", _g_get_w); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "z", _s_set_z); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "w", _s_set_w); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 14, 4, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveTowards", _m_MoveTowards_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Scale", _m_Scale_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Normalize", _m_Normalize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Dot", _m_Dot_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Project", _m_Project_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Distance", _m_Distance_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Magnitude", _m_Magnitude_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Min", _m_Min_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Max", _m_Max_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SqrMagnitude", _m_SqrMagnitude_xlua_st_); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilon", UnityEngine.Vector4.kEpsilon); - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "zero", _g_get_zero); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "one", _g_get_one); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "positiveInfinity", _g_get_positiveInfinity); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "negativeInfinity", _g_get_negativeInfinity); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - float _w = (float)LuaAPI.lua_tonumber(L, 5); - - var gen_ret = new UnityEngine.Vector4(_x, _y, _z, _w); - translator.PushUnityEngineVector4(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - float _z = (float)LuaAPI.lua_tonumber(L, 4); - - var gen_ret = new UnityEngine.Vector4(_x, _y, _z); - translator.PushUnityEngineVector4(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - float _x = (float)LuaAPI.lua_tonumber(L, 2); - float _y = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = new UnityEngine.Vector4(_x, _y); - translator.PushUnityEngineVector4(L, gen_ret); - - return 1; - } - - if (LuaAPI.lua_gettop(L) == 1) - { - translator.PushUnityEngineVector4(L, default(UnityEngine.Vector4)); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector4 constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) - { - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (float)LuaAPI.lua_tonumber(L, 3); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __AddMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector4 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector4 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector4(L, leftside + rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need UnityEngine.Vector4!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __SubMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector4 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector4 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector4(L, leftside - rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need UnityEngine.Vector4!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __UnmMeta(RealStatePtr L) - { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - try { - UnityEngine.Vector4 rightside;translator.Get(L, 1, out rightside); - translator.PushUnityEngineVector4(L, - rightside); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __MulMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector4 leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineVector4(L, leftside * rightside); - - return 1; - } - - - if (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable(L, 2)) - { - float leftside = (float)LuaAPI.lua_tonumber(L, 1); - UnityEngine.Vector4 rightside;translator.Get(L, 2, out rightside); - - translator.PushUnityEngineVector4(L, leftside * rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of * operator, need UnityEngine.Vector4!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __DivMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - UnityEngine.Vector4 leftside;translator.Get(L, 1, out leftside); - float rightside = (float)LuaAPI.lua_tonumber(L, 2); - - translator.PushUnityEngineVector4(L, leftside / rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of / operator, need UnityEngine.Vector4!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - UnityEngine.Vector4 leftside;translator.Get(L, 1, out leftside); - UnityEngine.Vector4 rightside;translator.Get(L, 2, out rightside); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.Vector4!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Set(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - float _newX = (float)LuaAPI.lua_tonumber(L, 2); - float _newY = (float)LuaAPI.lua_tonumber(L, 3); - float _newZ = (float)LuaAPI.lua_tonumber(L, 4); - float _newW = (float)LuaAPI.lua_tonumber(L, 5); - - gen_to_be_invoked.Set( _newX, _newY, _newZ, _newW ); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Lerp_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector4 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector4.Lerp( _a, _b, _t ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LerpUnclamped_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector4 _b;translator.Get(L, 2, out _b); - float _t = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector4.LerpUnclamped( _a, _b, _t ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_MoveTowards_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _current;translator.Get(L, 1, out _current); - UnityEngine.Vector4 _target;translator.Get(L, 2, out _target); - float _maxDistanceDelta = (float)LuaAPI.lua_tonumber(L, 3); - - var gen_ret = UnityEngine.Vector4.MoveTowards( _current, _target, _maxDistanceDelta ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector4 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector4.Scale( _a, _b ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Scale(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - UnityEngine.Vector4 _scale;translator.Get(L, 2, out _scale); - - gen_to_be_invoked.Scale( _scale ); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - object _other = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - UnityEngine.Vector4 _other;translator.Get(L, 2, out _other); - - var gen_ret = gen_to_be_invoked.Equals( _other ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector4.Equals!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Normalize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - - var gen_ret = UnityEngine.Vector4.Normalize( _a ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Normalize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - gen_to_be_invoked.Normalize( ); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Dot_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector4 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector4.Dot( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Project_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector4 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector4.Project( _a, _b ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Distance_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - UnityEngine.Vector4 _b;translator.Get(L, 2, out _b); - - var gen_ret = UnityEngine.Vector4.Distance( _a, _b ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Magnitude_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - - var gen_ret = UnityEngine.Vector4.Magnitude( _a ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Min_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector4 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector4.Min( _lhs, _rhs ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Max_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _lhs;translator.Get(L, 1, out _lhs); - UnityEngine.Vector4 _rhs;translator.Get(L, 2, out _rhs); - - var gen_ret = UnityEngine.Vector4.Max( _lhs, _rhs ); - translator.PushUnityEngineVector4(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _format = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _format ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 1; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _format = LuaAPI.lua_tostring(L, 2); - System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); - - var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); - LuaAPI.lua_pushstring(L, gen_ret); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector4.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SqrMagnitude_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - UnityEngine.Vector4 _a;translator.Get(L, 1, out _a); - - var gen_ret = UnityEngine.Vector4.SqrMagnitude( _a ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SqrMagnitude(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - - - - { - - var gen_ret = gen_to_be_invoked.SqrMagnitude( ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_normalized(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - translator.PushUnityEngineVector4(L, gen_to_be_invoked.normalized); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_magnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.magnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sqrMagnitude(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sqrMagnitude); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_zero(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector4(L, UnityEngine.Vector4.zero); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_one(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector4(L, UnityEngine.Vector4.one); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_positiveInfinity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector4(L, UnityEngine.Vector4.positiveInfinity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_negativeInfinity(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.PushUnityEngineVector4(L, UnityEngine.Vector4.negativeInfinity); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.x); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.y); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.z); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_w(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.w); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_x(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.x = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_y(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.y = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_z(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.z = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_w(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Vector4 gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); - gen_to_be_invoked.w = (float)LuaAPI.lua_tonumber(L, 2); - - translator.UpdateUnityEngineVector4(L, 1, gen_to_be_invoked); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Video_VideoClipWrap.cs b/Assets/XLua/Gen/UnityEngine_Video_VideoClipWrap.cs deleted file mode 100644 index de469948d..000000000 --- a/Assets/XLua/Gen/UnityEngine_Video_VideoClipWrap.cs +++ /dev/null @@ -1,307 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineVideoVideoClipWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Video.VideoClip); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 10, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAudioChannelCount", _m_GetAudioChannelCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAudioSampleRate", _m_GetAudioSampleRate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAudioLanguage", _m_GetAudioLanguage); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "originalPath", _g_get_originalPath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameCount", _g_get_frameCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameRate", _g_get_frameRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelAspectRatioNumerator", _g_get_pixelAspectRatioNumerator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelAspectRatioDenominator", _g_get_pixelAspectRatioDenominator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sRGB", _g_get_sRGB); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "audioTrackCount", _g_get_audioTrackCount); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "UnityEngine.Video.VideoClip does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAudioChannelCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - - - - { - ushort _audioTrackIdx = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAudioChannelCount( _audioTrackIdx ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAudioSampleRate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - - - - { - ushort _audioTrackIdx = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAudioSampleRate( _audioTrackIdx ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAudioLanguage(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - - - - { - ushort _audioTrackIdx = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAudioLanguage( _audioTrackIdx ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_originalPath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.originalPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushuint64(L, gen_to_be_invoked.frameCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frameRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelAspectRatioNumerator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.pixelAspectRatioNumerator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelAspectRatioDenominator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.pixelAspectRatioDenominator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sRGB(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sRGB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_audioTrackCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoClip gen_to_be_invoked = (UnityEngine.Video.VideoClip)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.audioTrackCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UnityEngine_Video_VideoPlayerWrap.cs b/Assets/XLua/Gen/UnityEngine_Video_VideoPlayerWrap.cs deleted file mode 100644 index a87d6cd0d..000000000 --- a/Assets/XLua/Gen/UnityEngine_Video_VideoPlayerWrap.cs +++ /dev/null @@ -1,1883 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnityEngineVideoVideoPlayerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnityEngine.Video.VideoPlayer); - Utils.BeginObjectRegister(type, L, translator, 0, 24, 43, 24); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Prepare", _m_Prepare); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "StepForward", _m_StepForward); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAudioLanguageCode", _m_GetAudioLanguageCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAudioChannelCount", _m_GetAudioChannelCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAudioSampleRate", _m_GetAudioSampleRate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnableAudioTrack", _m_EnableAudioTrack); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAudioTrackEnabled", _m_IsAudioTrackEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDirectAudioVolume", _m_GetDirectAudioVolume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDirectAudioVolume", _m_SetDirectAudioVolume); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDirectAudioMute", _m_GetDirectAudioMute); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetDirectAudioMute", _m_SetDirectAudioMute); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTargetAudioSource", _m_GetTargetAudioSource); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetTargetAudioSource", _m_SetTargetAudioSource); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "prepareCompleted", _e_prepareCompleted); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loopPointReached", _e_loopPointReached); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "started", _e_started); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "frameDropped", _e_frameDropped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "errorReceived", _e_errorReceived); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "seekCompleted", _e_seekCompleted); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "clockResyncOccurred", _e_clockResyncOccurred); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "frameReady", _e_frameReady); - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "source", _g_get_source); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "url", _g_get_url); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clip", _g_get_clip); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "renderMode", _g_get_renderMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetCamera", _g_get_targetCamera); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetTexture", _g_get_targetTexture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetMaterialRenderer", _g_get_targetMaterialRenderer); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetMaterialProperty", _g_get_targetMaterialProperty); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "aspectRatio", _g_get_aspectRatio); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetCameraAlpha", _g_get_targetCameraAlpha); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "targetCamera3DLayout", _g_get_targetCamera3DLayout); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "texture", _g_get_texture); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPrepared", _g_get_isPrepared); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "waitForFirstFrame", _g_get_waitForFirstFrame); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playOnAwake", _g_get_playOnAwake); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlaying", _g_get_isPlaying); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPaused", _g_get_isPaused); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canSetTime", _g_get_canSetTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frame", _g_get_frame); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clockTime", _g_get_clockTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canStep", _g_get_canStep); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canSetPlaybackSpeed", _g_get_canSetPlaybackSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playbackSpeed", _g_get_playbackSpeed); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "isLooping", _g_get_isLooping); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canSetTimeSource", _g_get_canSetTimeSource); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeSource", _g_get_timeSource); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "timeReference", _g_get_timeReference); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "externalReferenceTime", _g_get_externalReferenceTime); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canSetSkipOnDrop", _g_get_canSetSkipOnDrop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skipOnDrop", _g_get_skipOnDrop); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameCount", _g_get_frameCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "frameRate", _g_get_frameRate); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelAspectRatioNumerator", _g_get_pixelAspectRatioNumerator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "pixelAspectRatioDenominator", _g_get_pixelAspectRatioDenominator); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "audioTrackCount", _g_get_audioTrackCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "controlledAudioTrackCount", _g_get_controlledAudioTrackCount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "audioOutputMode", _g_get_audioOutputMode); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "canSetDirectAudioVolume", _g_get_canSetDirectAudioVolume); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sendFrameReadyEvents", _g_get_sendFrameReadyEvents); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "source", _s_set_source); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "url", _s_set_url); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clip", _s_set_clip); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "renderMode", _s_set_renderMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetCamera", _s_set_targetCamera); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetTexture", _s_set_targetTexture); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetMaterialRenderer", _s_set_targetMaterialRenderer); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetMaterialProperty", _s_set_targetMaterialProperty); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "aspectRatio", _s_set_aspectRatio); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetCameraAlpha", _s_set_targetCameraAlpha); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "targetCamera3DLayout", _s_set_targetCamera3DLayout); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "waitForFirstFrame", _s_set_waitForFirstFrame); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playOnAwake", _s_set_playOnAwake); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "time", _s_set_time); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "frame", _s_set_frame); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playbackSpeed", _s_set_playbackSpeed); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "isLooping", _s_set_isLooping); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeSource", _s_set_timeSource); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "timeReference", _s_set_timeReference); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "externalReferenceTime", _s_set_externalReferenceTime); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skipOnDrop", _s_set_skipOnDrop); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "controlledAudioTrackCount", _s_set_controlledAudioTrackCount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "audioOutputMode", _s_set_audioOutputMode); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sendFrameReadyEvents", _s_set_sendFrameReadyEvents); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "controlledAudioTrackMaxCount", _g_get_controlledAudioTrackMaxCount); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnityEngine.Video.VideoPlayer(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Prepare(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Prepare( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Play(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Play( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Pause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Pause( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Stop(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.Stop( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_StepForward(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.StepForward( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAudioLanguageCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAudioLanguageCode( _trackIndex ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAudioChannelCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAudioChannelCount( _trackIndex ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetAudioSampleRate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetAudioSampleRate( _trackIndex ); - LuaAPI.xlua_pushuint(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_EnableAudioTrack(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - bool _enabled = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.EnableAudioTrack( _trackIndex, _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_IsAudioTrackEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.IsAudioTrackEnabled( _trackIndex ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDirectAudioVolume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetDirectAudioVolume( _trackIndex ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDirectAudioVolume(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - float _volume = (float)LuaAPI.lua_tonumber(L, 3); - - gen_to_be_invoked.SetDirectAudioVolume( _trackIndex, _volume ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetDirectAudioMute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetDirectAudioMute( _trackIndex ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetDirectAudioMute(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - bool _mute = LuaAPI.lua_toboolean(L, 3); - - gen_to_be_invoked.SetDirectAudioMute( _trackIndex, _mute ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetTargetAudioSource(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.GetTargetAudioSource( _trackIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTargetAudioSource(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - - - - { - ushort _trackIndex = (ushort)LuaAPI.xlua_tointeger(L, 2); - UnityEngine.AudioSource _source = (UnityEngine.AudioSource)translator.GetObject(L, 3, typeof(UnityEngine.AudioSource)); - - gen_to_be_invoked.SetTargetAudioSource( _trackIndex, _source ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_source(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.source); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_url(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.url); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.clip); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.renderMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetCamera(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetCamera); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetTexture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetMaterialRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetMaterialRenderer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetMaterialProperty(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.targetMaterialProperty); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.aspectRatio); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetCameraAlpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.targetCameraAlpha); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_targetCamera3DLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.targetCamera3DLayout); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_texture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.texture); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPrepared(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPrepared); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_waitForFirstFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.waitForFirstFrame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playOnAwake); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPlaying(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPlaying); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isPaused(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isPaused); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canSetTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canSetTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.time); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.frame); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clockTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.clockTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canStep(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canStep); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canSetPlaybackSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canSetPlaybackSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playbackSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.playbackSpeed); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_isLooping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isLooping); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canSetTimeSource(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canSetTimeSource); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeSource(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.timeSource); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_timeReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.timeReference); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_externalReferenceTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.externalReferenceTime); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canSetSkipOnDrop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canSetSkipOnDrop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skipOnDrop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.skipOnDrop); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushuint64(L, gen_to_be_invoked.frameCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_frameRate(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.frameRate); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_length(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_width(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.width); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_height(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.height); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelAspectRatioNumerator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.pixelAspectRatioNumerator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_pixelAspectRatioDenominator(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushuint(L, gen_to_be_invoked.pixelAspectRatioDenominator); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_audioTrackCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.audioTrackCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_controlledAudioTrackMaxCount(RealStatePtr L) - { - try { - - LuaAPI.xlua_pushinteger(L, UnityEngine.Video.VideoPlayer.controlledAudioTrackMaxCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_controlledAudioTrackCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.controlledAudioTrackCount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_audioOutputMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.audioOutputMode); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_canSetDirectAudioVolume(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.canSetDirectAudioVolume); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sendFrameReadyEvents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sendFrameReadyEvents); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_source(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoSource gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.source = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_url(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.url = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clip(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clip = (UnityEngine.Video.VideoClip)translator.GetObject(L, 2, typeof(UnityEngine.Video.VideoClip)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_renderMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoRenderMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.renderMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetCamera(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetCamera = (UnityEngine.Camera)translator.GetObject(L, 2, typeof(UnityEngine.Camera)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetTexture(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetTexture = (UnityEngine.RenderTexture)translator.GetObject(L, 2, typeof(UnityEngine.RenderTexture)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetMaterialRenderer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetMaterialRenderer = (UnityEngine.Renderer)translator.GetObject(L, 2, typeof(UnityEngine.Renderer)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetMaterialProperty(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetMaterialProperty = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_aspectRatio(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoAspectRatio gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.aspectRatio = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetCameraAlpha(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.targetCameraAlpha = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_targetCamera3DLayout(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.Video3DLayout gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.targetCamera3DLayout = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_waitForFirstFrame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.waitForFirstFrame = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playOnAwake(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playOnAwake = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_time(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.time = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_frame(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.frame = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playbackSpeed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playbackSpeed = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_isLooping(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.isLooping = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeSource(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoTimeSource gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.timeSource = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_timeReference(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoTimeReference gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.timeReference = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_externalReferenceTime(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.externalReferenceTime = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skipOnDrop(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skipOnDrop = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_controlledAudioTrackCount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.controlledAudioTrackCount = (ushort)LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_audioOutputMode(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoAudioOutputMode gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.audioOutputMode = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sendFrameReadyEvents(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sendFrameReadyEvents = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_prepareCompleted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.EventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.EventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.prepareCompleted += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.prepareCompleted -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.prepareCompleted!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_loopPointReached(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.EventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.EventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.loopPointReached += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.loopPointReached -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.loopPointReached!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_started(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.EventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.EventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.started += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.started -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.started!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_frameDropped(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.EventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.EventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.frameDropped += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.frameDropped -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.frameDropped!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_errorReceived(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.ErrorEventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.ErrorEventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.errorReceived += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.errorReceived -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.errorReceived!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_seekCompleted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.EventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.EventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.seekCompleted += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.seekCompleted -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.seekCompleted!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_clockResyncOccurred(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.TimeEventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.TimeEventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.clockResyncOccurred += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.clockResyncOccurred -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.clockResyncOccurred!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_frameReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - UnityEngine.Video.VideoPlayer gen_to_be_invoked = (UnityEngine.Video.VideoPlayer)translator.FastGetCSObj(L, 1); - UnityEngine.Video.VideoPlayer.FrameReadyEventHandler gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need UnityEngine.Video.VideoPlayer.FrameReadyEventHandler!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.frameReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.frameReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Video.VideoPlayer.frameReady!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs b/Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs deleted file mode 100644 index 3bc3225db..000000000 --- a/Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs +++ /dev/null @@ -1,1535 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UnsupportedPlatformAgentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UnsupportedPlatformAgent); - Utils.BeginObjectRegister(type, L, translator, 0, 47, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "start", _m_start); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "shouldTrackNetworkState", _m_shouldTrackNetworkState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDynamicUserId", _m_setDynamicUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdaptersDebug", _m_setAdaptersDebug); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setMetaData", _m_setMetaData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getConversionValue", _m_getConversionValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setManualLoadRewardedVideo", _m_setManualLoadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setNetworkData", _m_setNetworkData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPauseGame", _m_SetPauseGame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setUserId", _m_setUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "init", _m_init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "initISDemandOnly", _m_initISDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadRewardedVideo", _m_loadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showRewardedVideo", _m_showRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoAvailable", _m_isRewardedVideoAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoPlacementCapped", _m_isRewardedVideoPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getPlacementInfo", _m_getPlacementInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRewardedVideoServerParams", _m_setRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "clearRewardedVideoServerParams", _m_clearRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showISDemandOnlyRewardedVideo", _m_showISDemandOnlyRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadISDemandOnlyRewardedVideo", _m_loadISDemandOnlyRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isISDemandOnlyRewardedVideoAvailable", _m_isISDemandOnlyRewardedVideoAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadInterstitial", _m_loadInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showInterstitial", _m_showInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialReady", _m_isInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialPlacementCapped", _m_isInterstitialPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadISDemandOnlyInterstitial", _m_loadISDemandOnlyInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showISDemandOnlyInterstitial", _m_showISDemandOnlyInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isISDemandOnlyInterstitialReady", _m_isISDemandOnlyInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showOfferwall", _m_showOfferwall); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getOfferwallCredits", _m_getOfferwallCredits); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isOfferwallAvailable", _m_isOfferwallAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadBanner", _m_loadBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "destroyBanner", _m_destroyBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "displayBanner", _m_displayBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "hideBanner", _m_hideBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isBannerPlacementCapped", _m_isBannerPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSegment", _m_setSegment); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setConsent", _m_setConsent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadConsentViewWithType", _m_loadConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showConsentViewWithType", _m_showConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdRevenueData", _m_setAdRevenueData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "launchTestSuite", _m_launchTestSuite); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UnsupportedPlatformAgent(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UnsupportedPlatformAgent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetWaterfallConfiguration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - WaterfallConfiguration _waterfallConfiguration = (WaterfallConfiguration)translator.GetObject(L, 2, typeof(WaterfallConfiguration)); - AdFormat _adFormat;translator.Get(L, 3, out _adFormat); - - gen_to_be_invoked.SetWaterfallConfiguration( _waterfallConfiguration, _adFormat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_start(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.start( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onApplicationPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.onApplicationPause( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAdvertiserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getAdvertiserId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_validateIntegration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.validateIntegration( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_shouldTrackNetworkState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _track = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.shouldTrackNetworkState( _track ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDynamicUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _dynamicUserId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.setDynamicUserId( _dynamicUserId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdaptersDebug(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setAdaptersDebug( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setMetaData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setMetaData( _key, _value ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _key = LuaAPI.lua_tostring(L, 2); - string[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.setMetaData( _key, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnsupportedPlatformAgent.setMetaData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getConversionValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getConversionValue( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setManualLoadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _isOn = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setManualLoadRewardedVideo( _isOn ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setNetworkData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _networkKey = LuaAPI.lua_tostring(L, 2); - string _networkDataJson = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setNetworkData( _networkKey, _networkDataJson ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPauseGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetPauseGame( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _userId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setUserId( _userId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.init( _appKey ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - string[] _adUnits = translator.GetParams(L, 3); - - gen_to_be_invoked.init( _appKey, _adUnits ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnsupportedPlatformAgent.init!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_initISDemandOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _appKey = LuaAPI.lua_tostring(L, 2); - string[] _adUnits = translator.GetParams(L, 3); - - gen_to_be_invoked.initISDemandOnly( _appKey, _adUnits ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadRewardedVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showRewardedVideo( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showRewardedVideo( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnsupportedPlatformAgent.showRewardedVideo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isRewardedVideoAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isRewardedVideoAvailable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isRewardedVideoPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isRewardedVideoPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getPlacementInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.getPlacementInfo( _placementName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.Dictionary _parameters = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setRewardedVideoServerParams( _parameters ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_clearRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.clearRewardedVideoServerParams( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showISDemandOnlyRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showISDemandOnlyRewardedVideo( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadISDemandOnlyRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadISDemandOnlyRewardedVideo( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isISDemandOnlyRewardedVideoAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isISDemandOnlyRewardedVideoAvailable( _instanceId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadInterstitial( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showInterstitial( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showInterstitial( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnsupportedPlatformAgent.showInterstitial!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isInterstitialReady( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isInterstitialPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isInterstitialPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadISDemandOnlyInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadISDemandOnlyInterstitial( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showISDemandOnlyInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showISDemandOnlyInterstitial( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isISDemandOnlyInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isISDemandOnlyInterstitialReady( _instanceId ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showOfferwall(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showOfferwall( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showOfferwall( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnsupportedPlatformAgent.showOfferwall!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getOfferwallCredits(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.getOfferwallCredits( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isOfferwallAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isOfferwallAvailable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.loadBanner( _size, _position ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - string _placementName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.loadBanner( _size, _position, _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to UnsupportedPlatformAgent.loadBanner!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_destroyBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.destroyBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_displayBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.displayBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_hideBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.hideBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isBannerPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isBannerPlacementCapped( _placementName ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSegment(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - IronSourceSegment _segment = (IronSourceSegment)translator.GetObject(L, 2, typeof(IronSourceSegment)); - - gen_to_be_invoked.setSegment( _segment ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setConsent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _consent = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setConsent( _consent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdRevenueData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - string _dataSource = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _impressionData = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setAdRevenueData( _dataSource, _impressionData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_launchTestSuite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.launchTestSuite( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/UsersRequestWrap.cs b/Assets/XLua/Gen/UsersRequestWrap.cs deleted file mode 100644 index 54b6d3eb6..000000000 --- a/Assets/XLua/Gen/UsersRequestWrap.cs +++ /dev/null @@ -1,282 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class UsersRequestWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(UsersRequest); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Users", _m_Users); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersTokenLogin", _m_UsersTokenLogin); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersPost", _m_UsersPost); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersGet", _m_UsersGet); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersPut", _m_UsersPut); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersDel", _m_UsersDel); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new UsersRequest(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to UsersRequest constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Users(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UsersRequest gen_to_be_invoked = (UsersRequest)translator.FastGetCSObj(L, 1); - - - - { - string _body = LuaAPI.lua_tostring(L, 2); - System.Action _complete = translator.GetDelegate>(L, 3); - - gen_to_be_invoked.Users( _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersTokenLogin(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UsersRequest gen_to_be_invoked = (UsersRequest)translator.FastGetCSObj(L, 1); - - - - { - string _token = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersTokenLogin( _token, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersPost(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UsersRequest gen_to_be_invoked = (UsersRequest)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersPost( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersGet(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UsersRequest gen_to_be_invoked = (UsersRequest)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersGet( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersPut(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UsersRequest gen_to_be_invoked = (UsersRequest)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersPut( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_UsersDel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - UsersRequest gen_to_be_invoked = (UsersRequest)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _body = LuaAPI.lua_tostring(L, 3); - System.Action _complete = translator.GetDelegate>(L, 4); - - gen_to_be_invoked.UsersDel( _key, _body, _complete ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Instance(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - translator.Push(L, UsersRequest.Instance); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/WaterfallConfigurationWrap.cs b/Assets/XLua/Gen/WaterfallConfigurationWrap.cs deleted file mode 100644 index d131fdee9..000000000 --- a/Assets/XLua/Gen/WaterfallConfigurationWrap.cs +++ /dev/null @@ -1,151 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class WaterfallConfigurationWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(WaterfallConfiguration); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Ceiling", _g_get_Ceiling); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Floor", _g_get_Floor); - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Builder", _m_Builder_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Empty", _m_Empty_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "WaterfallConfiguration does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Builder_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = WaterfallConfiguration.Builder( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Empty_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = WaterfallConfiguration.Empty( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Ceiling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - WaterfallConfiguration gen_to_be_invoked = (WaterfallConfiguration)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Ceiling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Floor(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - WaterfallConfiguration gen_to_be_invoked = (WaterfallConfiguration)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Floor); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/WaterfallConfiguration_WaterfallConfigurationBuilderWrap.cs b/Assets/XLua/Gen/WaterfallConfiguration_WaterfallConfigurationBuilderWrap.cs deleted file mode 100644 index 333a2eab4..000000000 --- a/Assets/XLua/Gen/WaterfallConfiguration_WaterfallConfigurationBuilderWrap.cs +++ /dev/null @@ -1,156 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class WaterfallConfigurationWaterfallConfigurationBuilderWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(WaterfallConfiguration.WaterfallConfigurationBuilder); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCeiling", _m_SetCeiling); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloor", _m_SetFloor); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Build", _m_Build); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "WaterfallConfiguration.WaterfallConfigurationBuilder does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetCeiling(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1); - - - - { - double _ceiling = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetCeiling( _ceiling ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetFloor(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1); - - - - { - double _floor = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = gen_to_be_invoked.SetFloor( _floor ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Build(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.Build( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/WrapPusher.cs b/Assets/XLua/Gen/WrapPusher.cs deleted file mode 100644 index 3d38670dc..000000000 --- a/Assets/XLua/Gen/WrapPusher.cs +++ /dev/null @@ -1,8546 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using System; - - -namespace XLua -{ - public partial class ObjectTranslator - { - - class IniterAdderUnityEngineVector2 - { - static IniterAdderUnityEngineVector2() - { - LuaEnv.AddIniter(Init); - } - - static void Init(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineVector2, translator.Get, translator.UpdateUnityEngineVector2); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineVector3, translator.Get, translator.UpdateUnityEngineVector3); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineVector4, translator.Get, translator.UpdateUnityEngineVector4); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineColor, translator.Get, translator.UpdateUnityEngineColor); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineQuaternion, translator.Get, translator.UpdateUnityEngineQuaternion); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRay, translator.Get, translator.UpdateUnityEngineRay); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineBounds, translator.Get, translator.UpdateUnityEngineBounds); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRay2D, translator.Get, translator.UpdateUnityEngineRay2D); - translator.RegisterPushAndGetAndUpdate(translator.PushAdFormat, translator.Get, translator.UpdateAdFormat); - translator.RegisterPushAndGetAndUpdate(translator.PushIronSourceBannerPosition, translator.Get, translator.UpdateIronSourceBannerPosition); - translator.RegisterPushAndGetAndUpdate(translator.PushUIImageSheetAnimationAnimationType, translator.Get, translator.UpdateUIImageSheetAnimationAnimationType); - translator.RegisterPushAndGetAndUpdate(translator.PushUIImageSheetAnimationTimeType, translator.Get, translator.UpdateUIImageSheetAnimationTimeType); - translator.RegisterPushAndGetAndUpdate(translator.PushUIImageSheetAnimationStartFrameType, translator.Get, translator.UpdateUIImageSheetAnimationStartFrameType); - translator.RegisterPushAndGetAndUpdate(translator.PushSystemReflectionBindingFlags, translator.Get, translator.UpdateSystemReflectionBindingFlags); - translator.RegisterPushAndGetAndUpdate(translator.PushSystemDayOfWeek, translator.Get, translator.UpdateSystemDayOfWeek); - translator.RegisterPushAndGetAndUpdate(translator.PushSystemNetNetworkInformationIPStatus, translator.Get, translator.UpdateSystemNetNetworkInformationIPStatus); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraGateFitMode, translator.Get, translator.UpdateUnityEngineCameraGateFitMode); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraStereoscopicEye, translator.Get, translator.UpdateUnityEngineCameraStereoscopicEye); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraMonoOrStereoscopicEye, translator.Get, translator.UpdateUnityEngineCameraMonoOrStereoscopicEye); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraFieldOfViewAxis, translator.Get, translator.UpdateUnityEngineCameraFieldOfViewAxis); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraRenderRequestMode, translator.Get, translator.UpdateUnityEngineCameraRenderRequestMode); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraRenderRequestOutputSpace, translator.Get, translator.UpdateUnityEngineCameraRenderRequestOutputSpace); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineCameraSceneViewFilterMode, translator.Get, translator.UpdateUnityEngineCameraSceneViewFilterMode); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderingLightShadowResolution, translator.Get, translator.UpdateUnityEngineRenderingLightShadowResolution); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderTextureFormat, translator.Get, translator.UpdateUnityEngineRenderTextureFormat); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderTextureReadWrite, translator.Get, translator.UpdateUnityEngineRenderTextureReadWrite); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRigidbodyConstraints, translator.Get, translator.UpdateUnityEngineRigidbodyConstraints); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineTransparencySortMode, translator.Get, translator.UpdateUnityEngineTransparencySortMode); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRectTransformAxis, translator.Get, translator.UpdateUnityEngineRectTransformAxis); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRectTransformEdge, translator.Get, translator.UpdateUnityEngineRectTransformEdge); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineAnimatorCullingMode, translator.Get, translator.UpdateUnityEngineAnimatorCullingMode); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineSystemLanguage, translator.Get, translator.UpdateUnityEngineSystemLanguage); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderingShadowCastingMode, translator.Get, translator.UpdateUnityEngineRenderingShadowCastingMode); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineTexture2DEXRFlags, translator.Get, translator.UpdateUnityEngineTexture2DEXRFlags); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineKeyCode, translator.Get, translator.UpdateUnityEngineKeyCode); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineNetworkReachability, translator.Get, translator.UpdateUnityEngineNetworkReachability); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRuntimePlatform, translator.Get, translator.UpdateUnityEngineRuntimePlatform); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRenderingCompareFunction, translator.Get, translator.UpdateUnityEngineRenderingCompareFunction); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineTextAnchor, translator.Get, translator.UpdateUnityEngineTextAnchor); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineBatteryStatus, translator.Get, translator.UpdateUnityEngineBatteryStatus); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGraphicRaycasterBlockingObjects, translator.Get, translator.UpdateUnityEngineUIGraphicRaycasterBlockingObjects); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageType, translator.Get, translator.UpdateUnityEngineUIImageType); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageFillMethod, translator.Get, translator.UpdateUnityEngineUIImageFillMethod); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOriginHorizontal, translator.Get, translator.UpdateUnityEngineUIImageOriginHorizontal); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOriginVertical, translator.Get, translator.UpdateUnityEngineUIImageOriginVertical); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOrigin90, translator.Get, translator.UpdateUnityEngineUIImageOrigin90); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOrigin180, translator.Get, translator.UpdateUnityEngineUIImageOrigin180); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIImageOrigin360, translator.Get, translator.UpdateUnityEngineUIImageOrigin360); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldContentType, translator.Get, translator.UpdateUnityEngineUIInputFieldContentType); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldInputType, translator.Get, translator.UpdateUnityEngineUIInputFieldInputType); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldCharacterValidation, translator.Get, translator.UpdateUnityEngineUIInputFieldCharacterValidation); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIInputFieldLineType, translator.Get, translator.UpdateUnityEngineUIInputFieldLineType); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIScrollRectMovementType, translator.Get, translator.UpdateUnityEngineUIScrollRectMovementType); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIScrollRectScrollbarVisibility, translator.Get, translator.UpdateUnityEngineUIScrollRectScrollbarVisibility); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUISliderDirection, translator.Get, translator.UpdateUnityEngineUISliderDirection); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIToggleToggleTransition, translator.Get, translator.UpdateUnityEngineUIToggleToggleTransition); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGridLayoutGroupCorner, translator.Get, translator.UpdateUnityEngineUIGridLayoutGroupCorner); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGridLayoutGroupAxis, translator.Get, translator.UpdateUnityEngineUIGridLayoutGroupAxis); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineUIGridLayoutGroupConstraint, translator.Get, translator.UpdateUnityEngineUIGridLayoutGroupConstraint); - translator.RegisterPushAndGetAndUpdate(translator.PushSpineUnityBoneFollowerAxisOrientation, translator.Get, translator.UpdateSpineUnityBoneFollowerAxisOrientation); - translator.RegisterPushAndGetAndUpdate(translator.PushSpineUnitySkeletonGraphicLayoutMode, translator.Get, translator.UpdateSpineUnitySkeletonGraphicLayoutMode); - translator.RegisterPushAndGetAndUpdate(translator.PushTMProTextAlignmentOptions, translator.Get, translator.UpdateTMProTextAlignmentOptions); - translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldContentType, translator.Get, translator.UpdateTMProTMP_InputFieldContentType); - translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldInputType, translator.Get, translator.UpdateTMProTMP_InputFieldInputType); - translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldCharacterValidation, translator.Get, translator.UpdateTMProTMP_InputFieldCharacterValidation); - translator.RegisterPushAndGetAndUpdate(translator.PushTMProTMP_InputFieldLineType, translator.Get, translator.UpdateTMProTMP_InputFieldLineType); - translator.RegisterPushAndGetAndUpdate(translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone, translator.Get, translator.UpdateThinkingAnalyticsThinkingAnalyticsAPITATimeZone); - translator.RegisterPushAndGetAndUpdate(translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode, translator.Get, translator.UpdateThinkingAnalyticsThinkingAnalyticsAPITAMode); - translator.RegisterPushAndGetAndUpdate(translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType, translator.Get, translator.UpdateThinkingAnalyticsThinkingAnalyticsAPINetworkType); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningAutoPlay, translator.Get, translator.UpdateDGTweeningAutoPlay); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningAxisConstraint, translator.Get, translator.UpdateDGTweeningAxisConstraint); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningEase, translator.Get, translator.UpdateDGTweeningEase); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningLogBehaviour, translator.Get, translator.UpdateDGTweeningLogBehaviour); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningLoopType, translator.Get, translator.UpdateDGTweeningLoopType); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningPathMode, translator.Get, translator.UpdateDGTweeningPathMode); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningPathType, translator.Get, translator.UpdateDGTweeningPathType); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningRotateMode, translator.Get, translator.UpdateDGTweeningRotateMode); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningScrambleMode, translator.Get, translator.UpdateDGTweeningScrambleMode); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningTweenType, translator.Get, translator.UpdateDGTweeningTweenType); - translator.RegisterPushAndGetAndUpdate(translator.PushDGTweeningUpdateType, translator.Get, translator.UpdateDGTweeningUpdateType); - translator.RegisterPushAndGetAndUpdate(translator.PushHttpRequestState, translator.Get, translator.UpdateHttpRequestState); - translator.RegisterPushAndGetAndUpdate(translator.PushUnityEnginePurchasingProductType, translator.Get, translator.UpdateUnityEnginePurchasingProductType); - translator.RegisterPushAndGetAndUpdate(translator.PushBFBFSliderFillDirection, translator.Get, translator.UpdateBFBFSliderFillDirection); - translator.RegisterPushAndGetAndUpdate(translator.PushBFScrollRectBaseOldMovementType, translator.Get, translator.UpdateBFScrollRectBaseOldMovementType); - translator.RegisterPushAndGetAndUpdate(translator.PushBFScrollRectBaseOldScrollbarVisibility, translator.Get, translator.UpdateBFScrollRectBaseOldScrollbarVisibility); - translator.RegisterPushAndGetAndUpdate(translator.PushBFNetServiceType, translator.Get, translator.UpdateBFNetServiceType); - translator.RegisterPushAndGetAndUpdate(translator.PushBFNetIncomingMessageType, translator.Get, translator.UpdateBFNetIncomingMessageType); - translator.RegisterPushAndGetAndUpdate(translator.PushBFTouchEventType, translator.Get, translator.UpdateBFTouchEventType); - translator.RegisterPushAndGetAndUpdate(translator.PushBFSelectEventType, translator.Get, translator.UpdateBFSelectEventType); - - } - } - - static IniterAdderUnityEngineVector2 s_IniterAdderUnityEngineVector2_dumb_obj = new IniterAdderUnityEngineVector2(); - static IniterAdderUnityEngineVector2 IniterAdderUnityEngineVector2_dumb_obj {get{return s_IniterAdderUnityEngineVector2_dumb_obj;}} - - - int UnityEngineVector2_TypeID = -1; - public void PushUnityEngineVector2(RealStatePtr L, UnityEngine.Vector2 val) - { - if (UnityEngineVector2_TypeID == -1) - { - bool is_first; - UnityEngineVector2_TypeID = getTypeId(L, typeof(UnityEngine.Vector2), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 8, UnityEngineVector2_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Vector2 ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Vector2 val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector2_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Vector2"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Vector2"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Vector2)objectCasters.GetCaster(typeof(UnityEngine.Vector2))(L, index, null); - } - } - - public void UpdateUnityEngineVector2(RealStatePtr L, int index, UnityEngine.Vector2 val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector2_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Vector2"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Vector2 ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineVector3_TypeID = -1; - public void PushUnityEngineVector3(RealStatePtr L, UnityEngine.Vector3 val) - { - if (UnityEngineVector3_TypeID == -1) - { - bool is_first; - UnityEngineVector3_TypeID = getTypeId(L, typeof(UnityEngine.Vector3), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 12, UnityEngineVector3_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Vector3 ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Vector3 val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector3_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Vector3"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Vector3"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Vector3)objectCasters.GetCaster(typeof(UnityEngine.Vector3))(L, index, null); - } - } - - public void UpdateUnityEngineVector3(RealStatePtr L, int index, UnityEngine.Vector3 val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector3_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Vector3"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Vector3 ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineVector4_TypeID = -1; - public void PushUnityEngineVector4(RealStatePtr L, UnityEngine.Vector4 val) - { - if (UnityEngineVector4_TypeID == -1) - { - bool is_first; - UnityEngineVector4_TypeID = getTypeId(L, typeof(UnityEngine.Vector4), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineVector4_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Vector4 ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Vector4 val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector4_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Vector4"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Vector4"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Vector4)objectCasters.GetCaster(typeof(UnityEngine.Vector4))(L, index, null); - } - } - - public void UpdateUnityEngineVector4(RealStatePtr L, int index, UnityEngine.Vector4 val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineVector4_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Vector4"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Vector4 ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineColor_TypeID = -1; - public void PushUnityEngineColor(RealStatePtr L, UnityEngine.Color val) - { - if (UnityEngineColor_TypeID == -1) - { - bool is_first; - UnityEngineColor_TypeID = getTypeId(L, typeof(UnityEngine.Color), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineColor_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Color ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Color val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineColor_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Color"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Color"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Color)objectCasters.GetCaster(typeof(UnityEngine.Color))(L, index, null); - } - } - - public void UpdateUnityEngineColor(RealStatePtr L, int index, UnityEngine.Color val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineColor_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Color"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Color ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineQuaternion_TypeID = -1; - public void PushUnityEngineQuaternion(RealStatePtr L, UnityEngine.Quaternion val) - { - if (UnityEngineQuaternion_TypeID == -1) - { - bool is_first; - UnityEngineQuaternion_TypeID = getTypeId(L, typeof(UnityEngine.Quaternion), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineQuaternion_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Quaternion ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Quaternion val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineQuaternion_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Quaternion"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Quaternion"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Quaternion)objectCasters.GetCaster(typeof(UnityEngine.Quaternion))(L, index, null); - } - } - - public void UpdateUnityEngineQuaternion(RealStatePtr L, int index, UnityEngine.Quaternion val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineQuaternion_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Quaternion"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Quaternion ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRay_TypeID = -1; - public void PushUnityEngineRay(RealStatePtr L, UnityEngine.Ray val) - { - if (UnityEngineRay_TypeID == -1) - { - bool is_first; - UnityEngineRay_TypeID = getTypeId(L, typeof(UnityEngine.Ray), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 24, UnityEngineRay_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Ray ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Ray val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Ray"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Ray"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Ray)objectCasters.GetCaster(typeof(UnityEngine.Ray))(L, index, null); - } - } - - public void UpdateUnityEngineRay(RealStatePtr L, int index, UnityEngine.Ray val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Ray"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Ray ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineBounds_TypeID = -1; - public void PushUnityEngineBounds(RealStatePtr L, UnityEngine.Bounds val) - { - if (UnityEngineBounds_TypeID == -1) - { - bool is_first; - UnityEngineBounds_TypeID = getTypeId(L, typeof(UnityEngine.Bounds), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 24, UnityEngineBounds_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Bounds ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Bounds val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBounds_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Bounds"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Bounds"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Bounds)objectCasters.GetCaster(typeof(UnityEngine.Bounds))(L, index, null); - } - } - - public void UpdateUnityEngineBounds(RealStatePtr L, int index, UnityEngine.Bounds val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBounds_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Bounds"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Bounds ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRay2D_TypeID = -1; - public void PushUnityEngineRay2D(RealStatePtr L, UnityEngine.Ray2D val) - { - if (UnityEngineRay2D_TypeID == -1) - { - bool is_first; - UnityEngineRay2D_TypeID = getTypeId(L, typeof(UnityEngine.Ray2D), out is_first); - - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 16, UnityEngineRay2D_TypeID); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail fail for UnityEngine.Ray2D ,value="+val); - } - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Ray2D val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay2D_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Ray2D"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index);if (!CopyByValue.UnPack(buff, 0, out val)) - { - throw new Exception("unpack fail for UnityEngine.Ray2D"); - } - } - else if (type ==LuaTypes.LUA_TTABLE) - { - CopyByValue.UnPack(this, L, index, out val); - } - else - { - val = (UnityEngine.Ray2D)objectCasters.GetCaster(typeof(UnityEngine.Ray2D))(L, index, null); - } - } - - public void UpdateUnityEngineRay2D(RealStatePtr L, int index, UnityEngine.Ray2D val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRay2D_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Ray2D"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, val)) - { - throw new Exception("pack fail for UnityEngine.Ray2D ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int AdFormat_TypeID = -1; - int AdFormat_EnumRef = -1; - - public void PushAdFormat(RealStatePtr L, AdFormat val) - { - if (AdFormat_TypeID == -1) - { - bool is_first; - AdFormat_TypeID = getTypeId(L, typeof(AdFormat), out is_first); - - if (AdFormat_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(AdFormat)); - AdFormat_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, AdFormat_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, AdFormat_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for AdFormat ,value="+val); - } - - LuaAPI.lua_getref(L, AdFormat_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out AdFormat val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID) - { - throw new Exception("invalid userdata for AdFormat"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for AdFormat"); - } - val = (AdFormat)e; - - } - else - { - val = (AdFormat)objectCasters.GetCaster(typeof(AdFormat))(L, index, null); - } - } - - public void UpdateAdFormat(RealStatePtr L, int index, AdFormat val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID) - { - throw new Exception("invalid userdata for AdFormat"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for AdFormat ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int IronSourceBannerPosition_TypeID = -1; - int IronSourceBannerPosition_EnumRef = -1; - - public void PushIronSourceBannerPosition(RealStatePtr L, IronSourceBannerPosition val) - { - if (IronSourceBannerPosition_TypeID == -1) - { - bool is_first; - IronSourceBannerPosition_TypeID = getTypeId(L, typeof(IronSourceBannerPosition), out is_first); - - if (IronSourceBannerPosition_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(IronSourceBannerPosition)); - IronSourceBannerPosition_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, IronSourceBannerPosition_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, IronSourceBannerPosition_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for IronSourceBannerPosition ,value="+val); - } - - LuaAPI.lua_getref(L, IronSourceBannerPosition_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out IronSourceBannerPosition val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != IronSourceBannerPosition_TypeID) - { - throw new Exception("invalid userdata for IronSourceBannerPosition"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for IronSourceBannerPosition"); - } - val = (IronSourceBannerPosition)e; - - } - else - { - val = (IronSourceBannerPosition)objectCasters.GetCaster(typeof(IronSourceBannerPosition))(L, index, null); - } - } - - public void UpdateIronSourceBannerPosition(RealStatePtr L, int index, IronSourceBannerPosition val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != IronSourceBannerPosition_TypeID) - { - throw new Exception("invalid userdata for IronSourceBannerPosition"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for IronSourceBannerPosition ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UIImageSheetAnimationAnimationType_TypeID = -1; - int UIImageSheetAnimationAnimationType_EnumRef = -1; - - public void PushUIImageSheetAnimationAnimationType(RealStatePtr L, UIImageSheetAnimation.AnimationType val) - { - if (UIImageSheetAnimationAnimationType_TypeID == -1) - { - bool is_first; - UIImageSheetAnimationAnimationType_TypeID = getTypeId(L, typeof(UIImageSheetAnimation.AnimationType), out is_first); - - if (UIImageSheetAnimationAnimationType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UIImageSheetAnimation.AnimationType)); - UIImageSheetAnimationAnimationType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIImageSheetAnimationAnimationType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIImageSheetAnimationAnimationType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UIImageSheetAnimation.AnimationType ,value="+val); - } - - LuaAPI.lua_getref(L, UIImageSheetAnimationAnimationType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UIImageSheetAnimation.AnimationType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationAnimationType_TypeID) - { - throw new Exception("invalid userdata for UIImageSheetAnimation.AnimationType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UIImageSheetAnimation.AnimationType"); - } - val = (UIImageSheetAnimation.AnimationType)e; - - } - else - { - val = (UIImageSheetAnimation.AnimationType)objectCasters.GetCaster(typeof(UIImageSheetAnimation.AnimationType))(L, index, null); - } - } - - public void UpdateUIImageSheetAnimationAnimationType(RealStatePtr L, int index, UIImageSheetAnimation.AnimationType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationAnimationType_TypeID) - { - throw new Exception("invalid userdata for UIImageSheetAnimation.AnimationType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UIImageSheetAnimation.AnimationType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UIImageSheetAnimationTimeType_TypeID = -1; - int UIImageSheetAnimationTimeType_EnumRef = -1; - - public void PushUIImageSheetAnimationTimeType(RealStatePtr L, UIImageSheetAnimation.TimeType val) - { - if (UIImageSheetAnimationTimeType_TypeID == -1) - { - bool is_first; - UIImageSheetAnimationTimeType_TypeID = getTypeId(L, typeof(UIImageSheetAnimation.TimeType), out is_first); - - if (UIImageSheetAnimationTimeType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UIImageSheetAnimation.TimeType)); - UIImageSheetAnimationTimeType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIImageSheetAnimationTimeType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIImageSheetAnimationTimeType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UIImageSheetAnimation.TimeType ,value="+val); - } - - LuaAPI.lua_getref(L, UIImageSheetAnimationTimeType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UIImageSheetAnimation.TimeType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationTimeType_TypeID) - { - throw new Exception("invalid userdata for UIImageSheetAnimation.TimeType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UIImageSheetAnimation.TimeType"); - } - val = (UIImageSheetAnimation.TimeType)e; - - } - else - { - val = (UIImageSheetAnimation.TimeType)objectCasters.GetCaster(typeof(UIImageSheetAnimation.TimeType))(L, index, null); - } - } - - public void UpdateUIImageSheetAnimationTimeType(RealStatePtr L, int index, UIImageSheetAnimation.TimeType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationTimeType_TypeID) - { - throw new Exception("invalid userdata for UIImageSheetAnimation.TimeType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UIImageSheetAnimation.TimeType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UIImageSheetAnimationStartFrameType_TypeID = -1; - int UIImageSheetAnimationStartFrameType_EnumRef = -1; - - public void PushUIImageSheetAnimationStartFrameType(RealStatePtr L, UIImageSheetAnimation.StartFrameType val) - { - if (UIImageSheetAnimationStartFrameType_TypeID == -1) - { - bool is_first; - UIImageSheetAnimationStartFrameType_TypeID = getTypeId(L, typeof(UIImageSheetAnimation.StartFrameType), out is_first); - - if (UIImageSheetAnimationStartFrameType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UIImageSheetAnimation.StartFrameType)); - UIImageSheetAnimationStartFrameType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UIImageSheetAnimationStartFrameType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UIImageSheetAnimationStartFrameType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UIImageSheetAnimation.StartFrameType ,value="+val); - } - - LuaAPI.lua_getref(L, UIImageSheetAnimationStartFrameType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UIImageSheetAnimation.StartFrameType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationStartFrameType_TypeID) - { - throw new Exception("invalid userdata for UIImageSheetAnimation.StartFrameType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UIImageSheetAnimation.StartFrameType"); - } - val = (UIImageSheetAnimation.StartFrameType)e; - - } - else - { - val = (UIImageSheetAnimation.StartFrameType)objectCasters.GetCaster(typeof(UIImageSheetAnimation.StartFrameType))(L, index, null); - } - } - - public void UpdateUIImageSheetAnimationStartFrameType(RealStatePtr L, int index, UIImageSheetAnimation.StartFrameType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UIImageSheetAnimationStartFrameType_TypeID) - { - throw new Exception("invalid userdata for UIImageSheetAnimation.StartFrameType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UIImageSheetAnimation.StartFrameType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int SystemReflectionBindingFlags_TypeID = -1; - int SystemReflectionBindingFlags_EnumRef = -1; - - public void PushSystemReflectionBindingFlags(RealStatePtr L, System.Reflection.BindingFlags val) - { - if (SystemReflectionBindingFlags_TypeID == -1) - { - bool is_first; - SystemReflectionBindingFlags_TypeID = getTypeId(L, typeof(System.Reflection.BindingFlags), out is_first); - - if (SystemReflectionBindingFlags_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(System.Reflection.BindingFlags)); - SystemReflectionBindingFlags_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SystemReflectionBindingFlags_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SystemReflectionBindingFlags_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for System.Reflection.BindingFlags ,value="+val); - } - - LuaAPI.lua_getref(L, SystemReflectionBindingFlags_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out System.Reflection.BindingFlags val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != SystemReflectionBindingFlags_TypeID) - { - throw new Exception("invalid userdata for System.Reflection.BindingFlags"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for System.Reflection.BindingFlags"); - } - val = (System.Reflection.BindingFlags)e; - - } - else - { - val = (System.Reflection.BindingFlags)objectCasters.GetCaster(typeof(System.Reflection.BindingFlags))(L, index, null); - } - } - - public void UpdateSystemReflectionBindingFlags(RealStatePtr L, int index, System.Reflection.BindingFlags val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != SystemReflectionBindingFlags_TypeID) - { - throw new Exception("invalid userdata for System.Reflection.BindingFlags"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for System.Reflection.BindingFlags ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int SystemDayOfWeek_TypeID = -1; - int SystemDayOfWeek_EnumRef = -1; - - public void PushSystemDayOfWeek(RealStatePtr L, System.DayOfWeek val) - { - if (SystemDayOfWeek_TypeID == -1) - { - bool is_first; - SystemDayOfWeek_TypeID = getTypeId(L, typeof(System.DayOfWeek), out is_first); - - if (SystemDayOfWeek_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(System.DayOfWeek)); - SystemDayOfWeek_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SystemDayOfWeek_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SystemDayOfWeek_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for System.DayOfWeek ,value="+val); - } - - LuaAPI.lua_getref(L, SystemDayOfWeek_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out System.DayOfWeek val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != SystemDayOfWeek_TypeID) - { - throw new Exception("invalid userdata for System.DayOfWeek"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for System.DayOfWeek"); - } - val = (System.DayOfWeek)e; - - } - else - { - val = (System.DayOfWeek)objectCasters.GetCaster(typeof(System.DayOfWeek))(L, index, null); - } - } - - public void UpdateSystemDayOfWeek(RealStatePtr L, int index, System.DayOfWeek val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != SystemDayOfWeek_TypeID) - { - throw new Exception("invalid userdata for System.DayOfWeek"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for System.DayOfWeek ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int SystemNetNetworkInformationIPStatus_TypeID = -1; - int SystemNetNetworkInformationIPStatus_EnumRef = -1; - - public void PushSystemNetNetworkInformationIPStatus(RealStatePtr L, System.Net.NetworkInformation.IPStatus val) - { - if (SystemNetNetworkInformationIPStatus_TypeID == -1) - { - bool is_first; - SystemNetNetworkInformationIPStatus_TypeID = getTypeId(L, typeof(System.Net.NetworkInformation.IPStatus), out is_first); - - if (SystemNetNetworkInformationIPStatus_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(System.Net.NetworkInformation.IPStatus)); - SystemNetNetworkInformationIPStatus_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SystemNetNetworkInformationIPStatus_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SystemNetNetworkInformationIPStatus_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for System.Net.NetworkInformation.IPStatus ,value="+val); - } - - LuaAPI.lua_getref(L, SystemNetNetworkInformationIPStatus_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out System.Net.NetworkInformation.IPStatus val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != SystemNetNetworkInformationIPStatus_TypeID) - { - throw new Exception("invalid userdata for System.Net.NetworkInformation.IPStatus"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for System.Net.NetworkInformation.IPStatus"); - } - val = (System.Net.NetworkInformation.IPStatus)e; - - } - else - { - val = (System.Net.NetworkInformation.IPStatus)objectCasters.GetCaster(typeof(System.Net.NetworkInformation.IPStatus))(L, index, null); - } - } - - public void UpdateSystemNetNetworkInformationIPStatus(RealStatePtr L, int index, System.Net.NetworkInformation.IPStatus val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != SystemNetNetworkInformationIPStatus_TypeID) - { - throw new Exception("invalid userdata for System.Net.NetworkInformation.IPStatus"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for System.Net.NetworkInformation.IPStatus ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineCameraGateFitMode_TypeID = -1; - int UnityEngineCameraGateFitMode_EnumRef = -1; - - public void PushUnityEngineCameraGateFitMode(RealStatePtr L, UnityEngine.Camera.GateFitMode val) - { - if (UnityEngineCameraGateFitMode_TypeID == -1) - { - bool is_first; - UnityEngineCameraGateFitMode_TypeID = getTypeId(L, typeof(UnityEngine.Camera.GateFitMode), out is_first); - - if (UnityEngineCameraGateFitMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Camera.GateFitMode)); - UnityEngineCameraGateFitMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraGateFitMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraGateFitMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Camera.GateFitMode ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineCameraGateFitMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Camera.GateFitMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraGateFitMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.GateFitMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Camera.GateFitMode"); - } - val = (UnityEngine.Camera.GateFitMode)e; - - } - else - { - val = (UnityEngine.Camera.GateFitMode)objectCasters.GetCaster(typeof(UnityEngine.Camera.GateFitMode))(L, index, null); - } - } - - public void UpdateUnityEngineCameraGateFitMode(RealStatePtr L, int index, UnityEngine.Camera.GateFitMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraGateFitMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.GateFitMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Camera.GateFitMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineCameraStereoscopicEye_TypeID = -1; - int UnityEngineCameraStereoscopicEye_EnumRef = -1; - - public void PushUnityEngineCameraStereoscopicEye(RealStatePtr L, UnityEngine.Camera.StereoscopicEye val) - { - if (UnityEngineCameraStereoscopicEye_TypeID == -1) - { - bool is_first; - UnityEngineCameraStereoscopicEye_TypeID = getTypeId(L, typeof(UnityEngine.Camera.StereoscopicEye), out is_first); - - if (UnityEngineCameraStereoscopicEye_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Camera.StereoscopicEye)); - UnityEngineCameraStereoscopicEye_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraStereoscopicEye_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraStereoscopicEye_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Camera.StereoscopicEye ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineCameraStereoscopicEye_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Camera.StereoscopicEye val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraStereoscopicEye_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.StereoscopicEye"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Camera.StereoscopicEye"); - } - val = (UnityEngine.Camera.StereoscopicEye)e; - - } - else - { - val = (UnityEngine.Camera.StereoscopicEye)objectCasters.GetCaster(typeof(UnityEngine.Camera.StereoscopicEye))(L, index, null); - } - } - - public void UpdateUnityEngineCameraStereoscopicEye(RealStatePtr L, int index, UnityEngine.Camera.StereoscopicEye val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraStereoscopicEye_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.StereoscopicEye"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Camera.StereoscopicEye ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineCameraMonoOrStereoscopicEye_TypeID = -1; - int UnityEngineCameraMonoOrStereoscopicEye_EnumRef = -1; - - public void PushUnityEngineCameraMonoOrStereoscopicEye(RealStatePtr L, UnityEngine.Camera.MonoOrStereoscopicEye val) - { - if (UnityEngineCameraMonoOrStereoscopicEye_TypeID == -1) - { - bool is_first; - UnityEngineCameraMonoOrStereoscopicEye_TypeID = getTypeId(L, typeof(UnityEngine.Camera.MonoOrStereoscopicEye), out is_first); - - if (UnityEngineCameraMonoOrStereoscopicEye_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Camera.MonoOrStereoscopicEye)); - UnityEngineCameraMonoOrStereoscopicEye_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraMonoOrStereoscopicEye_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraMonoOrStereoscopicEye_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Camera.MonoOrStereoscopicEye ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineCameraMonoOrStereoscopicEye_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Camera.MonoOrStereoscopicEye val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraMonoOrStereoscopicEye_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.MonoOrStereoscopicEye"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Camera.MonoOrStereoscopicEye"); - } - val = (UnityEngine.Camera.MonoOrStereoscopicEye)e; - - } - else - { - val = (UnityEngine.Camera.MonoOrStereoscopicEye)objectCasters.GetCaster(typeof(UnityEngine.Camera.MonoOrStereoscopicEye))(L, index, null); - } - } - - public void UpdateUnityEngineCameraMonoOrStereoscopicEye(RealStatePtr L, int index, UnityEngine.Camera.MonoOrStereoscopicEye val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraMonoOrStereoscopicEye_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.MonoOrStereoscopicEye"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Camera.MonoOrStereoscopicEye ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineCameraFieldOfViewAxis_TypeID = -1; - int UnityEngineCameraFieldOfViewAxis_EnumRef = -1; - - public void PushUnityEngineCameraFieldOfViewAxis(RealStatePtr L, UnityEngine.Camera.FieldOfViewAxis val) - { - if (UnityEngineCameraFieldOfViewAxis_TypeID == -1) - { - bool is_first; - UnityEngineCameraFieldOfViewAxis_TypeID = getTypeId(L, typeof(UnityEngine.Camera.FieldOfViewAxis), out is_first); - - if (UnityEngineCameraFieldOfViewAxis_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Camera.FieldOfViewAxis)); - UnityEngineCameraFieldOfViewAxis_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraFieldOfViewAxis_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraFieldOfViewAxis_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Camera.FieldOfViewAxis ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineCameraFieldOfViewAxis_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Camera.FieldOfViewAxis val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraFieldOfViewAxis_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.FieldOfViewAxis"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Camera.FieldOfViewAxis"); - } - val = (UnityEngine.Camera.FieldOfViewAxis)e; - - } - else - { - val = (UnityEngine.Camera.FieldOfViewAxis)objectCasters.GetCaster(typeof(UnityEngine.Camera.FieldOfViewAxis))(L, index, null); - } - } - - public void UpdateUnityEngineCameraFieldOfViewAxis(RealStatePtr L, int index, UnityEngine.Camera.FieldOfViewAxis val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraFieldOfViewAxis_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.FieldOfViewAxis"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Camera.FieldOfViewAxis ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineCameraRenderRequestMode_TypeID = -1; - int UnityEngineCameraRenderRequestMode_EnumRef = -1; - - public void PushUnityEngineCameraRenderRequestMode(RealStatePtr L, UnityEngine.Camera.RenderRequestMode val) - { - if (UnityEngineCameraRenderRequestMode_TypeID == -1) - { - bool is_first; - UnityEngineCameraRenderRequestMode_TypeID = getTypeId(L, typeof(UnityEngine.Camera.RenderRequestMode), out is_first); - - if (UnityEngineCameraRenderRequestMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Camera.RenderRequestMode)); - UnityEngineCameraRenderRequestMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraRenderRequestMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraRenderRequestMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Camera.RenderRequestMode ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineCameraRenderRequestMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Camera.RenderRequestMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Camera.RenderRequestMode"); - } - val = (UnityEngine.Camera.RenderRequestMode)e; - - } - else - { - val = (UnityEngine.Camera.RenderRequestMode)objectCasters.GetCaster(typeof(UnityEngine.Camera.RenderRequestMode))(L, index, null); - } - } - - public void UpdateUnityEngineCameraRenderRequestMode(RealStatePtr L, int index, UnityEngine.Camera.RenderRequestMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Camera.RenderRequestMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineCameraRenderRequestOutputSpace_TypeID = -1; - int UnityEngineCameraRenderRequestOutputSpace_EnumRef = -1; - - public void PushUnityEngineCameraRenderRequestOutputSpace(RealStatePtr L, UnityEngine.Camera.RenderRequestOutputSpace val) - { - if (UnityEngineCameraRenderRequestOutputSpace_TypeID == -1) - { - bool is_first; - UnityEngineCameraRenderRequestOutputSpace_TypeID = getTypeId(L, typeof(UnityEngine.Camera.RenderRequestOutputSpace), out is_first); - - if (UnityEngineCameraRenderRequestOutputSpace_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Camera.RenderRequestOutputSpace)); - UnityEngineCameraRenderRequestOutputSpace_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraRenderRequestOutputSpace_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraRenderRequestOutputSpace_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Camera.RenderRequestOutputSpace ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineCameraRenderRequestOutputSpace_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Camera.RenderRequestOutputSpace val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestOutputSpace_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestOutputSpace"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Camera.RenderRequestOutputSpace"); - } - val = (UnityEngine.Camera.RenderRequestOutputSpace)e; - - } - else - { - val = (UnityEngine.Camera.RenderRequestOutputSpace)objectCasters.GetCaster(typeof(UnityEngine.Camera.RenderRequestOutputSpace))(L, index, null); - } - } - - public void UpdateUnityEngineCameraRenderRequestOutputSpace(RealStatePtr L, int index, UnityEngine.Camera.RenderRequestOutputSpace val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraRenderRequestOutputSpace_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.RenderRequestOutputSpace"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Camera.RenderRequestOutputSpace ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineCameraSceneViewFilterMode_TypeID = -1; - int UnityEngineCameraSceneViewFilterMode_EnumRef = -1; - - public void PushUnityEngineCameraSceneViewFilterMode(RealStatePtr L, UnityEngine.Camera.SceneViewFilterMode val) - { - if (UnityEngineCameraSceneViewFilterMode_TypeID == -1) - { - bool is_first; - UnityEngineCameraSceneViewFilterMode_TypeID = getTypeId(L, typeof(UnityEngine.Camera.SceneViewFilterMode), out is_first); - - if (UnityEngineCameraSceneViewFilterMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Camera.SceneViewFilterMode)); - UnityEngineCameraSceneViewFilterMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineCameraSceneViewFilterMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineCameraSceneViewFilterMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Camera.SceneViewFilterMode ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineCameraSceneViewFilterMode_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.SceneViewFilterMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraSceneViewFilterMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.SceneViewFilterMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Camera.SceneViewFilterMode"); - } - val = (UnityEngine.Camera.SceneViewFilterMode)e; - - } - else - { - val = (UnityEngine.Camera.SceneViewFilterMode)objectCasters.GetCaster(typeof(UnityEngine.Camera.SceneViewFilterMode))(L, index, null); - } - } - - public void UpdateUnityEngineCameraSceneViewFilterMode(RealStatePtr L, int index, UnityEngine.Camera.SceneViewFilterMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineCameraSceneViewFilterMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Camera.SceneViewFilterMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Camera.SceneViewFilterMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRenderingLightShadowResolution_TypeID = -1; - int UnityEngineRenderingLightShadowResolution_EnumRef = -1; - - public void PushUnityEngineRenderingLightShadowResolution(RealStatePtr L, UnityEngine.Rendering.LightShadowResolution val) - { - if (UnityEngineRenderingLightShadowResolution_TypeID == -1) - { - bool is_first; - UnityEngineRenderingLightShadowResolution_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.LightShadowResolution), out is_first); - - if (UnityEngineRenderingLightShadowResolution_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.LightShadowResolution)); - UnityEngineRenderingLightShadowResolution_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingLightShadowResolution_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingLightShadowResolution_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Rendering.LightShadowResolution ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRenderingLightShadowResolution_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Rendering.LightShadowResolution val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingLightShadowResolution_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Rendering.LightShadowResolution"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Rendering.LightShadowResolution"); - } - val = (UnityEngine.Rendering.LightShadowResolution)e; - - } - else - { - val = (UnityEngine.Rendering.LightShadowResolution)objectCasters.GetCaster(typeof(UnityEngine.Rendering.LightShadowResolution))(L, index, null); - } - } - - public void UpdateUnityEngineRenderingLightShadowResolution(RealStatePtr L, int index, UnityEngine.Rendering.LightShadowResolution val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingLightShadowResolution_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Rendering.LightShadowResolution"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Rendering.LightShadowResolution ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRenderTextureFormat_TypeID = -1; - int UnityEngineRenderTextureFormat_EnumRef = -1; - - public void PushUnityEngineRenderTextureFormat(RealStatePtr L, UnityEngine.RenderTextureFormat val) - { - if (UnityEngineRenderTextureFormat_TypeID == -1) - { - bool is_first; - UnityEngineRenderTextureFormat_TypeID = getTypeId(L, typeof(UnityEngine.RenderTextureFormat), out is_first); - - if (UnityEngineRenderTextureFormat_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.RenderTextureFormat)); - UnityEngineRenderTextureFormat_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderTextureFormat_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderTextureFormat_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.RenderTextureFormat ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRenderTextureFormat_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.RenderTextureFormat val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureFormat_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RenderTextureFormat"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.RenderTextureFormat"); - } - val = (UnityEngine.RenderTextureFormat)e; - - } - else - { - val = (UnityEngine.RenderTextureFormat)objectCasters.GetCaster(typeof(UnityEngine.RenderTextureFormat))(L, index, null); - } - } - - public void UpdateUnityEngineRenderTextureFormat(RealStatePtr L, int index, UnityEngine.RenderTextureFormat val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureFormat_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RenderTextureFormat"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.RenderTextureFormat ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRenderTextureReadWrite_TypeID = -1; - int UnityEngineRenderTextureReadWrite_EnumRef = -1; - - public void PushUnityEngineRenderTextureReadWrite(RealStatePtr L, UnityEngine.RenderTextureReadWrite val) - { - if (UnityEngineRenderTextureReadWrite_TypeID == -1) - { - bool is_first; - UnityEngineRenderTextureReadWrite_TypeID = getTypeId(L, typeof(UnityEngine.RenderTextureReadWrite), out is_first); - - if (UnityEngineRenderTextureReadWrite_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.RenderTextureReadWrite)); - UnityEngineRenderTextureReadWrite_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderTextureReadWrite_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderTextureReadWrite_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.RenderTextureReadWrite ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRenderTextureReadWrite_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.RenderTextureReadWrite val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureReadWrite_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RenderTextureReadWrite"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.RenderTextureReadWrite"); - } - val = (UnityEngine.RenderTextureReadWrite)e; - - } - else - { - val = (UnityEngine.RenderTextureReadWrite)objectCasters.GetCaster(typeof(UnityEngine.RenderTextureReadWrite))(L, index, null); - } - } - - public void UpdateUnityEngineRenderTextureReadWrite(RealStatePtr L, int index, UnityEngine.RenderTextureReadWrite val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderTextureReadWrite_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RenderTextureReadWrite"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.RenderTextureReadWrite ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRigidbodyConstraints_TypeID = -1; - int UnityEngineRigidbodyConstraints_EnumRef = -1; - - public void PushUnityEngineRigidbodyConstraints(RealStatePtr L, UnityEngine.RigidbodyConstraints val) - { - if (UnityEngineRigidbodyConstraints_TypeID == -1) - { - bool is_first; - UnityEngineRigidbodyConstraints_TypeID = getTypeId(L, typeof(UnityEngine.RigidbodyConstraints), out is_first); - - if (UnityEngineRigidbodyConstraints_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.RigidbodyConstraints)); - UnityEngineRigidbodyConstraints_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRigidbodyConstraints_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRigidbodyConstraints_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.RigidbodyConstraints ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRigidbodyConstraints_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.RigidbodyConstraints val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRigidbodyConstraints_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RigidbodyConstraints"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.RigidbodyConstraints"); - } - val = (UnityEngine.RigidbodyConstraints)e; - - } - else - { - val = (UnityEngine.RigidbodyConstraints)objectCasters.GetCaster(typeof(UnityEngine.RigidbodyConstraints))(L, index, null); - } - } - - public void UpdateUnityEngineRigidbodyConstraints(RealStatePtr L, int index, UnityEngine.RigidbodyConstraints val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRigidbodyConstraints_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RigidbodyConstraints"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.RigidbodyConstraints ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineTransparencySortMode_TypeID = -1; - int UnityEngineTransparencySortMode_EnumRef = -1; - - public void PushUnityEngineTransparencySortMode(RealStatePtr L, UnityEngine.TransparencySortMode val) - { - if (UnityEngineTransparencySortMode_TypeID == -1) - { - bool is_first; - UnityEngineTransparencySortMode_TypeID = getTypeId(L, typeof(UnityEngine.TransparencySortMode), out is_first); - - if (UnityEngineTransparencySortMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.TransparencySortMode)); - UnityEngineTransparencySortMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineTransparencySortMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineTransparencySortMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.TransparencySortMode ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineTransparencySortMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.TransparencySortMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTransparencySortMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.TransparencySortMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.TransparencySortMode"); - } - val = (UnityEngine.TransparencySortMode)e; - - } - else - { - val = (UnityEngine.TransparencySortMode)objectCasters.GetCaster(typeof(UnityEngine.TransparencySortMode))(L, index, null); - } - } - - public void UpdateUnityEngineTransparencySortMode(RealStatePtr L, int index, UnityEngine.TransparencySortMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTransparencySortMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.TransparencySortMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.TransparencySortMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRectTransformAxis_TypeID = -1; - int UnityEngineRectTransformAxis_EnumRef = -1; - - public void PushUnityEngineRectTransformAxis(RealStatePtr L, UnityEngine.RectTransform.Axis val) - { - if (UnityEngineRectTransformAxis_TypeID == -1) - { - bool is_first; - UnityEngineRectTransformAxis_TypeID = getTypeId(L, typeof(UnityEngine.RectTransform.Axis), out is_first); - - if (UnityEngineRectTransformAxis_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.RectTransform.Axis)); - UnityEngineRectTransformAxis_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRectTransformAxis_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRectTransformAxis_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.RectTransform.Axis ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRectTransformAxis_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.RectTransform.Axis val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformAxis_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RectTransform.Axis"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.RectTransform.Axis"); - } - val = (UnityEngine.RectTransform.Axis)e; - - } - else - { - val = (UnityEngine.RectTransform.Axis)objectCasters.GetCaster(typeof(UnityEngine.RectTransform.Axis))(L, index, null); - } - } - - public void UpdateUnityEngineRectTransformAxis(RealStatePtr L, int index, UnityEngine.RectTransform.Axis val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformAxis_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RectTransform.Axis"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.RectTransform.Axis ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRectTransformEdge_TypeID = -1; - int UnityEngineRectTransformEdge_EnumRef = -1; - - public void PushUnityEngineRectTransformEdge(RealStatePtr L, UnityEngine.RectTransform.Edge val) - { - if (UnityEngineRectTransformEdge_TypeID == -1) - { - bool is_first; - UnityEngineRectTransformEdge_TypeID = getTypeId(L, typeof(UnityEngine.RectTransform.Edge), out is_first); - - if (UnityEngineRectTransformEdge_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.RectTransform.Edge)); - UnityEngineRectTransformEdge_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRectTransformEdge_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRectTransformEdge_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.RectTransform.Edge ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRectTransformEdge_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.RectTransform.Edge val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformEdge_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RectTransform.Edge"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.RectTransform.Edge"); - } - val = (UnityEngine.RectTransform.Edge)e; - - } - else - { - val = (UnityEngine.RectTransform.Edge)objectCasters.GetCaster(typeof(UnityEngine.RectTransform.Edge))(L, index, null); - } - } - - public void UpdateUnityEngineRectTransformEdge(RealStatePtr L, int index, UnityEngine.RectTransform.Edge val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRectTransformEdge_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RectTransform.Edge"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.RectTransform.Edge ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineAnimatorCullingMode_TypeID = -1; - int UnityEngineAnimatorCullingMode_EnumRef = -1; - - public void PushUnityEngineAnimatorCullingMode(RealStatePtr L, UnityEngine.AnimatorCullingMode val) - { - if (UnityEngineAnimatorCullingMode_TypeID == -1) - { - bool is_first; - UnityEngineAnimatorCullingMode_TypeID = getTypeId(L, typeof(UnityEngine.AnimatorCullingMode), out is_first); - - if (UnityEngineAnimatorCullingMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.AnimatorCullingMode)); - UnityEngineAnimatorCullingMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineAnimatorCullingMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineAnimatorCullingMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.AnimatorCullingMode ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineAnimatorCullingMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.AnimatorCullingMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineAnimatorCullingMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.AnimatorCullingMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.AnimatorCullingMode"); - } - val = (UnityEngine.AnimatorCullingMode)e; - - } - else - { - val = (UnityEngine.AnimatorCullingMode)objectCasters.GetCaster(typeof(UnityEngine.AnimatorCullingMode))(L, index, null); - } - } - - public void UpdateUnityEngineAnimatorCullingMode(RealStatePtr L, int index, UnityEngine.AnimatorCullingMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineAnimatorCullingMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.AnimatorCullingMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.AnimatorCullingMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineSystemLanguage_TypeID = -1; - int UnityEngineSystemLanguage_EnumRef = -1; - - public void PushUnityEngineSystemLanguage(RealStatePtr L, UnityEngine.SystemLanguage val) - { - if (UnityEngineSystemLanguage_TypeID == -1) - { - bool is_first; - UnityEngineSystemLanguage_TypeID = getTypeId(L, typeof(UnityEngine.SystemLanguage), out is_first); - - if (UnityEngineSystemLanguage_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.SystemLanguage)); - UnityEngineSystemLanguage_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineSystemLanguage_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineSystemLanguage_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.SystemLanguage ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineSystemLanguage_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.SystemLanguage val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineSystemLanguage_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.SystemLanguage"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.SystemLanguage"); - } - val = (UnityEngine.SystemLanguage)e; - - } - else - { - val = (UnityEngine.SystemLanguage)objectCasters.GetCaster(typeof(UnityEngine.SystemLanguage))(L, index, null); - } - } - - public void UpdateUnityEngineSystemLanguage(RealStatePtr L, int index, UnityEngine.SystemLanguage val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineSystemLanguage_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.SystemLanguage"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.SystemLanguage ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRenderingShadowCastingMode_TypeID = -1; - int UnityEngineRenderingShadowCastingMode_EnumRef = -1; - - public void PushUnityEngineRenderingShadowCastingMode(RealStatePtr L, UnityEngine.Rendering.ShadowCastingMode val) - { - if (UnityEngineRenderingShadowCastingMode_TypeID == -1) - { - bool is_first; - UnityEngineRenderingShadowCastingMode_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.ShadowCastingMode), out is_first); - - if (UnityEngineRenderingShadowCastingMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.ShadowCastingMode)); - UnityEngineRenderingShadowCastingMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingShadowCastingMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingShadowCastingMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Rendering.ShadowCastingMode ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRenderingShadowCastingMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Rendering.ShadowCastingMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingShadowCastingMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Rendering.ShadowCastingMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Rendering.ShadowCastingMode"); - } - val = (UnityEngine.Rendering.ShadowCastingMode)e; - - } - else - { - val = (UnityEngine.Rendering.ShadowCastingMode)objectCasters.GetCaster(typeof(UnityEngine.Rendering.ShadowCastingMode))(L, index, null); - } - } - - public void UpdateUnityEngineRenderingShadowCastingMode(RealStatePtr L, int index, UnityEngine.Rendering.ShadowCastingMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingShadowCastingMode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Rendering.ShadowCastingMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Rendering.ShadowCastingMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineTexture2DEXRFlags_TypeID = -1; - int UnityEngineTexture2DEXRFlags_EnumRef = -1; - - public void PushUnityEngineTexture2DEXRFlags(RealStatePtr L, UnityEngine.Texture2D.EXRFlags val) - { - if (UnityEngineTexture2DEXRFlags_TypeID == -1) - { - bool is_first; - UnityEngineTexture2DEXRFlags_TypeID = getTypeId(L, typeof(UnityEngine.Texture2D.EXRFlags), out is_first); - - if (UnityEngineTexture2DEXRFlags_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Texture2D.EXRFlags)); - UnityEngineTexture2DEXRFlags_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineTexture2DEXRFlags_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineTexture2DEXRFlags_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Texture2D.EXRFlags ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineTexture2DEXRFlags_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Texture2D.EXRFlags val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTexture2DEXRFlags_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Texture2D.EXRFlags"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Texture2D.EXRFlags"); - } - val = (UnityEngine.Texture2D.EXRFlags)e; - - } - else - { - val = (UnityEngine.Texture2D.EXRFlags)objectCasters.GetCaster(typeof(UnityEngine.Texture2D.EXRFlags))(L, index, null); - } - } - - public void UpdateUnityEngineTexture2DEXRFlags(RealStatePtr L, int index, UnityEngine.Texture2D.EXRFlags val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTexture2DEXRFlags_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Texture2D.EXRFlags"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Texture2D.EXRFlags ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineKeyCode_TypeID = -1; - int UnityEngineKeyCode_EnumRef = -1; - - public void PushUnityEngineKeyCode(RealStatePtr L, UnityEngine.KeyCode val) - { - if (UnityEngineKeyCode_TypeID == -1) - { - bool is_first; - UnityEngineKeyCode_TypeID = getTypeId(L, typeof(UnityEngine.KeyCode), out is_first); - - if (UnityEngineKeyCode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.KeyCode)); - UnityEngineKeyCode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineKeyCode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineKeyCode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.KeyCode ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineKeyCode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.KeyCode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineKeyCode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.KeyCode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.KeyCode"); - } - val = (UnityEngine.KeyCode)e; - - } - else - { - val = (UnityEngine.KeyCode)objectCasters.GetCaster(typeof(UnityEngine.KeyCode))(L, index, null); - } - } - - public void UpdateUnityEngineKeyCode(RealStatePtr L, int index, UnityEngine.KeyCode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineKeyCode_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.KeyCode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.KeyCode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineNetworkReachability_TypeID = -1; - int UnityEngineNetworkReachability_EnumRef = -1; - - public void PushUnityEngineNetworkReachability(RealStatePtr L, UnityEngine.NetworkReachability val) - { - if (UnityEngineNetworkReachability_TypeID == -1) - { - bool is_first; - UnityEngineNetworkReachability_TypeID = getTypeId(L, typeof(UnityEngine.NetworkReachability), out is_first); - - if (UnityEngineNetworkReachability_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.NetworkReachability)); - UnityEngineNetworkReachability_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineNetworkReachability_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineNetworkReachability_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.NetworkReachability ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineNetworkReachability_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.NetworkReachability val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineNetworkReachability_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.NetworkReachability"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.NetworkReachability"); - } - val = (UnityEngine.NetworkReachability)e; - - } - else - { - val = (UnityEngine.NetworkReachability)objectCasters.GetCaster(typeof(UnityEngine.NetworkReachability))(L, index, null); - } - } - - public void UpdateUnityEngineNetworkReachability(RealStatePtr L, int index, UnityEngine.NetworkReachability val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineNetworkReachability_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.NetworkReachability"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.NetworkReachability ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRuntimePlatform_TypeID = -1; - int UnityEngineRuntimePlatform_EnumRef = -1; - - public void PushUnityEngineRuntimePlatform(RealStatePtr L, UnityEngine.RuntimePlatform val) - { - if (UnityEngineRuntimePlatform_TypeID == -1) - { - bool is_first; - UnityEngineRuntimePlatform_TypeID = getTypeId(L, typeof(UnityEngine.RuntimePlatform), out is_first); - - if (UnityEngineRuntimePlatform_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.RuntimePlatform)); - UnityEngineRuntimePlatform_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRuntimePlatform_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRuntimePlatform_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.RuntimePlatform ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRuntimePlatform_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.RuntimePlatform val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRuntimePlatform_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RuntimePlatform"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.RuntimePlatform"); - } - val = (UnityEngine.RuntimePlatform)e; - - } - else - { - val = (UnityEngine.RuntimePlatform)objectCasters.GetCaster(typeof(UnityEngine.RuntimePlatform))(L, index, null); - } - } - - public void UpdateUnityEngineRuntimePlatform(RealStatePtr L, int index, UnityEngine.RuntimePlatform val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRuntimePlatform_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.RuntimePlatform"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.RuntimePlatform ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineRenderingCompareFunction_TypeID = -1; - int UnityEngineRenderingCompareFunction_EnumRef = -1; - - public void PushUnityEngineRenderingCompareFunction(RealStatePtr L, UnityEngine.Rendering.CompareFunction val) - { - if (UnityEngineRenderingCompareFunction_TypeID == -1) - { - bool is_first; - UnityEngineRenderingCompareFunction_TypeID = getTypeId(L, typeof(UnityEngine.Rendering.CompareFunction), out is_first); - - if (UnityEngineRenderingCompareFunction_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Rendering.CompareFunction)); - UnityEngineRenderingCompareFunction_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineRenderingCompareFunction_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineRenderingCompareFunction_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Rendering.CompareFunction ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineRenderingCompareFunction_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Rendering.CompareFunction val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingCompareFunction_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Rendering.CompareFunction"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Rendering.CompareFunction"); - } - val = (UnityEngine.Rendering.CompareFunction)e; - - } - else - { - val = (UnityEngine.Rendering.CompareFunction)objectCasters.GetCaster(typeof(UnityEngine.Rendering.CompareFunction))(L, index, null); - } - } - - public void UpdateUnityEngineRenderingCompareFunction(RealStatePtr L, int index, UnityEngine.Rendering.CompareFunction val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineRenderingCompareFunction_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Rendering.CompareFunction"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Rendering.CompareFunction ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineTextAnchor_TypeID = -1; - int UnityEngineTextAnchor_EnumRef = -1; - - public void PushUnityEngineTextAnchor(RealStatePtr L, UnityEngine.TextAnchor val) - { - if (UnityEngineTextAnchor_TypeID == -1) - { - bool is_first; - UnityEngineTextAnchor_TypeID = getTypeId(L, typeof(UnityEngine.TextAnchor), out is_first); - - if (UnityEngineTextAnchor_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.TextAnchor)); - UnityEngineTextAnchor_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineTextAnchor_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineTextAnchor_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.TextAnchor ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineTextAnchor_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.TextAnchor val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTextAnchor_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.TextAnchor"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.TextAnchor"); - } - val = (UnityEngine.TextAnchor)e; - - } - else - { - val = (UnityEngine.TextAnchor)objectCasters.GetCaster(typeof(UnityEngine.TextAnchor))(L, index, null); - } - } - - public void UpdateUnityEngineTextAnchor(RealStatePtr L, int index, UnityEngine.TextAnchor val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineTextAnchor_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.TextAnchor"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.TextAnchor ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineBatteryStatus_TypeID = -1; - int UnityEngineBatteryStatus_EnumRef = -1; - - public void PushUnityEngineBatteryStatus(RealStatePtr L, UnityEngine.BatteryStatus val) - { - if (UnityEngineBatteryStatus_TypeID == -1) - { - bool is_first; - UnityEngineBatteryStatus_TypeID = getTypeId(L, typeof(UnityEngine.BatteryStatus), out is_first); - - if (UnityEngineBatteryStatus_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.BatteryStatus)); - UnityEngineBatteryStatus_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineBatteryStatus_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineBatteryStatus_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.BatteryStatus ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineBatteryStatus_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.BatteryStatus val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBatteryStatus_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.BatteryStatus"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.BatteryStatus"); - } - val = (UnityEngine.BatteryStatus)e; - - } - else - { - val = (UnityEngine.BatteryStatus)objectCasters.GetCaster(typeof(UnityEngine.BatteryStatus))(L, index, null); - } - } - - public void UpdateUnityEngineBatteryStatus(RealStatePtr L, int index, UnityEngine.BatteryStatus val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineBatteryStatus_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.BatteryStatus"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.BatteryStatus ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIGraphicRaycasterBlockingObjects_TypeID = -1; - int UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef = -1; - - public void PushUnityEngineUIGraphicRaycasterBlockingObjects(RealStatePtr L, UnityEngine.UI.GraphicRaycaster.BlockingObjects val) - { - if (UnityEngineUIGraphicRaycasterBlockingObjects_TypeID == -1) - { - bool is_first; - UnityEngineUIGraphicRaycasterBlockingObjects_TypeID = getTypeId(L, typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), out is_first); - - if (UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects)); - UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGraphicRaycasterBlockingObjects_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.GraphicRaycaster.BlockingObjects ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIGraphicRaycasterBlockingObjects_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.GraphicRaycaster.BlockingObjects val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGraphicRaycasterBlockingObjects_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GraphicRaycaster.BlockingObjects"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.GraphicRaycaster.BlockingObjects"); - } - val = (UnityEngine.UI.GraphicRaycaster.BlockingObjects)e; - - } - else - { - val = (UnityEngine.UI.GraphicRaycaster.BlockingObjects)objectCasters.GetCaster(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects))(L, index, null); - } - } - - public void UpdateUnityEngineUIGraphicRaycasterBlockingObjects(RealStatePtr L, int index, UnityEngine.UI.GraphicRaycaster.BlockingObjects val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGraphicRaycasterBlockingObjects_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GraphicRaycaster.BlockingObjects"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.GraphicRaycaster.BlockingObjects ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIImageType_TypeID = -1; - int UnityEngineUIImageType_EnumRef = -1; - - public void PushUnityEngineUIImageType(RealStatePtr L, UnityEngine.UI.Image.Type val) - { - if (UnityEngineUIImageType_TypeID == -1) - { - bool is_first; - UnityEngineUIImageType_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Type), out is_first); - - if (UnityEngineUIImageType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Type)); - UnityEngineUIImageType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Image.Type ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIImageType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Type val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Type"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Image.Type"); - } - val = (UnityEngine.UI.Image.Type)e; - - } - else - { - val = (UnityEngine.UI.Image.Type)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Type))(L, index, null); - } - } - - public void UpdateUnityEngineUIImageType(RealStatePtr L, int index, UnityEngine.UI.Image.Type val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Type"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Image.Type ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIImageFillMethod_TypeID = -1; - int UnityEngineUIImageFillMethod_EnumRef = -1; - - public void PushUnityEngineUIImageFillMethod(RealStatePtr L, UnityEngine.UI.Image.FillMethod val) - { - if (UnityEngineUIImageFillMethod_TypeID == -1) - { - bool is_first; - UnityEngineUIImageFillMethod_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.FillMethod), out is_first); - - if (UnityEngineUIImageFillMethod_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.FillMethod)); - UnityEngineUIImageFillMethod_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageFillMethod_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageFillMethod_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Image.FillMethod ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIImageFillMethod_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.FillMethod val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageFillMethod_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.FillMethod"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Image.FillMethod"); - } - val = (UnityEngine.UI.Image.FillMethod)e; - - } - else - { - val = (UnityEngine.UI.Image.FillMethod)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.FillMethod))(L, index, null); - } - } - - public void UpdateUnityEngineUIImageFillMethod(RealStatePtr L, int index, UnityEngine.UI.Image.FillMethod val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageFillMethod_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.FillMethod"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Image.FillMethod ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIImageOriginHorizontal_TypeID = -1; - int UnityEngineUIImageOriginHorizontal_EnumRef = -1; - - public void PushUnityEngineUIImageOriginHorizontal(RealStatePtr L, UnityEngine.UI.Image.OriginHorizontal val) - { - if (UnityEngineUIImageOriginHorizontal_TypeID == -1) - { - bool is_first; - UnityEngineUIImageOriginHorizontal_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.OriginHorizontal), out is_first); - - if (UnityEngineUIImageOriginHorizontal_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.OriginHorizontal)); - UnityEngineUIImageOriginHorizontal_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOriginHorizontal_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOriginHorizontal_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Image.OriginHorizontal ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIImageOriginHorizontal_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.OriginHorizontal val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginHorizontal_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginHorizontal"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Image.OriginHorizontal"); - } - val = (UnityEngine.UI.Image.OriginHorizontal)e; - - } - else - { - val = (UnityEngine.UI.Image.OriginHorizontal)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.OriginHorizontal))(L, index, null); - } - } - - public void UpdateUnityEngineUIImageOriginHorizontal(RealStatePtr L, int index, UnityEngine.UI.Image.OriginHorizontal val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginHorizontal_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginHorizontal"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Image.OriginHorizontal ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIImageOriginVertical_TypeID = -1; - int UnityEngineUIImageOriginVertical_EnumRef = -1; - - public void PushUnityEngineUIImageOriginVertical(RealStatePtr L, UnityEngine.UI.Image.OriginVertical val) - { - if (UnityEngineUIImageOriginVertical_TypeID == -1) - { - bool is_first; - UnityEngineUIImageOriginVertical_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.OriginVertical), out is_first); - - if (UnityEngineUIImageOriginVertical_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.OriginVertical)); - UnityEngineUIImageOriginVertical_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOriginVertical_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOriginVertical_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Image.OriginVertical ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIImageOriginVertical_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.OriginVertical val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginVertical_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginVertical"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Image.OriginVertical"); - } - val = (UnityEngine.UI.Image.OriginVertical)e; - - } - else - { - val = (UnityEngine.UI.Image.OriginVertical)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.OriginVertical))(L, index, null); - } - } - - public void UpdateUnityEngineUIImageOriginVertical(RealStatePtr L, int index, UnityEngine.UI.Image.OriginVertical val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOriginVertical_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.OriginVertical"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Image.OriginVertical ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIImageOrigin90_TypeID = -1; - int UnityEngineUIImageOrigin90_EnumRef = -1; - - public void PushUnityEngineUIImageOrigin90(RealStatePtr L, UnityEngine.UI.Image.Origin90 val) - { - if (UnityEngineUIImageOrigin90_TypeID == -1) - { - bool is_first; - UnityEngineUIImageOrigin90_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Origin90), out is_first); - - if (UnityEngineUIImageOrigin90_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Origin90)); - UnityEngineUIImageOrigin90_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOrigin90_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOrigin90_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Image.Origin90 ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIImageOrigin90_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Origin90 val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin90_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin90"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Image.Origin90"); - } - val = (UnityEngine.UI.Image.Origin90)e; - - } - else - { - val = (UnityEngine.UI.Image.Origin90)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Origin90))(L, index, null); - } - } - - public void UpdateUnityEngineUIImageOrigin90(RealStatePtr L, int index, UnityEngine.UI.Image.Origin90 val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin90_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin90"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Image.Origin90 ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIImageOrigin180_TypeID = -1; - int UnityEngineUIImageOrigin180_EnumRef = -1; - - public void PushUnityEngineUIImageOrigin180(RealStatePtr L, UnityEngine.UI.Image.Origin180 val) - { - if (UnityEngineUIImageOrigin180_TypeID == -1) - { - bool is_first; - UnityEngineUIImageOrigin180_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Origin180), out is_first); - - if (UnityEngineUIImageOrigin180_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Origin180)); - UnityEngineUIImageOrigin180_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOrigin180_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOrigin180_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Image.Origin180 ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIImageOrigin180_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Origin180 val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin180_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin180"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Image.Origin180"); - } - val = (UnityEngine.UI.Image.Origin180)e; - - } - else - { - val = (UnityEngine.UI.Image.Origin180)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Origin180))(L, index, null); - } - } - - public void UpdateUnityEngineUIImageOrigin180(RealStatePtr L, int index, UnityEngine.UI.Image.Origin180 val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin180_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin180"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Image.Origin180 ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIImageOrigin360_TypeID = -1; - int UnityEngineUIImageOrigin360_EnumRef = -1; - - public void PushUnityEngineUIImageOrigin360(RealStatePtr L, UnityEngine.UI.Image.Origin360 val) - { - if (UnityEngineUIImageOrigin360_TypeID == -1) - { - bool is_first; - UnityEngineUIImageOrigin360_TypeID = getTypeId(L, typeof(UnityEngine.UI.Image.Origin360), out is_first); - - if (UnityEngineUIImageOrigin360_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Image.Origin360)); - UnityEngineUIImageOrigin360_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIImageOrigin360_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIImageOrigin360_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Image.Origin360 ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIImageOrigin360_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Image.Origin360 val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin360_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin360"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Image.Origin360"); - } - val = (UnityEngine.UI.Image.Origin360)e; - - } - else - { - val = (UnityEngine.UI.Image.Origin360)objectCasters.GetCaster(typeof(UnityEngine.UI.Image.Origin360))(L, index, null); - } - } - - public void UpdateUnityEngineUIImageOrigin360(RealStatePtr L, int index, UnityEngine.UI.Image.Origin360 val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIImageOrigin360_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Image.Origin360"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Image.Origin360 ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIInputFieldContentType_TypeID = -1; - int UnityEngineUIInputFieldContentType_EnumRef = -1; - - public void PushUnityEngineUIInputFieldContentType(RealStatePtr L, UnityEngine.UI.InputField.ContentType val) - { - if (UnityEngineUIInputFieldContentType_TypeID == -1) - { - bool is_first; - UnityEngineUIInputFieldContentType_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.ContentType), out is_first); - - if (UnityEngineUIInputFieldContentType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.ContentType)); - UnityEngineUIInputFieldContentType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldContentType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldContentType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.InputField.ContentType ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIInputFieldContentType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.ContentType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldContentType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.ContentType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.InputField.ContentType"); - } - val = (UnityEngine.UI.InputField.ContentType)e; - - } - else - { - val = (UnityEngine.UI.InputField.ContentType)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.ContentType))(L, index, null); - } - } - - public void UpdateUnityEngineUIInputFieldContentType(RealStatePtr L, int index, UnityEngine.UI.InputField.ContentType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldContentType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.ContentType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.InputField.ContentType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIInputFieldInputType_TypeID = -1; - int UnityEngineUIInputFieldInputType_EnumRef = -1; - - public void PushUnityEngineUIInputFieldInputType(RealStatePtr L, UnityEngine.UI.InputField.InputType val) - { - if (UnityEngineUIInputFieldInputType_TypeID == -1) - { - bool is_first; - UnityEngineUIInputFieldInputType_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.InputType), out is_first); - - if (UnityEngineUIInputFieldInputType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.InputType)); - UnityEngineUIInputFieldInputType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldInputType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldInputType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.InputField.InputType ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIInputFieldInputType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.InputType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldInputType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.InputType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.InputField.InputType"); - } - val = (UnityEngine.UI.InputField.InputType)e; - - } - else - { - val = (UnityEngine.UI.InputField.InputType)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.InputType))(L, index, null); - } - } - - public void UpdateUnityEngineUIInputFieldInputType(RealStatePtr L, int index, UnityEngine.UI.InputField.InputType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldInputType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.InputType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.InputField.InputType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIInputFieldCharacterValidation_TypeID = -1; - int UnityEngineUIInputFieldCharacterValidation_EnumRef = -1; - - public void PushUnityEngineUIInputFieldCharacterValidation(RealStatePtr L, UnityEngine.UI.InputField.CharacterValidation val) - { - if (UnityEngineUIInputFieldCharacterValidation_TypeID == -1) - { - bool is_first; - UnityEngineUIInputFieldCharacterValidation_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.CharacterValidation), out is_first); - - if (UnityEngineUIInputFieldCharacterValidation_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.CharacterValidation)); - UnityEngineUIInputFieldCharacterValidation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldCharacterValidation_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldCharacterValidation_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.InputField.CharacterValidation ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIInputFieldCharacterValidation_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.CharacterValidation val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldCharacterValidation_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.CharacterValidation"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.InputField.CharacterValidation"); - } - val = (UnityEngine.UI.InputField.CharacterValidation)e; - - } - else - { - val = (UnityEngine.UI.InputField.CharacterValidation)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.CharacterValidation))(L, index, null); - } - } - - public void UpdateUnityEngineUIInputFieldCharacterValidation(RealStatePtr L, int index, UnityEngine.UI.InputField.CharacterValidation val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldCharacterValidation_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.CharacterValidation"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.InputField.CharacterValidation ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIInputFieldLineType_TypeID = -1; - int UnityEngineUIInputFieldLineType_EnumRef = -1; - - public void PushUnityEngineUIInputFieldLineType(RealStatePtr L, UnityEngine.UI.InputField.LineType val) - { - if (UnityEngineUIInputFieldLineType_TypeID == -1) - { - bool is_first; - UnityEngineUIInputFieldLineType_TypeID = getTypeId(L, typeof(UnityEngine.UI.InputField.LineType), out is_first); - - if (UnityEngineUIInputFieldLineType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.InputField.LineType)); - UnityEngineUIInputFieldLineType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIInputFieldLineType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIInputFieldLineType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.InputField.LineType ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIInputFieldLineType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.InputField.LineType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldLineType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.LineType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.InputField.LineType"); - } - val = (UnityEngine.UI.InputField.LineType)e; - - } - else - { - val = (UnityEngine.UI.InputField.LineType)objectCasters.GetCaster(typeof(UnityEngine.UI.InputField.LineType))(L, index, null); - } - } - - public void UpdateUnityEngineUIInputFieldLineType(RealStatePtr L, int index, UnityEngine.UI.InputField.LineType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIInputFieldLineType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.InputField.LineType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.InputField.LineType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIScrollRectMovementType_TypeID = -1; - int UnityEngineUIScrollRectMovementType_EnumRef = -1; - - public void PushUnityEngineUIScrollRectMovementType(RealStatePtr L, UnityEngine.UI.ScrollRect.MovementType val) - { - if (UnityEngineUIScrollRectMovementType_TypeID == -1) - { - bool is_first; - UnityEngineUIScrollRectMovementType_TypeID = getTypeId(L, typeof(UnityEngine.UI.ScrollRect.MovementType), out is_first); - - if (UnityEngineUIScrollRectMovementType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.ScrollRect.MovementType)); - UnityEngineUIScrollRectMovementType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIScrollRectMovementType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIScrollRectMovementType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.ScrollRect.MovementType ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIScrollRectMovementType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.ScrollRect.MovementType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectMovementType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.MovementType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.ScrollRect.MovementType"); - } - val = (UnityEngine.UI.ScrollRect.MovementType)e; - - } - else - { - val = (UnityEngine.UI.ScrollRect.MovementType)objectCasters.GetCaster(typeof(UnityEngine.UI.ScrollRect.MovementType))(L, index, null); - } - } - - public void UpdateUnityEngineUIScrollRectMovementType(RealStatePtr L, int index, UnityEngine.UI.ScrollRect.MovementType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectMovementType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.MovementType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.ScrollRect.MovementType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIScrollRectScrollbarVisibility_TypeID = -1; - int UnityEngineUIScrollRectScrollbarVisibility_EnumRef = -1; - - public void PushUnityEngineUIScrollRectScrollbarVisibility(RealStatePtr L, UnityEngine.UI.ScrollRect.ScrollbarVisibility val) - { - if (UnityEngineUIScrollRectScrollbarVisibility_TypeID == -1) - { - bool is_first; - UnityEngineUIScrollRectScrollbarVisibility_TypeID = getTypeId(L, typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), out is_first); - - if (UnityEngineUIScrollRectScrollbarVisibility_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility)); - UnityEngineUIScrollRectScrollbarVisibility_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIScrollRectScrollbarVisibility_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIScrollRectScrollbarVisibility_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.ScrollRect.ScrollbarVisibility ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIScrollRectScrollbarVisibility_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.ScrollRect.ScrollbarVisibility val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectScrollbarVisibility_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.ScrollbarVisibility"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.ScrollRect.ScrollbarVisibility"); - } - val = (UnityEngine.UI.ScrollRect.ScrollbarVisibility)e; - - } - else - { - val = (UnityEngine.UI.ScrollRect.ScrollbarVisibility)objectCasters.GetCaster(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility))(L, index, null); - } - } - - public void UpdateUnityEngineUIScrollRectScrollbarVisibility(RealStatePtr L, int index, UnityEngine.UI.ScrollRect.ScrollbarVisibility val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIScrollRectScrollbarVisibility_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.ScrollRect.ScrollbarVisibility"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.ScrollRect.ScrollbarVisibility ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUISliderDirection_TypeID = -1; - int UnityEngineUISliderDirection_EnumRef = -1; - - public void PushUnityEngineUISliderDirection(RealStatePtr L, UnityEngine.UI.Slider.Direction val) - { - if (UnityEngineUISliderDirection_TypeID == -1) - { - bool is_first; - UnityEngineUISliderDirection_TypeID = getTypeId(L, typeof(UnityEngine.UI.Slider.Direction), out is_first); - - if (UnityEngineUISliderDirection_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Slider.Direction)); - UnityEngineUISliderDirection_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUISliderDirection_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUISliderDirection_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Slider.Direction ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUISliderDirection_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Slider.Direction val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUISliderDirection_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Slider.Direction"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Slider.Direction"); - } - val = (UnityEngine.UI.Slider.Direction)e; - - } - else - { - val = (UnityEngine.UI.Slider.Direction)objectCasters.GetCaster(typeof(UnityEngine.UI.Slider.Direction))(L, index, null); - } - } - - public void UpdateUnityEngineUISliderDirection(RealStatePtr L, int index, UnityEngine.UI.Slider.Direction val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUISliderDirection_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Slider.Direction"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Slider.Direction ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIToggleToggleTransition_TypeID = -1; - int UnityEngineUIToggleToggleTransition_EnumRef = -1; - - public void PushUnityEngineUIToggleToggleTransition(RealStatePtr L, UnityEngine.UI.Toggle.ToggleTransition val) - { - if (UnityEngineUIToggleToggleTransition_TypeID == -1) - { - bool is_first; - UnityEngineUIToggleToggleTransition_TypeID = getTypeId(L, typeof(UnityEngine.UI.Toggle.ToggleTransition), out is_first); - - if (UnityEngineUIToggleToggleTransition_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.Toggle.ToggleTransition)); - UnityEngineUIToggleToggleTransition_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIToggleToggleTransition_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIToggleToggleTransition_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.Toggle.ToggleTransition ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIToggleToggleTransition_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.Toggle.ToggleTransition val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIToggleToggleTransition_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Toggle.ToggleTransition"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.Toggle.ToggleTransition"); - } - val = (UnityEngine.UI.Toggle.ToggleTransition)e; - - } - else - { - val = (UnityEngine.UI.Toggle.ToggleTransition)objectCasters.GetCaster(typeof(UnityEngine.UI.Toggle.ToggleTransition))(L, index, null); - } - } - - public void UpdateUnityEngineUIToggleToggleTransition(RealStatePtr L, int index, UnityEngine.UI.Toggle.ToggleTransition val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIToggleToggleTransition_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.Toggle.ToggleTransition"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.Toggle.ToggleTransition ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIGridLayoutGroupCorner_TypeID = -1; - int UnityEngineUIGridLayoutGroupCorner_EnumRef = -1; - - public void PushUnityEngineUIGridLayoutGroupCorner(RealStatePtr L, UnityEngine.UI.GridLayoutGroup.Corner val) - { - if (UnityEngineUIGridLayoutGroupCorner_TypeID == -1) - { - bool is_first; - UnityEngineUIGridLayoutGroupCorner_TypeID = getTypeId(L, typeof(UnityEngine.UI.GridLayoutGroup.Corner), out is_first); - - if (UnityEngineUIGridLayoutGroupCorner_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.GridLayoutGroup.Corner)); - UnityEngineUIGridLayoutGroupCorner_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGridLayoutGroupCorner_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGridLayoutGroupCorner_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.GridLayoutGroup.Corner ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIGridLayoutGroupCorner_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.GridLayoutGroup.Corner val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupCorner_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Corner"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.GridLayoutGroup.Corner"); - } - val = (UnityEngine.UI.GridLayoutGroup.Corner)e; - - } - else - { - val = (UnityEngine.UI.GridLayoutGroup.Corner)objectCasters.GetCaster(typeof(UnityEngine.UI.GridLayoutGroup.Corner))(L, index, null); - } - } - - public void UpdateUnityEngineUIGridLayoutGroupCorner(RealStatePtr L, int index, UnityEngine.UI.GridLayoutGroup.Corner val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupCorner_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Corner"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.GridLayoutGroup.Corner ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIGridLayoutGroupAxis_TypeID = -1; - int UnityEngineUIGridLayoutGroupAxis_EnumRef = -1; - - public void PushUnityEngineUIGridLayoutGroupAxis(RealStatePtr L, UnityEngine.UI.GridLayoutGroup.Axis val) - { - if (UnityEngineUIGridLayoutGroupAxis_TypeID == -1) - { - bool is_first; - UnityEngineUIGridLayoutGroupAxis_TypeID = getTypeId(L, typeof(UnityEngine.UI.GridLayoutGroup.Axis), out is_first); - - if (UnityEngineUIGridLayoutGroupAxis_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.GridLayoutGroup.Axis)); - UnityEngineUIGridLayoutGroupAxis_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGridLayoutGroupAxis_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGridLayoutGroupAxis_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.GridLayoutGroup.Axis ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIGridLayoutGroupAxis_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.GridLayoutGroup.Axis val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupAxis_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Axis"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.GridLayoutGroup.Axis"); - } - val = (UnityEngine.UI.GridLayoutGroup.Axis)e; - - } - else - { - val = (UnityEngine.UI.GridLayoutGroup.Axis)objectCasters.GetCaster(typeof(UnityEngine.UI.GridLayoutGroup.Axis))(L, index, null); - } - } - - public void UpdateUnityEngineUIGridLayoutGroupAxis(RealStatePtr L, int index, UnityEngine.UI.GridLayoutGroup.Axis val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupAxis_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Axis"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.GridLayoutGroup.Axis ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEngineUIGridLayoutGroupConstraint_TypeID = -1; - int UnityEngineUIGridLayoutGroupConstraint_EnumRef = -1; - - public void PushUnityEngineUIGridLayoutGroupConstraint(RealStatePtr L, UnityEngine.UI.GridLayoutGroup.Constraint val) - { - if (UnityEngineUIGridLayoutGroupConstraint_TypeID == -1) - { - bool is_first; - UnityEngineUIGridLayoutGroupConstraint_TypeID = getTypeId(L, typeof(UnityEngine.UI.GridLayoutGroup.Constraint), out is_first); - - if (UnityEngineUIGridLayoutGroupConstraint_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.UI.GridLayoutGroup.Constraint)); - UnityEngineUIGridLayoutGroupConstraint_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineUIGridLayoutGroupConstraint_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineUIGridLayoutGroupConstraint_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.UI.GridLayoutGroup.Constraint ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEngineUIGridLayoutGroupConstraint_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.UI.GridLayoutGroup.Constraint val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupConstraint_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Constraint"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.UI.GridLayoutGroup.Constraint"); - } - val = (UnityEngine.UI.GridLayoutGroup.Constraint)e; - - } - else - { - val = (UnityEngine.UI.GridLayoutGroup.Constraint)objectCasters.GetCaster(typeof(UnityEngine.UI.GridLayoutGroup.Constraint))(L, index, null); - } - } - - public void UpdateUnityEngineUIGridLayoutGroupConstraint(RealStatePtr L, int index, UnityEngine.UI.GridLayoutGroup.Constraint val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineUIGridLayoutGroupConstraint_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.UI.GridLayoutGroup.Constraint"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.UI.GridLayoutGroup.Constraint ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int SpineUnityBoneFollowerAxisOrientation_TypeID = -1; - int SpineUnityBoneFollowerAxisOrientation_EnumRef = -1; - - public void PushSpineUnityBoneFollowerAxisOrientation(RealStatePtr L, Spine.Unity.BoneFollower.AxisOrientation val) - { - if (SpineUnityBoneFollowerAxisOrientation_TypeID == -1) - { - bool is_first; - SpineUnityBoneFollowerAxisOrientation_TypeID = getTypeId(L, typeof(Spine.Unity.BoneFollower.AxisOrientation), out is_first); - - if (SpineUnityBoneFollowerAxisOrientation_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(Spine.Unity.BoneFollower.AxisOrientation)); - SpineUnityBoneFollowerAxisOrientation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SpineUnityBoneFollowerAxisOrientation_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SpineUnityBoneFollowerAxisOrientation_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for Spine.Unity.BoneFollower.AxisOrientation ,value="+val); - } - - LuaAPI.lua_getref(L, SpineUnityBoneFollowerAxisOrientation_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out Spine.Unity.BoneFollower.AxisOrientation val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != SpineUnityBoneFollowerAxisOrientation_TypeID) - { - throw new Exception("invalid userdata for Spine.Unity.BoneFollower.AxisOrientation"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for Spine.Unity.BoneFollower.AxisOrientation"); - } - val = (Spine.Unity.BoneFollower.AxisOrientation)e; - - } - else - { - val = (Spine.Unity.BoneFollower.AxisOrientation)objectCasters.GetCaster(typeof(Spine.Unity.BoneFollower.AxisOrientation))(L, index, null); - } - } - - public void UpdateSpineUnityBoneFollowerAxisOrientation(RealStatePtr L, int index, Spine.Unity.BoneFollower.AxisOrientation val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != SpineUnityBoneFollowerAxisOrientation_TypeID) - { - throw new Exception("invalid userdata for Spine.Unity.BoneFollower.AxisOrientation"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for Spine.Unity.BoneFollower.AxisOrientation ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int SpineUnitySkeletonGraphicLayoutMode_TypeID = -1; - int SpineUnitySkeletonGraphicLayoutMode_EnumRef = -1; - - public void PushSpineUnitySkeletonGraphicLayoutMode(RealStatePtr L, Spine.Unity.SkeletonGraphic.LayoutMode val) - { - if (SpineUnitySkeletonGraphicLayoutMode_TypeID == -1) - { - bool is_first; - SpineUnitySkeletonGraphicLayoutMode_TypeID = getTypeId(L, typeof(Spine.Unity.SkeletonGraphic.LayoutMode), out is_first); - - if (SpineUnitySkeletonGraphicLayoutMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(Spine.Unity.SkeletonGraphic.LayoutMode)); - SpineUnitySkeletonGraphicLayoutMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, SpineUnitySkeletonGraphicLayoutMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, SpineUnitySkeletonGraphicLayoutMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for Spine.Unity.SkeletonGraphic.LayoutMode ,value="+val); - } - - LuaAPI.lua_getref(L, SpineUnitySkeletonGraphicLayoutMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out Spine.Unity.SkeletonGraphic.LayoutMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != SpineUnitySkeletonGraphicLayoutMode_TypeID) - { - throw new Exception("invalid userdata for Spine.Unity.SkeletonGraphic.LayoutMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for Spine.Unity.SkeletonGraphic.LayoutMode"); - } - val = (Spine.Unity.SkeletonGraphic.LayoutMode)e; - - } - else - { - val = (Spine.Unity.SkeletonGraphic.LayoutMode)objectCasters.GetCaster(typeof(Spine.Unity.SkeletonGraphic.LayoutMode))(L, index, null); - } - } - - public void UpdateSpineUnitySkeletonGraphicLayoutMode(RealStatePtr L, int index, Spine.Unity.SkeletonGraphic.LayoutMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != SpineUnitySkeletonGraphicLayoutMode_TypeID) - { - throw new Exception("invalid userdata for Spine.Unity.SkeletonGraphic.LayoutMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for Spine.Unity.SkeletonGraphic.LayoutMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int TMProTextAlignmentOptions_TypeID = -1; - int TMProTextAlignmentOptions_EnumRef = -1; - - public void PushTMProTextAlignmentOptions(RealStatePtr L, TMPro.TextAlignmentOptions val) - { - if (TMProTextAlignmentOptions_TypeID == -1) - { - bool is_first; - TMProTextAlignmentOptions_TypeID = getTypeId(L, typeof(TMPro.TextAlignmentOptions), out is_first); - - if (TMProTextAlignmentOptions_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(TMPro.TextAlignmentOptions)); - TMProTextAlignmentOptions_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTextAlignmentOptions_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTextAlignmentOptions_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for TMPro.TextAlignmentOptions ,value="+val); - } - - LuaAPI.lua_getref(L, TMProTextAlignmentOptions_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out TMPro.TextAlignmentOptions val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTextAlignmentOptions_TypeID) - { - throw new Exception("invalid userdata for TMPro.TextAlignmentOptions"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for TMPro.TextAlignmentOptions"); - } - val = (TMPro.TextAlignmentOptions)e; - - } - else - { - val = (TMPro.TextAlignmentOptions)objectCasters.GetCaster(typeof(TMPro.TextAlignmentOptions))(L, index, null); - } - } - - public void UpdateTMProTextAlignmentOptions(RealStatePtr L, int index, TMPro.TextAlignmentOptions val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTextAlignmentOptions_TypeID) - { - throw new Exception("invalid userdata for TMPro.TextAlignmentOptions"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for TMPro.TextAlignmentOptions ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int TMProTMP_InputFieldContentType_TypeID = -1; - int TMProTMP_InputFieldContentType_EnumRef = -1; - - public void PushTMProTMP_InputFieldContentType(RealStatePtr L, TMPro.TMP_InputField.ContentType val) - { - if (TMProTMP_InputFieldContentType_TypeID == -1) - { - bool is_first; - TMProTMP_InputFieldContentType_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.ContentType), out is_first); - - if (TMProTMP_InputFieldContentType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.ContentType)); - TMProTMP_InputFieldContentType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldContentType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldContentType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for TMPro.TMP_InputField.ContentType ,value="+val); - } - - LuaAPI.lua_getref(L, TMProTMP_InputFieldContentType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.ContentType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldContentType_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.ContentType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for TMPro.TMP_InputField.ContentType"); - } - val = (TMPro.TMP_InputField.ContentType)e; - - } - else - { - val = (TMPro.TMP_InputField.ContentType)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.ContentType))(L, index, null); - } - } - - public void UpdateTMProTMP_InputFieldContentType(RealStatePtr L, int index, TMPro.TMP_InputField.ContentType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldContentType_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.ContentType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for TMPro.TMP_InputField.ContentType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int TMProTMP_InputFieldInputType_TypeID = -1; - int TMProTMP_InputFieldInputType_EnumRef = -1; - - public void PushTMProTMP_InputFieldInputType(RealStatePtr L, TMPro.TMP_InputField.InputType val) - { - if (TMProTMP_InputFieldInputType_TypeID == -1) - { - bool is_first; - TMProTMP_InputFieldInputType_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.InputType), out is_first); - - if (TMProTMP_InputFieldInputType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.InputType)); - TMProTMP_InputFieldInputType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldInputType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldInputType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for TMPro.TMP_InputField.InputType ,value="+val); - } - - LuaAPI.lua_getref(L, TMProTMP_InputFieldInputType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.InputType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldInputType_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.InputType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for TMPro.TMP_InputField.InputType"); - } - val = (TMPro.TMP_InputField.InputType)e; - - } - else - { - val = (TMPro.TMP_InputField.InputType)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.InputType))(L, index, null); - } - } - - public void UpdateTMProTMP_InputFieldInputType(RealStatePtr L, int index, TMPro.TMP_InputField.InputType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldInputType_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.InputType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for TMPro.TMP_InputField.InputType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int TMProTMP_InputFieldCharacterValidation_TypeID = -1; - int TMProTMP_InputFieldCharacterValidation_EnumRef = -1; - - public void PushTMProTMP_InputFieldCharacterValidation(RealStatePtr L, TMPro.TMP_InputField.CharacterValidation val) - { - if (TMProTMP_InputFieldCharacterValidation_TypeID == -1) - { - bool is_first; - TMProTMP_InputFieldCharacterValidation_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.CharacterValidation), out is_first); - - if (TMProTMP_InputFieldCharacterValidation_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.CharacterValidation)); - TMProTMP_InputFieldCharacterValidation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldCharacterValidation_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldCharacterValidation_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for TMPro.TMP_InputField.CharacterValidation ,value="+val); - } - - LuaAPI.lua_getref(L, TMProTMP_InputFieldCharacterValidation_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.CharacterValidation val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldCharacterValidation_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.CharacterValidation"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for TMPro.TMP_InputField.CharacterValidation"); - } - val = (TMPro.TMP_InputField.CharacterValidation)e; - - } - else - { - val = (TMPro.TMP_InputField.CharacterValidation)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.CharacterValidation))(L, index, null); - } - } - - public void UpdateTMProTMP_InputFieldCharacterValidation(RealStatePtr L, int index, TMPro.TMP_InputField.CharacterValidation val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldCharacterValidation_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.CharacterValidation"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for TMPro.TMP_InputField.CharacterValidation ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int TMProTMP_InputFieldLineType_TypeID = -1; - int TMProTMP_InputFieldLineType_EnumRef = -1; - - public void PushTMProTMP_InputFieldLineType(RealStatePtr L, TMPro.TMP_InputField.LineType val) - { - if (TMProTMP_InputFieldLineType_TypeID == -1) - { - bool is_first; - TMProTMP_InputFieldLineType_TypeID = getTypeId(L, typeof(TMPro.TMP_InputField.LineType), out is_first); - - if (TMProTMP_InputFieldLineType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(TMPro.TMP_InputField.LineType)); - TMProTMP_InputFieldLineType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, TMProTMP_InputFieldLineType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, TMProTMP_InputFieldLineType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for TMPro.TMP_InputField.LineType ,value="+val); - } - - LuaAPI.lua_getref(L, TMProTMP_InputFieldLineType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out TMPro.TMP_InputField.LineType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldLineType_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.LineType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for TMPro.TMP_InputField.LineType"); - } - val = (TMPro.TMP_InputField.LineType)e; - - } - else - { - val = (TMPro.TMP_InputField.LineType)objectCasters.GetCaster(typeof(TMPro.TMP_InputField.LineType))(L, index, null); - } - } - - public void UpdateTMProTMP_InputFieldLineType(RealStatePtr L, int index, TMPro.TMP_InputField.LineType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != TMProTMP_InputFieldLineType_TypeID) - { - throw new Exception("invalid userdata for TMPro.TMP_InputField.LineType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for TMPro.TMP_InputField.LineType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID = -1; - int ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef = -1; - - public void PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(RealStatePtr L, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone val) - { - if (ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID == -1) - { - bool is_first; - ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID = getTypeId(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), out is_first); - - if (ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)); - ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone ,value="+val); - } - - LuaAPI.lua_getref(L, ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID) - { - throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone"); - } - val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)e; - - } - else - { - val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone)objectCasters.GetCaster(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone))(L, index, null); - } - } - - public void UpdateThinkingAnalyticsThinkingAnalyticsAPITATimeZone(RealStatePtr L, int index, ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITATimeZone_TypeID) - { - throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID = -1; - int ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef = -1; - - public void PushThinkingAnalyticsThinkingAnalyticsAPITAMode(RealStatePtr L, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode val) - { - if (ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID == -1) - { - bool is_first; - ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID = getTypeId(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), out is_first); - - if (ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)); - ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode ,value="+val); - } - - LuaAPI.lua_getref(L, ThinkingAnalyticsThinkingAnalyticsAPITAMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID) - { - throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode"); - } - val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)e; - - } - else - { - val = (ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode)objectCasters.GetCaster(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode))(L, index, null); - } - } - - public void UpdateThinkingAnalyticsThinkingAnalyticsAPITAMode(RealStatePtr L, int index, ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPITAMode_TypeID) - { - throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID = -1; - int ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef = -1; - - public void PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(RealStatePtr L, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType val) - { - if (ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID == -1) - { - bool is_first; - ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID = getTypeId(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), out is_first); - - if (ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)); - ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType ,value="+val); - } - - LuaAPI.lua_getref(L, ThinkingAnalyticsThinkingAnalyticsAPINetworkType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID) - { - throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType"); - } - val = (ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)e; - - } - else - { - val = (ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType)objectCasters.GetCaster(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType))(L, index, null); - } - } - - public void UpdateThinkingAnalyticsThinkingAnalyticsAPINetworkType(RealStatePtr L, int index, ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != ThinkingAnalyticsThinkingAnalyticsAPINetworkType_TypeID) - { - throw new Exception("invalid userdata for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningAutoPlay_TypeID = -1; - int DGTweeningAutoPlay_EnumRef = -1; - - public void PushDGTweeningAutoPlay(RealStatePtr L, DG.Tweening.AutoPlay val) - { - if (DGTweeningAutoPlay_TypeID == -1) - { - bool is_first; - DGTweeningAutoPlay_TypeID = getTypeId(L, typeof(DG.Tweening.AutoPlay), out is_first); - - if (DGTweeningAutoPlay_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.AutoPlay)); - DGTweeningAutoPlay_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningAutoPlay_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningAutoPlay_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.AutoPlay ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningAutoPlay_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.AutoPlay val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAutoPlay_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.AutoPlay"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.AutoPlay"); - } - val = (DG.Tweening.AutoPlay)e; - - } - else - { - val = (DG.Tweening.AutoPlay)objectCasters.GetCaster(typeof(DG.Tweening.AutoPlay))(L, index, null); - } - } - - public void UpdateDGTweeningAutoPlay(RealStatePtr L, int index, DG.Tweening.AutoPlay val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAutoPlay_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.AutoPlay"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.AutoPlay ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningAxisConstraint_TypeID = -1; - int DGTweeningAxisConstraint_EnumRef = -1; - - public void PushDGTweeningAxisConstraint(RealStatePtr L, DG.Tweening.AxisConstraint val) - { - if (DGTweeningAxisConstraint_TypeID == -1) - { - bool is_first; - DGTweeningAxisConstraint_TypeID = getTypeId(L, typeof(DG.Tweening.AxisConstraint), out is_first); - - if (DGTweeningAxisConstraint_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.AxisConstraint)); - DGTweeningAxisConstraint_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningAxisConstraint_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningAxisConstraint_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.AxisConstraint ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningAxisConstraint_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.AxisConstraint val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAxisConstraint_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.AxisConstraint"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.AxisConstraint"); - } - val = (DG.Tweening.AxisConstraint)e; - - } - else - { - val = (DG.Tweening.AxisConstraint)objectCasters.GetCaster(typeof(DG.Tweening.AxisConstraint))(L, index, null); - } - } - - public void UpdateDGTweeningAxisConstraint(RealStatePtr L, int index, DG.Tweening.AxisConstraint val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningAxisConstraint_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.AxisConstraint"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.AxisConstraint ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningEase_TypeID = -1; - int DGTweeningEase_EnumRef = -1; - - public void PushDGTweeningEase(RealStatePtr L, DG.Tweening.Ease val) - { - if (DGTweeningEase_TypeID == -1) - { - bool is_first; - DGTweeningEase_TypeID = getTypeId(L, typeof(DG.Tweening.Ease), out is_first); - - if (DGTweeningEase_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.Ease)); - DGTweeningEase_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningEase_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningEase_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.Ease ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningEase_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.Ease val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningEase_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.Ease"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.Ease"); - } - val = (DG.Tweening.Ease)e; - - } - else - { - val = (DG.Tweening.Ease)objectCasters.GetCaster(typeof(DG.Tweening.Ease))(L, index, null); - } - } - - public void UpdateDGTweeningEase(RealStatePtr L, int index, DG.Tweening.Ease val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningEase_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.Ease"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.Ease ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningLogBehaviour_TypeID = -1; - int DGTweeningLogBehaviour_EnumRef = -1; - - public void PushDGTweeningLogBehaviour(RealStatePtr L, DG.Tweening.LogBehaviour val) - { - if (DGTweeningLogBehaviour_TypeID == -1) - { - bool is_first; - DGTweeningLogBehaviour_TypeID = getTypeId(L, typeof(DG.Tweening.LogBehaviour), out is_first); - - if (DGTweeningLogBehaviour_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.LogBehaviour)); - DGTweeningLogBehaviour_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningLogBehaviour_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningLogBehaviour_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.LogBehaviour ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningLogBehaviour_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.LogBehaviour val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLogBehaviour_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.LogBehaviour"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.LogBehaviour"); - } - val = (DG.Tweening.LogBehaviour)e; - - } - else - { - val = (DG.Tweening.LogBehaviour)objectCasters.GetCaster(typeof(DG.Tweening.LogBehaviour))(L, index, null); - } - } - - public void UpdateDGTweeningLogBehaviour(RealStatePtr L, int index, DG.Tweening.LogBehaviour val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLogBehaviour_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.LogBehaviour"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.LogBehaviour ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningLoopType_TypeID = -1; - int DGTweeningLoopType_EnumRef = -1; - - public void PushDGTweeningLoopType(RealStatePtr L, DG.Tweening.LoopType val) - { - if (DGTweeningLoopType_TypeID == -1) - { - bool is_first; - DGTweeningLoopType_TypeID = getTypeId(L, typeof(DG.Tweening.LoopType), out is_first); - - if (DGTweeningLoopType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.LoopType)); - DGTweeningLoopType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningLoopType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningLoopType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.LoopType ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningLoopType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.LoopType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLoopType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.LoopType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.LoopType"); - } - val = (DG.Tweening.LoopType)e; - - } - else - { - val = (DG.Tweening.LoopType)objectCasters.GetCaster(typeof(DG.Tweening.LoopType))(L, index, null); - } - } - - public void UpdateDGTweeningLoopType(RealStatePtr L, int index, DG.Tweening.LoopType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningLoopType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.LoopType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.LoopType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningPathMode_TypeID = -1; - int DGTweeningPathMode_EnumRef = -1; - - public void PushDGTweeningPathMode(RealStatePtr L, DG.Tweening.PathMode val) - { - if (DGTweeningPathMode_TypeID == -1) - { - bool is_first; - DGTweeningPathMode_TypeID = getTypeId(L, typeof(DG.Tweening.PathMode), out is_first); - - if (DGTweeningPathMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.PathMode)); - DGTweeningPathMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningPathMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningPathMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.PathMode ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningPathMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.PathMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathMode_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.PathMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.PathMode"); - } - val = (DG.Tweening.PathMode)e; - - } - else - { - val = (DG.Tweening.PathMode)objectCasters.GetCaster(typeof(DG.Tweening.PathMode))(L, index, null); - } - } - - public void UpdateDGTweeningPathMode(RealStatePtr L, int index, DG.Tweening.PathMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathMode_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.PathMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.PathMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningPathType_TypeID = -1; - int DGTweeningPathType_EnumRef = -1; - - public void PushDGTweeningPathType(RealStatePtr L, DG.Tweening.PathType val) - { - if (DGTweeningPathType_TypeID == -1) - { - bool is_first; - DGTweeningPathType_TypeID = getTypeId(L, typeof(DG.Tweening.PathType), out is_first); - - if (DGTweeningPathType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.PathType)); - DGTweeningPathType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningPathType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningPathType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.PathType ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningPathType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.PathType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.PathType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.PathType"); - } - val = (DG.Tweening.PathType)e; - - } - else - { - val = (DG.Tweening.PathType)objectCasters.GetCaster(typeof(DG.Tweening.PathType))(L, index, null); - } - } - - public void UpdateDGTweeningPathType(RealStatePtr L, int index, DG.Tweening.PathType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningPathType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.PathType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.PathType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningRotateMode_TypeID = -1; - int DGTweeningRotateMode_EnumRef = -1; - - public void PushDGTweeningRotateMode(RealStatePtr L, DG.Tweening.RotateMode val) - { - if (DGTweeningRotateMode_TypeID == -1) - { - bool is_first; - DGTweeningRotateMode_TypeID = getTypeId(L, typeof(DG.Tweening.RotateMode), out is_first); - - if (DGTweeningRotateMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.RotateMode)); - DGTweeningRotateMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningRotateMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningRotateMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.RotateMode ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningRotateMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.RotateMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningRotateMode_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.RotateMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.RotateMode"); - } - val = (DG.Tweening.RotateMode)e; - - } - else - { - val = (DG.Tweening.RotateMode)objectCasters.GetCaster(typeof(DG.Tweening.RotateMode))(L, index, null); - } - } - - public void UpdateDGTweeningRotateMode(RealStatePtr L, int index, DG.Tweening.RotateMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningRotateMode_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.RotateMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.RotateMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningScrambleMode_TypeID = -1; - int DGTweeningScrambleMode_EnumRef = -1; - - public void PushDGTweeningScrambleMode(RealStatePtr L, DG.Tweening.ScrambleMode val) - { - if (DGTweeningScrambleMode_TypeID == -1) - { - bool is_first; - DGTweeningScrambleMode_TypeID = getTypeId(L, typeof(DG.Tweening.ScrambleMode), out is_first); - - if (DGTweeningScrambleMode_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.ScrambleMode)); - DGTweeningScrambleMode_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningScrambleMode_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningScrambleMode_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.ScrambleMode ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningScrambleMode_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.ScrambleMode val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningScrambleMode_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.ScrambleMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.ScrambleMode"); - } - val = (DG.Tweening.ScrambleMode)e; - - } - else - { - val = (DG.Tweening.ScrambleMode)objectCasters.GetCaster(typeof(DG.Tweening.ScrambleMode))(L, index, null); - } - } - - public void UpdateDGTweeningScrambleMode(RealStatePtr L, int index, DG.Tweening.ScrambleMode val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningScrambleMode_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.ScrambleMode"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.ScrambleMode ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningTweenType_TypeID = -1; - int DGTweeningTweenType_EnumRef = -1; - - public void PushDGTweeningTweenType(RealStatePtr L, DG.Tweening.TweenType val) - { - if (DGTweeningTweenType_TypeID == -1) - { - bool is_first; - DGTweeningTweenType_TypeID = getTypeId(L, typeof(DG.Tweening.TweenType), out is_first); - - if (DGTweeningTweenType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.TweenType)); - DGTweeningTweenType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningTweenType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningTweenType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.TweenType ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningTweenType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.TweenType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningTweenType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.TweenType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.TweenType"); - } - val = (DG.Tweening.TweenType)e; - - } - else - { - val = (DG.Tweening.TweenType)objectCasters.GetCaster(typeof(DG.Tweening.TweenType))(L, index, null); - } - } - - public void UpdateDGTweeningTweenType(RealStatePtr L, int index, DG.Tweening.TweenType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningTweenType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.TweenType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.TweenType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int DGTweeningUpdateType_TypeID = -1; - int DGTweeningUpdateType_EnumRef = -1; - - public void PushDGTweeningUpdateType(RealStatePtr L, DG.Tweening.UpdateType val) - { - if (DGTweeningUpdateType_TypeID == -1) - { - bool is_first; - DGTweeningUpdateType_TypeID = getTypeId(L, typeof(DG.Tweening.UpdateType), out is_first); - - if (DGTweeningUpdateType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(DG.Tweening.UpdateType)); - DGTweeningUpdateType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, DGTweeningUpdateType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, DGTweeningUpdateType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for DG.Tweening.UpdateType ,value="+val); - } - - LuaAPI.lua_getref(L, DGTweeningUpdateType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out DG.Tweening.UpdateType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningUpdateType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.UpdateType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for DG.Tweening.UpdateType"); - } - val = (DG.Tweening.UpdateType)e; - - } - else - { - val = (DG.Tweening.UpdateType)objectCasters.GetCaster(typeof(DG.Tweening.UpdateType))(L, index, null); - } - } - - public void UpdateDGTweeningUpdateType(RealStatePtr L, int index, DG.Tweening.UpdateType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != DGTweeningUpdateType_TypeID) - { - throw new Exception("invalid userdata for DG.Tweening.UpdateType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for DG.Tweening.UpdateType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int HttpRequestState_TypeID = -1; - int HttpRequestState_EnumRef = -1; - - public void PushHttpRequestState(RealStatePtr L, Http.RequestState val) - { - if (HttpRequestState_TypeID == -1) - { - bool is_first; - HttpRequestState_TypeID = getTypeId(L, typeof(Http.RequestState), out is_first); - - if (HttpRequestState_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(Http.RequestState)); - HttpRequestState_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, HttpRequestState_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, HttpRequestState_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for Http.RequestState ,value="+val); - } - - LuaAPI.lua_getref(L, HttpRequestState_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out Http.RequestState val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != HttpRequestState_TypeID) - { - throw new Exception("invalid userdata for Http.RequestState"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for Http.RequestState"); - } - val = (Http.RequestState)e; - - } - else - { - val = (Http.RequestState)objectCasters.GetCaster(typeof(Http.RequestState))(L, index, null); - } - } - - public void UpdateHttpRequestState(RealStatePtr L, int index, Http.RequestState val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != HttpRequestState_TypeID) - { - throw new Exception("invalid userdata for Http.RequestState"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for Http.RequestState ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int UnityEnginePurchasingProductType_TypeID = -1; - int UnityEnginePurchasingProductType_EnumRef = -1; - - public void PushUnityEnginePurchasingProductType(RealStatePtr L, UnityEngine.Purchasing.ProductType val) - { - if (UnityEnginePurchasingProductType_TypeID == -1) - { - bool is_first; - UnityEnginePurchasingProductType_TypeID = getTypeId(L, typeof(UnityEngine.Purchasing.ProductType), out is_first); - - if (UnityEnginePurchasingProductType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(UnityEngine.Purchasing.ProductType)); - UnityEnginePurchasingProductType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEnginePurchasingProductType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEnginePurchasingProductType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for UnityEngine.Purchasing.ProductType ,value="+val); - } - - LuaAPI.lua_getref(L, UnityEnginePurchasingProductType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out UnityEngine.Purchasing.ProductType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEnginePurchasingProductType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Purchasing.ProductType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for UnityEngine.Purchasing.ProductType"); - } - val = (UnityEngine.Purchasing.ProductType)e; - - } - else - { - val = (UnityEngine.Purchasing.ProductType)objectCasters.GetCaster(typeof(UnityEngine.Purchasing.ProductType))(L, index, null); - } - } - - public void UpdateUnityEnginePurchasingProductType(RealStatePtr L, int index, UnityEngine.Purchasing.ProductType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != UnityEnginePurchasingProductType_TypeID) - { - throw new Exception("invalid userdata for UnityEngine.Purchasing.ProductType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for UnityEngine.Purchasing.ProductType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int BFBFSliderFillDirection_TypeID = -1; - int BFBFSliderFillDirection_EnumRef = -1; - - public void PushBFBFSliderFillDirection(RealStatePtr L, BF.BFSlider.FillDirection val) - { - if (BFBFSliderFillDirection_TypeID == -1) - { - bool is_first; - BFBFSliderFillDirection_TypeID = getTypeId(L, typeof(BF.BFSlider.FillDirection), out is_first); - - if (BFBFSliderFillDirection_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(BF.BFSlider.FillDirection)); - BFBFSliderFillDirection_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFBFSliderFillDirection_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFBFSliderFillDirection_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for BF.BFSlider.FillDirection ,value="+val); - } - - LuaAPI.lua_getref(L, BFBFSliderFillDirection_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out BF.BFSlider.FillDirection val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFBFSliderFillDirection_TypeID) - { - throw new Exception("invalid userdata for BF.BFSlider.FillDirection"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for BF.BFSlider.FillDirection"); - } - val = (BF.BFSlider.FillDirection)e; - - } - else - { - val = (BF.BFSlider.FillDirection)objectCasters.GetCaster(typeof(BF.BFSlider.FillDirection))(L, index, null); - } - } - - public void UpdateBFBFSliderFillDirection(RealStatePtr L, int index, BF.BFSlider.FillDirection val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFBFSliderFillDirection_TypeID) - { - throw new Exception("invalid userdata for BF.BFSlider.FillDirection"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for BF.BFSlider.FillDirection ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int BFScrollRectBaseOldMovementType_TypeID = -1; - int BFScrollRectBaseOldMovementType_EnumRef = -1; - - public void PushBFScrollRectBaseOldMovementType(RealStatePtr L, BF.ScrollRectBaseOld.MovementType val) - { - if (BFScrollRectBaseOldMovementType_TypeID == -1) - { - bool is_first; - BFScrollRectBaseOldMovementType_TypeID = getTypeId(L, typeof(BF.ScrollRectBaseOld.MovementType), out is_first); - - if (BFScrollRectBaseOldMovementType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(BF.ScrollRectBaseOld.MovementType)); - BFScrollRectBaseOldMovementType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFScrollRectBaseOldMovementType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFScrollRectBaseOldMovementType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for BF.ScrollRectBaseOld.MovementType ,value="+val); - } - - LuaAPI.lua_getref(L, BFScrollRectBaseOldMovementType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out BF.ScrollRectBaseOld.MovementType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldMovementType_TypeID) - { - throw new Exception("invalid userdata for BF.ScrollRectBaseOld.MovementType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for BF.ScrollRectBaseOld.MovementType"); - } - val = (BF.ScrollRectBaseOld.MovementType)e; - - } - else - { - val = (BF.ScrollRectBaseOld.MovementType)objectCasters.GetCaster(typeof(BF.ScrollRectBaseOld.MovementType))(L, index, null); - } - } - - public void UpdateBFScrollRectBaseOldMovementType(RealStatePtr L, int index, BF.ScrollRectBaseOld.MovementType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldMovementType_TypeID) - { - throw new Exception("invalid userdata for BF.ScrollRectBaseOld.MovementType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for BF.ScrollRectBaseOld.MovementType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int BFScrollRectBaseOldScrollbarVisibility_TypeID = -1; - int BFScrollRectBaseOldScrollbarVisibility_EnumRef = -1; - - public void PushBFScrollRectBaseOldScrollbarVisibility(RealStatePtr L, BF.ScrollRectBaseOld.ScrollbarVisibility val) - { - if (BFScrollRectBaseOldScrollbarVisibility_TypeID == -1) - { - bool is_first; - BFScrollRectBaseOldScrollbarVisibility_TypeID = getTypeId(L, typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), out is_first); - - if (BFScrollRectBaseOldScrollbarVisibility_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(BF.ScrollRectBaseOld.ScrollbarVisibility)); - BFScrollRectBaseOldScrollbarVisibility_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFScrollRectBaseOldScrollbarVisibility_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFScrollRectBaseOldScrollbarVisibility_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for BF.ScrollRectBaseOld.ScrollbarVisibility ,value="+val); - } - - LuaAPI.lua_getref(L, BFScrollRectBaseOldScrollbarVisibility_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out BF.ScrollRectBaseOld.ScrollbarVisibility val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldScrollbarVisibility_TypeID) - { - throw new Exception("invalid userdata for BF.ScrollRectBaseOld.ScrollbarVisibility"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for BF.ScrollRectBaseOld.ScrollbarVisibility"); - } - val = (BF.ScrollRectBaseOld.ScrollbarVisibility)e; - - } - else - { - val = (BF.ScrollRectBaseOld.ScrollbarVisibility)objectCasters.GetCaster(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility))(L, index, null); - } - } - - public void UpdateBFScrollRectBaseOldScrollbarVisibility(RealStatePtr L, int index, BF.ScrollRectBaseOld.ScrollbarVisibility val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFScrollRectBaseOldScrollbarVisibility_TypeID) - { - throw new Exception("invalid userdata for BF.ScrollRectBaseOld.ScrollbarVisibility"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for BF.ScrollRectBaseOld.ScrollbarVisibility ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int BFNetServiceType_TypeID = -1; - int BFNetServiceType_EnumRef = -1; - - public void PushBFNetServiceType(RealStatePtr L, BF.NetServiceType val) - { - if (BFNetServiceType_TypeID == -1) - { - bool is_first; - BFNetServiceType_TypeID = getTypeId(L, typeof(BF.NetServiceType), out is_first); - - if (BFNetServiceType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(BF.NetServiceType)); - BFNetServiceType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFNetServiceType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFNetServiceType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for BF.NetServiceType ,value="+val); - } - - LuaAPI.lua_getref(L, BFNetServiceType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out BF.NetServiceType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFNetServiceType_TypeID) - { - throw new Exception("invalid userdata for BF.NetServiceType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for BF.NetServiceType"); - } - val = (BF.NetServiceType)e; - - } - else - { - val = (BF.NetServiceType)objectCasters.GetCaster(typeof(BF.NetServiceType))(L, index, null); - } - } - - public void UpdateBFNetServiceType(RealStatePtr L, int index, BF.NetServiceType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFNetServiceType_TypeID) - { - throw new Exception("invalid userdata for BF.NetServiceType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for BF.NetServiceType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int BFNetIncomingMessageType_TypeID = -1; - int BFNetIncomingMessageType_EnumRef = -1; - - public void PushBFNetIncomingMessageType(RealStatePtr L, BF.NetIncomingMessageType val) - { - if (BFNetIncomingMessageType_TypeID == -1) - { - bool is_first; - BFNetIncomingMessageType_TypeID = getTypeId(L, typeof(BF.NetIncomingMessageType), out is_first); - - if (BFNetIncomingMessageType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(BF.NetIncomingMessageType)); - BFNetIncomingMessageType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFNetIncomingMessageType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFNetIncomingMessageType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for BF.NetIncomingMessageType ,value="+val); - } - - LuaAPI.lua_getref(L, BFNetIncomingMessageType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out BF.NetIncomingMessageType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFNetIncomingMessageType_TypeID) - { - throw new Exception("invalid userdata for BF.NetIncomingMessageType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for BF.NetIncomingMessageType"); - } - val = (BF.NetIncomingMessageType)e; - - } - else - { - val = (BF.NetIncomingMessageType)objectCasters.GetCaster(typeof(BF.NetIncomingMessageType))(L, index, null); - } - } - - public void UpdateBFNetIncomingMessageType(RealStatePtr L, int index, BF.NetIncomingMessageType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFNetIncomingMessageType_TypeID) - { - throw new Exception("invalid userdata for BF.NetIncomingMessageType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for BF.NetIncomingMessageType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int BFTouchEventType_TypeID = -1; - int BFTouchEventType_EnumRef = -1; - - public void PushBFTouchEventType(RealStatePtr L, BF.TouchEventType val) - { - if (BFTouchEventType_TypeID == -1) - { - bool is_first; - BFTouchEventType_TypeID = getTypeId(L, typeof(BF.TouchEventType), out is_first); - - if (BFTouchEventType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(BF.TouchEventType)); - BFTouchEventType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFTouchEventType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFTouchEventType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for BF.TouchEventType ,value="+val); - } - - LuaAPI.lua_getref(L, BFTouchEventType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out BF.TouchEventType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFTouchEventType_TypeID) - { - throw new Exception("invalid userdata for BF.TouchEventType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for BF.TouchEventType"); - } - val = (BF.TouchEventType)e; - - } - else - { - val = (BF.TouchEventType)objectCasters.GetCaster(typeof(BF.TouchEventType))(L, index, null); - } - } - - public void UpdateBFTouchEventType(RealStatePtr L, int index, BF.TouchEventType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFTouchEventType_TypeID) - { - throw new Exception("invalid userdata for BF.TouchEventType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for BF.TouchEventType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - int BFSelectEventType_TypeID = -1; - int BFSelectEventType_EnumRef = -1; - - public void PushBFSelectEventType(RealStatePtr L, BF.SelectEventType val) - { - if (BFSelectEventType_TypeID == -1) - { - bool is_first; - BFSelectEventType_TypeID = getTypeId(L, typeof(BF.SelectEventType), out is_first); - - if (BFSelectEventType_EnumRef == -1) - { - Utils.LoadCSTable(L, typeof(BF.SelectEventType)); - BFSelectEventType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); - } - - } - - if (LuaAPI.xlua_tryget_cachedud(L, (int)val, BFSelectEventType_EnumRef) == 1) - { - return; - } - - IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, BFSelectEventType_TypeID); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail fail for BF.SelectEventType ,value="+val); - } - - LuaAPI.lua_getref(L, BFSelectEventType_EnumRef); - LuaAPI.lua_pushvalue(L, -2); - LuaAPI.xlua_rawseti(L, -2, (int)val); - LuaAPI.lua_pop(L, 1); - - } - - public void Get(RealStatePtr L, int index, out BF.SelectEventType val) - { - LuaTypes type = LuaAPI.lua_type(L, index); - if (type == LuaTypes.LUA_TUSERDATA ) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFSelectEventType_TypeID) - { - throw new Exception("invalid userdata for BF.SelectEventType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - int e; - if (!CopyByValue.UnPack(buff, 0, out e)) - { - throw new Exception("unpack fail for BF.SelectEventType"); - } - val = (BF.SelectEventType)e; - - } - else - { - val = (BF.SelectEventType)objectCasters.GetCaster(typeof(BF.SelectEventType))(L, index, null); - } - } - - public void UpdateBFSelectEventType(RealStatePtr L, int index, BF.SelectEventType val) - { - - if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) - { - if (LuaAPI.xlua_gettypeid(L, index) != BFSelectEventType_TypeID) - { - throw new Exception("invalid userdata for BF.SelectEventType"); - } - - IntPtr buff = LuaAPI.lua_touserdata(L, index); - if (!CopyByValue.Pack(buff, 0, (int)val)) - { - throw new Exception("pack fail for BF.SelectEventType ,value="+val); - } - } - - else - { - throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); - } - } - - - // table cast optimze - - - } - - public partial class StaticLuaCallbacks - { - internal static bool __tryArrayGet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int index) - { - - if (type == typeof(UnityEngine.Vector2[])) - { - UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[]; - translator.PushUnityEngineVector2(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Vector3[])) - { - UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[]; - translator.PushUnityEngineVector3(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Vector4[])) - { - UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[]; - translator.PushUnityEngineVector4(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Color[])) - { - UnityEngine.Color[] array = obj as UnityEngine.Color[]; - translator.PushUnityEngineColor(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Quaternion[])) - { - UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[]; - translator.PushUnityEngineQuaternion(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Ray[])) - { - UnityEngine.Ray[] array = obj as UnityEngine.Ray[]; - translator.PushUnityEngineRay(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Bounds[])) - { - UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[]; - translator.PushUnityEngineBounds(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Ray2D[])) - { - UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[]; - translator.PushUnityEngineRay2D(L, array[index]); - return true; - } - else if (type == typeof(AdFormat[])) - { - AdFormat[] array = obj as AdFormat[]; - translator.PushAdFormat(L, array[index]); - return true; - } - else if (type == typeof(IronSourceBannerPosition[])) - { - IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; - translator.PushIronSourceBannerPosition(L, array[index]); - return true; - } - else if (type == typeof(UIImageSheetAnimation.AnimationType[])) - { - UIImageSheetAnimation.AnimationType[] array = obj as UIImageSheetAnimation.AnimationType[]; - translator.PushUIImageSheetAnimationAnimationType(L, array[index]); - return true; - } - else if (type == typeof(UIImageSheetAnimation.TimeType[])) - { - UIImageSheetAnimation.TimeType[] array = obj as UIImageSheetAnimation.TimeType[]; - translator.PushUIImageSheetAnimationTimeType(L, array[index]); - return true; - } - else if (type == typeof(UIImageSheetAnimation.StartFrameType[])) - { - UIImageSheetAnimation.StartFrameType[] array = obj as UIImageSheetAnimation.StartFrameType[]; - translator.PushUIImageSheetAnimationStartFrameType(L, array[index]); - return true; - } - else if (type == typeof(System.Reflection.BindingFlags[])) - { - System.Reflection.BindingFlags[] array = obj as System.Reflection.BindingFlags[]; - translator.PushSystemReflectionBindingFlags(L, array[index]); - return true; - } - else if (type == typeof(System.DayOfWeek[])) - { - System.DayOfWeek[] array = obj as System.DayOfWeek[]; - translator.PushSystemDayOfWeek(L, array[index]); - return true; - } - else if (type == typeof(System.Net.NetworkInformation.IPStatus[])) - { - System.Net.NetworkInformation.IPStatus[] array = obj as System.Net.NetworkInformation.IPStatus[]; - translator.PushSystemNetNetworkInformationIPStatus(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Camera.GateFitMode[])) - { - UnityEngine.Camera.GateFitMode[] array = obj as UnityEngine.Camera.GateFitMode[]; - translator.PushUnityEngineCameraGateFitMode(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Camera.StereoscopicEye[])) - { - UnityEngine.Camera.StereoscopicEye[] array = obj as UnityEngine.Camera.StereoscopicEye[]; - translator.PushUnityEngineCameraStereoscopicEye(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Camera.MonoOrStereoscopicEye[])) - { - UnityEngine.Camera.MonoOrStereoscopicEye[] array = obj as UnityEngine.Camera.MonoOrStereoscopicEye[]; - translator.PushUnityEngineCameraMonoOrStereoscopicEye(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Camera.FieldOfViewAxis[])) - { - UnityEngine.Camera.FieldOfViewAxis[] array = obj as UnityEngine.Camera.FieldOfViewAxis[]; - translator.PushUnityEngineCameraFieldOfViewAxis(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Camera.RenderRequestMode[])) - { - UnityEngine.Camera.RenderRequestMode[] array = obj as UnityEngine.Camera.RenderRequestMode[]; - translator.PushUnityEngineCameraRenderRequestMode(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Camera.RenderRequestOutputSpace[])) - { - UnityEngine.Camera.RenderRequestOutputSpace[] array = obj as UnityEngine.Camera.RenderRequestOutputSpace[]; - translator.PushUnityEngineCameraRenderRequestOutputSpace(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Camera.SceneViewFilterMode[])) - { - UnityEngine.Camera.SceneViewFilterMode[] array = obj as UnityEngine.Camera.SceneViewFilterMode[]; - translator.PushUnityEngineCameraSceneViewFilterMode(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Rendering.LightShadowResolution[])) - { - UnityEngine.Rendering.LightShadowResolution[] array = obj as UnityEngine.Rendering.LightShadowResolution[]; - translator.PushUnityEngineRenderingLightShadowResolution(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.RenderTextureFormat[])) - { - UnityEngine.RenderTextureFormat[] array = obj as UnityEngine.RenderTextureFormat[]; - translator.PushUnityEngineRenderTextureFormat(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.RenderTextureReadWrite[])) - { - UnityEngine.RenderTextureReadWrite[] array = obj as UnityEngine.RenderTextureReadWrite[]; - translator.PushUnityEngineRenderTextureReadWrite(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.RigidbodyConstraints[])) - { - UnityEngine.RigidbodyConstraints[] array = obj as UnityEngine.RigidbodyConstraints[]; - translator.PushUnityEngineRigidbodyConstraints(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.TransparencySortMode[])) - { - UnityEngine.TransparencySortMode[] array = obj as UnityEngine.TransparencySortMode[]; - translator.PushUnityEngineTransparencySortMode(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.RectTransform.Axis[])) - { - UnityEngine.RectTransform.Axis[] array = obj as UnityEngine.RectTransform.Axis[]; - translator.PushUnityEngineRectTransformAxis(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.RectTransform.Edge[])) - { - UnityEngine.RectTransform.Edge[] array = obj as UnityEngine.RectTransform.Edge[]; - translator.PushUnityEngineRectTransformEdge(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.AnimatorCullingMode[])) - { - UnityEngine.AnimatorCullingMode[] array = obj as UnityEngine.AnimatorCullingMode[]; - translator.PushUnityEngineAnimatorCullingMode(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.SystemLanguage[])) - { - UnityEngine.SystemLanguage[] array = obj as UnityEngine.SystemLanguage[]; - translator.PushUnityEngineSystemLanguage(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Rendering.ShadowCastingMode[])) - { - UnityEngine.Rendering.ShadowCastingMode[] array = obj as UnityEngine.Rendering.ShadowCastingMode[]; - translator.PushUnityEngineRenderingShadowCastingMode(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Texture2D.EXRFlags[])) - { - UnityEngine.Texture2D.EXRFlags[] array = obj as UnityEngine.Texture2D.EXRFlags[]; - translator.PushUnityEngineTexture2DEXRFlags(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.KeyCode[])) - { - UnityEngine.KeyCode[] array = obj as UnityEngine.KeyCode[]; - translator.PushUnityEngineKeyCode(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.NetworkReachability[])) - { - UnityEngine.NetworkReachability[] array = obj as UnityEngine.NetworkReachability[]; - translator.PushUnityEngineNetworkReachability(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.RuntimePlatform[])) - { - UnityEngine.RuntimePlatform[] array = obj as UnityEngine.RuntimePlatform[]; - translator.PushUnityEngineRuntimePlatform(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Rendering.CompareFunction[])) - { - UnityEngine.Rendering.CompareFunction[] array = obj as UnityEngine.Rendering.CompareFunction[]; - translator.PushUnityEngineRenderingCompareFunction(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.TextAnchor[])) - { - UnityEngine.TextAnchor[] array = obj as UnityEngine.TextAnchor[]; - translator.PushUnityEngineTextAnchor(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.BatteryStatus[])) - { - UnityEngine.BatteryStatus[] array = obj as UnityEngine.BatteryStatus[]; - translator.PushUnityEngineBatteryStatus(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects[])) - { - UnityEngine.UI.GraphicRaycaster.BlockingObjects[] array = obj as UnityEngine.UI.GraphicRaycaster.BlockingObjects[]; - translator.PushUnityEngineUIGraphicRaycasterBlockingObjects(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Type[])) - { - UnityEngine.UI.Image.Type[] array = obj as UnityEngine.UI.Image.Type[]; - translator.PushUnityEngineUIImageType(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.FillMethod[])) - { - UnityEngine.UI.Image.FillMethod[] array = obj as UnityEngine.UI.Image.FillMethod[]; - translator.PushUnityEngineUIImageFillMethod(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.OriginHorizontal[])) - { - UnityEngine.UI.Image.OriginHorizontal[] array = obj as UnityEngine.UI.Image.OriginHorizontal[]; - translator.PushUnityEngineUIImageOriginHorizontal(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.OriginVertical[])) - { - UnityEngine.UI.Image.OriginVertical[] array = obj as UnityEngine.UI.Image.OriginVertical[]; - translator.PushUnityEngineUIImageOriginVertical(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Origin90[])) - { - UnityEngine.UI.Image.Origin90[] array = obj as UnityEngine.UI.Image.Origin90[]; - translator.PushUnityEngineUIImageOrigin90(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Origin180[])) - { - UnityEngine.UI.Image.Origin180[] array = obj as UnityEngine.UI.Image.Origin180[]; - translator.PushUnityEngineUIImageOrigin180(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Origin360[])) - { - UnityEngine.UI.Image.Origin360[] array = obj as UnityEngine.UI.Image.Origin360[]; - translator.PushUnityEngineUIImageOrigin360(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.ContentType[])) - { - UnityEngine.UI.InputField.ContentType[] array = obj as UnityEngine.UI.InputField.ContentType[]; - translator.PushUnityEngineUIInputFieldContentType(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.InputType[])) - { - UnityEngine.UI.InputField.InputType[] array = obj as UnityEngine.UI.InputField.InputType[]; - translator.PushUnityEngineUIInputFieldInputType(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.CharacterValidation[])) - { - UnityEngine.UI.InputField.CharacterValidation[] array = obj as UnityEngine.UI.InputField.CharacterValidation[]; - translator.PushUnityEngineUIInputFieldCharacterValidation(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.LineType[])) - { - UnityEngine.UI.InputField.LineType[] array = obj as UnityEngine.UI.InputField.LineType[]; - translator.PushUnityEngineUIInputFieldLineType(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.ScrollRect.MovementType[])) - { - UnityEngine.UI.ScrollRect.MovementType[] array = obj as UnityEngine.UI.ScrollRect.MovementType[]; - translator.PushUnityEngineUIScrollRectMovementType(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility[])) - { - UnityEngine.UI.ScrollRect.ScrollbarVisibility[] array = obj as UnityEngine.UI.ScrollRect.ScrollbarVisibility[]; - translator.PushUnityEngineUIScrollRectScrollbarVisibility(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Slider.Direction[])) - { - UnityEngine.UI.Slider.Direction[] array = obj as UnityEngine.UI.Slider.Direction[]; - translator.PushUnityEngineUISliderDirection(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.Toggle.ToggleTransition[])) - { - UnityEngine.UI.Toggle.ToggleTransition[] array = obj as UnityEngine.UI.Toggle.ToggleTransition[]; - translator.PushUnityEngineUIToggleToggleTransition(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Corner[])) - { - UnityEngine.UI.GridLayoutGroup.Corner[] array = obj as UnityEngine.UI.GridLayoutGroup.Corner[]; - translator.PushUnityEngineUIGridLayoutGroupCorner(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Axis[])) - { - UnityEngine.UI.GridLayoutGroup.Axis[] array = obj as UnityEngine.UI.GridLayoutGroup.Axis[]; - translator.PushUnityEngineUIGridLayoutGroupAxis(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Constraint[])) - { - UnityEngine.UI.GridLayoutGroup.Constraint[] array = obj as UnityEngine.UI.GridLayoutGroup.Constraint[]; - translator.PushUnityEngineUIGridLayoutGroupConstraint(L, array[index]); - return true; - } - else if (type == typeof(Spine.Unity.BoneFollower.AxisOrientation[])) - { - Spine.Unity.BoneFollower.AxisOrientation[] array = obj as Spine.Unity.BoneFollower.AxisOrientation[]; - translator.PushSpineUnityBoneFollowerAxisOrientation(L, array[index]); - return true; - } - else if (type == typeof(Spine.Unity.SkeletonGraphic.LayoutMode[])) - { - Spine.Unity.SkeletonGraphic.LayoutMode[] array = obj as Spine.Unity.SkeletonGraphic.LayoutMode[]; - translator.PushSpineUnitySkeletonGraphicLayoutMode(L, array[index]); - return true; - } - else if (type == typeof(TMPro.TextAlignmentOptions[])) - { - TMPro.TextAlignmentOptions[] array = obj as TMPro.TextAlignmentOptions[]; - translator.PushTMProTextAlignmentOptions(L, array[index]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.ContentType[])) - { - TMPro.TMP_InputField.ContentType[] array = obj as TMPro.TMP_InputField.ContentType[]; - translator.PushTMProTMP_InputFieldContentType(L, array[index]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.InputType[])) - { - TMPro.TMP_InputField.InputType[] array = obj as TMPro.TMP_InputField.InputType[]; - translator.PushTMProTMP_InputFieldInputType(L, array[index]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.CharacterValidation[])) - { - TMPro.TMP_InputField.CharacterValidation[] array = obj as TMPro.TMP_InputField.CharacterValidation[]; - translator.PushTMProTMP_InputFieldCharacterValidation(L, array[index]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.LineType[])) - { - TMPro.TMP_InputField.LineType[] array = obj as TMPro.TMP_InputField.LineType[]; - translator.PushTMProTMP_InputFieldLineType(L, array[index]); - return true; - } - else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[])) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[]; - translator.PushThinkingAnalyticsThinkingAnalyticsAPITATimeZone(L, array[index]); - return true; - } - else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[])) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[]; - translator.PushThinkingAnalyticsThinkingAnalyticsAPITAMode(L, array[index]); - return true; - } - else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[])) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[]; - translator.PushThinkingAnalyticsThinkingAnalyticsAPINetworkType(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.AutoPlay[])) - { - DG.Tweening.AutoPlay[] array = obj as DG.Tweening.AutoPlay[]; - translator.PushDGTweeningAutoPlay(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.AxisConstraint[])) - { - DG.Tweening.AxisConstraint[] array = obj as DG.Tweening.AxisConstraint[]; - translator.PushDGTweeningAxisConstraint(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.Ease[])) - { - DG.Tweening.Ease[] array = obj as DG.Tweening.Ease[]; - translator.PushDGTweeningEase(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.LogBehaviour[])) - { - DG.Tweening.LogBehaviour[] array = obj as DG.Tweening.LogBehaviour[]; - translator.PushDGTweeningLogBehaviour(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.LoopType[])) - { - DG.Tweening.LoopType[] array = obj as DG.Tweening.LoopType[]; - translator.PushDGTweeningLoopType(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.PathMode[])) - { - DG.Tweening.PathMode[] array = obj as DG.Tweening.PathMode[]; - translator.PushDGTweeningPathMode(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.PathType[])) - { - DG.Tweening.PathType[] array = obj as DG.Tweening.PathType[]; - translator.PushDGTweeningPathType(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.RotateMode[])) - { - DG.Tweening.RotateMode[] array = obj as DG.Tweening.RotateMode[]; - translator.PushDGTweeningRotateMode(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.ScrambleMode[])) - { - DG.Tweening.ScrambleMode[] array = obj as DG.Tweening.ScrambleMode[]; - translator.PushDGTweeningScrambleMode(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.TweenType[])) - { - DG.Tweening.TweenType[] array = obj as DG.Tweening.TweenType[]; - translator.PushDGTweeningTweenType(L, array[index]); - return true; - } - else if (type == typeof(DG.Tweening.UpdateType[])) - { - DG.Tweening.UpdateType[] array = obj as DG.Tweening.UpdateType[]; - translator.PushDGTweeningUpdateType(L, array[index]); - return true; - } - else if (type == typeof(Http.RequestState[])) - { - Http.RequestState[] array = obj as Http.RequestState[]; - translator.PushHttpRequestState(L, array[index]); - return true; - } - else if (type == typeof(UnityEngine.Purchasing.ProductType[])) - { - UnityEngine.Purchasing.ProductType[] array = obj as UnityEngine.Purchasing.ProductType[]; - translator.PushUnityEnginePurchasingProductType(L, array[index]); - return true; - } - else if (type == typeof(BF.BFSlider.FillDirection[])) - { - BF.BFSlider.FillDirection[] array = obj as BF.BFSlider.FillDirection[]; - translator.PushBFBFSliderFillDirection(L, array[index]); - return true; - } - else if (type == typeof(BF.ScrollRectBaseOld.MovementType[])) - { - BF.ScrollRectBaseOld.MovementType[] array = obj as BF.ScrollRectBaseOld.MovementType[]; - translator.PushBFScrollRectBaseOldMovementType(L, array[index]); - return true; - } - else if (type == typeof(BF.ScrollRectBaseOld.ScrollbarVisibility[])) - { - BF.ScrollRectBaseOld.ScrollbarVisibility[] array = obj as BF.ScrollRectBaseOld.ScrollbarVisibility[]; - translator.PushBFScrollRectBaseOldScrollbarVisibility(L, array[index]); - return true; - } - else if (type == typeof(BF.NetServiceType[])) - { - BF.NetServiceType[] array = obj as BF.NetServiceType[]; - translator.PushBFNetServiceType(L, array[index]); - return true; - } - else if (type == typeof(BF.NetIncomingMessageType[])) - { - BF.NetIncomingMessageType[] array = obj as BF.NetIncomingMessageType[]; - translator.PushBFNetIncomingMessageType(L, array[index]); - return true; - } - else if (type == typeof(BF.TouchEventType[])) - { - BF.TouchEventType[] array = obj as BF.TouchEventType[]; - translator.PushBFTouchEventType(L, array[index]); - return true; - } - else if (type == typeof(BF.SelectEventType[])) - { - BF.SelectEventType[] array = obj as BF.SelectEventType[]; - translator.PushBFSelectEventType(L, array[index]); - return true; - } - return false; - } - - internal static bool __tryArraySet(Type type, RealStatePtr L, ObjectTranslator translator, object obj, int array_idx, int obj_idx) - { - - if (type == typeof(UnityEngine.Vector2[])) - { - UnityEngine.Vector2[] array = obj as UnityEngine.Vector2[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Vector3[])) - { - UnityEngine.Vector3[] array = obj as UnityEngine.Vector3[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Vector4[])) - { - UnityEngine.Vector4[] array = obj as UnityEngine.Vector4[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Color[])) - { - UnityEngine.Color[] array = obj as UnityEngine.Color[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Quaternion[])) - { - UnityEngine.Quaternion[] array = obj as UnityEngine.Quaternion[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Ray[])) - { - UnityEngine.Ray[] array = obj as UnityEngine.Ray[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Bounds[])) - { - UnityEngine.Bounds[] array = obj as UnityEngine.Bounds[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Ray2D[])) - { - UnityEngine.Ray2D[] array = obj as UnityEngine.Ray2D[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(AdFormat[])) - { - AdFormat[] array = obj as AdFormat[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(IronSourceBannerPosition[])) - { - IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UIImageSheetAnimation.AnimationType[])) - { - UIImageSheetAnimation.AnimationType[] array = obj as UIImageSheetAnimation.AnimationType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UIImageSheetAnimation.TimeType[])) - { - UIImageSheetAnimation.TimeType[] array = obj as UIImageSheetAnimation.TimeType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UIImageSheetAnimation.StartFrameType[])) - { - UIImageSheetAnimation.StartFrameType[] array = obj as UIImageSheetAnimation.StartFrameType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(System.Reflection.BindingFlags[])) - { - System.Reflection.BindingFlags[] array = obj as System.Reflection.BindingFlags[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(System.DayOfWeek[])) - { - System.DayOfWeek[] array = obj as System.DayOfWeek[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(System.Net.NetworkInformation.IPStatus[])) - { - System.Net.NetworkInformation.IPStatus[] array = obj as System.Net.NetworkInformation.IPStatus[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Camera.GateFitMode[])) - { - UnityEngine.Camera.GateFitMode[] array = obj as UnityEngine.Camera.GateFitMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Camera.StereoscopicEye[])) - { - UnityEngine.Camera.StereoscopicEye[] array = obj as UnityEngine.Camera.StereoscopicEye[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Camera.MonoOrStereoscopicEye[])) - { - UnityEngine.Camera.MonoOrStereoscopicEye[] array = obj as UnityEngine.Camera.MonoOrStereoscopicEye[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Camera.FieldOfViewAxis[])) - { - UnityEngine.Camera.FieldOfViewAxis[] array = obj as UnityEngine.Camera.FieldOfViewAxis[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Camera.RenderRequestMode[])) - { - UnityEngine.Camera.RenderRequestMode[] array = obj as UnityEngine.Camera.RenderRequestMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Camera.RenderRequestOutputSpace[])) - { - UnityEngine.Camera.RenderRequestOutputSpace[] array = obj as UnityEngine.Camera.RenderRequestOutputSpace[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Camera.SceneViewFilterMode[])) - { - UnityEngine.Camera.SceneViewFilterMode[] array = obj as UnityEngine.Camera.SceneViewFilterMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Rendering.LightShadowResolution[])) - { - UnityEngine.Rendering.LightShadowResolution[] array = obj as UnityEngine.Rendering.LightShadowResolution[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.RenderTextureFormat[])) - { - UnityEngine.RenderTextureFormat[] array = obj as UnityEngine.RenderTextureFormat[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.RenderTextureReadWrite[])) - { - UnityEngine.RenderTextureReadWrite[] array = obj as UnityEngine.RenderTextureReadWrite[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.RigidbodyConstraints[])) - { - UnityEngine.RigidbodyConstraints[] array = obj as UnityEngine.RigidbodyConstraints[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.TransparencySortMode[])) - { - UnityEngine.TransparencySortMode[] array = obj as UnityEngine.TransparencySortMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.RectTransform.Axis[])) - { - UnityEngine.RectTransform.Axis[] array = obj as UnityEngine.RectTransform.Axis[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.RectTransform.Edge[])) - { - UnityEngine.RectTransform.Edge[] array = obj as UnityEngine.RectTransform.Edge[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.AnimatorCullingMode[])) - { - UnityEngine.AnimatorCullingMode[] array = obj as UnityEngine.AnimatorCullingMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.SystemLanguage[])) - { - UnityEngine.SystemLanguage[] array = obj as UnityEngine.SystemLanguage[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Rendering.ShadowCastingMode[])) - { - UnityEngine.Rendering.ShadowCastingMode[] array = obj as UnityEngine.Rendering.ShadowCastingMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Texture2D.EXRFlags[])) - { - UnityEngine.Texture2D.EXRFlags[] array = obj as UnityEngine.Texture2D.EXRFlags[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.KeyCode[])) - { - UnityEngine.KeyCode[] array = obj as UnityEngine.KeyCode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.NetworkReachability[])) - { - UnityEngine.NetworkReachability[] array = obj as UnityEngine.NetworkReachability[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.RuntimePlatform[])) - { - UnityEngine.RuntimePlatform[] array = obj as UnityEngine.RuntimePlatform[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Rendering.CompareFunction[])) - { - UnityEngine.Rendering.CompareFunction[] array = obj as UnityEngine.Rendering.CompareFunction[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.TextAnchor[])) - { - UnityEngine.TextAnchor[] array = obj as UnityEngine.TextAnchor[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.BatteryStatus[])) - { - UnityEngine.BatteryStatus[] array = obj as UnityEngine.BatteryStatus[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects[])) - { - UnityEngine.UI.GraphicRaycaster.BlockingObjects[] array = obj as UnityEngine.UI.GraphicRaycaster.BlockingObjects[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Type[])) - { - UnityEngine.UI.Image.Type[] array = obj as UnityEngine.UI.Image.Type[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.FillMethod[])) - { - UnityEngine.UI.Image.FillMethod[] array = obj as UnityEngine.UI.Image.FillMethod[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.OriginHorizontal[])) - { - UnityEngine.UI.Image.OriginHorizontal[] array = obj as UnityEngine.UI.Image.OriginHorizontal[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.OriginVertical[])) - { - UnityEngine.UI.Image.OriginVertical[] array = obj as UnityEngine.UI.Image.OriginVertical[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Origin90[])) - { - UnityEngine.UI.Image.Origin90[] array = obj as UnityEngine.UI.Image.Origin90[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Origin180[])) - { - UnityEngine.UI.Image.Origin180[] array = obj as UnityEngine.UI.Image.Origin180[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Image.Origin360[])) - { - UnityEngine.UI.Image.Origin360[] array = obj as UnityEngine.UI.Image.Origin360[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.ContentType[])) - { - UnityEngine.UI.InputField.ContentType[] array = obj as UnityEngine.UI.InputField.ContentType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.InputType[])) - { - UnityEngine.UI.InputField.InputType[] array = obj as UnityEngine.UI.InputField.InputType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.CharacterValidation[])) - { - UnityEngine.UI.InputField.CharacterValidation[] array = obj as UnityEngine.UI.InputField.CharacterValidation[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.InputField.LineType[])) - { - UnityEngine.UI.InputField.LineType[] array = obj as UnityEngine.UI.InputField.LineType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.ScrollRect.MovementType[])) - { - UnityEngine.UI.ScrollRect.MovementType[] array = obj as UnityEngine.UI.ScrollRect.MovementType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility[])) - { - UnityEngine.UI.ScrollRect.ScrollbarVisibility[] array = obj as UnityEngine.UI.ScrollRect.ScrollbarVisibility[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Slider.Direction[])) - { - UnityEngine.UI.Slider.Direction[] array = obj as UnityEngine.UI.Slider.Direction[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.Toggle.ToggleTransition[])) - { - UnityEngine.UI.Toggle.ToggleTransition[] array = obj as UnityEngine.UI.Toggle.ToggleTransition[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Corner[])) - { - UnityEngine.UI.GridLayoutGroup.Corner[] array = obj as UnityEngine.UI.GridLayoutGroup.Corner[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Axis[])) - { - UnityEngine.UI.GridLayoutGroup.Axis[] array = obj as UnityEngine.UI.GridLayoutGroup.Axis[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.UI.GridLayoutGroup.Constraint[])) - { - UnityEngine.UI.GridLayoutGroup.Constraint[] array = obj as UnityEngine.UI.GridLayoutGroup.Constraint[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(Spine.Unity.BoneFollower.AxisOrientation[])) - { - Spine.Unity.BoneFollower.AxisOrientation[] array = obj as Spine.Unity.BoneFollower.AxisOrientation[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(Spine.Unity.SkeletonGraphic.LayoutMode[])) - { - Spine.Unity.SkeletonGraphic.LayoutMode[] array = obj as Spine.Unity.SkeletonGraphic.LayoutMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(TMPro.TextAlignmentOptions[])) - { - TMPro.TextAlignmentOptions[] array = obj as TMPro.TextAlignmentOptions[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.ContentType[])) - { - TMPro.TMP_InputField.ContentType[] array = obj as TMPro.TMP_InputField.ContentType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.InputType[])) - { - TMPro.TMP_InputField.InputType[] array = obj as TMPro.TMP_InputField.InputType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.CharacterValidation[])) - { - TMPro.TMP_InputField.CharacterValidation[] array = obj as TMPro.TMP_InputField.CharacterValidation[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(TMPro.TMP_InputField.LineType[])) - { - TMPro.TMP_InputField.LineType[] array = obj as TMPro.TMP_InputField.LineType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[])) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[])) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[])) - { - ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[] array = obj as ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.AutoPlay[])) - { - DG.Tweening.AutoPlay[] array = obj as DG.Tweening.AutoPlay[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.AxisConstraint[])) - { - DG.Tweening.AxisConstraint[] array = obj as DG.Tweening.AxisConstraint[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.Ease[])) - { - DG.Tweening.Ease[] array = obj as DG.Tweening.Ease[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.LogBehaviour[])) - { - DG.Tweening.LogBehaviour[] array = obj as DG.Tweening.LogBehaviour[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.LoopType[])) - { - DG.Tweening.LoopType[] array = obj as DG.Tweening.LoopType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.PathMode[])) - { - DG.Tweening.PathMode[] array = obj as DG.Tweening.PathMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.PathType[])) - { - DG.Tweening.PathType[] array = obj as DG.Tweening.PathType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.RotateMode[])) - { - DG.Tweening.RotateMode[] array = obj as DG.Tweening.RotateMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.ScrambleMode[])) - { - DG.Tweening.ScrambleMode[] array = obj as DG.Tweening.ScrambleMode[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.TweenType[])) - { - DG.Tweening.TweenType[] array = obj as DG.Tweening.TweenType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(DG.Tweening.UpdateType[])) - { - DG.Tweening.UpdateType[] array = obj as DG.Tweening.UpdateType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(Http.RequestState[])) - { - Http.RequestState[] array = obj as Http.RequestState[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(UnityEngine.Purchasing.ProductType[])) - { - UnityEngine.Purchasing.ProductType[] array = obj as UnityEngine.Purchasing.ProductType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(BF.BFSlider.FillDirection[])) - { - BF.BFSlider.FillDirection[] array = obj as BF.BFSlider.FillDirection[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(BF.ScrollRectBaseOld.MovementType[])) - { - BF.ScrollRectBaseOld.MovementType[] array = obj as BF.ScrollRectBaseOld.MovementType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(BF.ScrollRectBaseOld.ScrollbarVisibility[])) - { - BF.ScrollRectBaseOld.ScrollbarVisibility[] array = obj as BF.ScrollRectBaseOld.ScrollbarVisibility[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(BF.NetServiceType[])) - { - BF.NetServiceType[] array = obj as BF.NetServiceType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(BF.NetIncomingMessageType[])) - { - BF.NetIncomingMessageType[] array = obj as BF.NetIncomingMessageType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(BF.TouchEventType[])) - { - BF.TouchEventType[] array = obj as BF.TouchEventType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - else if (type == typeof(BF.SelectEventType[])) - { - BF.SelectEventType[] array = obj as BF.SelectEventType[]; - translator.Get(L, obj_idx, out array[array_idx]); - return true; - } - return false; - } - } -} \ No newline at end of file diff --git a/Assets/XLua/Gen/XLuaGenAutoRegister.cs b/Assets/XLua/Gen/XLuaGenAutoRegister.cs deleted file mode 100644 index 3f134f480..000000000 --- a/Assets/XLua/Gen/XLuaGenAutoRegister.cs +++ /dev/null @@ -1,2335 +0,0 @@ -#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; -using System.Collections.Generic; -using System.Reflection; - - -namespace XLua.CSObjectWrap -{ - public class XLua_Gen_Initer_Register__ - { - - - static void wrapInit0(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(BF.Md5Encrypt), BFMd5EncryptWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.RsaEncrypt), BFRsaEncryptWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Atlas), BFAtlasWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SimpleAtlas), BFSimpleAtlasWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFMain), BFBFMainWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFWebRequestManager), BFBFWebRequestManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BIReport), BFBIReportWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFEvent), BFBFEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFEventBase), BFBFEventBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFVersionInfo), BFBFVersionInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.GameLaunchManager), BFGameLaunchManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.GameLaunchUtils), BFGameLaunchUtilsWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.GameLaunchProcessorBase), BFGameLaunchProcessorBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.LaunchRequester), BFLaunchRequesterWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CalculateDiffProcessor), BFCalculateDiffProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.DownloadUpdateProcessor), BFDownloadUpdateProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.FirstABProcessor), BFFirstABProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.FixUpProcessor), BFFixUpProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.LaunchSuccProcessor), BFLaunchSuccProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.OnGetVersionProcessor), BFOnGetVersionProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PreCheckProcessor), BFPreCheckProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PrepareProcessor), BFPrepareProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.RequestLoginCenterConfigProcessor), BFRequestLoginCenterConfigProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.RequestVersionProcessor), BFRequestVersionProcessorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.LocalData), BFLocalDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFLog), BFBFLogWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.LoomManager), BFLoomManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.LuaManager), BFLuaManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ManagerBase), BFManagerBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetException), BFNetExceptionWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetAesEncrypt), BFNetAesEncryptWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CounterModeCryptoTransform), BFCounterModeCryptoTransformWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetMd5Encrypt), BFNetMd5EncryptWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetClient), BFNetClientWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetConfiguration), BFNetConfigurationWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetConnectConfiguration), BFNetConnectConfigurationWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetErrorCode), BFNetErrorCodeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetManager), BFNetManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.OneShotManager), BFOneShotManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.GameObjectPool), BFGameObjectPoolWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PoolManager), BFPoolManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.RenderManager), BFRenderManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AssetBundleConfigCollection), BFAssetBundleConfigCollectionWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.LanguageConfig), BFLanguageConfigWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AssetBundleConfig), BFAssetBundleConfigWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AssetBundleLoader), BFAssetBundleLoaderWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AssetBundleObject), BFAssetBundleObjectWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AssetLoader), BFAssetLoaderWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AssetObject), BFAssetObjectWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AssetObjectBase), BFAssetObjectBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.LoaderBase), BFLoaderBaseWrap.__Register); - - } - - static void wrapInit1(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(BF.ResourceManager), BFResourceManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SafeAreaManager), BFSafeAreaManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFAccountInfo), BFBFAccountInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFAdmobSDKManager), BFBFAdmobSDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFIronSourceSDKManager), BFBFIronSourceSDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFLoginInfo), BFBFLoginInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFLoginSDKManager), BFBFLoginSDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFNativeSDKMessage), BFBFNativeSDKMessageWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFNativeSDKManager), BFBFNativeSDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFPaySDKManager), BFBFPaySDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFThirdReportSDKManager), BFBFThirdReportSDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NotchScreenInfo), BFNotchScreenInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.DZSDKManager), BFDZSDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NativeUtils), BFNativeUtilsWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFParseClientManager), BFBFParseClientManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SDKManager), BFSDKManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SocketChannel), BFSocketChannelWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Rc4Object), BFRc4ObjectWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SocketChannelHelper), BFSocketChannelHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SocketChannelManager), BFSocketChannelManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AesEncrypt), BFAesEncryptWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Rc4Encrypt), BFRc4EncryptWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ResourcesProtect), BFResourcesProtectWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SocketManager), BFSocketManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SoundManager), BFSoundManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Task), BFTaskWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Delayed), BFDelayedWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TaskManager), BFTaskManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TimeLineItem), BFTimeLineItemWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TimeLineManager), BFTimeLineManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFFinger), BFBFFingerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFFingerSnapshot), BFBFFingerSnapshotWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFGesture), BFBFGestureWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFTouchManager), BFBFTouchManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BattleControlBg), BFBattleControlBgWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BattleUnitAttr), BFBattleUnitAttrWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BaseSortingOrderHelper), BFBaseSortingOrderHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CameraHelper), BFCameraHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CanvasSortingOrderHelper), BFCanvasSortingOrderHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CharacterObjectInfo), BFCharacterObjectInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CharacterAnimationInfo), BFCharacterAnimationInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CharacterHelper), BFCharacterHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CharacterSpineObjectInfo), BFCharacterSpineObjectInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CharacterSpineHelper), BFCharacterSpineHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.EffectHelper), BFEffectHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NodeHelper), BFNodeHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.GameObjectInfo), BFGameObjectInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PrefabHelper), BFPrefabHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ShowDebugText), BFShowDebugTextWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ShowFPS), BFShowFPSWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TimelineEventItem), BFTimelineEventItemWrap.__Register); - - } - - static void wrapInit2(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(BF.TimelineHelper), BFTimelineHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TimelineSortingOderHelper), BFTimelineSortingOderHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UICoordinateHelper), BFUICoordinateHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NotchScreenNode), BFNotchScreenNodeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UIHelper), BFUIHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UISpineHelper), BFUISpineHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SkillSectorMesh), BFSkillSectorMeshWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.AbsPostEffect), BFAbsPostEffectWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PostEffectBehaviour), BFPostEffectBehaviourWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PostEffectBloom), BFPostEffectBloomWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PostEffectContext), BFPostEffectContextWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PostEffectFxaa), BFPostEffectFxaaWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PostEffectRadialBlur), BFPostEffectRadialBlurWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.PostEffectVividBloom), BFPostEffectVividBloomWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Outline), BFOutlineWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.MultipleSpriteAnimation), BFMultipleSpriteAnimationWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFTouchSelectable), BFBFTouchSelectableWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CellDragEvent), BFCellDragEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.DragEventSync), BFDragEventSyncWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.EliminationTouchEvent), BFEliminationTouchEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UIDragEvent), BFUIDragEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UITouchEvent), BFUITouchEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFCircleLayout), BFBFCircleLayoutWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFGridLayout), BFBFGridLayoutWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFHorizontalOrVerticalLayout), BFBFHorizontalOrVerticalLayoutWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFLayoutBase), BFBFLayoutBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFCell), BFBFCellWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFScrollRectBase), BFBFScrollRectBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFScrollRectCommon), BFBFScrollRectCommonWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFScrollRectGrid), BFBFScrollRectGridWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFScrollRectMultCell), BFBFScrollRectMultCellWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFScrollRectMultSize), BFBFScrollRectMultSizeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.HorizontalScrollRectOld), BFHorizontalScrollRectOldWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ScrollRectBaseOld), BFScrollRectBaseOldWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.VerticalScrollRectOld), BFVerticalScrollRectOldWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.EmojiGraphic), BFEmojiGraphicWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.MeshInfo), BFMeshInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.InlineText), BFInlineTextWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.EmojiInfo), BFEmojiInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.HrefInfo), BFHrefInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UVAnimationGraphic), BFUVAnimationGraphicWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.EmptyRaycast), BFEmptyRaycastWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Mirror), BFMirrorWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CellObj), BFCellObjWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ScrollRectCenter), BFScrollRectCenterWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ScrollRectCenterController), BFScrollRectCenterControllerWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TutorialClickArea), BFTutorialClickAreaWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UIDynamicBrightEffect), BFUIDynamicBrightEffectWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UIDynamicShinyEffect), BFUIDynamicShinyEffectWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFGraphicFlip), BFBFGraphicFlipWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFSlider), BFBFSliderWrap.__Register); - - } - - static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(BF.BFUnitySlider), BFBFUnitySliderWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.RawImageGrid), BFRawImageGridWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.UIEraserTexture), BFUIEraserTextureWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFGateInfo), BFBFGateInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFHttpsInfo), BFBFHttpsInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.CombineURL), BFCombineURLWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFPlatform), BFBFPlatformWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFLanguageInfo), BFBFLanguageInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.GameConst), BFGameConstWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.StringConst), BFStringConstWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ExtensionMethods), BFExtensionMethodsWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.Utils), BFUtilsWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFNativeSDKManager.NativeResultMsg), BFBFNativeSDKManagerNativeResultMsgWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SocketChannel.NetPack), BFSocketChannelNetPackWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TimeLineItem.FrameData), BFTimeLineItemFrameDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(CloudControl), CloudControlWrap.__Register); - - - translator.DelayWrapLoader(typeof(AdManager), AdManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(AFInAppEventParameterName), AFInAppEventParameterNameWrap.__Register); - - - translator.DelayWrapLoader(typeof(AFInAppEventType), AFInAppEventTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(ProductInfo), ProductInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(IAPManager), IAPManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FunctionRequest), FunctionRequestWrap.__Register); - - - translator.DelayWrapLoader(typeof(IAPRequest), IAPRequestWrap.__Register); - - - translator.DelayWrapLoader(typeof(StorageRequest), StorageRequestWrap.__Register); - - - translator.DelayWrapLoader(typeof(UsersRequest), UsersRequestWrap.__Register); - - - translator.DelayWrapLoader(typeof(ParticleUVAnimation), ParticleUVAnimationWrap.__Register); - - - translator.DelayWrapLoader(typeof(UIImageSheetAnimation), UIImageSheetAnimationWrap.__Register); - - - translator.DelayWrapLoader(typeof(CameraAdjust), CameraAdjustWrap.__Register); - - - translator.DelayWrapLoader(typeof(FixRectWidthByString), FixRectWidthByStringWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMP_AnimationCurve), TMP_AnimationCurveWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMP_Curve), TMP_CurveWrap.__Register); - - - translator.DelayWrapLoader(typeof(UIOutlineEffect), UIOutlineEffectWrap.__Register); - - - translator.DelayWrapLoader(typeof(UIResGhostTweenEffect), UIResGhostTweenEffectWrap.__Register); - - - translator.DelayWrapLoader(typeof(MonkeyPost), MonkeyPostWrap.__Register); - - - translator.DelayWrapLoader(typeof(UIInputHelper), UIInputHelperWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsA2UNotificationsManager), FBWindowsA2UNotificationsManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsADSManager), FBWindowsADSManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsExampleTabsManager), FBWindowsExampleTabsManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsFriendsManager), FBWindowsFriendsManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsGraphAPIManager), FBWindowsGraphAPIManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsInitManager), FBWindowsInitManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsLoginManager), FBWindowsLoginManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsLogsManager), FBWindowsLogsManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsPhysicalGamepadManager), FBWindowsPhysicalGamepadManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsPurchaseManager), FBWindowsPurchaseManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsShareManager), FBWindowsShareManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsSoftKeyboardManager), FBWindowsSoftKeyboardManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsTournamentsManager), FBWindowsTournamentsManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(FBWindowsVirtualGamepadManager), FBWindowsVirtualGamepadManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceDemoScript), IronSourceDemoScriptWrap.__Register); - - - translator.DelayWrapLoader(typeof(AdFormat), AdFormatWrap.__Register); - - } - - static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(IronSource), IronSourceWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceAdInfo), IronSourceAdInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceConstants), IronSourceConstantsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceError), IronSourceErrorWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceEvents), IronSourceEventsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceEventsDispatcher), IronSourceEventsDispatcherWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceIAgent), IronSourceIAgentWrap.__Register); - - - translator.DelayWrapLoader(typeof(dataSource), dataSourceWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceAdUnits), IronSourceAdUnitsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceBannerSize), IronSourceBannerSizeWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceBannerPosition), IronSourceBannerPositionWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceImpressionData), IronSourceImpressionDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceInitilizer), IronSourceInitilizerWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceInterstitialEvents), IronSourceInterstitialEventsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceMediationSettings), IronSourceMediationSettingsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourcePlacement), IronSourcePlacementWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceRewardedVideoEvents), IronSourceRewardedVideoEventsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceSegment), IronSourceSegmentWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceSegmentAndroid), IronSourceSegmentAndroidWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceUtils), IronSourceUtilsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityBanner), IUnityBannerWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityImpressionData), IUnityImpressionDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityInitialization), IUnityInitializationWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityInterstitial), IUnityInterstitialWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityLevelPlayBanner), IUnityLevelPlayBannerWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityLevelPlayInterstitial), IUnityLevelPlayInterstitialWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityLevelPlayRewardedVideo), IUnityLevelPlayRewardedVideoWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityLevelPlayRewardedVideoManual), IUnityLevelPlayRewardedVideoManualWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityOfferwall), IUnityOfferwallWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityRewardedVideo), IUnityRewardedVideoWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnityRewardedVideoManual), IUnityRewardedVideoManualWrap.__Register); - - - translator.DelayWrapLoader(typeof(IUnitySegment), IUnitySegmentWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnsupportedPlatformAgent), UnsupportedPlatformAgentWrap.__Register); - - - translator.DelayWrapLoader(typeof(WaterfallConfiguration), WaterfallConfigurationWrap.__Register); - - - translator.DelayWrapLoader(typeof(TAExample), TAExampleWrap.__Register); - - - translator.DelayWrapLoader(typeof(SignInWithAppleTest_Callbacks), SignInWithAppleTest_CallbacksWrap.__Register); - - - translator.DelayWrapLoader(typeof(SignInWithAppleTest_EventSystem), SignInWithAppleTest_EventSystemWrap.__Register); - - - translator.DelayWrapLoader(typeof(LuaAsset), LuaAssetWrap.__Register); - - - translator.DelayWrapLoader(typeof(Security.XXTEA), SecurityXXTEAWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsEvent), ThinkingAnalyticsThinkingAnalyticsEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.TDFirstEvent), ThinkingAnalyticsTDFirstEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.TDUpdatableEvent), ThinkingAnalyticsTDUpdatableEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.TDOverWritableEvent), ThinkingAnalyticsTDOverWritableEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.TDPresetProperties), ThinkingAnalyticsTDPresetPropertiesWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI), ThinkingAnalyticsThinkingAnalyticsAPIWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper), ThinkingAnalyticsWrapperThinkingAnalyticsWrapperWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_Log), ThinkingAnalyticsUtilsTD_LogWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_MiniJSON), ThinkingAnalyticsUtilsTD_MiniJSONWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_PropertiesChecker), ThinkingAnalyticsUtilsTD_PropertiesCheckerWrap.__Register); - - } - - static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler), ThinkingAnalyticsTaExceptionThinkingSDKExceptionHandlerWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceJSON.Json), IronSourceJSONJsonWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenModuleAudio), DGTweeningDOTweenModuleAudioWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenModuleSprite), DGTweeningDOTweenModuleSpriteWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenModuleUI), DGTweeningDOTweenModuleUIWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenModuleUnityVersion), DGTweeningDOTweenModuleUnityVersionWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction), DGTweeningDOTweenCYInstructionWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenModuleUtils), DGTweeningDOTweenModuleUtilsWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.JSONNode), comadjustsdkJSONNodeWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.JSONArray), comadjustsdkJSONArrayWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.JSONClass), comadjustsdkJSONClassWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.JSONData), comadjustsdkJSONDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.JSON), comadjustsdkJSONWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.Adjust), comadjustsdkAdjustWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustAdRevenue), comadjustsdkAdjustAdRevenueWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustAppStoreSubscription), comadjustsdkAdjustAppStoreSubscriptionWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustAttribution), comadjustsdkAdjustAttributionWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustConfig), comadjustsdkAdjustConfigWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustEnvironmentExtension), comadjustsdkAdjustEnvironmentExtensionWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustEvent), comadjustsdkAdjustEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustEventFailure), comadjustsdkAdjustEventFailureWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustEventSuccess), comadjustsdkAdjustEventSuccessWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustLogLevelExtension), comadjustsdkAdjustLogLevelExtensionWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustPlayStoreSubscription), comadjustsdkAdjustPlayStoreSubscriptionWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustSessionFailure), comadjustsdkAdjustSessionFailureWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustSessionSuccess), comadjustsdkAdjustSessionSuccessWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustThirdPartySharing), comadjustsdkAdjustThirdPartySharingWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustUrlStrategyExtension), comadjustsdkAdjustUrlStrategyExtensionWrap.__Register); - - - translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustUtils), comadjustsdkAdjustUtilsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Purchasing.Security.GooglePlayTangle), UnityEnginePurchasingSecurityGooglePlayTangleWrap.__Register); - - - translator.DelayWrapLoader(typeof(Http.HttpDebug), HttpHttpDebugWrap.__Register); - - - translator.DelayWrapLoader(typeof(Http.HttpManager), HttpHttpManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(Http.SingleHttpExtends), HttpSingleHttpExtendsWrap.__Register); - - - translator.DelayWrapLoader(typeof(Http.RequestData), HttpRequestDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(Http.ResultInfo), HttpResultInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(Http.SingleHttp), HttpSingleHttpWrap.__Register); - - - translator.DelayWrapLoader(typeof(Facebook.MiniJSON.Json), FacebookMiniJSONJsonWrap.__Register); - - - translator.DelayWrapLoader(typeof(Facebook.MiniJSON.MiniJsonUtil), FacebookMiniJSONMiniJsonUtilWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.AppsFlyerSdk), BFNativeCoreThirdPlatformAppsFlyerSdkWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.FacebookSdk), BFNativeCoreThirdPlatformFacebookSdkWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.ThinkingAnalyticsSdk), BFNativeCoreThirdPlatformThinkingAnalyticsSdkWrap.__Register); - - - translator.DelayWrapLoader(typeof(UIImageSheetAnimation.AnimationType), UIImageSheetAnimationAnimationTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UIImageSheetAnimation.TimeType), UIImageSheetAnimationTimeTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UIImageSheetAnimation.StartFrameType), UIImageSheetAnimationStartFrameTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(WaterfallConfiguration.WaterfallConfigurationBuilder), WaterfallConfigurationWaterfallConfigurationBuilderWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token), ThinkingAnalyticsThinkingAnalyticsAPITokenWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenModuleUI.Utils), DGTweeningDOTweenModuleUIUtilsWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForCompletion), DGTweeningDOTweenCYInstructionWaitForCompletionWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForRewind), DGTweeningDOTweenCYInstructionWaitForRewindWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForKill), DGTweeningDOTweenCYInstructionWaitForKillWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops), DGTweeningDOTweenCYInstructionWaitForElapsedLoopsWrap.__Register); - - } - - static void wrapInit6(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForPosition), DGTweeningDOTweenCYInstructionWaitForPositionWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForStart), DGTweeningDOTweenCYInstructionWaitForStartWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenModuleUtils.Physics), DGTweeningDOTweenModuleUtilsPhysicsWrap.__Register); - - - translator.DelayWrapLoader(typeof(object), SystemObjectWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.ValueType), SystemValueTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Reflection.BindingFlags), SystemReflectionBindingFlagsWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Uri), SystemUriWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Enum), SystemEnumWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.DateTime), SystemDateTimeWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.DateTimeOffset), SystemDateTimeOffsetWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.IO.File), SystemIOFileWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.DBNull), SystemDBNullWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Convert), SystemConvertWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.DayOfWeek), SystemDayOfWeekWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Net.NetworkInformation.Ping), SystemNetNetworkInformationPingWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Net.NetworkInformation.IPStatus), SystemNetNetworkInformationIPStatusWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Net.NetworkInformation.PingCompletedEventArgs), SystemNetNetworkInformationPingCompletedEventArgsWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Net.NetworkInformation.PingReply), SystemNetNetworkInformationPingReplyWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.ComponentModel.AsyncCompletedEventArgs), SystemComponentModelAsyncCompletedEventArgsWrap.__Register); - - - translator.DelayWrapLoader(typeof(System.ComponentModel.Component), SystemComponentModelComponentWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Events.UnityEvent), UnityEngineEventsUnityEvent_1_SystemSingle_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Collections.Generic.List), SystemCollectionsGenericList_1_SystemInt32_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Collections.Generic.List), SystemCollectionsGenericList_1_SystemSingle_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Collections.Generic.List), SystemCollectionsGenericList_1_SystemString_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Collections.Generic.List), SystemCollectionsGenericList_1_TMProTMP_FontAsset_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Collections.Generic.List), SystemCollectionsGenericList_1_UnityEngineCamera_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Collections.Generic.List>), SystemCollectionsGenericList_1_SystemCollectionsGenericList_1_SystemString__Wrap.__Register); - - - translator.DelayWrapLoader(typeof(System.Collections.Generic.List), SystemCollectionsGenericList_1_BFBFFinger_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineColorUnityEngineColorDGTweeningPluginsOptionsColorOptions_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineVector2UnityEngineVector2DGTweeningPluginsOptionsVectorOptions_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera), UnityEngineCameraWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.GateFitMode), UnityEngineCameraGateFitModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.GateFitParameters), UnityEngineCameraGateFitParametersWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.StereoscopicEye), UnityEngineCameraStereoscopicEyeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), UnityEngineCameraMonoOrStereoscopicEyeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.FieldOfViewAxis), UnityEngineCameraFieldOfViewAxisWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.RenderRequest), UnityEngineCameraRenderRequestWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.RenderRequestMode), UnityEngineCameraRenderRequestModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.RenderRequestOutputSpace), UnityEngineCameraRenderRequestOutputSpaceWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Camera.SceneViewFilterMode), UnityEngineCameraSceneViewFilterModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.TextCore.FaceInfo), UnityEngineTextCoreFaceInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Rendering.LightShadowResolution), UnityEngineRenderingLightShadowResolutionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RenderTextureFormat), UnityEngineRenderTextureFormatWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RenderTextureReadWrite), UnityEngineRenderTextureReadWriteWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RigidbodyConstraints), UnityEngineRigidbodyConstraintsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.TransparencySortMode), UnityEngineTransparencySortModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SystemInfo), UnityEngineSystemInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Object), UnityEngineObjectWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Rect), UnityEngineRectWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Vector2), UnityEngineVector2Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Vector3), UnityEngineVector3Wrap.__Register); - - } - - static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(UnityEngine.Vector4), UnityEngineVector4Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Quaternion), UnityEngineQuaternionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Matrix4x4), UnityEngineMatrix4x4Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Color), UnityEngineColorWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Ray), UnityEngineRayWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Bounds), UnityEngineBoundsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Ray2D), UnityEngineRay2DWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Time), UnityEngineTimeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Motion), UnityEngineMotionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.GameObject), UnityEngineGameObjectWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Component), UnityEngineComponentWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Behaviour), UnityEngineBehaviourWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.EventSystems.UIBehaviour), UnityEngineEventSystemsUIBehaviourWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Transform), UnityEngineTransformWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RectTransform), UnityEngineRectTransformWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RectTransform.Axis), UnityEngineRectTransformAxisWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RectTransform.Edge), UnityEngineRectTransformEdgeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Resources), UnityEngineResourcesWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.TextAsset), UnityEngineTextAssetWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Keyframe), UnityEngineKeyframeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Sprite), UnityEngineSpriteWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AnimatorStateInfo), UnityEngineAnimatorStateInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AnimatorCullingMode), UnityEngineAnimatorCullingModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Animation), UnityEngineAnimationWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AnimationCurve), UnityEngineAnimationCurveWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AnimationClip), UnityEngineAnimationClipWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.MonoBehaviour), UnityEngineMonoBehaviourWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem), UnityEngineParticleSystemWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.MainModule), UnityEngineParticleSystemMainModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.EmissionModule), UnityEngineParticleSystemEmissionModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.ShapeModule), UnityEngineParticleSystemShapeModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.VelocityOverLifetimeModule), UnityEngineParticleSystemVelocityOverLifetimeModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.LimitVelocityOverLifetimeModule), UnityEngineParticleSystemLimitVelocityOverLifetimeModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.InheritVelocityModule), UnityEngineParticleSystemInheritVelocityModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.ForceOverLifetimeModule), UnityEngineParticleSystemForceOverLifetimeModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.ColorOverLifetimeModule), UnityEngineParticleSystemColorOverLifetimeModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.ColorBySpeedModule), UnityEngineParticleSystemColorBySpeedModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.SizeOverLifetimeModule), UnityEngineParticleSystemSizeOverLifetimeModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.SizeBySpeedModule), UnityEngineParticleSystemSizeBySpeedModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.RotationBySpeedModule), UnityEngineParticleSystemRotationBySpeedModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.RotationOverLifetimeModule), UnityEngineParticleSystemRotationOverLifetimeModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.ExternalForcesModule), UnityEngineParticleSystemExternalForcesModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.NoiseModule), UnityEngineParticleSystemNoiseModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.CollisionModule), UnityEngineParticleSystemCollisionModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.TriggerModule), UnityEngineParticleSystemTriggerModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.SubEmittersModule), UnityEngineParticleSystemSubEmittersModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.TextureSheetAnimationModule), UnityEngineParticleSystemTextureSheetAnimationModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.LightsModule), UnityEngineParticleSystemLightsModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.TrailModule), UnityEngineParticleSystemTrailModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.CustomDataModule), UnityEngineParticleSystemCustomDataModuleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.MinMaxCurve), UnityEngineParticleSystemMinMaxCurveWrap.__Register); - - } - - static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.Particle), UnityEngineParticleSystemParticleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.Burst), UnityEngineParticleSystemBurstWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.MinMaxGradient), UnityEngineParticleSystemMinMaxGradientWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.EmitParams), UnityEngineParticleSystemEmitParamsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystemRenderer), UnityEngineParticleSystemRendererWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.MeshRenderer), UnityEngineMeshRendererWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SkinnedMeshRenderer), UnityEngineSkinnedMeshRendererWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Renderer), UnityEngineRendererWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Light), UnityEngineLightWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Mathf), UnityEngineMathfWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Debug), UnityEngineDebugWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Screen), UnityEngineScreenWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Resolution), UnityEngineResolutionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Shader), UnityEngineShaderWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ShaderVariantCollection), UnityEngineShaderVariantCollectionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Playables.PlayableDirector), UnityEnginePlayablesPlayableDirectorWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Playables.PlayableAsset), UnityEnginePlayablesPlayableAssetWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Playables.Playable), UnityEnginePlayablesPlayableWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RuntimeAnimatorController), UnityEngineRuntimeAnimatorControllerWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Application), UnityEngineApplicationWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SystemLanguage), UnityEngineSystemLanguageWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AudioClip), UnityEngineAudioClipWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SceneManagement.SceneManager), UnityEngineSceneManagementSceneManagerWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SceneManagement.Scene), UnityEngineSceneManagementSceneWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AssetBundle), UnityEngineAssetBundleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AssetBundleRequest), UnityEngineAssetBundleRequestWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AudioSource), UnityEngineAudioSourceWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.AsyncOperation), UnityEngineAsyncOperationWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Avatar), UnityEngineAvatarWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Animator), UnityEngineAnimatorWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Events.UnityEvent), UnityEngineEventsUnityEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Events.UnityEvent), UnityEngineEventsUnityEvent_1_SystemString_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Events.UnityEvent), UnityEngineEventsUnityEvent_1_UnityEngineVector2_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Events.UnityEvent), UnityEngineEventsUnityEvent_1_SystemInt32_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Events.UnityEvent), UnityEngineEventsUnityEvent_1_SystemInt64_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Events.UnityEventBase), UnityEngineEventsUnityEventBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.LayerMask), UnityEngineLayerMaskWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RenderTextureDescriptor), UnityEngineRenderTextureDescriptorWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Material), UnityEngineMaterialWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.MaterialPropertyBlock), UnityEngineMaterialPropertyBlockWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SpriteRenderer), UnityEngineSpriteRendererWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Mesh), UnityEngineMeshWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.MeshFilter), UnityEngineMeshFilterWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Rendering.ShadowCastingMode), UnityEngineRenderingShadowCastingModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Video.VideoClip), UnityEngineVideoVideoClipWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Video.VideoPlayer), UnityEngineVideoVideoPlayerWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RenderSettings), UnityEngineRenderSettingsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Canvas), UnityEngineCanvasWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.CanvasGroup), UnityEngineCanvasGroupWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.CanvasRenderer), UnityEngineCanvasRendererWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.LineRenderer), UnityEngineLineRendererWrap.__Register); - - } - - static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(UnityEngine.Texture2D), UnityEngineTexture2DWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Texture2D.EXRFlags), UnityEngineTexture2DEXRFlagsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Font), UnityEngineFontWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RenderTexture), UnityEngineRenderTextureWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Texture), UnityEngineTextureWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Graphics), UnityEngineGraphicsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Input), UnityEngineInputWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.KeyCode), UnityEngineKeyCodeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.PlayerPrefs), UnityEnginePlayerPrefsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ShaderVariantCollection.ShaderVariant), UnityEngineShaderVariantCollectionShaderVariantWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.NetworkReachability), UnityEngineNetworkReachabilityWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RuntimePlatform), UnityEngineRuntimePlatformWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Rendering.CompareFunction), UnityEngineRenderingCompareFunctionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.TextAnchor), UnityEngineTextAnchorWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.LightProbes), UnityEngineLightProbesWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.BoxCollider), UnityEngineBoxColliderWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.RaycastHit), UnityEngineRaycastHitWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.LightmapSettings), UnityEngineLightmapSettingsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.LightmapData), UnityEngineLightmapDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ReflectionProbe), UnityEngineReflectionProbeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.BatteryStatus), UnityEngineBatteryStatusWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Rigidbody), UnityEngineRigidbodyWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SphereCollider), UnityEngineSphereColliderWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.ScriptableObject), UnityEngineScriptableObjectWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Physics), UnityEnginePhysicsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.PhysicMaterial), UnityEnginePhysicMaterialWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.MeshCollider), UnityEngineMeshColliderWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.CanvasScaler), UnityEngineUICanvasScalerWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Dropdown), UnityEngineUIDropdownWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Dropdown.OptionData), UnityEngineUIDropdownOptionDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Dropdown.OptionDataList), UnityEngineUIDropdownOptionDataListWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Dropdown.DropdownEvent), UnityEngineUIDropdownDropdownEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Graphic), UnityEngineUIGraphicWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.GraphicRaycaster), UnityEngineUIGraphicRaycasterWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.GraphicRaycaster.BlockingObjects), UnityEngineUIGraphicRaycasterBlockingObjectsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image), UnityEngineUIImageWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.Type), UnityEngineUIImageTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.FillMethod), UnityEngineUIImageFillMethodWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.OriginHorizontal), UnityEngineUIImageOriginHorizontalWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.OriginVertical), UnityEngineUIImageOriginVerticalWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.Origin90), UnityEngineUIImageOrigin90Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.Origin180), UnityEngineUIImageOrigin180Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.Origin360), UnityEngineUIImageOrigin360Wrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Button), UnityEngineUIButtonWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Button.ButtonClickedEvent), UnityEngineUIButtonButtonClickedEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField), UnityEngineUIInputFieldWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.ContentType), UnityEngineUIInputFieldContentTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.InputType), UnityEngineUIInputFieldInputTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.EndEditEvent), UnityEngineUIInputFieldEndEditEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.CharacterValidation), UnityEngineUIInputFieldCharacterValidationWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.LineType), UnityEngineUIInputFieldLineTypeWrap.__Register); - - } - - static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.SubmitEvent), UnityEngineUIInputFieldSubmitEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.OnChangeEvent), UnityEngineUIInputFieldOnChangeEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Mask), UnityEngineUIMaskWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.MaskableGraphic), UnityEngineUIMaskableGraphicWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.MaskableGraphic.CullStateChangedEvent), UnityEngineUIMaskableGraphicCullStateChangedEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.MaskUtilities), UnityEngineUIMaskUtilitiesWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.RawImage), UnityEngineUIRawImageWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.RectMask2D), UnityEngineUIRectMask2DWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Scrollbar), UnityEngineUIScrollbarWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.ScrollRect), UnityEngineUIScrollRectWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.ScrollRect.MovementType), UnityEngineUIScrollRectMovementTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), UnityEngineUIScrollRectScrollbarVisibilityWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.ScrollRect.ScrollRectEvent), UnityEngineUIScrollRectScrollRectEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Selectable), UnityEngineUISelectableWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Slider), UnityEngineUISliderWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Slider.Direction), UnityEngineUISliderDirectionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Slider.SliderEvent), UnityEngineUISliderSliderEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Text), UnityEngineUITextWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Toggle), UnityEngineUIToggleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Toggle.ToggleTransition), UnityEngineUIToggleToggleTransitionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.Toggle.ToggleEvent), UnityEngineUIToggleToggleEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.ToggleGroup), UnityEngineUIToggleGroupWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.LayoutElement), UnityEngineUILayoutElementWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.GridLayoutGroup), UnityEngineUIGridLayoutGroupWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.GridLayoutGroup.Corner), UnityEngineUIGridLayoutGroupCornerWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.GridLayoutGroup.Axis), UnityEngineUIGridLayoutGroupAxisWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.GridLayoutGroup.Constraint), UnityEngineUIGridLayoutGroupConstraintWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.VerticalLayoutGroup), UnityEngineUIVerticalLayoutGroupWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.UI.LayoutGroup), UnityEngineUILayoutGroupWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.U2D.SpriteAtlas), UnityEngineU2DSpriteAtlasWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.TrackEntry), SpineTrackEntryWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.SkeletonData), SpineSkeletonDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Skeleton), SpineSkeletonWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Slot), SpineSlotWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.RegionAttachment), SpineRegionAttachmentWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Animation), SpineAnimationWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.AnimationState), SpineAnimationStateWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.AnimationStateData), SpineAnimationStateDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.AnimationStateData.AnimationPair), SpineAnimationStateDataAnimationPairWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.AnimationStateData.AnimationPairComparer), SpineAnimationStateDataAnimationPairComparerWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonGraphic), SpineUnitySkeletonGraphicWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonAnimation), SpineUnitySkeletonAnimationWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonDataAsset), SpineUnitySkeletonDataAssetWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.MeshGenerator), SpineUnityMeshGeneratorWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.MeshAttachment), SpineMeshAttachmentWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.MeshGenerator.Settings), SpineUnityMeshGeneratorSettingsWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonRenderer), SpineUnitySkeletonRendererWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonRenderer.SpriteMaskInteractionMaterials), SpineUnitySkeletonRendererSpriteMaskInteractionMaterialsWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.BoneFollower), SpineUnityBoneFollowerWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.BoneFollowerGraphic), SpineUnityBoneFollowerGraphicWrap.__Register); - - - translator.DelayWrapLoader(typeof(Spine.Unity.BoneFollower.AxisOrientation), SpineUnityBoneFollowerAxisOrientationWrap.__Register); - - } - - static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), SpineUnitySkeletonGraphicLayoutModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TextAlignmentOptions), TMProTextAlignmentOptionsWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_FontAsset), TMProTMP_FontAssetWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_Character), TMProTMP_CharacterWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TextMeshProUGUI), TMProTextMeshProUGUIWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TextMeshPro), TMProTextMeshProWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_Text), TMProTMP_TextWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_Dropdown), TMProTMP_DropdownWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_Dropdown.OptionData), TMProTMP_DropdownOptionDataWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_Dropdown.OptionDataList), TMProTMP_DropdownOptionDataListWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_Dropdown.DropdownEvent), TMProTMP_DropdownDropdownEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField), TMProTMP_InputFieldWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.ContentType), TMProTMP_InputFieldContentTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.InputType), TMProTMP_InputFieldInputTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.CharacterValidation), TMProTMP_InputFieldCharacterValidationWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.LineType), TMProTMP_InputFieldLineTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.SubmitEvent), TMProTMP_InputFieldSubmitEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.OnChangeEvent), TMProTMP_InputFieldOnChangeEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.SelectionEvent), TMProTMP_InputFieldSelectionEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.TextSelectionEvent), TMProTMP_InputFieldTextSelectionEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.TouchScreenKeyboardEvent), TMProTMP_InputFieldTouchScreenKeyboardEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), ThinkingAnalyticsThinkingAnalyticsAPITATimeZoneWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), ThinkingAnalyticsThinkingAnalyticsAPITAModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.NetworkType), ThinkingAnalyticsThinkingAnalyticsAPINetworkTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.AutoPlay), DGTweeningAutoPlayWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.AxisConstraint), DGTweeningAxisConstraintWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Ease), DGTweeningEaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.LogBehaviour), DGTweeningLogBehaviourWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.LoopType), DGTweeningLoopTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.PathMode), DGTweeningPathModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.PathType), DGTweeningPathTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.RotateMode), DGTweeningRotateModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.ScrambleMode), DGTweeningScrambleModeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.TweenType), DGTweeningTweenTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.UpdateType), DGTweeningUpdateTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOTween), DGTweeningDOTweenWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.DOTweenComponent), DGTweeningCoreDOTweenComponentWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineVector3UnityEngineVector3__DGTweeningPluginsOptionsVector3ArrayOptions_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineQuaternionUnityEngineVector3DGTweeningPluginsOptionsQuaternionOptions_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineVector3DGTweeningPluginsCorePathCorePathDGTweeningPluginsOptionsPathOptions_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_SystemSingleSystemSingleDGTweeningPluginsOptionsFloatOptions_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineVector3UnityEngineVector3DGTweeningPluginsOptionsVectorOptions_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.DOVirtual), DGTweeningDOVirtualWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.EaseFactory), DGTweeningEaseFactoryWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Tweener), DGTweeningTweenerWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Tween), DGTweeningTweenWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Sequence), DGTweeningSequenceWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.TweenParams), DGTweeningTweenParamsWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.Core.ABSSequentiable), DGTweeningCoreABSSequentiableWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.TweenExtensions), DGTweeningTweenExtensionsWrap.__Register); - - - translator.DelayWrapLoader(typeof(DG.Tweening.TweenSettingsExtensions), DGTweeningTweenSettingsExtensionsWrap.__Register); - - } - - static void wrapInit12(LuaEnv luaenv, ObjectTranslator translator) - { - - translator.DelayWrapLoader(typeof(DG.Tweening.ShortcutExtensions), DGTweeningShortcutExtensionsWrap.__Register); - - - translator.DelayWrapLoader(typeof(Http.RequestState), HttpRequestStateWrap.__Register); - - - translator.DelayWrapLoader(typeof(BestHTTP.HTTPRequest), BestHTTPHTTPRequestWrap.__Register); - - - translator.DelayWrapLoader(typeof(BestHTTP.HTTPResponse), BestHTTPHTTPResponseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BestHTTP.Connections.HTTP2.HTTP2Response), BestHTTPConnectionsHTTP2HTTP2ResponseWrap.__Register); - - - translator.DelayWrapLoader(typeof(BestHTTP.Forms.HTTPUrlEncodedForm), BestHTTPFormsHTTPUrlEncodedFormWrap.__Register); - - - translator.DelayWrapLoader(typeof(BestHTTP.Forms.HTTPFormBase), BestHTTPFormsHTTPFormBaseWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Purchasing.Product), UnityEnginePurchasingProductWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Purchasing.ProductDefinition), UnityEnginePurchasingProductDefinitionWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Purchasing.ProductMetadata), UnityEnginePurchasingProductMetadataWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Purchasing.ProductType), UnityEnginePurchasingProductTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.MonoSingleton), BFMonoSingleton_1_BFBFMain_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.MonoSingleton), BFMonoSingleton_1_AdManager_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFSlider.FillDirection), BFBFSliderFillDirectionWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ScrollRectBaseOld.MovementType), BFScrollRectBaseOldMovementTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), BFScrollRectBaseOldScrollbarVisibilityWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetServiceType), BFNetServiceTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.NetIncomingMessageType), BFNetIncomingMessageTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFEvent>), BFBFEvent_1_SystemCollectionsGenericList_1_BFBFFinger__Wrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFEvent), BFBFEvent_2_BFSelectEventTypeBFBFFinger_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.BFEvent), BFBFEvent_2_BFTouchEventTypeBFBFFinger_Wrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.TouchEventType), BFTouchEventTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.SelectEventType), BFSelectEventTypeWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Purchasing.Security.AppleStoreKitTestTangle), UnityEnginePurchasingSecurityAppleStoreKitTestTangleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.Purchasing.Security.AppleTangle), UnityEnginePurchasingSecurityAppleTangleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs), UnityEngineSignInWithAppleSignInWithAppleCallbackArgsWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent), UnityEngineSignInWithAppleSignInWithAppleEventWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SignInWithApple.SignInWithApple), UnityEngineSignInWithAppleSignInWithAppleWrap.__Register); - - - translator.DelayWrapLoader(typeof(UnityEngine.SignInWithApple.UserInfo), UnityEngineSignInWithAppleUserInfoWrap.__Register); - - - translator.DelayWrapLoader(typeof(BF.EnumFlagsAttribute), BFEnumFlagsAttributeWrap.__Register); - - - - } - - static void Init(LuaEnv luaenv, ObjectTranslator translator) - { - - wrapInit0(luaenv, translator); - - wrapInit1(luaenv, translator); - - wrapInit2(luaenv, translator); - - wrapInit3(luaenv, translator); - - wrapInit4(luaenv, translator); - - wrapInit5(luaenv, translator); - - wrapInit6(luaenv, translator); - - wrapInit7(luaenv, translator); - - wrapInit8(luaenv, translator); - - wrapInit9(luaenv, translator); - - wrapInit10(luaenv, translator); - - wrapInit11(luaenv, translator); - - wrapInit12(luaenv, translator); - - - } - - static XLua_Gen_Initer_Register__() - { - XLua.LuaEnv.AddIniter(Init); - } - - - } - -} -namespace XLua -{ - public partial class 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;}} - } - - internal partial class InternalGlobals - { - - delegate DG.Tweening.Core.TweenerCore __GEN_DELEGATE0( UnityEngine.Audio.AudioMixer target, string floatName, float endValue, float duration); - - delegate int __GEN_DELEGATE1( UnityEngine.Audio.AudioMixer target, bool withCallbacks); - - delegate int __GEN_DELEGATE2( UnityEngine.Audio.AudioMixer target, bool complete); - - delegate int __GEN_DELEGATE3( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE4( UnityEngine.Audio.AudioMixer target, float to, bool andPlay); - - delegate int __GEN_DELEGATE5( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE6( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE7( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE8( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE9( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE10( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE11( UnityEngine.Audio.AudioMixer target); - - delegate int __GEN_DELEGATE12( UnityEngine.Audio.AudioMixer target); - - delegate DG.Tweening.Core.TweenerCore __GEN_DELEGATE13( UnityEngine.UI.Outline target, UnityEngine.Color endValue, float duration); - - delegate DG.Tweening.Core.TweenerCore __GEN_DELEGATE14( UnityEngine.UI.Outline target, float endValue, float duration); - - delegate DG.Tweening.Core.TweenerCore __GEN_DELEGATE15( UnityEngine.UI.Outline target, UnityEngine.Vector2 endValue, float duration); - - delegate string __GEN_DELEGATE16( com.adjust.sdk.AdjustEnvironment adjustEnvironment); - - delegate string __GEN_DELEGATE17( com.adjust.sdk.AdjustLogLevel AdjustLogLevel); - - delegate string __GEN_DELEGATE18( com.adjust.sdk.AdjustLogLevel AdjustLogLevel); - - delegate string __GEN_DELEGATE19( com.adjust.sdk.AdjustUrlStrategy strategy); - - delegate DG.Tweening.Tweener __GEN_DELEGATE20( DG.Tweening.Core.TweenerCore t, bool snapping); - - delegate DG.Tweening.Tweener __GEN_DELEGATE21( DG.Tweening.Core.TweenerCore t, DG.Tweening.AxisConstraint axisConstraint, bool snapping); - - delegate DG.Tweening.Tweener __GEN_DELEGATE22( DG.Tweening.Core.TweenerCore t, bool snapping); - - delegate DG.Tweening.Tweener __GEN_DELEGATE23( DG.Tweening.Core.TweenerCore t, bool richTextEnabled, DG.Tweening.ScrambleMode scrambleMode, string scrambleChars); - - delegate DG.Tweening.Tweener __GEN_DELEGATE24( UnityEngine.TrailRenderer target, float toStartWidth, float toEndWidth, float duration); - - delegate DG.Tweening.Core.TweenerCore __GEN_DELEGATE25( UnityEngine.TrailRenderer target, float endValue, float duration); - - static InternalGlobals() - { - extensionMethodMap = new Dictionary>() - { - - {typeof(UnityEngine.Audio.AudioMixer), new List(){ - - new __GEN_DELEGATE0(DG.Tweening.DOTweenModuleAudio.DOSetFloat) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE1(DG.Tweening.DOTweenModuleAudio.DOComplete) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE2(DG.Tweening.DOTweenModuleAudio.DOKill) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE3(DG.Tweening.DOTweenModuleAudio.DOFlip) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE4(DG.Tweening.DOTweenModuleAudio.DOGoto) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE5(DG.Tweening.DOTweenModuleAudio.DOPause) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE6(DG.Tweening.DOTweenModuleAudio.DOPlay) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE7(DG.Tweening.DOTweenModuleAudio.DOPlayBackwards) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE8(DG.Tweening.DOTweenModuleAudio.DOPlayForward) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE9(DG.Tweening.DOTweenModuleAudio.DORestart) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE10(DG.Tweening.DOTweenModuleAudio.DORewind) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE11(DG.Tweening.DOTweenModuleAudio.DOSmoothRewind) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE12(DG.Tweening.DOTweenModuleAudio.DOTogglePause) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(UnityEngine.UI.Outline), new List(){ - - new __GEN_DELEGATE13(DG.Tweening.DOTweenModuleUI.DOColor) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE14(DG.Tweening.DOTweenModuleUI.DOFade) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE15(DG.Tweening.DOTweenModuleUI.DOScale) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(com.adjust.sdk.AdjustEnvironment), new List(){ - - new __GEN_DELEGATE16(com.adjust.sdk.AdjustEnvironmentExtension.ToLowercaseString) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(com.adjust.sdk.AdjustLogLevel), new List(){ - - new __GEN_DELEGATE17(com.adjust.sdk.AdjustLogLevelExtension.ToLowercaseString) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE18(com.adjust.sdk.AdjustLogLevelExtension.ToUppercaseString) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(com.adjust.sdk.AdjustUrlStrategy), new List(){ - - new __GEN_DELEGATE19(com.adjust.sdk.AdjustUrlStrategyExtension.ToLowerCaseString) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(DG.Tweening.Core.TweenerCore), new List(){ - - new __GEN_DELEGATE20(DG.Tweening.TweenSettingsExtensions.SetOptions) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE21(DG.Tweening.TweenSettingsExtensions.SetOptions) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(DG.Tweening.Core.TweenerCore), new List(){ - - new __GEN_DELEGATE22(DG.Tweening.TweenSettingsExtensions.SetOptions) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(DG.Tweening.Core.TweenerCore), new List(){ - - new __GEN_DELEGATE23(DG.Tweening.TweenSettingsExtensions.SetOptions) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - {typeof(UnityEngine.TrailRenderer), new List(){ - - new __GEN_DELEGATE24(DG.Tweening.ShortcutExtensions.DOResize) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - new __GEN_DELEGATE25(DG.Tweening.ShortcutExtensions.DOTime) -#if UNITY_WSA && !UNITY_EDITOR - .GetMethodInfo(), -#else - .Method, -#endif - - }}, - - }; - - genTryArrayGetPtr = StaticLuaCallbacks.__tryArrayGet; - genTryArraySetPtr = StaticLuaCallbacks.__tryArraySet; - } - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustAdRevenueWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustAdRevenueWrap.cs deleted file mode 100644 index da96ca618..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustAdRevenueWrap.cs +++ /dev/null @@ -1,291 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustAdRevenueWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustAdRevenue); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRevenue", _m_setRevenue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdImpressionsCount", _m_setAdImpressionsCount); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdRevenueNetwork", _m_setAdRevenueNetwork); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdRevenueUnit", _m_setAdRevenueUnit); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdRevenuePlacement", _m_setAdRevenuePlacement); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addCallbackParameter", _m_addCallbackParameter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addPartnerParameter", _m_addPartnerParameter); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _source = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.AdjustAdRevenue(_source); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustAdRevenue constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setRevenue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAdRevenue gen_to_be_invoked = (com.adjust.sdk.AdjustAdRevenue)translator.FastGetCSObj(L, 1); - - - - { - double _amount = LuaAPI.lua_tonumber(L, 2); - string _currency = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setRevenue( _amount, _currency ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdImpressionsCount(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAdRevenue gen_to_be_invoked = (com.adjust.sdk.AdjustAdRevenue)translator.FastGetCSObj(L, 1); - - - - { - int _adImpressionsCount = LuaAPI.xlua_tointeger(L, 2); - - gen_to_be_invoked.setAdImpressionsCount( _adImpressionsCount ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdRevenueNetwork(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAdRevenue gen_to_be_invoked = (com.adjust.sdk.AdjustAdRevenue)translator.FastGetCSObj(L, 1); - - - - { - string _adRevenueNetwork = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setAdRevenueNetwork( _adRevenueNetwork ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdRevenueUnit(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAdRevenue gen_to_be_invoked = (com.adjust.sdk.AdjustAdRevenue)translator.FastGetCSObj(L, 1); - - - - { - string _adRevenueUnit = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setAdRevenueUnit( _adRevenueUnit ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdRevenuePlacement(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAdRevenue gen_to_be_invoked = (com.adjust.sdk.AdjustAdRevenue)translator.FastGetCSObj(L, 1); - - - - { - string _adRevenuePlacement = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setAdRevenuePlacement( _adRevenuePlacement ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addCallbackParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAdRevenue gen_to_be_invoked = (com.adjust.sdk.AdjustAdRevenue)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addCallbackParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addPartnerParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAdRevenue gen_to_be_invoked = (com.adjust.sdk.AdjustAdRevenue)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addPartnerParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustAppStoreSubscriptionWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustAppStoreSubscriptionWrap.cs deleted file mode 100644 index f95e7c88b..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustAppStoreSubscriptionWrap.cs +++ /dev/null @@ -1,206 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustAppStoreSubscriptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustAppStoreSubscription); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setTransactionDate", _m_setTransactionDate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSalesRegion", _m_setSalesRegion); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addCallbackParameter", _m_addCallbackParameter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addPartnerParameter", _m_addPartnerParameter); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - string _price = LuaAPI.lua_tostring(L, 2); - string _currency = LuaAPI.lua_tostring(L, 3); - string _transactionId = LuaAPI.lua_tostring(L, 4); - string _receipt = LuaAPI.lua_tostring(L, 5); - - var gen_ret = new com.adjust.sdk.AdjustAppStoreSubscription(_price, _currency, _transactionId, _receipt); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustAppStoreSubscription constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setTransactionDate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAppStoreSubscription gen_to_be_invoked = (com.adjust.sdk.AdjustAppStoreSubscription)translator.FastGetCSObj(L, 1); - - - - { - string _transactionDate = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setTransactionDate( _transactionDate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSalesRegion(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAppStoreSubscription gen_to_be_invoked = (com.adjust.sdk.AdjustAppStoreSubscription)translator.FastGetCSObj(L, 1); - - - - { - string _salesRegion = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setSalesRegion( _salesRegion ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addCallbackParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAppStoreSubscription gen_to_be_invoked = (com.adjust.sdk.AdjustAppStoreSubscription)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addCallbackParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addPartnerParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustAppStoreSubscription gen_to_be_invoked = (com.adjust.sdk.AdjustAppStoreSubscription)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addPartnerParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustAttributionWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustAttributionWrap.cs deleted file mode 100644 index 3982cd87a..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustAttributionWrap.cs +++ /dev/null @@ -1,475 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustAttributionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustAttribution); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 12); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adid", _g_get_adid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "network", _g_get_network); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adgroup", _g_get_adgroup); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "campaign", _g_get_campaign); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "creative", _g_get_creative); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "clickLabel", _g_get_clickLabel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "trackerName", _g_get_trackerName); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "trackerToken", _g_get_trackerToken); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "costType", _g_get_costType); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "costAmount", _g_get_costAmount); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "costCurrency", _g_get_costCurrency); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "fbInstallReferrer", _g_get_fbInstallReferrer); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adid", _s_set_adid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "network", _s_set_network); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adgroup", _s_set_adgroup); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "campaign", _s_set_campaign); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "creative", _s_set_creative); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "clickLabel", _s_set_clickLabel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "trackerName", _s_set_trackerName); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "trackerToken", _s_set_trackerToken); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "costType", _s_set_costType); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "costAmount", _s_set_costAmount); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "costCurrency", _s_set_costCurrency); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "fbInstallReferrer", _s_set_fbInstallReferrer); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.AdjustAttribution(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _jsonString = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.AdjustAttribution(_jsonString); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _dicAttributionData = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new com.adjust.sdk.AdjustAttribution(_dicAttributionData); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustAttribution constructor!"); - - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.adid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_network(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.network); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adgroup(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.adgroup); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_campaign(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.campaign); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_creative(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.creative); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_clickLabel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.clickLabel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_trackerName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.trackerName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_trackerToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.trackerToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_costType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.costType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_costAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.costAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_costCurrency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.costCurrency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_fbInstallReferrer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.fbInstallReferrer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.adid = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_network(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.network = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adgroup(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.adgroup = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_campaign(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.campaign = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_creative(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.creative = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_clickLabel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.clickLabel = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_trackerName(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.trackerName = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_trackerToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.trackerToken = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_costType(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.costType = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_costAmount(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - System.Nullable gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.costAmount = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_costCurrency(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.costCurrency = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_fbInstallReferrer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustAttribution gen_to_be_invoked = (com.adjust.sdk.AdjustAttribution)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.fbInstallReferrer = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustConfigWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustConfigWrap.cs deleted file mode 100644 index 2dd52cbe2..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustConfigWrap.cs +++ /dev/null @@ -1,1365 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustConfigWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustConfig); - Utils.BeginObjectRegister(type, L, translator, 0, 39, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setLogLevel", _m_setLogLevel); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDefaultTracker", _m_setDefaultTracker); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setExternalDeviceId", _m_setExternalDeviceId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setLaunchDeferredDeeplink", _m_setLaunchDeferredDeeplink); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSendInBackground", _m_setSendInBackground); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setEventBufferingEnabled", _m_setEventBufferingEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setCoppaCompliantEnabled", _m_setCoppaCompliantEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setPlayStoreKidsAppEnabled", _m_setPlayStoreKidsAppEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setNeedsCost", _m_setNeedsCost); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDelayStart", _m_setDelayStart); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setUserAgent", _m_setUserAgent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setIsDeviceKnown", _m_setIsDeviceKnown); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setUrlStrategy", _m_setUrlStrategy); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "deactivateSKAdNetworkHandling", _m_deactivateSKAdNetworkHandling); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setLinkMeEnabled", _m_setLinkMeEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDeferredDeeplinkDelegate", _m_setDeferredDeeplinkDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getDeferredDeeplinkDelegate", _m_getDeferredDeeplinkDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAttributionChangedDelegate", _m_setAttributionChangedDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAttributionChangedDelegate", _m_getAttributionChangedDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setEventSuccessDelegate", _m_setEventSuccessDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getEventSuccessDelegate", _m_getEventSuccessDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setEventFailureDelegate", _m_setEventFailureDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getEventFailureDelegate", _m_getEventFailureDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSessionSuccessDelegate", _m_setSessionSuccessDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getSessionSuccessDelegate", _m_getSessionSuccessDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSessionFailureDelegate", _m_setSessionFailureDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getSessionFailureDelegate", _m_getSessionFailureDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setConversionValueUpdatedDelegate", _m_setConversionValueUpdatedDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSkad4ConversionValueUpdatedDelegate", _m_setSkad4ConversionValueUpdatedDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getConversionValueUpdatedDelegate", _m_getConversionValueUpdatedDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getSkad4ConversionValueUpdatedDelegate", _m_getSkad4ConversionValueUpdatedDelegate); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAppSecret", _m_setAppSecret); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAllowiAdInfoReading", _m_setAllowiAdInfoReading); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAllowAdServicesInfoReading", _m_setAllowAdServicesInfoReading); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAllowIdfaReading", _m_setAllowIdfaReading); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setProcessName", _m_setProcessName); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setPreinstallTrackingEnabled", _m_setPreinstallTrackingEnabled); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setPreinstallFilePath", _m_setPreinstallFilePath); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setLogDelegate", _m_setLogDelegate); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 15, 0, 0); - - - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustUrlStrategyChina", com.adjust.sdk.AdjustConfig.AdjustUrlStrategyChina); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustUrlStrategyIndia", com.adjust.sdk.AdjustConfig.AdjustUrlStrategyIndia); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustUrlStrategyCn", com.adjust.sdk.AdjustConfig.AdjustUrlStrategyCn); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustDataResidencyEU", com.adjust.sdk.AdjustConfig.AdjustDataResidencyEU); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustDataResidencyTR", com.adjust.sdk.AdjustConfig.AdjustDataResidencyTR); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustDataResidencyUS", com.adjust.sdk.AdjustConfig.AdjustDataResidencyUS); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourceAppLovinMAX", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourceAppLovinMAX); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourceMopub", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourceMopub); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourceAdMob", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourceAdMob); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourceIronSource", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourceIronSource); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourceAdmost", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourceAdmost); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourceUnity", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourceUnity); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourceHeliumChartboost", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourceHeliumChartboost); - Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AdjustAdRevenueSourcePublisher", com.adjust.sdk.AdjustConfig.AdjustAdRevenueSourcePublisher); - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3)) - { - string _appToken = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.AdjustEnvironment _environment;translator.Get(L, 3, out _environment); - - var gen_ret = new com.adjust.sdk.AdjustConfig(_appToken, _environment); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) - { - string _appToken = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.AdjustEnvironment _environment;translator.Get(L, 3, out _environment); - bool _allowSuppressLogLevel = LuaAPI.lua_toboolean(L, 4); - - var gen_ret = new com.adjust.sdk.AdjustConfig(_appToken, _environment, _allowSuppressLogLevel); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setLogLevel(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - com.adjust.sdk.AdjustLogLevel _logLevel;translator.Get(L, 2, out _logLevel); - - gen_to_be_invoked.setLogLevel( _logLevel ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDefaultTracker(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - string _defaultTracker = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setDefaultTracker( _defaultTracker ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setExternalDeviceId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - string _externalDeviceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setExternalDeviceId( _externalDeviceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setLaunchDeferredDeeplink(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _launchDeferredDeeplink = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setLaunchDeferredDeeplink( _launchDeferredDeeplink ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSendInBackground(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _sendInBackground = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setSendInBackground( _sendInBackground ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setEventBufferingEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _eventBufferingEnabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setEventBufferingEnabled( _eventBufferingEnabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setCoppaCompliantEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _coppaCompliantEnabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setCoppaCompliantEnabled( _coppaCompliantEnabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setPlayStoreKidsAppEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _playStoreKidsAppEnabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setPlayStoreKidsAppEnabled( _playStoreKidsAppEnabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setNeedsCost(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _needsCost = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setNeedsCost( _needsCost ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDelayStart(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - double _delayStart = LuaAPI.lua_tonumber(L, 2); - - gen_to_be_invoked.setDelayStart( _delayStart ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setUserAgent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - string _userAgent = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setUserAgent( _userAgent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setIsDeviceKnown(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _isDeviceKnown = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setIsDeviceKnown( _isDeviceKnown ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setUrlStrategy(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - string _urlStrategy = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setUrlStrategy( _urlStrategy ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_deactivateSKAdNetworkHandling(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.deactivateSKAdNetworkHandling( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setLinkMeEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _linkMeEnabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setLinkMeEnabled( _linkMeEnabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDeferredDeeplinkDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _deferredDeeplinkDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setDeferredDeeplinkDelegate( _deferredDeeplinkDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _deferredDeeplinkDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setDeferredDeeplinkDelegate( _deferredDeeplinkDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setDeferredDeeplinkDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getDeferredDeeplinkDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getDeferredDeeplinkDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAttributionChangedDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _attributionChangedDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setAttributionChangedDelegate( _attributionChangedDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _attributionChangedDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setAttributionChangedDelegate( _attributionChangedDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setAttributionChangedDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAttributionChangedDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getAttributionChangedDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setEventSuccessDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _eventSuccessDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setEventSuccessDelegate( _eventSuccessDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _eventSuccessDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setEventSuccessDelegate( _eventSuccessDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setEventSuccessDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getEventSuccessDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getEventSuccessDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setEventFailureDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _eventFailureDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setEventFailureDelegate( _eventFailureDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _eventFailureDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setEventFailureDelegate( _eventFailureDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setEventFailureDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getEventFailureDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getEventFailureDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSessionSuccessDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _sessionSuccessDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setSessionSuccessDelegate( _sessionSuccessDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _sessionSuccessDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setSessionSuccessDelegate( _sessionSuccessDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setSessionSuccessDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getSessionSuccessDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getSessionSuccessDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSessionFailureDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _sessionFailureDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setSessionFailureDelegate( _sessionFailureDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _sessionFailureDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setSessionFailureDelegate( _sessionFailureDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setSessionFailureDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getSessionFailureDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getSessionFailureDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setConversionValueUpdatedDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _conversionValueUpdatedDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setConversionValueUpdatedDelegate( _conversionValueUpdatedDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _conversionValueUpdatedDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setConversionValueUpdatedDelegate( _conversionValueUpdatedDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setConversionValueUpdatedDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setSkad4ConversionValueUpdatedDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - System.Action _skad4ConversionValueUpdatedDelegate = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setSkad4ConversionValueUpdatedDelegate( _skad4ConversionValueUpdatedDelegate, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& translator.Assignable>(L, 2)) - { - System.Action _skad4ConversionValueUpdatedDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setSkad4ConversionValueUpdatedDelegate( _skad4ConversionValueUpdatedDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustConfig.setSkad4ConversionValueUpdatedDelegate!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getConversionValueUpdatedDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getConversionValueUpdatedDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getSkad4ConversionValueUpdatedDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getSkad4ConversionValueUpdatedDelegate( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAppSecret(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - long _secretId = LuaAPI.lua_toint64(L, 2); - long _info1 = LuaAPI.lua_toint64(L, 3); - long _info2 = LuaAPI.lua_toint64(L, 4); - long _info3 = LuaAPI.lua_toint64(L, 5); - long _info4 = LuaAPI.lua_toint64(L, 6); - - gen_to_be_invoked.setAppSecret( _secretId, _info1, _info2, _info3, _info4 ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAllowiAdInfoReading(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _allowiAdInfoReading = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setAllowiAdInfoReading( _allowiAdInfoReading ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAllowAdServicesInfoReading(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _allowAdServicesInfoReading = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setAllowAdServicesInfoReading( _allowAdServicesInfoReading ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAllowIdfaReading(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _allowIdfaReading = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setAllowIdfaReading( _allowIdfaReading ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setProcessName(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - string _processName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setProcessName( _processName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setPreinstallTrackingEnabled(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - bool _preinstallTrackingEnabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setPreinstallTrackingEnabled( _preinstallTrackingEnabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setPreinstallFilePath(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - string _preinstallFilePath = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setPreinstallFilePath( _preinstallFilePath ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setLogDelegate(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustConfig gen_to_be_invoked = (com.adjust.sdk.AdjustConfig)translator.FastGetCSObj(L, 1); - - - - { - System.Action _logDelegate = translator.GetDelegate>(L, 2); - - gen_to_be_invoked.setLogDelegate( _logDelegate ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustEnvironmentExtensionWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustEnvironmentExtensionWrap.cs deleted file mode 100644 index 1f7088aba..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustEnvironmentExtensionWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustEnvironmentExtensionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustEnvironmentExtension); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "com.adjust.sdk.AdjustEnvironmentExtension does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustEventFailureWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustEventFailureWrap.cs deleted file mode 100644 index 9353fda26..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustEventFailureWrap.cs +++ /dev/null @@ -1,377 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustEventFailureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustEventFailure); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 7, 7); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildJsonResponseFromString", _m_BuildJsonResponseFromString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJsonResponse", _m_GetJsonResponse); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Adid", _g_get_Adid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Message", _g_get_Message); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timestamp", _g_get_Timestamp); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventToken", _g_get_EventToken); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CallbackId", _g_get_CallbackId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "WillRetry", _g_get_WillRetry); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "JsonResponse", _g_get_JsonResponse); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Adid", _s_set_Adid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Message", _s_set_Message); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Timestamp", _s_set_Timestamp); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EventToken", _s_set_EventToken); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CallbackId", _s_set_CallbackId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "WillRetry", _s_set_WillRetry); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "JsonResponse", _s_set_JsonResponse); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.AdjustEventFailure(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _eventFailureDataMap = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new com.adjust.sdk.AdjustEventFailure(_eventFailureDataMap); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _jsonString = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.AdjustEventFailure(_jsonString); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustEventFailure constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildJsonResponseFromString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - - - - { - string _jsonResponseString = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.BuildJsonResponseFromString( _jsonResponseString ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJsonResponse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetJsonResponse( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Adid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Message); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Timestamp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EventToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.EventToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CallbackId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.CallbackId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_WillRetry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.WillRetry); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.JsonResponse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Adid = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Message = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Timestamp = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EventToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EventToken = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CallbackId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CallbackId = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_WillRetry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.WillRetry = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventFailure gen_to_be_invoked = (com.adjust.sdk.AdjustEventFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.JsonResponse = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustEventSuccessWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustEventSuccessWrap.cs deleted file mode 100644 index de3a7ee37..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustEventSuccessWrap.cs +++ /dev/null @@ -1,346 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustEventSuccessWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustEventSuccess); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 6, 6); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildJsonResponseFromString", _m_BuildJsonResponseFromString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJsonResponse", _m_GetJsonResponse); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Adid", _g_get_Adid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Message", _g_get_Message); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timestamp", _g_get_Timestamp); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "EventToken", _g_get_EventToken); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "CallbackId", _g_get_CallbackId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "JsonResponse", _g_get_JsonResponse); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Adid", _s_set_Adid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Message", _s_set_Message); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Timestamp", _s_set_Timestamp); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "EventToken", _s_set_EventToken); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "CallbackId", _s_set_CallbackId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "JsonResponse", _s_set_JsonResponse); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.AdjustEventSuccess(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _eventSuccessDataMap = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new com.adjust.sdk.AdjustEventSuccess(_eventSuccessDataMap); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _jsonString = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.AdjustEventSuccess(_jsonString); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustEventSuccess constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildJsonResponseFromString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - - - - { - string _jsonResponseString = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.BuildJsonResponseFromString( _jsonResponseString ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJsonResponse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetJsonResponse( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Adid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Message); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Timestamp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_EventToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.EventToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_CallbackId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.CallbackId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.JsonResponse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Adid = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Message = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Timestamp = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_EventToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.EventToken = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_CallbackId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.CallbackId = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustEventSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustEventSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.JsonResponse = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustEventWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustEventWrap.cs deleted file mode 100644 index 90b85d1c8..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustEventWrap.cs +++ /dev/null @@ -1,233 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustEventWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustEvent); - Utils.BeginObjectRegister(type, L, translator, 0, 5, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRevenue", _m_setRevenue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addCallbackParameter", _m_addCallbackParameter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addPartnerParameter", _m_addPartnerParameter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setTransactionId", _m_setTransactionId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setCallbackId", _m_setCallbackId); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _eventToken = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.AdjustEvent(_eventToken); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustEvent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setRevenue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1); - - - - { - double _amount = LuaAPI.lua_tonumber(L, 2); - string _currency = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setRevenue( _amount, _currency ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addCallbackParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addCallbackParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addPartnerParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addPartnerParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setTransactionId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1); - - - - { - string _transactionId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setTransactionId( _transactionId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setCallbackId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustEvent gen_to_be_invoked = (com.adjust.sdk.AdjustEvent)translator.FastGetCSObj(L, 1); - - - - { - string _callbackId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setCallbackId( _callbackId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustLogLevelExtensionWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustLogLevelExtensionWrap.cs deleted file mode 100644 index 404f7172d..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustLogLevelExtensionWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustLogLevelExtensionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustLogLevelExtension); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "com.adjust.sdk.AdjustLogLevelExtension does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustPlayStoreSubscriptionWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustPlayStoreSubscriptionWrap.cs deleted file mode 100644 index 6436b0975..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustPlayStoreSubscriptionWrap.cs +++ /dev/null @@ -1,179 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustPlayStoreSubscriptionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustPlayStoreSubscription); - Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setPurchaseTime", _m_setPurchaseTime); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addCallbackParameter", _m_addCallbackParameter); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addPartnerParameter", _m_addPartnerParameter); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 7 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 7) || LuaAPI.lua_type(L, 7) == LuaTypes.LUA_TSTRING)) - { - string _price = LuaAPI.lua_tostring(L, 2); - string _currency = LuaAPI.lua_tostring(L, 3); - string _sku = LuaAPI.lua_tostring(L, 4); - string _orderId = LuaAPI.lua_tostring(L, 5); - string _signature = LuaAPI.lua_tostring(L, 6); - string _purchaseToken = LuaAPI.lua_tostring(L, 7); - - var gen_ret = new com.adjust.sdk.AdjustPlayStoreSubscription(_price, _currency, _sku, _orderId, _signature, _purchaseToken); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustPlayStoreSubscription constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setPurchaseTime(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustPlayStoreSubscription gen_to_be_invoked = (com.adjust.sdk.AdjustPlayStoreSubscription)translator.FastGetCSObj(L, 1); - - - - { - string _purchaseTime = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setPurchaseTime( _purchaseTime ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addCallbackParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustPlayStoreSubscription gen_to_be_invoked = (com.adjust.sdk.AdjustPlayStoreSubscription)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addCallbackParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addPartnerParameter(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustPlayStoreSubscription gen_to_be_invoked = (com.adjust.sdk.AdjustPlayStoreSubscription)translator.FastGetCSObj(L, 1); - - - - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.addPartnerParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustSessionFailureWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustSessionFailureWrap.cs deleted file mode 100644 index b0ecb2629..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustSessionFailureWrap.cs +++ /dev/null @@ -1,315 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustSessionFailureWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustSessionFailure); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 5, 5); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildJsonResponseFromString", _m_BuildJsonResponseFromString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJsonResponse", _m_GetJsonResponse); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Adid", _g_get_Adid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Message", _g_get_Message); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timestamp", _g_get_Timestamp); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "WillRetry", _g_get_WillRetry); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "JsonResponse", _g_get_JsonResponse); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Adid", _s_set_Adid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Message", _s_set_Message); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Timestamp", _s_set_Timestamp); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "WillRetry", _s_set_WillRetry); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "JsonResponse", _s_set_JsonResponse); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.AdjustSessionFailure(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _sessionFailureDataMap = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new com.adjust.sdk.AdjustSessionFailure(_sessionFailureDataMap); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _jsonString = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.AdjustSessionFailure(_jsonString); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustSessionFailure constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildJsonResponseFromString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - - - - { - string _jsonResponseString = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.BuildJsonResponseFromString( _jsonResponseString ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJsonResponse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetJsonResponse( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Adid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Message); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Timestamp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_WillRetry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.WillRetry); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.JsonResponse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Adid = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Message = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Timestamp = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_WillRetry(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.WillRetry = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionFailure gen_to_be_invoked = (com.adjust.sdk.AdjustSessionFailure)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.JsonResponse = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustSessionSuccessWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustSessionSuccessWrap.cs deleted file mode 100644 index 4cb3ed3d4..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustSessionSuccessWrap.cs +++ /dev/null @@ -1,284 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustSessionSuccessWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustSessionSuccess); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 4, 4); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "BuildJsonResponseFromString", _m_BuildJsonResponseFromString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetJsonResponse", _m_GetJsonResponse); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Adid", _g_get_Adid); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Message", _g_get_Message); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Timestamp", _g_get_Timestamp); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "JsonResponse", _g_get_JsonResponse); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Adid", _s_set_Adid); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Message", _s_set_Message); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Timestamp", _s_set_Timestamp); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "JsonResponse", _s_set_JsonResponse); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.AdjustSessionSuccess(); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Collections.Generic.Dictionary _sessionSuccessDataMap = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = new com.adjust.sdk.AdjustSessionSuccess(_sessionSuccessDataMap); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _jsonString = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.AdjustSessionSuccess(_jsonString); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustSessionSuccess constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_BuildJsonResponseFromString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - - - - { - string _jsonResponseString = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.BuildJsonResponseFromString( _jsonResponseString ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJsonResponse(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetJsonResponse( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Adid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Message); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Timestamp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.JsonResponse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Adid(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Adid = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Message(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Message = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Timestamp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Timestamp = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_JsonResponse(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.AdjustSessionSuccess gen_to_be_invoked = (com.adjust.sdk.AdjustSessionSuccess)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.JsonResponse = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustThirdPartySharingWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustThirdPartySharingWrap.cs deleted file mode 100644 index d665542b8..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustThirdPartySharingWrap.cs +++ /dev/null @@ -1,147 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustThirdPartySharingWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustThirdPartySharing); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addGranularOption", _m_addGranularOption); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "addPartnerSharingSetting", _m_addPartnerSharingSetting); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable>(L, 2)) - { - System.Nullable _isEnabled;translator.Get(L, 2, out _isEnabled); - - var gen_ret = new com.adjust.sdk.AdjustThirdPartySharing(_isEnabled); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustThirdPartySharing constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addGranularOption(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustThirdPartySharing gen_to_be_invoked = (com.adjust.sdk.AdjustThirdPartySharing)translator.FastGetCSObj(L, 1); - - - - { - string _partnerName = LuaAPI.lua_tostring(L, 2); - string _key = LuaAPI.lua_tostring(L, 3); - string _value = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.addGranularOption( _partnerName, _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addPartnerSharingSetting(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.AdjustThirdPartySharing gen_to_be_invoked = (com.adjust.sdk.AdjustThirdPartySharing)translator.FastGetCSObj(L, 1); - - - - { - string _partnerName = LuaAPI.lua_tostring(L, 2); - string _key = LuaAPI.lua_tostring(L, 3); - bool _value = LuaAPI.lua_toboolean(L, 4); - - gen_to_be_invoked.addPartnerSharingSetting( _partnerName, _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustUrlStrategyExtensionWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustUrlStrategyExtensionWrap.cs deleted file mode 100644 index 149850043..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustUrlStrategyExtensionWrap.cs +++ /dev/null @@ -1,67 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustUrlStrategyExtensionWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustUrlStrategyExtension); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "com.adjust.sdk.AdjustUrlStrategyExtension does not have a constructor!"); - } - - - - - - - - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs deleted file mode 100644 index 0a27ea9b0..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs +++ /dev/null @@ -1,1443 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustUtilsWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.AdjustUtils); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 14, 37, 37); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertLogLevel", _m_ConvertLogLevel_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertBool", _m_ConvertBool_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertDouble", _m_ConvertDouble_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertInt", _m_ConvertInt_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertLong", _m_ConvertLong_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertListToJson", _m_ConvertListToJson_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetJsonResponseCompact", _m_GetJsonResponseCompact_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetJsonString", _m_GetJsonString_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "WriteJsonResponseDictionary", _m_WriteJsonResponseDictionary_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TryGetValue", _m_TryGetValue_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4ConversionValue", _m_GetSkad4ConversionValue_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4CoarseValue", _m_GetSkad4CoarseValue_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4LockWindow", _m_GetSkad4LockWindow_xlua_st_); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyAdid", _g_get_KeyAdid); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyMessage", _g_get_KeyMessage); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyNetwork", _g_get_KeyNetwork); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyAdgroup", _g_get_KeyAdgroup); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyCampaign", _g_get_KeyCampaign); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyCreative", _g_get_KeyCreative); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyWillRetry", _g_get_KeyWillRetry); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTimestamp", _g_get_KeyTimestamp); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyCallbackId", _g_get_KeyCallbackId); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyEventToken", _g_get_KeyEventToken); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyClickLabel", _g_get_KeyClickLabel); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTrackerName", _g_get_KeyTrackerName); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTrackerToken", _g_get_KeyTrackerToken); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyJsonResponse", _g_get_KeyJsonResponse); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyCostType", _g_get_KeyCostType); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyCostAmount", _g_get_KeyCostAmount); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyCostCurrency", _g_get_KeyCostCurrency); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyFbInstallReferrer", _g_get_KeyFbInstallReferrer); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeySkadConversionValue", _g_get_KeySkadConversionValue); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeySkadCoarseValue", _g_get_KeySkadCoarseValue); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeySkadLockWindow", _g_get_KeySkadLockWindow); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsBaseUrl", _g_get_KeyTestOptionsBaseUrl); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsGdprUrl", _g_get_KeyTestOptionsGdprUrl); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsSubscriptionUrl", _g_get_KeyTestOptionsSubscriptionUrl); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsExtraPath", _g_get_KeyTestOptionsExtraPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsBasePath", _g_get_KeyTestOptionsBasePath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsGdprPath", _g_get_KeyTestOptionsGdprPath); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsDeleteState", _g_get_KeyTestOptionsDeleteState); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsUseTestConnectionOptions", _g_get_KeyTestOptionsUseTestConnectionOptions); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsTimerIntervalInMilliseconds", _g_get_KeyTestOptionsTimerIntervalInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsTimerStartInMilliseconds", _g_get_KeyTestOptionsTimerStartInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsSessionIntervalInMilliseconds", _g_get_KeyTestOptionsSessionIntervalInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsSubsessionIntervalInMilliseconds", _g_get_KeyTestOptionsSubsessionIntervalInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsTeardown", _g_get_KeyTestOptionsTeardown); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsNoBackoffWait", _g_get_KeyTestOptionsNoBackoffWait); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsiAdFrameworkEnabled", _g_get_KeyTestOptionsiAdFrameworkEnabled); - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "KeyTestOptionsAdServicesFrameworkEnabled", _g_get_KeyTestOptionsAdServicesFrameworkEnabled); - - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyAdid", _s_set_KeyAdid); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyMessage", _s_set_KeyMessage); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyNetwork", _s_set_KeyNetwork); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyAdgroup", _s_set_KeyAdgroup); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyCampaign", _s_set_KeyCampaign); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyCreative", _s_set_KeyCreative); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyWillRetry", _s_set_KeyWillRetry); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTimestamp", _s_set_KeyTimestamp); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyCallbackId", _s_set_KeyCallbackId); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyEventToken", _s_set_KeyEventToken); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyClickLabel", _s_set_KeyClickLabel); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTrackerName", _s_set_KeyTrackerName); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTrackerToken", _s_set_KeyTrackerToken); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyJsonResponse", _s_set_KeyJsonResponse); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyCostType", _s_set_KeyCostType); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyCostAmount", _s_set_KeyCostAmount); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyCostCurrency", _s_set_KeyCostCurrency); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyFbInstallReferrer", _s_set_KeyFbInstallReferrer); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeySkadConversionValue", _s_set_KeySkadConversionValue); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeySkadCoarseValue", _s_set_KeySkadCoarseValue); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeySkadLockWindow", _s_set_KeySkadLockWindow); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsBaseUrl", _s_set_KeyTestOptionsBaseUrl); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsGdprUrl", _s_set_KeyTestOptionsGdprUrl); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsSubscriptionUrl", _s_set_KeyTestOptionsSubscriptionUrl); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsExtraPath", _s_set_KeyTestOptionsExtraPath); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsBasePath", _s_set_KeyTestOptionsBasePath); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsGdprPath", _s_set_KeyTestOptionsGdprPath); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsDeleteState", _s_set_KeyTestOptionsDeleteState); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsUseTestConnectionOptions", _s_set_KeyTestOptionsUseTestConnectionOptions); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsTimerIntervalInMilliseconds", _s_set_KeyTestOptionsTimerIntervalInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsTimerStartInMilliseconds", _s_set_KeyTestOptionsTimerStartInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsSessionIntervalInMilliseconds", _s_set_KeyTestOptionsSessionIntervalInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsSubsessionIntervalInMilliseconds", _s_set_KeyTestOptionsSubsessionIntervalInMilliseconds); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsTeardown", _s_set_KeyTestOptionsTeardown); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsNoBackoffWait", _s_set_KeyTestOptionsNoBackoffWait); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsiAdFrameworkEnabled", _s_set_KeyTestOptionsiAdFrameworkEnabled); - Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "KeyTestOptionsAdServicesFrameworkEnabled", _s_set_KeyTestOptionsAdServicesFrameworkEnabled); - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.AdjustUtils(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.AdjustUtils constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertLogLevel_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Nullable _logLevel;translator.Get(L, 1, out _logLevel); - - var gen_ret = com.adjust.sdk.AdjustUtils.ConvertLogLevel( _logLevel ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertBool_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Nullable _value;translator.Get(L, 1, out _value); - - var gen_ret = com.adjust.sdk.AdjustUtils.ConvertBool( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertDouble_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Nullable _value;translator.Get(L, 1, out _value); - - var gen_ret = com.adjust.sdk.AdjustUtils.ConvertDouble( _value ); - LuaAPI.lua_pushnumber(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertInt_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Nullable _value;translator.Get(L, 1, out _value); - - var gen_ret = com.adjust.sdk.AdjustUtils.ConvertInt( _value ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertLong_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Nullable _value;translator.Get(L, 1, out _value); - - var gen_ret = com.adjust.sdk.AdjustUtils.ConvertLong( _value ); - LuaAPI.lua_pushint64(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ConvertListToJson_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.List _list = (System.Collections.Generic.List)translator.GetObject(L, 1, typeof(System.Collections.Generic.List)); - - var gen_ret = com.adjust.sdk.AdjustUtils.ConvertListToJson( _list ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJsonResponseCompact_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.Dictionary _dictionary = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - var gen_ret = com.adjust.sdk.AdjustUtils.GetJsonResponseCompact( _dictionary ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetJsonString_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - com.adjust.sdk.JSONNode _node = (com.adjust.sdk.JSONNode)translator.GetObject(L, 1, typeof(com.adjust.sdk.JSONNode)); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = com.adjust.sdk.AdjustUtils.GetJsonString( _node, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_WriteJsonResponseDictionary_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - com.adjust.sdk.JSONClass _jsonObject = (com.adjust.sdk.JSONClass)translator.GetObject(L, 1, typeof(com.adjust.sdk.JSONClass)); - System.Collections.Generic.Dictionary _output = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - com.adjust.sdk.AdjustUtils.WriteJsonResponseDictionary( _jsonObject, _output ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TryGetValue_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.Dictionary _dictionary = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - string _key = LuaAPI.lua_tostring(L, 2); - - var gen_ret = com.adjust.sdk.AdjustUtils.TryGetValue( _dictionary, _key ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSkad4ConversionValue_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _conversionValueUpdate = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.AdjustUtils.GetSkad4ConversionValue( _conversionValueUpdate ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSkad4CoarseValue_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _conversionValueUpdate = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.AdjustUtils.GetSkad4CoarseValue( _conversionValueUpdate ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetSkad4LockWindow_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _conversionValueUpdate = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.AdjustUtils.GetSkad4LockWindow( _conversionValueUpdate ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyAdid(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyAdid); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyMessage(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyMessage); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyNetwork(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyNetwork); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyAdgroup(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyAdgroup); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyCampaign(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyCampaign); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyCreative(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyCreative); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyWillRetry(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyWillRetry); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTimestamp(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTimestamp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyCallbackId(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyCallbackId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyEventToken(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyEventToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyClickLabel(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyClickLabel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTrackerName(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTrackerName); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTrackerToken(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTrackerToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyJsonResponse(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyJsonResponse); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyCostType(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyCostType); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyCostAmount(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyCostAmount); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyCostCurrency(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyCostCurrency); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyFbInstallReferrer(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyFbInstallReferrer); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeySkadConversionValue(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeySkadConversionValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeySkadCoarseValue(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeySkadCoarseValue); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeySkadLockWindow(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeySkadLockWindow); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsBaseUrl(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsBaseUrl); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsGdprUrl(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsGdprUrl); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsSubscriptionUrl(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsSubscriptionUrl); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsExtraPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsExtraPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsBasePath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsBasePath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsGdprPath(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsGdprPath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsDeleteState(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsDeleteState); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsUseTestConnectionOptions(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsUseTestConnectionOptions); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsTimerIntervalInMilliseconds(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsTimerIntervalInMilliseconds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsTimerStartInMilliseconds(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsTimerStartInMilliseconds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsSessionIntervalInMilliseconds(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsSessionIntervalInMilliseconds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsSubsessionIntervalInMilliseconds(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsSubsessionIntervalInMilliseconds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsTeardown(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsTeardown); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsNoBackoffWait(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsNoBackoffWait); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsiAdFrameworkEnabled(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsiAdFrameworkEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_KeyTestOptionsAdServicesFrameworkEnabled(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, com.adjust.sdk.AdjustUtils.KeyTestOptionsAdServicesFrameworkEnabled); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyAdid(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyAdid = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyMessage(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyMessage = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyNetwork(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyNetwork = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyAdgroup(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyAdgroup = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyCampaign(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyCampaign = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyCreative(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyCreative = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyWillRetry(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyWillRetry = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTimestamp(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTimestamp = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyCallbackId(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyCallbackId = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyEventToken(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyEventToken = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyClickLabel(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyClickLabel = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTrackerName(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTrackerName = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTrackerToken(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTrackerToken = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyJsonResponse(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyJsonResponse = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyCostType(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyCostType = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyCostAmount(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyCostAmount = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyCostCurrency(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyCostCurrency = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyFbInstallReferrer(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyFbInstallReferrer = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeySkadConversionValue(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeySkadConversionValue = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeySkadCoarseValue(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeySkadCoarseValue = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeySkadLockWindow(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeySkadLockWindow = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsBaseUrl(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsBaseUrl = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsGdprUrl(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsGdprUrl = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsSubscriptionUrl(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsSubscriptionUrl = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsExtraPath(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsExtraPath = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsBasePath(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsBasePath = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsGdprPath(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsGdprPath = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsDeleteState(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsDeleteState = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsUseTestConnectionOptions(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsUseTestConnectionOptions = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsTimerIntervalInMilliseconds(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsTimerIntervalInMilliseconds = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsTimerStartInMilliseconds(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsTimerStartInMilliseconds = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsSessionIntervalInMilliseconds(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsSessionIntervalInMilliseconds = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsSubsessionIntervalInMilliseconds(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsSubsessionIntervalInMilliseconds = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsTeardown(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsTeardown = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsNoBackoffWait(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsNoBackoffWait = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsiAdFrameworkEnabled(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsiAdFrameworkEnabled = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_KeyTestOptionsAdServicesFrameworkEnabled(RealStatePtr L) - { - try { - - com.adjust.sdk.AdjustUtils.KeyTestOptionsAdServicesFrameworkEnabled = LuaAPI.lua_tostring(L, 1); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustWrap.cs deleted file mode 100644 index bdb7e92dd..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustWrap.cs +++ /dev/null @@ -1,1845 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkAdjustWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.Adjust); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 26, 26); - - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startManually", _g_get_startManually); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "androidAppToken", _g_get_androidAppToken); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "iosAppToken", _g_get_iosAppToken); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "environment", _g_get_environment); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "logLevel", _g_get_logLevel); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "eventBuffering", _g_get_eventBuffering); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "sendInBackground", _g_get_sendInBackground); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "launchDeferredDeeplink", _g_get_launchDeferredDeeplink); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "needsCost", _g_get_needsCost); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "coppaCompliant", _g_get_coppaCompliant); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "linkMe", _g_get_linkMe); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "defaultTracker", _g_get_defaultTracker); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "urlStrategy", _g_get_urlStrategy); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "startDelay", _g_get_startDelay); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "secretId", _g_get_secretId); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "info1", _g_get_info1); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "info2", _g_get_info2); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "info3", _g_get_info3); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "info4", _g_get_info4); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preinstallTracking", _g_get_preinstallTracking); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "preinstallFilePath", _g_get_preinstallFilePath); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "playStoreKidsApp", _g_get_playStoreKidsApp); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "iadInfoReading", _g_get_iadInfoReading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "adServicesInfoReading", _g_get_adServicesInfoReading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "idfaInfoReading", _g_get_idfaInfoReading); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "skAdNetworkHandling", _g_get_skAdNetworkHandling); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startManually", _s_set_startManually); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "androidAppToken", _s_set_androidAppToken); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "iosAppToken", _s_set_iosAppToken); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "environment", _s_set_environment); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "logLevel", _s_set_logLevel); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "eventBuffering", _s_set_eventBuffering); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "sendInBackground", _s_set_sendInBackground); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "launchDeferredDeeplink", _s_set_launchDeferredDeeplink); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "needsCost", _s_set_needsCost); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "coppaCompliant", _s_set_coppaCompliant); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "linkMe", _s_set_linkMe); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "defaultTracker", _s_set_defaultTracker); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "urlStrategy", _s_set_urlStrategy); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "startDelay", _s_set_startDelay); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "secretId", _s_set_secretId); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "info1", _s_set_info1); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "info2", _s_set_info2); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "info3", _s_set_info3); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "info4", _s_set_info4); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preinstallTracking", _s_set_preinstallTracking); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "preinstallFilePath", _s_set_preinstallFilePath); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "playStoreKidsApp", _s_set_playStoreKidsApp); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "iadInfoReading", _s_set_iadInfoReading); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "adServicesInfoReading", _s_set_adServicesInfoReading); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "idfaInfoReading", _s_set_idfaInfoReading); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "skAdNetworkHandling", _s_set_skAdNetworkHandling); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 35, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "start", _m_start_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "trackEvent", _m_trackEvent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "setEnabled", _m_setEnabled_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "isEnabled", _m_isEnabled_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "setOfflineMode", _m_setOfflineMode_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "setDeviceToken", _m_setDeviceToken_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "gdprForgetMe", _m_gdprForgetMe_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "disableThirdPartySharing", _m_disableThirdPartySharing_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "appWillOpenUrl", _m_appWillOpenUrl_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "sendFirstPackages", _m_sendFirstPackages_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "addSessionPartnerParameter", _m_addSessionPartnerParameter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "addSessionCallbackParameter", _m_addSessionCallbackParameter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "removeSessionPartnerParameter", _m_removeSessionPartnerParameter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "removeSessionCallbackParameter", _m_removeSessionCallbackParameter_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "resetSessionPartnerParameters", _m_resetSessionPartnerParameters_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "resetSessionCallbackParameters", _m_resetSessionCallbackParameters_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "trackAdRevenue", _m_trackAdRevenue_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "trackAppStoreSubscription", _m_trackAppStoreSubscription_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "trackPlayStoreSubscription", _m_trackPlayStoreSubscription_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "trackThirdPartySharing", _m_trackThirdPartySharing_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "trackMeasurementConsent", _m_trackMeasurementConsent_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "requestTrackingAuthorizationWithCompletionHandler", _m_requestTrackingAuthorizationWithCompletionHandler_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "updateConversionValue", _m_updateConversionValue_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "checkForNewAttStatus", _m_checkForNewAttStatus_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getAppTrackingAuthorizationStatus", _m_getAppTrackingAuthorizationStatus_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getAdid", _m_getAdid_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getAttribution", _m_getAttribution_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getWinAdid", _m_getWinAdid_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getIdfa", _m_getIdfa_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getSdkVersion", _m_getSdkVersion_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getGoogleAdId", _m_getGoogleAdId_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getAmazonAdId", _m_getAmazonAdId_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "getLastDeeplink", _m_getLastDeeplink_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "SetTestOptions", _m_SetTestOptions_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.Adjust(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.Adjust constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_start_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - com.adjust.sdk.AdjustConfig _adjustConfig = (com.adjust.sdk.AdjustConfig)translator.GetObject(L, 1, typeof(com.adjust.sdk.AdjustConfig)); - - com.adjust.sdk.Adjust.start( _adjustConfig ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_trackEvent_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - com.adjust.sdk.AdjustEvent _adjustEvent = (com.adjust.sdk.AdjustEvent)translator.GetObject(L, 1, typeof(com.adjust.sdk.AdjustEvent)); - - com.adjust.sdk.Adjust.trackEvent( _adjustEvent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setEnabled_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 1); - - com.adjust.sdk.Adjust.setEnabled( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isEnabled_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.isEnabled( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setOfflineMode_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 1); - - com.adjust.sdk.Adjust.setOfflineMode( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDeviceToken_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _deviceToken = LuaAPI.lua_tostring(L, 1); - - com.adjust.sdk.Adjust.setDeviceToken( _deviceToken ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_gdprForgetMe_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - com.adjust.sdk.Adjust.gdprForgetMe( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_disableThirdPartySharing_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - com.adjust.sdk.Adjust.disableThirdPartySharing( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_appWillOpenUrl_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _url = LuaAPI.lua_tostring(L, 1); - - com.adjust.sdk.Adjust.appWillOpenUrl( _url ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_sendFirstPackages_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - com.adjust.sdk.Adjust.sendFirstPackages( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addSessionPartnerParameter_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - - com.adjust.sdk.Adjust.addSessionPartnerParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_addSessionCallbackParameter_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - string _value = LuaAPI.lua_tostring(L, 2); - - com.adjust.sdk.Adjust.addSessionCallbackParameter( _key, _value ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_removeSessionPartnerParameter_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - com.adjust.sdk.Adjust.removeSessionPartnerParameter( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_removeSessionCallbackParameter_xlua_st_(RealStatePtr L) - { - try { - - - - - { - string _key = LuaAPI.lua_tostring(L, 1); - - com.adjust.sdk.Adjust.removeSessionCallbackParameter( _key ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_resetSessionPartnerParameters_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - com.adjust.sdk.Adjust.resetSessionPartnerParameters( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_resetSessionCallbackParameters_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - com.adjust.sdk.Adjust.resetSessionCallbackParameters( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_trackAdRevenue_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& translator.Assignable(L, 1)) - { - com.adjust.sdk.AdjustAdRevenue _adRevenue = (com.adjust.sdk.AdjustAdRevenue)translator.GetObject(L, 1, typeof(com.adjust.sdk.AdjustAdRevenue)); - - com.adjust.sdk.Adjust.trackAdRevenue( _adRevenue ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _source = LuaAPI.lua_tostring(L, 1); - string _payload = LuaAPI.lua_tostring(L, 2); - - com.adjust.sdk.Adjust.trackAdRevenue( _source, _payload ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.Adjust.trackAdRevenue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_trackAppStoreSubscription_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - com.adjust.sdk.AdjustAppStoreSubscription _subscription = (com.adjust.sdk.AdjustAppStoreSubscription)translator.GetObject(L, 1, typeof(com.adjust.sdk.AdjustAppStoreSubscription)); - - com.adjust.sdk.Adjust.trackAppStoreSubscription( _subscription ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_trackPlayStoreSubscription_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - com.adjust.sdk.AdjustPlayStoreSubscription _subscription = (com.adjust.sdk.AdjustPlayStoreSubscription)translator.GetObject(L, 1, typeof(com.adjust.sdk.AdjustPlayStoreSubscription)); - - com.adjust.sdk.Adjust.trackPlayStoreSubscription( _subscription ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_trackThirdPartySharing_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - com.adjust.sdk.AdjustThirdPartySharing _thirdPartySharing = (com.adjust.sdk.AdjustThirdPartySharing)translator.GetObject(L, 1, typeof(com.adjust.sdk.AdjustThirdPartySharing)); - - com.adjust.sdk.Adjust.trackThirdPartySharing( _thirdPartySharing ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_trackMeasurementConsent_xlua_st_(RealStatePtr L) - { - try { - - - - - { - bool _measurementConsent = LuaAPI.lua_toboolean(L, 1); - - com.adjust.sdk.Adjust.trackMeasurementConsent( _measurementConsent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_requestTrackingAuthorizationWithCompletionHandler_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - System.Action _statusCallback = translator.GetDelegate>(L, 1); - string _sceneName = LuaAPI.lua_tostring(L, 2); - - com.adjust.sdk.Adjust.requestTrackingAuthorizationWithCompletionHandler( _statusCallback, _sceneName ); - - - - return 0; - } - if(gen_param_count == 1&& translator.Assignable>(L, 1)) - { - System.Action _statusCallback = translator.GetDelegate>(L, 1); - - com.adjust.sdk.Adjust.requestTrackingAuthorizationWithCompletionHandler( _statusCallback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.Adjust.requestTrackingAuthorizationWithCompletionHandler!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_updateConversionValue_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) - { - int _conversionValue = LuaAPI.xlua_tointeger(L, 1); - - com.adjust.sdk.Adjust.updateConversionValue( _conversionValue ); - - - - return 0; - } - if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - int _conversionValue = LuaAPI.xlua_tointeger(L, 1); - System.Action _completionCallback = translator.GetDelegate>(L, 2); - string _sceneName = LuaAPI.lua_tostring(L, 3); - - com.adjust.sdk.Adjust.updateConversionValue( _conversionValue, _completionCallback, _sceneName ); - - - - return 0; - } - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable>(L, 2)) - { - int _conversionValue = LuaAPI.xlua_tointeger(L, 1); - System.Action _completionCallback = translator.GetDelegate>(L, 2); - - com.adjust.sdk.Adjust.updateConversionValue( _conversionValue, _completionCallback ); - - - - return 0; - } - if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)) - { - int _conversionValue = LuaAPI.xlua_tointeger(L, 1); - string _coarseValue = LuaAPI.lua_tostring(L, 2); - bool _lockWindow = LuaAPI.lua_toboolean(L, 3); - System.Action _completionCallback = translator.GetDelegate>(L, 4); - string _sceneName = LuaAPI.lua_tostring(L, 5); - - com.adjust.sdk.Adjust.updateConversionValue( _conversionValue, _coarseValue, _lockWindow, _completionCallback, _sceneName ); - - - - return 0; - } - if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& translator.Assignable>(L, 4)) - { - int _conversionValue = LuaAPI.xlua_tointeger(L, 1); - string _coarseValue = LuaAPI.lua_tostring(L, 2); - bool _lockWindow = LuaAPI.lua_toboolean(L, 3); - System.Action _completionCallback = translator.GetDelegate>(L, 4); - - com.adjust.sdk.Adjust.updateConversionValue( _conversionValue, _coarseValue, _lockWindow, _completionCallback ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.Adjust.updateConversionValue!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_checkForNewAttStatus_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - com.adjust.sdk.Adjust.checkForNewAttStatus( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAppTrackingAuthorizationStatus_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getAppTrackingAuthorizationStatus( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAdid_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getAdid( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAttribution_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getAttribution( ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getWinAdid_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getWinAdid( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getIdfa_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getIdfa( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getSdkVersion_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getSdkVersion( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getGoogleAdId_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Action _onDeviceIdsRead = translator.GetDelegate>(L, 1); - - com.adjust.sdk.Adjust.getGoogleAdId( _onDeviceIdsRead ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAmazonAdId_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getAmazonAdId( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getLastDeeplink_xlua_st_(RealStatePtr L) - { - try { - - - - - { - - var gen_ret = com.adjust.sdk.Adjust.getLastDeeplink( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetTestOptions_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.Dictionary _testOptions = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - - com.adjust.sdk.Adjust.SetTestOptions( _testOptions ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startManually(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.startManually); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_androidAppToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.androidAppToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_iosAppToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.iosAppToken); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_environment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.environment); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_logLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.logLevel); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_eventBuffering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.eventBuffering); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_sendInBackground(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sendInBackground); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_launchDeferredDeeplink(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.launchDeferredDeeplink); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_needsCost(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.needsCost); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_coppaCompliant(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.coppaCompliant); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_linkMe(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.linkMe); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_defaultTracker(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.defaultTracker); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_urlStrategy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.urlStrategy); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_startDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.startDelay); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_secretId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.secretId); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_info1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.info1); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_info2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.info2); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_info3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.info3); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_info4(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushint64(L, gen_to_be_invoked.info4); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preinstallTracking(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.preinstallTracking); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_preinstallFilePath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.preinstallFilePath); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_playStoreKidsApp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.playStoreKidsApp); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_iadInfoReading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.iadInfoReading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_adServicesInfoReading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.adServicesInfoReading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_idfaInfoReading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.idfaInfoReading); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_skAdNetworkHandling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.skAdNetworkHandling); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startManually(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startManually = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_androidAppToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.androidAppToken = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_iosAppToken(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.iosAppToken = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_environment(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - com.adjust.sdk.AdjustEnvironment gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.environment = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_logLevel(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - com.adjust.sdk.AdjustLogLevel gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.logLevel = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_eventBuffering(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.eventBuffering = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_sendInBackground(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.sendInBackground = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_launchDeferredDeeplink(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.launchDeferredDeeplink = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_needsCost(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.needsCost = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_coppaCompliant(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.coppaCompliant = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_linkMe(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.linkMe = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_defaultTracker(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.defaultTracker = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_urlStrategy(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - com.adjust.sdk.AdjustUrlStrategy gen_value;translator.Get(L, 2, out gen_value); - gen_to_be_invoked.urlStrategy = gen_value; - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_startDelay(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.startDelay = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_secretId(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.secretId = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_info1(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.info1 = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_info2(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.info2 = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_info3(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.info3 = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_info4(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.info4 = LuaAPI.lua_toint64(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preinstallTracking(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preinstallTracking = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_preinstallFilePath(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.preinstallFilePath = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_playStoreKidsApp(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.playStoreKidsApp = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_iadInfoReading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.iadInfoReading = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_adServicesInfoReading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.adServicesInfoReading = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_idfaInfoReading(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.idfaInfoReading = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_skAdNetworkHandling(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.Adjust gen_to_be_invoked = (com.adjust.sdk.Adjust)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.skAdNetworkHandling = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_JSONArrayWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_JSONArrayWrap.cs deleted file mode 100644 index 0418f3a38..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_JSONArrayWrap.cs +++ /dev/null @@ -1,401 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkJSONArrayWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.JSONArray); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "get_Item", _m_get_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "set_Item", _m_set_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Serialize", _m_Serialize); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Childs", _g_get_Childs); - - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.JSONArray(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONArray constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_get_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - translator.Push(L, gen_to_be_invoked[key]); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_set_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.JSONNode gen_value = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - gen_to_be_invoked[key] = gen_value; - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - - - - { - string _aKey = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.JSONNode _aItem = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - - gen_to_be_invoked.Add( _aKey, _aItem ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _aIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _aIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - com.adjust.sdk.JSONNode _aNode = (com.adjust.sdk.JSONNode)translator.GetObject(L, 2, typeof(com.adjust.sdk.JSONNode)); - - var gen_ret = gen_to_be_invoked.Remove( _aNode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONArray.Remove!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _aPrefix = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _aPrefix ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONArray.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - - - - { - System.IO.BinaryWriter _aWriter = (System.IO.BinaryWriter)translator.GetObject(L, 2, typeof(System.IO.BinaryWriter)); - - gen_to_be_invoked.Serialize( _aWriter ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Childs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONArray gen_to_be_invoked = (com.adjust.sdk.JSONArray)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Childs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_JSONClassWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_JSONClassWrap.cs deleted file mode 100644 index a7c71a1e6..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_JSONClassWrap.cs +++ /dev/null @@ -1,412 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkJSONClassWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.JSONClass); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 2, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "get_Item", _m_get_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "set_Item", _m_set_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEnumerator", _m_GetEnumerator); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Serialize", _m_Serialize); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Childs", _g_get_Childs); - - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.JSONClass(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONClass constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_get_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - translator.Push(L, gen_to_be_invoked[key]); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_set_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.JSONNode gen_value = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - gen_to_be_invoked[key] = gen_value; - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - - - - { - string _aKey = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.JSONNode _aItem = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - - gen_to_be_invoked.Add( _aKey, _aItem ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _aIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _aIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _aKey = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _aKey ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - com.adjust.sdk.JSONNode _aNode = (com.adjust.sdk.JSONNode)translator.GetObject(L, 2, typeof(com.adjust.sdk.JSONNode)); - - var gen_ret = gen_to_be_invoked.Remove( _aNode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONClass.Remove!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetEnumerator(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetEnumerator( ); - translator.PushAny(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _aPrefix = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _aPrefix ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONClass.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - - - - { - System.IO.BinaryWriter _aWriter = (System.IO.BinaryWriter)translator.GetObject(L, 2, typeof(System.IO.BinaryWriter)); - - gen_to_be_invoked.Serialize( _aWriter ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Childs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONClass gen_to_be_invoked = (com.adjust.sdk.JSONClass)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Childs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_JSONDataWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_JSONDataWrap.cs deleted file mode 100644 index 6b8b79dc8..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_JSONDataWrap.cs +++ /dev/null @@ -1,225 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkJSONDataWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.JSONData); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 1, 1); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Serialize", _m_Serialize); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Value", _g_get_Value); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Value", _s_set_Value); - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _aData = LuaAPI.lua_tostring(L, 2); - - var gen_ret = new com.adjust.sdk.JSONData(_aData); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - float _aData = (float)LuaAPI.lua_tonumber(L, 2); - - var gen_ret = new com.adjust.sdk.JSONData(_aData); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - double _aData = LuaAPI.lua_tonumber(L, 2); - - var gen_ret = new com.adjust.sdk.JSONData(_aData); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) - { - bool _aData = LuaAPI.lua_toboolean(L, 2); - - var gen_ret = new com.adjust.sdk.JSONData(_aData); - translator.Push(L, gen_ret); - - return 1; - } - if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _aData = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = new com.adjust.sdk.JSONData(_aData); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONData constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONData gen_to_be_invoked = (com.adjust.sdk.JSONData)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _aPrefix = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _aPrefix ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONData.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONData gen_to_be_invoked = (com.adjust.sdk.JSONData)translator.FastGetCSObj(L, 1); - - - - { - System.IO.BinaryWriter _aWriter = (System.IO.BinaryWriter)translator.GetObject(L, 2, typeof(System.IO.BinaryWriter)); - - gen_to_be_invoked.Serialize( _aWriter ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONData gen_to_be_invoked = (com.adjust.sdk.JSONData)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONData gen_to_be_invoked = (com.adjust.sdk.JSONData)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Value = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_JSONNodeWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_JSONNodeWrap.cs deleted file mode 100644 index b72dca014..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_JSONNodeWrap.cs +++ /dev/null @@ -1,995 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkJSONNodeWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.JSONNode); - Utils.BeginObjectRegister(type, L, translator, 1, 12, 10, 5); - Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "get_Item", _m_get_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "set_Item", _m_set_Item); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "Serialize", _m_Serialize); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SaveToStream", _m_SaveToStream); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SaveToCompressedStream", _m_SaveToCompressedStream); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SaveToCompressedFile", _m_SaveToCompressedFile); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SaveToCompressedBase64", _m_SaveToCompressedBase64); - - - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Value", _g_get_Value); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "Childs", _g_get_Childs); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "DeepChilds", _g_get_DeepChilds); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AsInt", _g_get_AsInt); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AsFloat", _g_get_AsFloat); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AsDouble", _g_get_AsDouble); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AsBool", _g_get_AsBool); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AsArray", _g_get_AsArray); - Utils.RegisterFunc(L, Utils.GETTER_IDX, "AsObject", _g_get_AsObject); - - Utils.RegisterFunc(L, Utils.SETTER_IDX, "Value", _s_set_Value); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AsInt", _s_set_AsInt); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AsFloat", _s_set_AsFloat); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AsDouble", _s_set_AsDouble); - Utils.RegisterFunc(L, Utils.SETTER_IDX, "AsBool", _s_set_AsBool); - - - Utils.EndObjectRegister(type, L, translator, __CSIndexer, __NewIndexer, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 8, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Parse", _m_Parse_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Deserialize", _m_Deserialize_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromCompressedFile", _m_LoadFromCompressedFile_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromCompressedStream", _m_LoadFromCompressedStream_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromCompressedBase64", _m_LoadFromCompressedBase64_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromStream", _m_LoadFromStream_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadFromBase64", _m_LoadFromBase64_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - if(LuaAPI.lua_gettop(L) == 1) - { - - var gen_ret = new com.adjust.sdk.JSONNode(); - translator.Push(L, gen_ret); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONNode constructor!"); - - } - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __CSIndexer(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - int index = LuaAPI.xlua_tointeger(L, 2); - LuaAPI.lua_pushboolean(L, true); - translator.Push(L, gen_to_be_invoked[index]); - return 2; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - public static int __NewIndexer(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - try { - - if (translator.Assignable(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable(L, 3)) - { - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - int key = LuaAPI.xlua_tointeger(L, 2); - gen_to_be_invoked[key] = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - LuaAPI.lua_pushboolean(L, true); - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - LuaAPI.lua_pushboolean(L, false); - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __EqMeta(RealStatePtr L) - { - - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - if (translator.Assignable(L, 1) && translator.Assignable(L, 2)) - { - com.adjust.sdk.JSONNode leftside = (com.adjust.sdk.JSONNode)translator.GetObject(L, 1, typeof(com.adjust.sdk.JSONNode)); - object rightside = translator.GetObject(L, 2, typeof(object)); - - LuaAPI.lua_pushboolean(L, leftside == rightside); - - return 1; - } - - } - catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need com.adjust.sdk.JSONNode!"); - - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Add(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - com.adjust.sdk.JSONNode _aItem = (com.adjust.sdk.JSONNode)translator.GetObject(L, 2, typeof(com.adjust.sdk.JSONNode)); - - gen_to_be_invoked.Add( _aItem ); - - - - return 0; - } - if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) - { - string _aKey = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.JSONNode _aItem = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - - gen_to_be_invoked.Add( _aKey, _aItem ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONNode.Add!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_get_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - translator.Push(L, gen_to_be_invoked[key]); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_set_Item(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - - string key = LuaAPI.lua_tostring(L, 2); - com.adjust.sdk.JSONNode gen_value = (com.adjust.sdk.JSONNode)translator.GetObject(L, 3, typeof(com.adjust.sdk.JSONNode)); - gen_to_be_invoked[key] = gen_value; - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Remove(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) - { - int _aIndex = LuaAPI.xlua_tointeger(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _aIndex ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _aKey = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.Remove( _aKey ); - translator.Push(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& translator.Assignable(L, 2)) - { - com.adjust.sdk.JSONNode _aNode = (com.adjust.sdk.JSONNode)translator.GetObject(L, 2, typeof(com.adjust.sdk.JSONNode)); - - var gen_ret = gen_to_be_invoked.Remove( _aNode ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONNode.Remove!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_ToString(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - var gen_ret = gen_to_be_invoked.ToString( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _aPrefix = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.ToString( _aPrefix ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to com.adjust.sdk.JSONNode.ToString!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Equals(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - object _obj = translator.GetObject(L, 2, typeof(object)); - - var gen_ret = gen_to_be_invoked.Equals( _obj ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetHashCode(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetHashCode( ); - LuaAPI.xlua_pushinteger(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Parse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _aJSON = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.JSONNode.Parse( _aJSON ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Serialize(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - System.IO.BinaryWriter _aWriter = (System.IO.BinaryWriter)translator.GetObject(L, 2, typeof(System.IO.BinaryWriter)); - - gen_to_be_invoked.Serialize( _aWriter ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SaveToStream(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - System.IO.Stream _aData = (System.IO.Stream)translator.GetObject(L, 2, typeof(System.IO.Stream)); - - gen_to_be_invoked.SaveToStream( _aData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SaveToCompressedStream(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - System.IO.Stream _aData = (System.IO.Stream)translator.GetObject(L, 2, typeof(System.IO.Stream)); - - gen_to_be_invoked.SaveToCompressedStream( _aData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SaveToCompressedFile(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - string _aFileName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.SaveToCompressedFile( _aFileName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SaveToCompressedBase64(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.SaveToCompressedBase64( ); - LuaAPI.lua_pushstring(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Deserialize_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.IO.BinaryReader _aReader = (System.IO.BinaryReader)translator.GetObject(L, 1, typeof(System.IO.BinaryReader)); - - var gen_ret = com.adjust.sdk.JSONNode.Deserialize( _aReader ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromCompressedFile_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _aFileName = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.JSONNode.LoadFromCompressedFile( _aFileName ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromCompressedStream_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.IO.Stream _aData = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - - var gen_ret = com.adjust.sdk.JSONNode.LoadFromCompressedStream( _aData ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromCompressedBase64_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _aBase64 = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.JSONNode.LoadFromCompressedBase64( _aBase64 ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromStream_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.IO.Stream _aData = (System.IO.Stream)translator.GetObject(L, 1, typeof(System.IO.Stream)); - - var gen_ret = com.adjust.sdk.JSONNode.LoadFromStream( _aData ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_LoadFromBase64_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _aBase64 = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.JSONNode.LoadFromBase64( _aBase64 ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushstring(L, gen_to_be_invoked.Value); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Count(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_Childs(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.Childs); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_DeepChilds(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - translator.PushAny(L, gen_to_be_invoked.DeepChilds); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AsInt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AsInt); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AsFloat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AsFloat); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AsDouble(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushnumber(L, gen_to_be_invoked.AsDouble); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AsBool(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AsBool); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AsArray(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.AsArray); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_AsObject(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - translator.Push(L, gen_to_be_invoked.AsObject); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_Value(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.Value = LuaAPI.lua_tostring(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AsInt(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AsInt = LuaAPI.xlua_tointeger(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AsFloat(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AsFloat = (float)LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AsDouble(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AsDouble = LuaAPI.lua_tonumber(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _s_set_AsBool(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - com.adjust.sdk.JSONNode gen_to_be_invoked = (com.adjust.sdk.JSONNode)translator.FastGetCSObj(L, 1); - gen_to_be_invoked.AsBool = LuaAPI.lua_toboolean(L, 2); - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 0; - } - - - - - - } -} diff --git a/Assets/XLua/Gen/com_adjust_sdk_JSONWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_JSONWrap.cs deleted file mode 100644 index 41fecf148..000000000 --- a/Assets/XLua/Gen/com_adjust_sdk_JSONWrap.cs +++ /dev/null @@ -1,95 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class comadjustsdkJSONWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(com.adjust.sdk.JSON); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); - Utils.RegisterFunc(L, Utils.CLS_IDX, "Parse", _m_Parse_xlua_st_); - - - - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "com.adjust.sdk.JSON does not have a constructor!"); - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_Parse_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - string _aJSON = LuaAPI.lua_tostring(L, 1); - - var gen_ret = com.adjust.sdk.JSON.Parse( _aJSON ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/dataSourceWrap.cs b/Assets/XLua/Gen/dataSourceWrap.cs deleted file mode 100644 index 90e118fad..000000000 --- a/Assets/XLua/Gen/dataSourceWrap.cs +++ /dev/null @@ -1,80 +0,0 @@ -#if USE_UNI_LUA -using LuaAPI = UniLua.Lua; -using RealStatePtr = UniLua.ILuaState; -using LuaCSFunction = UniLua.CSharpFunctionDelegate; -#else -using LuaAPI = XLua.LuaDLL.Lua; -using RealStatePtr = System.IntPtr; -using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; -#endif - -using XLua; -using System.Collections.Generic; - - -namespace XLua.CSObjectWrap -{ - using Utils = XLua.Utils; - public class dataSourceWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(dataSource); - Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); - - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0); - - - - Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MOPUB", _g_get_MOPUB); - - - - Utils.EndClassRegister(type, L, translator); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int __CreateInstance(RealStatePtr L) - { - return LuaAPI.luaL_error(L, "dataSource does not have a constructor!"); - } - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _g_get_MOPUB(RealStatePtr L) - { - try { - - LuaAPI.lua_pushstring(L, dataSource.MOPUB); - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - return 1; - } - - - - - - - - } -} diff --git a/Assets/XLua/Gen/link.xml b/Assets/XLua/Gen/link.xml deleted file mode 100644 index ac57abc97..000000000 --- a/Assets/XLua/Gen/link.xml +++ /dev/null @@ -1,735 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Packages/manifest.json b/Packages/manifest.json index 30fb1ea93..663198b68 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -9,6 +9,7 @@ "com.unity.postprocessing": "3.2.2", "com.unity.purchasing": "4.9.3", "com.unity.recorder": "3.0.3", + "com.unity.render-pipelines.universal": "12.1.12", "com.unity.test-framework": "1.1.33", "com.unity.textmeshpro": "3.0.6", "com.unity.timeline": "1.6.5", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index d3a0ea974..840dd84cf 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -6,6 +6,15 @@ "source": "builtin", "dependencies": {} }, + "com.unity.burst": { + "version": "1.8.4", + "depth": 1, + "source": "registry", + "dependencies": { + "com.unity.mathematics": "1.2.1" + }, + "url": "https://packages.unity.com" + }, "com.unity.collab-proxy": { "version": "2.1.0", "depth": 0, @@ -45,6 +54,13 @@ "dependencies": {}, "url": "https://packages.unity.com" }, + "com.unity.mathematics": { + "version": "1.2.6", + "depth": 1, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, "com.unity.nuget.newtonsoft-json": { "version": "3.2.1", "depth": 0, @@ -84,6 +100,34 @@ }, "url": "https://packages.unity.com" }, + "com.unity.render-pipelines.core": { + "version": "12.1.12", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.ugui": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0" + } + }, + "com.unity.render-pipelines.universal": { + "version": "12.1.12", + "depth": 0, + "source": "builtin", + "dependencies": { + "com.unity.mathematics": "1.2.1", + "com.unity.burst": "1.8.4", + "com.unity.render-pipelines.core": "12.1.12", + "com.unity.shadergraph": "12.1.12" + } + }, + "com.unity.searcher": { + "version": "4.9.1", + "depth": 2, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, "com.unity.services.core": { "version": "1.11.0", "depth": 1, @@ -95,6 +139,15 @@ }, "url": "https://packages.unity.com" }, + "com.unity.shadergraph": { + "version": "12.1.12", + "depth": 1, + "source": "builtin", + "dependencies": { + "com.unity.render-pipelines.core": "12.1.12", + "com.unity.searcher": "4.9.1" + } + }, "com.unity.test-framework": { "version": "1.1.33", "depth": 0, diff --git a/ProjectSettings/URPProjectSettings.asset b/ProjectSettings/URPProjectSettings.asset new file mode 100644 index 000000000..c1f118ad3 --- /dev/null +++ b/ProjectSettings/URPProjectSettings.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &1 +MonoBehaviour: + m_ObjectHideFlags: 61 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 247994e1f5a72c2419c26a37e9334c01, type: 3} + m_Name: + m_EditorClassIdentifier: + m_LastMaterialVersion: 5